/* Wandercanvas — editorial travel essays about walking through cultural cities.
   Warm cream + muted navy + occasional terracotta accent.
   Serif typography. Magazine-style layout. */

:root {
  --bg: #faf6ec;
  --bg-elev: #ffffff;
  --bg-tinted: #f3ecd9;
  --ink: #1a2434;
  --ink-soft: #424d62;
  --ink-muted: #707c91;
  --rule: #d8cfbb;
  --navy: #2a3a4e;
  --navy-deep: #1a2434;
  --terra: #c0532a;       /* terracotta — like old book accents */
  --gold: #b88a3d;
  --link: #2a3a4e;
  --link-hover: #c0532a;

  --serif: "Iowan Old Style", "Cormorant Garamond", "Georgia Pro", Georgia, Cambria, serif;
  --sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --max-w: 1120px;
  --max-w-prose: 660px;
  --radius: 3px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.7 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: var(--link); text-underline-offset: 0.2em; }
a:hover { color: var(--link-hover); }
img { max-width: 100%; height: auto; display: block; }
::selection { background: var(--terra); color: #fff; }

/* =============== Header =============== */
.site {
  background: var(--bg-elev);
  border-bottom: 2px solid var(--ink);
  font-feature-settings: "ss01";
}
.site__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 1.6rem 1.6rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  align-items: center;
  text-align: center;
}
.brand {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 600;
  font-size: 2.1rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--ink);
  line-height: 1;
}
.brand small {
  display: block;
  font-family: var(--sans);
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0.25em;
  font-size: 0.65rem;
  text-transform: uppercase;
  margin-top: 0.4rem;
  color: var(--ink-soft);
}
.nav { display: flex; gap: 1.6rem; justify-content: center; font-size: 0.86rem; flex-wrap: wrap; }
.nav a {
  color: var(--ink-soft);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.3rem 0;
  border-bottom: 1px solid transparent;
  transition: color .15s, border-color .15s;
}
.nav a:hover, .nav a.current { color: var(--terra); border-color: var(--terra); }
@media (min-width: 720px) {
  .site__inner {
    grid-template-columns: 1fr auto 1fr;
    text-align: left;
    gap: 2rem;
  }
  .site__inner .brand { text-align: center; grid-column: 2; }
  .nav { justify-content: flex-end; }
}

/* =============== Hero (masthead) =============== */
.hero {
  text-align: center;
  padding: 4rem 1.6rem 2.6rem;
  border-bottom: 1px solid var(--rule);
  max-width: var(--max-w);
  margin: 0 auto;
}
.hero__issue {
  display: inline-flex;
  gap: 0.8rem;
  align-items: center;
  font-family: var(--sans);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--ink-muted);
  margin-bottom: 1.6rem;
}
.hero__issue::before, .hero__issue::after {
  content: ""; width: 32px; height: 1px; background: var(--rule);
}
.hero h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  line-height: 1.05;
  letter-spacing: -0.012em;
  margin: 0 auto 1rem;
  max-width: 22ch;
  color: var(--ink);
}
.hero h1 em { font-style: italic; color: var(--terra); }
.hero p {
  font-size: 1.15rem;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 56ch;
  margin: 0 auto 2rem;
}

.divider {
  display: block; width: 100%; max-width: var(--max-w);
  margin: 0 auto; padding: 0 1.6rem;
}
.divider svg { width: 100%; height: 24px; color: var(--rule); }

/* =============== Feature article =============== */
.feature {
  max-width: var(--max-w);
  margin: 4rem auto;
  padding: 0 1.6rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: start;
}
.feature__img {
  aspect-ratio: 4 / 3;
  background-size: cover;
  background-position: center;
  background-color: var(--bg-tinted);
  border-radius: var(--radius);
  box-shadow: 0 24px 50px -28px rgba(26, 36, 52, 0.3);
}
.feature__txt h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  letter-spacing: -0.01em;
  margin: 0 0 0.7rem;
  line-height: 1.15;
  color: var(--ink);
}
.feature__txt h2 a { color: inherit; text-decoration: none; }
.feature__txt h2 a:hover { color: var(--terra); }
.feature__kicker {
  font-family: var(--sans);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--terra);
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.feature__txt p { font-size: 1.05rem; color: var(--ink-soft); margin: 0 0 1.2rem; }
.feature__meta {
  font-size: 0.84rem;
  color: var(--ink-muted);
  display: flex; gap: 0.7rem; flex-wrap: wrap;
}
.feature__meta::before {
  content: "By"; color: var(--ink-muted);
}
@media (min-width: 820px) {
  .feature { grid-template-columns: 1.1fr 1fr; gap: 3rem; }
}

/* =============== Index of essays =============== */
.essays-section {
  max-width: var(--max-w);
  margin: 5rem auto;
  padding: 0 1.6rem;
}
.essays-section__head {
  text-align: center;
  margin: 0 0 3rem;
}
.essays-section__head h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 2.1rem;
  margin: 0 0 0.5rem;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.essays-section__head p { color: var(--ink-soft); max-width: 50ch; margin: 0 auto; font-size: 1rem; }
.essays {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--rule);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.essay-row {
  background: var(--bg);
  padding: 1.6rem 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  text-decoration: none;
  color: inherit;
  transition: background .12s;
}
.essay-row:hover { background: var(--bg-elev); }
.essay-row__kicker {
  font-family: var(--sans);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--terra);
  font-weight: 700;
}
.essay-row__txt h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.4rem;
  margin: 0.2rem 0 0.4rem;
  line-height: 1.2;
  color: var(--ink);
}
.essay-row__txt p { color: var(--ink-soft); margin: 0 0 0.5rem; font-size: 0.95rem; }
.essay-row__meta {
  font-family: var(--sans);
  font-size: 0.78rem;
  color: var(--ink-muted);
  display: flex; gap: 0.7rem; flex-wrap: wrap;
}
@media (min-width: 720px) {
  .essay-row { grid-template-columns: 200px 1fr 130px; gap: 2rem; align-items: center; padding: 1.8rem 0; }
  .essay-row__num {
    text-align: right;
    font-family: var(--serif);
    font-style: italic;
    font-size: 1.4rem;
    color: var(--ink-muted);
  }
  .essay-row__kicker { padding-left: 1.6rem; }
}

/* =============== Article page =============== */
.post {
  max-width: var(--max-w-prose);
  margin: 0 auto;
  padding: 3rem 1.6rem 5rem;
}
.post__kicker {
  font-family: var(--sans);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--terra);
  font-weight: 700;
  text-align: center;
  margin-bottom: 0.7rem;
}
.post h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2rem, 4.5vw, 2.9rem);
  letter-spacing: -0.012em;
  line-height: 1.15;
  text-align: center;
  margin: 0 auto 1rem;
  max-width: 22ch;
  color: var(--ink);
}
.post__lede {
  text-align: center;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--ink-soft);
  max-width: 48ch;
  margin: 0 auto 2rem;
  line-height: 1.55;
}
.post__meta {
  display: flex; justify-content: center; gap: 1.2rem;
  font-family: var(--sans);
  font-size: 0.82rem;
  color: var(--ink-muted);
  letter-spacing: 0.04em;
  flex-wrap: wrap;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 2.5rem;
}
.post__img {
  max-width: 900px;
  margin: 0 auto 3rem;
  height: 420px;
  background-size: cover; background-position: center;
  background-color: var(--bg-tinted);
  border-radius: var(--radius);
  box-shadow: 0 20px 50px -25px rgba(26, 36, 52, 0.3);
}

.prose {
  font-family: var(--serif);
  font-size: 1.1rem;
  line-height: 1.85;
  color: var(--ink);
  font-feature-settings: "onum", "kern";
}
.prose > p:first-of-type::first-letter {
  font-size: 4.2rem;
  font-family: var(--serif);
  font-style: italic;
  float: left;
  line-height: 0.85;
  padding: 0.4rem 0.6rem 0 0;
  color: var(--terra);
}
.prose p { margin: 0 0 1.4rem; }
.prose h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.55rem;
  margin: 2.6rem 0 0.7rem;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.prose h2::before {
  content: "❦";
  display: block;
  text-align: center;
  color: var(--gold);
  font-size: 1.2rem;
  margin: 0.8rem 0 0.6rem;
}
.prose blockquote {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.25rem;
  text-align: center;
  margin: 2.6rem 0;
  padding: 0 1rem;
  color: var(--terra);
  line-height: 1.5;
  position: relative;
}
.prose blockquote::before {
  content: """;
  font-size: 4rem;
  color: var(--gold);
  position: absolute;
  top: -1.5rem; left: 50%;
  transform: translateX(-50%);
  line-height: 1;
  opacity: 0.4;
}
.prose ul, .prose ol { padding-left: 1.6rem; margin: 0 0 1.4rem; font-family: var(--serif); }
.prose ul li::marker { color: var(--terra); }
.prose figure { margin: 2rem -1rem; }
.prose figure img { border-radius: var(--radius); }
.prose figcaption {
  font-family: var(--sans);
  font-size: 0.82rem;
  color: var(--ink-muted);
  text-align: center;
  margin-top: 0.6rem;
}

/* =============== Pull quote / map illustration =============== */
.pull {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.45rem;
  line-height: 1.4;
  text-align: center;
  color: var(--navy);
  margin: 3rem 0;
  padding: 2rem 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

/* =============== Related =============== */
.related {
  border-top: 1px solid var(--rule);
  max-width: var(--max-w-prose);
  margin: 3rem auto 0;
  padding: 2rem 1.6rem 0;
}
.related h2 {
  font-family: var(--sans);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--terra);
  font-weight: 700;
  margin: 0 0 1.2rem;
}
.related h2::before { display: none; }
.related ul { list-style: none; padding: 0; margin: 0; }
.related li { padding: 0.9rem 0; border-bottom: 1px dotted var(--rule); }
.related a { color: var(--ink); text-decoration: none; display: block; }
.related a:hover { color: var(--terra); }
.related a strong { font-family: var(--serif); font-weight: 500; font-size: 1.1rem; }
.related a span { color: var(--ink-muted); font-size: 0.92rem; display: block; margin-top: 0.2rem; }

/* =============== About / Bio =============== */
.bio {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin: 0 0 3rem;
  align-items: start;
}
.bio__portrait {
  width: 140px; height: 140px;
  border-radius: 50%;
  background-size: cover; background-position: center;
  margin: 0 auto;
}
@media (min-width: 720px) {
  .bio { grid-template-columns: 160px 1fr; gap: 3rem; }
  .bio__portrait { margin: 0; }
}

/* =============== Footer =============== */
.foot {
  background: var(--navy-deep);
  color: #cfd6e0;
  padding: 4rem 1.6rem 2.5rem;
  margin-top: 5rem;
  text-align: center;
  font-size: 0.92rem;
}
.foot__brand {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 1.8rem;
  color: #fff;
  margin-bottom: 0.4rem;
}
.foot__brand small {
  display: block; font-family: var(--sans);
  font-size: 0.7rem; letter-spacing: 0.25em; text-transform: uppercase;
  color: #8a9aad; margin-top: 0.3rem;
}
.foot__links {
  list-style: none; padding: 0; margin: 2rem 0;
  display: flex; gap: 1.4rem; justify-content: center; flex-wrap: wrap;
  font-size: 0.84rem; letter-spacing: 0.1em; text-transform: uppercase;
}
.foot__links a { color: #cfd6e0; text-decoration: none; }
.foot__links a:hover { color: var(--terra); }
.foot__bottom {
  font-size: 0.78rem;
  color: #8a9aad;
  border-top: 1px solid #2a3a4e;
  padding-top: 1.5rem;
  margin-top: 1.5rem;
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
