/*
 * altiplano: sanpedrotrip.com
 * 1. Concept: a high desert poster from the Andes. Sun-bleached sand paper, terracotta like fired clay,
 *    a deep cactus green for links and marks, and a near-black night sky for the opening band and the footer.
 * 2. Type: Big Shoulders Display (condensed grotesk, 600/800) for headlines, numerals and labels;
 *    Literata (warm text serif, 400/600 + italic) for reading.
 * 3. Palette: sand #efe4cc, deep sand #e6d6b4, ink #1f1b16, terracotta #9c4320, cactus #2f5b3c, night #16161c.
 * 4. Layout signature: every h2 section is a full-width horizontal band with an oversized section numeral;
 *    on desktop the numeral and heading stay sticky in a left column while the text runs on the right.
 * 5. Detail: products as nursery tags (sand plate, condensed caps, punched price strip); a thick terracotta
 *    horizon rule under every page title.
 */

@font-face{font-family:'Big Shoulders Display';font-style:normal;font-weight:600 800;font-display:swap;src:url(fonts/bigshoulders-600-800-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C4,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'Big Shoulders Display';font-style:normal;font-weight:600 800;font-display:swap;src:url(fonts/bigshoulders-600-800-latin.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Literata';font-style:normal;font-weight:400 600;font-display:swap;src:url(fonts/literata-400-600-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C4,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'Literata';font-style:normal;font-weight:400 600;font-display:swap;src:url(fonts/literata-400-600-latin.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Literata';font-style:italic;font-weight:400;font-display:swap;src:url(fonts/literata-italic-400-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C4,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'Literata';font-style:italic;font-weight:400;font-display:swap;src:url(fonts/literata-italic-400-latin.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}

:root {
  --sand: #efe4cc;
  --sand-deep: #e6d6b4;
  --bleach: #f7f0e0;
  --ink: #1f1b16;
  --ink-2: #5a4f42;
  --rule: rgba(31, 27, 22, .18);
  --terra: #9c4320;
  --terra-light: #e0794a;
  --cactus: #2f5b3c;
  --night: #16161c;
  --night-ink: #efe4cc;
  --night-muted: #b9ad98;
  --display: 'Big Shoulders Display', 'Arial Narrow', 'Helvetica Neue', sans-serif;
  --serif: 'Literata', Georgia, 'Times New Roman', serif;
  --frame: 76rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--sand);
  color: var(--ink);
  font: 400 1.0625rem/1.68 var(--serif);
  font-optical-sizing: auto;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1 0 auto; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--cactus); text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { color: var(--terra); }
:focus-visible { outline: 3px solid var(--terra); outline-offset: 3px; }
.frame { width: 100%; max-width: var(--frame); margin: 0 auto; padding: 0 1.25rem; }
.skip { position: absolute; left: -999px; top: .5rem; background: var(--night); color: var(--night-ink); padding: .5rem .75rem; z-index: 10; }
.skip:focus { left: .5rem; }

.kicker, .stamp, .toc-label {
  font: 600 .95rem/1.2 var(--display);
  letter-spacing: .12em;
  text-transform: uppercase;
  margin: 0;
}

/* ---------- top bar ---------- */
.top { border-bottom: 2px solid var(--ink); background: var(--sand); }
.top-row { display: flex; align-items: center; gap: 1.5rem; min-height: 4rem; }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--ink); margin-right: auto; }
.brand-mark { width: 30px; height: auto; }
.brand-name { font: 800 1.55rem/1 var(--display); text-transform: uppercase; letter-spacing: .03em; }
.primary { display: none; }
.primary a, .langs a {
  font: 600 1.05rem/1 var(--display);
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--ink);
  text-decoration: none;
  padding: .45rem 0;
  border-bottom: 3px solid transparent;
}
.primary a:hover { color: var(--terra); }
.primary a[aria-current] { border-bottom-color: var(--terra); }
.menu { position: relative; }
.menu summary {
  list-style: none; cursor: pointer;
  font: 700 1.05rem/1 var(--display); text-transform: uppercase; letter-spacing: .1em;
  padding: .6rem .9rem; border: 2px solid var(--ink);
}
.menu summary::-webkit-details-marker { display: none; }
.menu[open] summary { background: var(--ink); color: var(--sand); }
.menu nav {
  position: absolute; right: 0; top: calc(100% + .5rem); z-index: 5;
  width: min(20rem, calc(100vw - 2.5rem));
  background: var(--night); padding: .5rem 0;
}
.menu nav a {
  display: block; padding: .7rem 1.1rem;
  font: 600 1.2rem/1.1 var(--display); text-transform: uppercase; letter-spacing: .06em;
  color: var(--night-ink); text-decoration: none;
}
.menu nav a span { color: var(--terra-light); margin-right: .4rem; }
.menu nav a[aria-current] { background: rgba(239, 228, 204, .1); }

/* ---------- home: night band ---------- */
.night { background: var(--night); color: var(--night-ink); }
.night-grid { display: grid; gap: 2rem; padding-top: 3rem; padding-bottom: 3.25rem; }
.night .kicker { color: var(--terra-light); }
.night h1 {
  font: 800 clamp(3rem, 11vw, 7.6rem)/.88 var(--display);
  text-transform: uppercase;
  letter-spacing: -.005em;
  margin: 1rem 0 1.5rem;
  max-width: 12ch;
}
.night .standfirst { font-size: 1.2rem; line-height: 1.55; color: var(--night-muted); max-width: 36rem; margin: 0; }
.night-mark { display: none; }

/* ---------- home: stations ---------- */
.stations { border-bottom: 2px solid var(--ink); }
.stations ol { list-style: none; margin: 0 auto; padding-top: 0; padding-bottom: 0; }
.stations li + li { border-top: 1px solid var(--rule); }
.stations a {
  display: grid; grid-template-columns: 3.4rem 1fr; column-gap: 1rem; row-gap: .2rem;
  padding: 1.1rem 0; text-decoration: none; color: var(--ink);
}
.station-no { grid-row: span 2; font: 800 2.8rem/.85 var(--display); color: var(--terra); }
.station-name { font: 800 1.6rem/1.05 var(--display); text-transform: uppercase; letter-spacing: .02em; }
.station-desc { font-size: .95rem; line-height: 1.5; color: var(--ink-2); }
.stations a:hover .station-name { color: var(--cactus); }
.stations a:hover .station-no { color: var(--cactus); }

/* ---------- inner page title ---------- */
.title-band { padding: 2.5rem 0 2rem; border-bottom: 10px solid var(--terra); }
.title-band .kicker { color: var(--terra); }
.title-band h1 {
  font: 800 clamp(2.6rem, 9vw, 6.2rem)/.9 var(--display);
  text-transform: uppercase;
  margin: .8rem 0 1.2rem;
  max-width: 16ch;
}
.title-band .standfirst { font-size: 1.15rem; line-height: 1.55; color: var(--ink-2); max-width: 40rem; margin: 0 0 1.2rem; }
.title-band .stamp { color: var(--ink-2); font-size: .85rem; }

/* ---------- bands ---------- */
.band { border-bottom: 1px solid var(--rule); }
.band:nth-child(even) { background: var(--sand-deep); }
.band-grid > * { min-width: 0; }
.band-grid { display: grid; gap: 1rem; padding-top: 2.5rem; padding-bottom: 2.75rem; }
.band-head h2 {
  font: 800 clamp(1.7rem, 5vw, 2.3rem)/1 var(--display);
  text-transform: uppercase;
  letter-spacing: .01em;
  margin: .35rem 0 0;
  scroll-margin-top: 1.5rem;
}
.numeral { display: block; font: 800 3.6rem/.8 var(--display); color: var(--terra); }
.band-intro .band-grid { padding-top: 2.25rem; }
.toc-label { color: var(--ink-2); font-size: .85rem; margin-bottom: .6rem; }
.toc { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.toc li { border-bottom: 1px solid var(--rule); }
.toc a {
  display: flex; gap: .7rem; padding: .5rem 0;
  font: 600 1.08rem/1.15 var(--display); text-transform: uppercase; letter-spacing: .04em;
  color: var(--ink); text-decoration: none;
}
.toc a span { color: var(--terra); min-width: 1.6rem; }
.toc a:hover { color: var(--cactus); }

/* ---------- prose ---------- */
.prose { max-width: 40rem; }
.prose > :first-child { margin-top: 0; }
.prose p, .prose ul, .prose ol { margin: 0 0 1.1rem; }
.band-intro .prose > p:first-child { font-size: 1.2rem; line-height: 1.6; }
.prose ul, .prose ol { padding-left: 1.2rem; }
.prose li { margin-bottom: .45rem; padding-left: .2rem; }
.prose ul li::marker { content: '▪  '; color: var(--terra); }
.prose ol li::marker { font: 700 1.05rem var(--display); color: var(--terra); }
.prose h3 {
  font: 700 1.35rem/1.15 var(--display); text-transform: uppercase; letter-spacing: .04em;
  margin: 2rem 0 .6rem; color: var(--cactus);
}
.prose strong { font-weight: 600; }
.prose hr { border: 0; border-top: 2px solid var(--ink); margin: 2rem 0; }
.prose code { font-size: .9em; background: var(--bleach); padding: .05em .3em; }
.prose blockquote {
  margin: 1.5rem 0; padding: 1.25rem 1.4rem 1rem;
  background: var(--bleach); border-left: 6px solid var(--cactus);
}
.prose blockquote p:last-child { margin-bottom: 0; }
.prose figure { margin: 1.5rem 0; }
.prose figure img[src*="mascot"] { width: 11rem; }
.table { overflow-x: auto; margin: 1.25rem 0 1.5rem; border-top: 3px solid var(--ink); }
.prose table { width: 100%; border-collapse: collapse; font-size: .95rem; line-height: 1.5; }
.prose th {
  text-align: left; vertical-align: bottom;
  font: 700 .95rem/1.15 var(--display); text-transform: uppercase; letter-spacing: .08em;
  padding: .6rem .7rem .5rem 0; border-bottom: 1px solid var(--ink);
}
.prose td { vertical-align: top; padding: .65rem .7rem .65rem 0; border-bottom: 1px solid var(--rule); }
.prose td:first-child { font-weight: 600; min-width: 7.5rem; }

/* ---------- product tags ---------- */
.products { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin: 1.5rem 0 1.75rem; }
.product-feature { margin: 1.5rem 0 1.75rem; max-width: 20rem; }
.tag {
  position: relative; display: flex; flex-direction: column;
  background: var(--bleach); color: var(--ink); text-decoration: none;
  border: 2px solid var(--ink);
}
.tag::before {
  content: ''; position: absolute; top: .55rem; left: 50%; width: .7rem; height: .7rem; margin-left: -.35rem;
  border-radius: 50%; background: var(--sand); border: 2px solid var(--ink); z-index: 1;
}
.tag-plate { display: block; padding: 1.6rem .9rem .6rem; background: #fff; border-bottom: 2px solid var(--ink); }
.tag-plate img { width: 100%; aspect-ratio: 1; object-fit: contain; }
.tag-name {
  display: block; flex: 1; padding: .7rem .75rem .6rem;
  font: 700 1.05rem/1.12 var(--display); text-transform: uppercase; letter-spacing: .03em;
}
.tag-strip {
  display: flex; justify-content: space-between; align-items: baseline; gap: .5rem;
  padding: .5rem .75rem .55rem; border-top: 2px dashed var(--ink);
  font: 600 .95rem/1.1 var(--display); letter-spacing: .06em; text-transform: uppercase;
}
.tag-price { font-size: 1.15rem; color: var(--cactus); letter-spacing: .02em; }
.tag-shop { color: var(--ink-2); font-size: .8rem; }
.tag:hover { background: var(--sand-deep); }
.tag:hover .tag-name { color: var(--terra); }

/* ---------- report pages ---------- */
.is-report .prose blockquote { border-left-color: var(--terra); }

/* ---------- footer ---------- */
.foot { background: var(--night); color: var(--night-muted); font-size: .95rem; line-height: 1.6; }
.foot-grid { display: grid; gap: 2rem; padding-top: 3rem; padding-bottom: 3rem; }
.foot a { color: var(--night-ink); }
.foot a:hover { color: var(--terra-light); }
.foot-name {
  display: flex; align-items: center; gap: .6rem; margin: 0 0 .9rem;
  font: 800 1.7rem/1 var(--display); text-transform: uppercase; color: var(--night-ink); letter-spacing: .03em;
}
.foot-name img { width: 26px; }
.foot-note { margin: 0; max-width: 30rem; }
.foot-publisher { display: grid; grid-template-columns: auto 1fr; gap: 1rem; align-items: center; }
.foot-publisher p { margin: 0; }
.foot-publisher strong { color: var(--night-ink); font-weight: 600; }
.foot-publisher a { display: inline-block; margin-top: .3rem; }
.mascot { width: 88px; background: var(--sand); border-radius: 50%; padding: .5rem; }
.foot-nav { display: grid; gap: .1rem; align-content: start; }
.foot-nav a {
  font: 600 1.05rem/1.2 var(--display); text-transform: uppercase; letter-spacing: .06em;
  text-decoration: none; padding: .25rem 0;
}
.foot-nav span { color: var(--terra-light); display: inline-block; min-width: 2rem; }

/* ---------- larger screens ---------- */
@media (min-width: 40rem) {
  .frame { padding-left: 2rem; padding-right: 2rem; }
  .products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stations a { grid-template-columns: 5rem minmax(10rem, 18rem) 1fr; align-items: baseline; padding: 1.3rem 0; }
  .station-no { grid-row: auto; font-size: 3.4rem; }
  .night-grid { grid-template-columns: 1fr auto; align-items: end; padding-top: 4.5rem; padding-bottom: 4.5rem; }
  .night-mark { display: block; width: 13rem; }
}
@media (min-width: 62rem) {
  .menu { display: none; }
  .primary { display: flex; gap: 1.4rem; }
  .band-grid { grid-template-columns: minmax(15rem, 21rem) minmax(0, 40rem); column-gap: clamp(3rem, 6vw, 6rem); padding-top: 4rem; padding-bottom: 4.25rem; }
  .band-head { align-self: stretch; }
  .band-sticky { position: sticky; top: 2rem; }
  .numeral { font-size: clamp(5.5rem, 9vw, 8.5rem); }
  .band-head h2 { margin-top: .6rem; }
  .foot-grid { grid-template-columns: 1.2fr 1.3fr .8fr; column-gap: 3.5rem; }
}
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
@media print {
  .top, .foot, .menu, .stations { display: none; }
  .band:nth-child(even), .night { background: none; color: #000; }
  .band-sticky { position: static; }
}
