/* ============ Wander & Ink — styles ============ */
:root {
  --ink: #1f2430;
  --ink-soft: #4a5264;
  --paper: #faf7f2;
  --card: #ffffff;
  --accent: #d96c3f;
  --accent-dark: #b85430;
  --teal: #2e7d6e;
  --line: #e7e1d8;
  --radius: 14px;
  --shadow: 0 8px 30px rgba(31, 36, 48, 0.08);
  --max: 1100px;
  font-size: 16px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: Georgia, "Times New Roman", serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.7;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  clip: rect(0 0 0 0); overflow: hidden;
}

.container {
  width: min(var(--max), 92%);
  margin-inline: auto;
}

.amp { color: var(--accent); font-style: italic; }

.eyebrow {
  font-family: "Helvetica Neue", Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.75rem;
  color: var(--accent);
  font-weight: 700;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 247, 242, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 0;
}

.logo {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.nav-links {
  display: flex;
  gap: 1.6rem;
  list-style: none;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 0.95rem;
}

.nav-links a { color: var(--ink-soft); transition: color 0.2s; }
.nav-links a:hover, .nav-links a.active { color: var(--accent); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--ink);
  cursor: pointer;
}

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(1200px 500px at 80% -10%, rgba(217, 108, 63, 0.18), transparent 60%),
    radial-gradient(900px 500px at 10% 110%, rgba(46, 125, 110, 0.16), transparent 60%),
    var(--paper);
  padding: 6rem 0 5rem;
  text-align: left;
}

.hero h1 {
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  line-height: 1.1;
  margin: 0.9rem 0 1.2rem;
  letter-spacing: -0.02em;
}

.lead {
  max-width: 34rem;
  color: var(--ink-soft);
  font-size: 1.1rem;
}

.hero-actions { margin-top: 2rem; display: flex; gap: 0.9rem; flex-wrap: wrap; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-2px); }

.btn-ghost {
  border-color: var(--ink);
  color: var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: var(--paper); }

/* ---------- Sections ---------- */
.section { padding: 4rem 0; }

.section-title {
  font-size: 1.8rem;
  margin-bottom: 2rem;
  letter-spacing: -0.01em;
}

/* ---------- Featured ---------- */
.featured {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.featured-media { min-height: 380px; }

.featured-body {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.featured-body h2 {
  font-size: 1.9rem;
  line-height: 1.2;
  margin: 0.6rem 0 1rem;
}

.featured-body h2 a:hover { color: var(--accent); }

/* ---------- Post grid ---------- */
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.post-card {
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
}

.post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 36px rgba(31, 36, 48, 0.14);
}

.post-media { height: 190px; }

.post-body { padding: 1.4rem; display: flex; flex-direction: column; flex: 1; }

.post-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 0.8rem;
  color: var(--ink-soft);
  margin-bottom: 0.6rem;
}

.tag {
  background: rgba(46, 125, 110, 0.12);
  color: var(--teal);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  font-size: 0.7rem;
}

.post-body h3 { font-size: 1.2rem; line-height: 1.3; margin-bottom: 0.5rem; }
.post-body h3 a:hover { color: var(--accent); }
.post-body p { color: var(--ink-soft); font-size: 0.95rem; flex: 1; }

.read-more {
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--accent);
  margin-top: 1rem;
  display: inline-block;
}
.read-more:hover { color: var(--accent-dark); }

/* ---------- Gradient "photos" ---------- */
.gradient-lisbon {
  background:
    radial-gradient(300px 200px at 70% 30%, rgba(255, 214, 153, 0.9), transparent 70%),
    linear-gradient(150deg, #e8875a 0%, #d96c3f 45%, #8e4a8b 100%);
}
.gradient-kyoto {
  background:
    radial-gradient(220px 160px at 30% 25%, rgba(255, 183, 192, 0.85), transparent 70%),
    linear-gradient(140deg, #f2a09b 0%, #c94f4f 55%, #4a2c5e 100%);
}
.gradient-reykjavik {
  background:
    radial-gradient(260px 180px at 65% 20%, rgba(154, 240, 200, 0.8), transparent 70%),
    linear-gradient(150deg, #1b3a5c 0%, #2e7d6e 60%, #9be3c0 110%);
}
.gradient-oaxaca {
  background:
    radial-gradient(240px 170px at 40% 30%, rgba(255, 214, 102, 0.85), transparent 70%),
    linear-gradient(140deg, #e0b32e 0%, #d96c3f 55%, #7a3b8f 100%);
}

/* ---------- Newsletter ---------- */
.newsletter {
  background: var(--ink);
  color: var(--paper);
  padding: 4rem 0;
  margin-top: 2rem;
}

.newsletter h2 { font-size: 1.9rem; margin-bottom: 0.4rem; }
.newsletter p { color: #b9bfc9; max-width: 32rem; }

.newsletter-form {
  margin-top: 1.5rem;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.newsletter-form input {
  flex: 1;
  min-width: 220px;
  max-width: 380px;
  padding: 0.75rem 1.1rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.08);
  color: var(--paper);
  font-size: 0.95rem;
}
.newsletter-form input::placeholder { color: #8d94a1; }
.newsletter-form input:focus { outline: 2px solid var(--accent); }

/* ---------- Article pages ---------- */
.page-header {
  padding: 3.5rem 0 2.5rem;
  background:
    radial-gradient(900px 400px at 80% -20%, rgba(217, 108, 63, 0.15), transparent 60%),
    var(--paper);
  border-bottom: 1px solid var(--line);
}

.page-header h1 { font-size: clamp(2rem, 4.5vw, 3rem); line-height: 1.15; letter-spacing: -0.02em; }
.page-header .lead { margin-top: 1rem; }

.article-hero {
  height: 340px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin: 2rem 0;
}

.article-body { max-width: 42rem; margin: 0 auto; padding: 3rem 0 4rem; }

.article-body h2 { margin: 2.2rem 0 0.8rem; font-size: 1.5rem; }
.article-body p { margin-bottom: 1.2rem; color: var(--ink-soft); font-size: 1.05rem; }
.article-body blockquote {
  border-left: 3px solid var(--accent);
  padding-left: 1.2rem;
  margin: 1.8rem 0;
  font-style: italic;
  font-size: 1.15rem;
  color: var(--ink);
}

.article-meta {
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 0.85rem;
  color: var(--ink-soft);
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-bottom: 0.5rem;
}

.back-link {
  display: inline-block;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--accent);
  margin: 2rem 0 0;
}

/* ---------- About / Contact ---------- */
.prose { max-width: 44rem; margin: 0 auto; padding: 3rem 0 4rem; }
.prose p { margin-bottom: 1.2rem; color: var(--ink-soft); }
.prose h2 { margin: 1.8rem 0 0.8rem; }

.portrait {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  margin-bottom: 1.5rem;
  background: radial-gradient(circle at 35% 30%, #f2b880, var(--accent) 70%, var(--accent-dark));
  box-shadow: var(--shadow);
}

.contact-form {
  max-width: 34rem;
  margin: 0 auto;
  padding: 3rem 0 4rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form label {
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
}

.contact-form input,
.contact-form textarea {
  padding: 0.8rem 1rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.95rem;
  background: var(--card);
  margin-top: 0.3rem;
}
.contact-form input:focus, .contact-form textarea:focus {
  outline: 2px solid var(--accent);
  border-color: transparent;
}

/* ---------- Footer ---------- */
.site-footer {
  background: #171b24;
  color: #aab0bc;
  padding: 3rem 0 1.5rem;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-grid h4 { color: var(--paper); margin-bottom: 0.7rem; font-size: 0.95rem; }
.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: 0.45rem; }
.footer-grid a:hover { color: var(--paper); }

.muted { opacity: 0.7; margin-top: 0.4rem; }
.copyright { text-align: center; padding-top: 1.5rem; font-size: 0.8rem; opacity: 0.6; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .featured { grid-template-columns: 1fr; }
  .featured-media { min-height: 240px; }
  .post-grid { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }

  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 0.5rem 0;
  }
  .nav-links li { padding: 0.7rem 4%; }
  .nav-links.open { display: flex; }
}
