/* ---------- Brand tokens (from the Quests Abroad brand sheet) ---------- */
:root {
  --wine: #5e2a26;       /* Oxblood */
  --wine-deep: #4a201d;
  --gold: #c9a86a;       /* Ochre */
  --gold-soft: #dcc394;
  --cream: #f1ebdf;      /* Paper */
  --paper: #f8f4ec;
  --ink: #211e1a;        /* Ink */
  --muted: #6b5f55;

  --display: "Newsreader", Georgia, serif;
  --body: "Newsreader", Georgia, serif;
  --mono: "Space Mono", ui-monospace, Menlo, monospace;

  --radius: 14px;
  --max: 1120px;
  --gutter: clamp(16px, 5vw, 48px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 400 1.15rem/1.65 var(--body);
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 300; letter-spacing: -.01em; line-height: 1.08; margin: 0; color: var(--wine); }

.eyebrow {
  margin: 0 0 .9rem;
  font: 400 .75rem/1.4 var(--mono);
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow::before {
  content: ""; display: inline-block; width: 1.6rem; height: 1px;
  background: var(--gold); vertical-align: middle; margin-right: .7rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .95rem 1.6rem;
  border-radius: 999px;
  border: 2px solid var(--wine);
  background: var(--wine);
  color: var(--paper);
  font: 700 .82rem/1 var(--mono);
  letter-spacing: .08em; text-transform: uppercase;
  text-decoration: none;
  box-shadow: 0 6px 18px -8px rgba(69, 29, 26, .7);
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-2px); background: var(--wine-deep); box-shadow: 0 10px 24px -10px rgba(69, 29, 26, .8); }
.btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.btn-outline { background: transparent; color: var(--wine); box-shadow: none; }
.btn-outline:hover { background: var(--wine); color: var(--paper); }
.btn-gold { background: var(--gold); border-color: var(--gold); color: var(--wine-deep); }
.btn-gold:hover { background: var(--gold-soft); border-color: var(--gold-soft); }
.btn-small { padding: .6rem 1.1rem; font-size: .92rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .9rem var(--gutter);
  background: var(--wine);
  color: var(--paper);
  box-shadow: 0 2px 14px rgba(0,0,0,.18);
}
.logo {
  display: flex; flex-direction: column; line-height: .92;
  font-family: var(--display); font-weight: 300; font-size: 1.6rem; text-decoration: none; color: var(--paper);
}
.logo em { padding-left: .35em; }
.logo b, .mark b { color: var(--gold); }
.nav { display: flex; align-items: center; gap: clamp(.8rem, 2.5vw, 2rem); }
.nav a:not(.btn) { text-decoration: none; font: 400 .78rem var(--mono); letter-spacing: .14em; text-transform: uppercase; opacity: .9; }
.nav a:not(.btn):hover { opacity: 1; text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 6px; }
.nav .btn { background: var(--gold); border-color: var(--gold); color: var(--wine-deep); box-shadow: none; }
.nav .btn:hover { background: var(--gold-soft); border-color: var(--gold-soft); }

/* ---------- Layout ---------- */
main > section { max-width: var(--max); margin: 0 auto; padding: clamp(3.5rem, 8vw, 6.5rem) var(--gutter); }

/* ---------- Hero ---------- */
.hero {
  padding-bottom: clamp(2.5rem, 5vw, 4rem) !important;
  display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 6vw, 5rem); align-items: center;
}
.hero h1 { font-size: clamp(2.5rem, 5.6vw, 4.4rem); }
.lede { font-size: 1.2rem; color: var(--muted); max-width: 34ch; margin: 1.4rem 0 2.2rem; }
.actions { display: flex; flex-wrap: wrap; gap: .9rem; }
.hero-photo { margin: 0; position: relative; }
.hero-photo::before {
  content: ""; position: absolute; inset: 1.2rem -1.2rem -1.2rem 1.2rem;
  border: 2px solid var(--gold); border-radius: var(--radius);
}
.hero-photo img { position: relative; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 44% center; border-radius: var(--radius); box-shadow: 0 24px 50px -24px rgba(69,29,26,.6); }

/* ---------- Start here: Essays + Guides ---------- */
.paths { padding-top: 0 !important; }
.paths-head { display: flex; align-items: baseline; gap: 1.5rem; margin-bottom: 1.6rem; }
.paths-head .eyebrow { margin: 0; }
.paths-head h2 { font-size: clamp(2rem, 4vw, 2.8rem); }
.paths-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.card {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; gap: 1rem;
  min-height: 400px;
  padding: clamp(2rem, 4.5vw, 3.2rem);
  border-radius: var(--radius);
  background: var(--wine); color: var(--paper);
  text-decoration: none;
  box-shadow: 0 22px 44px -26px rgba(74, 32, 29, .75);
  transition: transform .2s ease, box-shadow .2s ease;
}
/* ochre period after headings, echoing the logo */
.dot { color: var(--gold); }
.card:hover { transform: translateY(-5px); box-shadow: 0 30px 56px -26px rgba(74, 32, 29, .85); }
.card:hover .card-btn { transform: translateX(4px); }
.card h3 { color: inherit; font-size: clamp(2.6rem, 5vw, 3.8rem); line-height: 1; }
.card p { margin: 0; font-size: 1.2rem; opacity: .9; max-width: 34ch; }
.card-num { font: 400 .75rem var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.card-btn { margin-top: auto; align-self: flex-start; position: relative; z-index: 1; }
.card-light { background: var(--paper); color: var(--ink); border: 1.5px solid var(--gold); }
.card-light h3 { color: var(--wine); }
.card-light .card-num { color: #8c6d34; }

/* ---------- About ---------- */
.about {
  display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 6vw, 5rem); align-items: center;
}
.about-photo { margin: 0; }
.about-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); box-shadow: 0 24px 50px -24px rgba(74,32,29,.5); }
.about h2 { font-size: clamp(2.2rem, 4.5vw, 3.2rem); margin-bottom: 1.5rem; }
.about-body p { font-size: 1.15rem; margin: 0 0 1.2rem; }
.about-body p:last-child { margin-bottom: 0; }
.about + .photos { padding-top: 0; }

/* ---------- Photos ---------- */
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: 1.5rem; }
.text-link { color: var(--wine); font: 700 .78rem var(--mono); letter-spacing: .1em; text-transform: uppercase; text-decoration: none; border-bottom: 2px solid var(--gold); }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.grid img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 10px; }
.grid img:nth-child(2), .grid img:nth-child(5) { transform: translateY(1.5rem); }
.grid img { cursor: zoom-in; transition: opacity .15s ease; }
.grid img:hover { opacity: .9; }
.grid img:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

/* ---------- Photo viewer ---------- */
.lightbox {
  border: 0; padding: 0; margin: 0; background: transparent;
  width: 100vw; height: 100vh; max-width: none; max-height: none;
  display: none; place-items: center;
}
.lightbox[open] { display: grid; }
.lightbox::backdrop { background: rgba(33, 30, 26, .92); }
.lb-img {
  max-width: min(92vw, 900px); max-height: 88vh; width: auto; height: auto;
  border-radius: 10px; box-shadow: 0 30px 80px rgba(0,0,0,.5);
}
.lb-btn {
  position: fixed; display: grid; place-items: center;
  width: 48px; height: 48px; border-radius: 50%;
  border: 1.5px solid rgba(241,235,223,.35); background: rgba(33,30,26,.4);
  color: var(--paper); font: 300 2rem/1 var(--display); cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
}
.lb-btn:hover, .lb-btn:focus-visible { background: var(--gold); border-color: var(--gold); color: var(--wine-deep); outline: none; }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 16px; top: 50%; transform: translateY(-50%); }
@media (max-width: 560px) {
  .lb-prev, .lb-next { top: auto; bottom: 20px; transform: none; }
  .lb-prev { left: calc(50% - 60px); }
  .lb-next { right: calc(50% - 60px); }
}

/* ---------- Contact band ---------- */
.contact {
  max-width: none !important;
  background: var(--wine-deep); color: var(--paper); text-align: center;
  margin-top: 2rem;
}
.contact h2 { color: var(--paper); font-size: clamp(2.4rem, 5vw, 3.6rem); }
.contact p { margin: 1rem auto 2rem; max-width: 42ch; opacity: .85; }

.follow-label { margin: 2.6rem auto 1rem !important; font: .72rem var(--mono); letter-spacing: .22em; text-transform: uppercase; color: var(--gold); opacity: 1 !important; }
.follow { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; }
.follow a {
  display: flex; align-items: center; gap: .9rem; min-width: 240px;
  padding: .9rem 1.4rem; border-radius: var(--radius);
  border: 1.5px solid rgba(241,235,223,.3); text-decoration: none; text-align: left;
  transition: border-color .15s, background .15s;
}
.follow a:hover { border-color: var(--gold); background: rgba(201,168,106,.1); }
.follow svg { width: 26px; height: 26px; flex: none; fill: none; stroke: var(--gold); stroke-width: 1.8; stroke-linecap: round; }
.follow .fill { fill: var(--gold); stroke: none; }
.follow span { font: 700 .95rem var(--mono); letter-spacing: .02em; }
.follow small { display: block; font-weight: 400; font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; opacity: .65; margin-bottom: .15rem; }

/* ---------- Footer ---------- */
.site-footer {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1.2rem;
  padding: 2rem var(--gutter);
  background: var(--wine); color: var(--paper);
}
.mark { font: italic 300 2.8rem/1 var(--display); text-decoration: none; }
.social { list-style: none; margin: 0; padding: 0; display: flex; gap: .7rem; }
.social a {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  border: 1.5px solid rgba(255,250,242,.35); transition: background .15s, border-color .15s;
}
.social a:hover { background: var(--gold); border-color: var(--gold); color: var(--wine-deep); }
.social svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.social .fill { fill: currentColor; stroke: none; }
.copy { margin: 0; font: .72rem var(--mono); letter-spacing: .12em; text-transform: uppercase; opacity: .7; width: 100%; }

/* ---------- Mobile ---------- */
@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; }
  .hero-photo { order: -1; max-width: 420px; margin: 0 1.2rem 1.6rem 0; }
  .paths-grid { grid-template-columns: 1fr; }
  .about { grid-template-columns: 1fr; }
  .about-photo { max-width: 420px; }
  .card { min-height: 320px; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .grid img:nth-child(n) { transform: none; }
}
@media (max-width: 560px) {
  .hero .eyebrow { letter-spacing: .12em; }
  .nav a:not(.btn) { display: none; }
  .actions .btn { width: 100%; }
  .section-head { flex-direction: column; gap: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .card { transition: none; }
}
