/* ==========================================================================
   NY Field Guide — site stylesheet
   Ticket 043. Served straight from public/ (this checkout is production and
   there is no build step); the layout cache-busts it with filemtime().

   The look: a warm paper canvas carrying cinematic full-bleed Hudson Valley
   photography, with oversized Fraunces display type and flat, saturated
   colour blocks doing the structural work.
   ========================================================================== */

/* ---------- 1. Fonts (self-hosted; no third-party request at runtime) ----- */

@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url('/fonts/fraunces-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: 'Fraunces';
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url('/fonts/fraunces-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/fonts/instrument-sans-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: 'Instrument Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/fonts/instrument-sans-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Instrument Sans';
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url('/fonts/instrument-sans-latin-italic.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;
}

/* ---------- 2. Tokens ---------------------------------------------------- */

:root {
  /* Paper — warm cream, the canvas everything sits on */
  --paper: #f4ede0;
  --paper-raised: #fdf9f1;
  --paper-sunken: #eae0cd;
  --rule: #ddd0b8;
  --rule-soft: #e8dcc7;

  /* Ink */
  --ink: #16110c;
  --ink-2: #443b31;
  --ink-3: #60574b;
  --ink-4: #6a6053;

  /* Accents — Hudson river blue, autumn ember, orchard amber, forest moss */
  --river: #103a56;
  --river-deep: #0a2637;
  --river-lite: #1d6c98;
  --river-text: #1a6390;
  --ember: #c0431c;
  --ember-lite: #e2683d;
  /* Set on type rather than on a block: the brand ember reads at 4.4:1 on
     sunken paper, just under AA, so text uses a shade darker. Fills, borders
     and the focus ring stay on the brand values above. */
  --ember-text: #b23a15;
  --amber: #e0a020;
  --amber-lite: #f5c65a;
  --moss: #3a6b46;

  /* Hairlines — near-black at low alpha rather than a beige rule, so a border
     reads as a drawn line instead of a soft edge. These do the separating work
     that drop shadows used to. */
  --hairline: rgba(22, 17, 12, 0.15);
  --hairline-soft: rgba(22, 17, 12, 0.09);

  /* Type */
  --display: 'Fraunces', ui-serif, Georgia, 'Times New Roman', serif;
  --sans: 'Instrument Sans', ui-sans-serif, system-ui, -apple-system,
    'Segoe UI', Roboto, sans-serif;

  /* Fraunces variable axes: a little softness and a little wonk give the
     display face its warmth without tipping into novelty. */
  --wonk: 'SOFT' 24, 'WONK' 1;

  --shadow-sm: 0 1px 2px rgba(30, 20, 8, 0.05), 0 2px 8px rgba(30, 20, 8, 0.04);
  --shadow-md: 0 2px 6px rgba(30, 20, 8, 0.06), 0 12px 32px rgba(30, 20, 8, 0.08);
  --shadow-lg: 0 6px 18px rgba(30, 20, 8, 0.1), 0 32px 70px rgba(30, 20, 8, 0.14);

  --radius: 16px;
  --radius-sm: 10px;
  /* Cards are all but square. A 16px corner on a 320px tile is the one shape
     that instantly dates a layout. */
  --radius-card: 4px;

  --wrap: 1180px;
  --gutter: clamp(18px, 4vw, 40px);
  --section-y: clamp(56px, 9vw, 118px);
}

/* ---------- 3. Base ------------------------------------------------------ */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* the sticky header must not cover an anchored category heading */
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  /* Sticky footer. A short page — /login is the shortest — used to end its
     black footer partway down the viewport and leave bare cream underneath,
     which read as the page having failed to finish loading. dvh first so a
     mobile browser's collapsing address bar doesn't overshoot. */
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

/* Takes up whatever slack is left, pushing the footer to the bottom edge. */
main {
  flex: 1 0 auto;
}

img {
  max-width: 100%;
  display: block;
  /* Mandatory companion to the width/height attributes <x-photo> now emits:
     those attributes are presentational hints, so without this a photo that
     max-width'd itself down on a narrow screen would keep its full-size
     height and stretch. Containers with a fixed aspect ratio override it. */
  height: auto;
}

a {
  color: var(--river-text);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

:focus-visible {
  outline: 3px solid var(--river-lite);
  outline-offset: 2px;
  border-radius: 3px;
}

::selection {
  background: var(--amber-lite);
  color: var(--ink);
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.wrap-narrow {
  max-width: 760px;
}

/* Wider than the standard measure — for sections built around a photograph
   rather than around reading. */
.wrap-wide {
  max-width: 1360px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--ink);
  color: #fff;
  padding: 12px 18px;
  border-radius: 0 0 var(--radius-sm) 0;
  font-weight: 600;
}
.skip-link:focus {
  left: 0;
}

/* ---------- 4. Typography ------------------------------------------------ */

h1,
h2,
h3,
h4 {
  font-family: var(--display);
  font-variation-settings: var(--wonk);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.022em;
  margin: 0;
  color: var(--ink);
  text-wrap: balance;
}

.display-xl {
  font-size: clamp(46px, 9.4vw, 118px);
  line-height: 0.9;
  letter-spacing: -0.035em;
  font-weight: 900;
}

.display-lg {
  font-size: clamp(36px, 6.4vw, 76px);
  line-height: 0.94;
  letter-spacing: -0.03em;
  font-weight: 900;
}

.display-md {
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1;
  letter-spacing: -0.025em;
}

.display-sm {
  font-size: clamp(21px, 2.4vw, 28px);
  line-height: 1.1;
}

/* Small uppercase label — the connective tissue of the whole layout */
.eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ember-text);
  margin: 0 0 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: '';
  width: 26px;
  height: 2px;
  background: currentColor;
  flex: none;
}
.eyebrow.plain::before {
  display: none;
}

.lede {
  font-size: clamp(17px, 1.5vw, 20.5px);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 62ch;
  margin: 0;
  text-wrap: pretty;
}

.muted {
  color: var(--ink-3);
}

.tiny {
  font-size: 13px;
  color: var(--ink-3);
  line-height: 1.5;
}

/* An italic Fraunces flourish, used for one word inside a headline.
   The italic leans hard to the right, so it needs a little breathing room or
   its final glyph crashes into the next roman word. */
.wonk {
  font-style: italic;
  font-variation-settings: 'SOFT' 60, 'WONK' 1;
  color: var(--ember-text);
  padding-right: 0.1em;
  margin-right: 0.02em;
}
/* Same flourish, but keeping the surrounding headline's colour */
.wonk-inherit {
  color: inherit;
}

/* ---------- 5. Buttons --------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: var(--sans);
  font-size: 15.5px;
  font-weight: 600;
  line-height: 1;
  padding: 15px 26px;
  border: 2px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.14s ease, border-color 0.14s ease,
    color 0.14s ease, box-shadow 0.14s ease;
  white-space: nowrap;
}
/* Buttons change colour on hover but must not move — a control that shifts
   under the cursor reads as unstable. Cards and tiles still lift. */
.btn:hover {
  text-decoration: none;
}

/* Flat: a solid ember block on cream is already the loudest thing on the page,
   and the drop shadow only made it hover above the paper. */
.btn-primary {
  background: var(--ember);
  color: #fff;
}
.btn-primary:hover {
  background: #a93916;
  color: #fff;
}

.btn-ink {
  background: var(--ink);
  color: var(--paper);
}
.btn-ink:hover {
  background: var(--river);
  color: #fff;
}

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

.btn-on-dark {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.42);
  backdrop-filter: blur(6px);
}
.btn-on-dark:hover {
  background: #fff;
  color: var(--ink);
  border-color: #fff;
}

.btn-lg {
  font-size: 17px;
  padding: 18px 34px;
}

.btn-block {
  width: 100%;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

/* ---------- 6. Header ---------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(244, 237, 224, 0.82);
  backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
/* Over a hero the header floats transparently on the photo */
.site-header.over-hero {
  background: transparent;
  backdrop-filter: none;
}
.site-header.over-hero .brand,
.site-header.over-hero .site-nav a,
.site-header.over-hero .site-nav .link-btn {
  color: #fff;
}
.site-header.over-hero .brand-mark {
  color: #fff;
}
.site-header:not(.over-hero) {
  border-bottom-color: var(--rule-soft);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 74px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-family: var(--display);
  font-variation-settings: var(--wonk);
  font-weight: 900;
  font-size: 20px;
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1;
}
.brand:hover {
  text-decoration: none;
  color: var(--ember-text);
}

/* Compass mark — see resources/views/components/brand-mark.blade.php.
   Geometry lives in the SVG; this only sets colour and stops it flexing. */
.brand-mark {
  color: var(--ember-text);
  flex: none;
  overflow: visible;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px 22px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.site-nav a,
.site-nav .link-btn {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink-2);
  /* Hit area, not appearance: the header centres a 74px row, so growing these
     to a full 44px target is invisible. Same trick, smaller numbers, on the
     footer and card links below — grow the target, keep the layout. */
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.site-nav a:hover,
.site-nav .link-btn:hover {
  color: var(--ember-text);
  text-decoration: none;
}
.site-nav .link-btn {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
}
.site-nav form {
  display: flex;
}
.site-nav .btn {
  padding: 11px 20px;
  font-size: 14.5px;
}

/* ---------- 7. Hero ------------------------------------------------------ */

.hero {
  position: relative;
  isolation: isolate;
  /* pull up under the transparent sticky header */
  margin-top: -74px;
  padding-top: 74px;
  color: #fff;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 58%;
}
/* Group shots: bias the crop upward so nobody loses the top of their head */
.hero-media.faces img {
  object-position: center 32%;
}

/* Warm cinematic grade — the juanmora.co move: colour-wash the photo so wildly
   different source images all read as one house style. */
.hero-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      rgba(10, 20, 30, 0.46) 0%,
      rgba(10, 20, 30, 0.14) 32%,
      rgba(12, 14, 12, 0.4) 68%,
      rgba(14, 12, 8, 0.74) 100%
    ),
    linear-gradient(120deg, rgba(192, 67, 28, 0.2) 0%, rgba(16, 58, 86, 0.28) 100%);
}

.hero-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: min(88vh, 860px);
  padding-block: clamp(60px, 12vw, 128px) clamp(30px, 4vw, 48px);
}

.hero .eyebrow {
  color: var(--amber-lite);
}

.hero h1 {
  color: #fff;
  max-width: 15ch;
  margin: 0 0 22px;
  text-shadow: 0 2px 40px rgba(0, 0, 0, 0.35);
}
.hero h1 .wonk {
  color: var(--amber-lite);
}

.hero .lede {
  color: rgba(255, 255, 255, 0.9);
  max-width: 52ch;
  margin-bottom: 30px;
  text-shadow: 0 1px 20px rgba(0, 0, 0, 0.4);
}

/* Short hero used on interior pages */
.hero-compact .hero-inner {
  min-height: min(52vh, 460px);
}

/* Stat strip pinned to the bottom of the hero */
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 34px;
  margin-top: clamp(34px, 6vw, 62px);
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
}
.hero-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.hero-stat b {
  font-family: var(--display);
  font-variation-settings: var(--wonk);
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.03em;
  color: #fff;
}
.hero-stat span {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}


/* ---------- 8. Sections & bands ------------------------------------------ */

.section {
  padding-block: var(--section-y);
}
.section-tight {
  padding-block: clamp(38px, 5.5vw, 68px);
}

.section-head {
  margin-bottom: clamp(30px, 4vw, 52px);
  max-width: 70ch;
}
.section-head .lede {
  margin-top: 16px;
}

.band-ink {
  background: var(--ink);
  color: var(--paper);
}
.band-river {
  background: var(--river);
  color: #fff;
}
.band-ember {
  background: var(--ember);
  color: #fff;
}
.band-sunken {
  background: var(--paper-sunken);
}
.band-ink h2,
.band-river h2,
.band-ember h2,
.band-ink h3,
.band-river h3,
.band-ember h3 {
  color: inherit;
}
.band-ink .lede,
.band-river .lede,
.band-ember .lede {
  color: rgba(255, 255, 255, 0.82);
}
.band-ember .eyebrow,
.band-river .eyebrow {
  color: var(--amber-lite);
}
.band-ink .eyebrow {
  color: var(--amber);
}

/* Ticker of place categories — a flat poster band, à la zohranfornyc.com */
.ticker {
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
  padding: 15px 0;
  border-block: 3px solid var(--amber);
}
.ticker-track {
  display: flex;
  gap: 0;
  width: max-content;
  animation: ticker 68s linear infinite;
}
.ticker-item {
  font-family: var(--display);
  font-variation-settings: var(--wonk);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.015em;
  padding-inline: 22px;
  display: inline-flex;
  align-items: center;
  gap: 22px;
  white-space: nowrap;
}
.ticker-item::after {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ember-lite);
  flex: none;
}
@keyframes ticker {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}
@media (prefers-reduced-motion: reduce) {
  .ticker-track {
    animation: none;
    flex-wrap: wrap;
    width: auto;
    justify-content: center;
  }
  html {
    scroll-behavior: auto;
  }
}

/* ---------- 9. Category grid --------------------------------------------- */

.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(212px, 1fr));
  gap: 12px;
}

.cat-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 26px;
  min-height: 132px;
  padding: 18px 18px 16px;
  background: var(--paper-raised);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-card);
  color: var(--ink);
  transition: border-color 0.16s ease, background-color 0.16s ease;
}
/* Same flat treatment as the place cards — sixteen of these in a block, and
   sixteen lifting shadows made the section swim. */
a.cat-tile:hover {
  text-decoration: none;
  border-color: var(--ink);
  background: var(--paper-sunken);
}
.cat-tile .n {
  font-family: var(--display);
  font-variation-settings: var(--wonk);
  font-size: 30px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--ember-text);
}
.cat-tile .label {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.005em;
}

/* ---------- 10. Split feature -------------------------------------------- */

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}
.split-media {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 3;
}
.split-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.split-media.tall {
  aspect-ratio: 3 / 4;
}
/* For group/landscape shots that shouldn't be cropped to a squarer frame */
.split-media.wide {
  aspect-ratio: 3 / 2;
}
.split-reverse .split-media {
  order: 2;
}

/* Gives the picture the larger share of the row — used where the photograph is
   the point (the team section) rather than a supporting illustration. */
.split-media-lead {
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
}
@media (max-width: 860px) {
  .split-media-lead {
    grid-template-columns: 1fr;
  }
}

/* stacked pair of images with an offset, poster-collage style */
.stack {
  position: relative;
  padding-bottom: 58px;
  padding-right: 42px;
}
.stack > .split-media:last-child {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 54%;
  aspect-ratio: 1;
  border: 6px solid var(--paper);
  box-shadow: var(--shadow-lg);
}

/* ---------- 11. Photo strip ---------------------------------------------- */

.strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.strip figure {
  position: relative;
  margin: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 3 / 4;
}
.strip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.strip figure:hover img {
  transform: scale(1.05);
}
.strip figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 26px 14px 12px;
  background: linear-gradient(180deg, transparent, rgba(12, 10, 8, 0.82));
  color: #fff;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
@media (max-width: 780px) {
  .strip {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ---------- 12. Guide card ----------------------------------------------- */

.guide-card {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  background: var(--paper-raised);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-card);
  overflow: hidden;
  color: var(--ink);
  transition: border-color 0.18s ease;
}
/* Flat, like the place cards: no shadow and no lift. The photograph is half
   the tile — it doesn't need help standing off the page. */
a.guide-card:hover {
  text-decoration: none;
  border-color: var(--ink);
}
.guide-card-media img {
  transition: transform 0.55s cubic-bezier(0.2, 0.6, 0.2, 1);
}
a.guide-card:hover .guide-card-media img {
  transform: scale(1.03);
}
.guide-card-media {
  position: relative;
  min-height: 300px;
  background: var(--paper-sunken);
}
.guide-card-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.guide-card-body {
  padding: clamp(24px, 3.4vw, 46px);
  display: flex;
  flex-direction: column;
  gap: 16px;
  justify-content: center;
}
.guide-card-body h2 {
  font-size: clamp(27px, 3.4vw, 42px);
  line-height: 1;
}
.guide-card .price-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 4px;
  padding-top: 18px;
  border-top: 1px solid var(--hairline-soft);
}
.price {
  font-family: var(--display);
  font-variation-settings: var(--wonk);
  font-size: 32px;
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--ink);
}
@media (max-width: 860px) {
  .guide-card {
    grid-template-columns: 1fr;
  }
  .guide-card-media {
    min-height: 210px;
    aspect-ratio: 16 / 9;
  }
}

/* ---------- 13. Numbered steps ------------------------------------------- */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: clamp(22px, 3vw, 44px);
  counter-reset: step;
}
.step {
  counter-increment: step;
}
.step::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  font-family: var(--display);
  font-variation-settings: var(--wonk);
  font-size: 46px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.05em;
  color: var(--ember-text);
  margin-bottom: 14px;
  opacity: 0.9;
}
.step h3 {
  font-size: 20px;
  margin-bottom: 8px;
}
.step p {
  margin: 0;
  color: var(--ink-2);
  font-size: 15.5px;
}
.band-ink .step p,
.band-river .step p {
  color: rgba(255, 255, 255, 0.76);
}
.band-ink .step::before,
.band-river .step::before {
  color: var(--amber);
}

/* ---------- 14. Place cards ---------------------------------------------- */

/* Flat, hairline-ruled, near-square. No coloured spine, no drop shadow, no
   lift on hover: 462 of these sit in one grid, and an effect repeated 462
   times stops reading as emphasis. Structure does the work — a rule under the
   photo, a rule above the facts, a rule above the footer — and colour is spent
   in one place only, on the tier. */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(318px, 1fr));
  gap: 18px;
  /* Each card is its own height. Stretching a row to its tallest member and
     pinning the footer to the bottom left half a card of dead cream under the
     short ones — and these run from two facts to four facts plus a warning. */
  align-items: start;
}

.card {
  display: flex;
  flex-direction: column;
  background: var(--paper-raised);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-card);
  overflow: hidden;
  transition: border-color 0.16s ease;
}
.card:hover {
  border-color: var(--ink);
}

.card-media {
  display: block;
  aspect-ratio: 3 / 2;
  background: var(--paper-sunken);
  border-bottom: 1px solid var(--hairline);
  overflow: hidden;
}
.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s cubic-bezier(0.2, 0.6, 0.2, 1);
}
.card:hover .card-media img {
  transform: scale(1.04);
}

.card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 18px 20px 16px;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 0 0 9px;
}
.card-where {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--ink-4);
}

.card-title {
  font-size: 24px;
  line-height: 1.1;
  margin: 0 0 9px;
}
.card-title a {
  color: var(--ink);
}
.card-title a:hover {
  color: var(--ember-text);
  text-decoration: none;
}

.why {
  font-size: 16.5px;
  line-height: 1.55;
  color: var(--ink-2);
  margin: 0 0 16px;
  text-wrap: pretty;
}

/* Tier — the one saturated thing on the card. Solid for the top tier, hairline
   outlines below it, all drawn from colours the site already uses. */
.tier {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1;
  padding: 5px 8px 4px;
  border: 1px solid currentColor;
  border-radius: 2px;
  color: var(--ink-4);
  white-space: nowrap;
  flex: none;
}
/* Solid blocks, not tinted pills. Three saturated colours already in the
   palette, so a grid of 460 cards colour-codes itself without inventing a
   fourth hue; the bottom two tiers stay outlined because "Optional" and
   "Skip" shouldn't shout. */
.tier-top-pick {
  background: var(--ember);
  border-color: var(--ember);
  color: #fff;
}
.tier-great {
  background: var(--river-lite);
  border-color: var(--river-lite);
  color: #fff;
}
.tier-worth-it {
  background: var(--moss);
  border-color: var(--moss);
  color: #fff;
}

/* Labels in their own column so the eye can skip them and read the values
   straight down; previously each fact was a bullet with the label run into
   the value, which made four short answers look like four sentences. Tags are
   a row in here too — same label column, so nothing on the card is unnamed. */
.fact-rows {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 8px 14px;
  margin: 0 0 16px;
  padding-top: 14px;
  border-top: 1px solid var(--hairline-soft);
}
.fact-rows dt {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-4);
  padding-top: 3px;
}
.fact-rows dd {
  margin: 0;
  font-size: 15px;
  line-height: 1.45;
  color: var(--ink-2);
}

/* The quietest block on the card, and the last before the links — but each tag
   is drawn as its own object, because these become filter links later and a
   run-on list gives you nothing to click. Held back from the tier chips by
   weight and colour, not by size. */
.tags {
  margin: 0 0 16px;
}
.tags-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-4);
  margin: 0 0 7px;
}
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
}
.tag {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.2;
  padding: 5px 9px;
  border: 1px solid var(--hairline);
  border-radius: 3px;
  background: transparent;
  color: var(--ink-3);
}
a.tag:hover {
  border-color: var(--ink);
  color: var(--ink);
  text-decoration: none;
}

/* A flat tinted block. The old version had an amber bar down its left edge —
   the same trick as the card spine, and it made every caveat look urgent. */
.heads {
  font-size: 14.5px;
  line-height: 1.5;
  background: #faf1dc;
  color: #6b5117;
  border-radius: 3px;
  padding: 11px 13px;
  margin: 0 0 16px;
}
.heads strong {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8a6714;
  margin-bottom: 4px;
}

.card-links {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin: 0;
  padding-top: 13px;
  border-top: 1px solid var(--hairline-soft);
}
.card-more {
  font-size: 15.5px;
  font-weight: 700;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 26px;
}
.card-more:hover {
  color: var(--ember-text);
  text-decoration: none;
}
.card-aux {
  display: flex;
  gap: 14px;
}
.card-aux a {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-4);
  display: inline-flex;
  align-items: center;
  min-height: 26px;
}
.card-aux a:hover {
  color: var(--ink);
}

/* Badge — the tier chip's sibling, for places outside the card grid (the
   place-page hero, the dashboard). Same shape, so they read as one family. */
.badge {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1;
  padding: 6px 9px 5px;
  border-radius: 2px;
  background: transparent;
  border: 1px solid currentColor;
  color: var(--ink-4);
  white-space: nowrap;
  flex: none;
}
.badge-worth-it {
  color: var(--moss);
}
.badge-solid {
  background: var(--ember);
  border-color: var(--ember);
  color: #fff;
}

/* ---------- 15. Category sections (guide page) --------------------------- */

.cat-section {
  padding-top: clamp(34px, 4.5vw, 58px);
}
.cat-section > h2 {
  font-size: clamp(24px, 3vw, 34px);
  margin-bottom: 4px;
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}
.cat-section > h2 .n {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-4);
}
.cat-rule {
  height: 2px;
  background: var(--ink);
  margin: 14px 0 22px;
}

/* ---------- 16. Paywall -------------------------------------------------- */

.paywall {
  position: relative;
  margin-top: clamp(40px, 6vw, 76px);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--river);
  color: #fff;
  isolation: isolate;
}
.paywall-media {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.34;
}
.paywall-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.paywall-inner {
  padding: clamp(34px, 6vw, 72px) clamp(24px, 5vw, 60px);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  background: linear-gradient(
    180deg,
    rgba(10, 38, 55, 0.72),
    rgba(10, 38, 55, 0.92)
  );
}
.paywall h2 {
  color: #fff;
  font-size: clamp(28px, 4.4vw, 52px);
  max-width: 18ch;
}
.paywall .lede {
  color: rgba(255, 255, 255, 0.85);
  max-width: 54ch;
}
.paywall .lock {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--amber-lite);
}

/* ---------- 17. Place detail --------------------------------------------- */

.place-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: clamp(28px, 4vw, 60px);
  align-items: start;
}
@media (max-width: 900px) {
  .place-layout {
    grid-template-columns: 1fr;
  }
}

.place-body {
  font-size: 17px;
  line-height: 1.68;
  color: var(--ink-2);
  max-width: 68ch;
}
.place-body > :first-child {
  margin-top: 0;
}
.place-body p {
  margin: 0 0 18px;
  text-wrap: pretty;
}
.place-body h2,
.place-body h3,
.place-body h4 {
  font-size: 20px;
  margin: 34px 0 10px;
  color: var(--ink);
  letter-spacing: -0.015em;
}
.place-body h3,
.place-body h4 {
  font-size: 18px;
}
.place-body ul,
.place-body ol {
  margin: 0 0 18px;
  padding-left: 22px;
}
.place-body li {
  margin: 0 0 7px;
}
.place-body blockquote {
  margin: 0 0 18px;
  padding: 4px 0 4px 18px;
  border-left: 3px solid var(--amber);
  color: var(--ink-3);
  font-style: italic;
}
.place-body a {
  color: var(--river-text);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.place-body strong {
  color: var(--ink);
}

/* Both are sized to a 320px card tile; at full page width they have to sit
   with the body copy rather than shrink away underneath it. */
.place-layout .heads {
  font-size: 14.5px;
  padding: 14px 16px;
  margin-bottom: 22px;
}
.place-layout .tags-label {
  font-size: 11.5px;
}
.place-layout .tag {
  font-size: 13.5px;
  padding: 6px 10px;
}

.factbox {
  position: sticky;
  top: 96px;
  background: var(--paper-raised);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-card);
  padding: 22px;
}
.factbox h2 {
  font-size: 12px;
  font-family: var(--sans);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-4);
  margin-bottom: 14px;
}
.factbox dl {
  margin: 0 0 18px;
  display: grid;
  gap: 12px;
}
.factbox dt {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--ink-4);
  margin-bottom: 2px;
}
.factbox dd {
  margin: 0;
  font-size: 14.5px;
  color: var(--ink-2);
  line-height: 1.45;
}
.factbox .btn {
  width: 100%;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 13.5px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 18px;
}
.breadcrumb a {
  color: inherit;
  display: inline-flex;
  align-items: center;
  min-height: 26px;
}
.breadcrumb a:hover {
  color: #fff;
}
.breadcrumb .sep {
  opacity: 0.5;
}

.back-link {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  gap: 7px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-3);
  margin-bottom: 18px;
}
.back-link:hover {
  color: var(--ember-text);
  text-decoration: none;
}

/* ---------- 18. Forms & panels ------------------------------------------- */

.panel {
  background: var(--paper-raised);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-card);
  padding: clamp(24px, 4vw, 40px);
}
.panel-narrow {
  max-width: 480px;
  margin-inline: auto;
}

.field {
  display: block;
  margin-bottom: 18px;
}
.field > span {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--ink-4);
  margin-bottom: 7px;
}
.input {
  width: 100%;
  padding: 14px 16px;
  font-family: inherit;
  font-size: 16px;
  color: var(--ink);
  background: var(--paper);
  border: 1.5px solid var(--rule);
  border-radius: var(--radius-sm);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.input:focus {
  outline: none;
  border-color: var(--river-lite);
  box-shadow: 0 0 0 3px rgba(29, 108, 152, 0.16);
}

.flash {
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  margin: 0 0 22px;
  font-size: 15px;
  border: 1px solid var(--rule);
  border-left: 4px solid var(--rule);
}
.flash-ok {
  background: #e9f1ea;
  border-color: #c2d8c6;
  border-left-color: var(--moss);
  color: #2c5335;
}
.flash-err {
  background: #fbeae4;
  border-color: #edc4b5;
  border-left-color: var(--ember);
  color: #8a2f13;
}

.data-list {
  display: grid;
  gap: 12px;
}
.data-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 16px 18px;
  background: var(--paper-raised);
  border: 1px solid var(--rule-soft);
  border-radius: var(--radius-sm);
  color: var(--ink);
}
a.data-row:hover {
  text-decoration: none;
  border-color: var(--ink);
}
.data-row h3 {
  font-size: 19px;
}

.empty {
  padding: clamp(30px, 5vw, 56px);
  text-align: center;
  border: 2px dashed var(--rule);
  border-radius: var(--radius);
  color: var(--ink-3);
}

/* ---------- 19. Credits page --------------------------------------------- */

.credit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.credit-card {
  background: var(--paper-raised);
  border: 1px solid var(--rule-soft);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.credit-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
.credit-card .body {
  padding: 14px 16px 16px;
  font-size: 13.5px;
  color: var(--ink-3);
  line-height: 1.5;
}
.credit-card .body b {
  display: block;
  color: var(--ink);
  font-size: 14.5px;
  margin-bottom: 4px;
}

/* ---------- 20. Footer --------------------------------------------------- */

.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.66);
  padding-block: clamp(46px, 6vw, 76px) 34px;
  font-size: 14.5px;
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(auto-fit, minmax(150px, 1fr));
  gap: clamp(26px, 4vw, 56px);
  padding-bottom: 34px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}
.site-footer .brand {
  color: #fff;
  font-size: 22px;
  margin-bottom: 14px;
}
.site-footer .brand-mark {
  color: var(--amber);
}
.site-footer h3 {
  color: #fff;
  font-family: var(--sans);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 9px;
}
.site-footer a {
  color: rgba(255, 255, 255, 0.72);
  display: inline-flex;
  align-items: center;
  min-height: 26px;
}
.site-footer a:hover {
  color: var(--amber);
}
.footer-note {
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.72);
}


/* ---------- 21. Utilities ------------------------------------------------ */

.stack-sm > * + * {
  margin-top: 10px;
}
.stack-md > * + * {
  margin-top: 20px;
}
.mt-0 {
  margin-top: 0;
}
.center {
  text-align: center;
}
.center .lede,
.center .eyebrow {
  margin-inline: auto;
}
.center .eyebrow {
  justify-content: center;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- 22. Responsive ----------------------------------------------- */

@media (max-width: 720px) {
  body {
    font-size: 16px;
  }
  .site-header .wrap {
    min-height: 64px;
  }
  .hero {
    margin-top: -64px;
    padding-top: 64px;
  }
  .hero-inner {
    min-height: min(84vh, 620px);
  }
  .hero-stats {
    gap: 14px 26px;
  }
  .brand span.full {
    display: none;
  }
  .stack {
    padding-bottom: 0;
    padding-right: 0;
  }
  .stack > .split-media:last-child {
    display: none;
  }
  .split-reverse .split-media {
    order: 0;
  }
  .btn {
    padding: 14px 22px;
  }
  .cards {
    grid-template-columns: 1fr;
  }
  .cat-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }
}
