/* FIELD NOTES — immersive editorial design system (2026) */
@layer tokens, base, layout, components, utilities;

@font-face { font-family: 'Heading Fallback'; src: local('Arial'); size-adjust: 99%; }


@layer tokens {
  :root {
    --brand: #22c55e;
    --brand-dark: #15803d;
    --brand-ink: #15803d;
    --btn-fill: #15803d;
    --accent: #facc15;
    --scrim: #052e16;
    --bg: #f0fdf4;
    --bg-elevated: #ffffff;
    --bg-deep: #dcfce7;
    --text: #14532d;
    --text-muted: #4b5563;
    --brand-soft: color-mix(in srgb, var(--brand) 12%, transparent);
    --brand-glow: color-mix(in srgb, var(--brand) 26%, transparent);
    --tile-radius: 1.25rem;
    --tile-radius-hover: 1.25rem;
    --section-curve: 5rem;
    --shadow-soft: 0 18px 44px -18px color-mix(in srgb, var(--scrim) 22%, transparent);
    --shadow-deep: 0 30px 60px -30px color-mix(in srgb, var(--scrim) 55%, transparent);
    --font-heading: "Outfit", "Heading Fallback", Arial, system-ui, sans-serif;
    --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
    --step-display: clamp(3rem, 7.5vw, 6.25rem);
    --step-3xl: clamp(2.25rem, 4.5vw, 3.6rem);
    --step-2xl: clamp(1.85rem, 3vw, 2.5rem);
    --step-xl: clamp(1.3rem, 1.9vw, 1.7rem);
    --step-lg: 1.25rem;
    --step-md: 1.0625rem;
    --step-sm: .9rem;
    --step-xs: .78rem;
    --space-md: 1rem; --space-lg: 1.5rem; --space-xl: 3rem; --space-2xl: clamp(3.5rem, 8vw, 6rem);
    --container: 1280px;
    --ease-out: cubic-bezier(.22, 1, .36, 1);
  }
}

@layer base {
  *, *::before, *::after { box-sizing: border-box; }
  html { scroll-behavior: smooth; scroll-padding-top: 90px; }
  html, body { overflow-x: clip; }
  body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--text);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    background: var(--bg);
    counter-reset: section;
  }
  /* film grain */
  body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 2000;
    pointer-events: none;
    opacity: .03;
    mix-blend-mode: multiply;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
    background-size: 220px 220px;
  }
  h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    line-height: 1.08;
    letter-spacing: -.02em;
    margin: 0 0 var(--space-md);
    font-weight: 700;
    text-wrap: balance;
  }
  a { color: var(--brand-ink); text-decoration: none; transition: color .2s; }
  img { max-width: 100%; height: auto; display: block; }
  p, ul, ol { margin: 0 0 var(--space-md); }
  ul, ol { padding-left: var(--space-lg); }
  input, button, textarea { font: inherit; }
  ::selection { background: var(--brand-soft); color: var(--text); }
  :focus-visible { outline: 3px solid var(--brand-ink); outline-offset: 3px; border-radius: 4px; }
}

@layer layout {
  .container { width: min(var(--container), 92%); margin-inline: auto; }
  .grid-12 { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(1rem, 2.5vw, 2rem); }
  .section { padding-block: var(--space-2xl); position: relative; }

  /* content river that laps over the hero photo with a curved (or diagonal) top edge */
  .page-flow {
    position: relative;
    z-index: 2;
    border-radius: var(--section-curve) var(--section-curve) 0 0;
    margin-top: calc(-1 * max(var(--section-curve), 3rem));
    padding-top: clamp(2rem, 5vw, 3.5rem);
    padding-bottom: 5rem;
    background:
      radial-gradient(60rem 42rem at 88% -6%, var(--brand-glow), transparent 60%),
      radial-gradient(52rem 40rem at -12% 62%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 62%),
      linear-gradient(180deg, var(--bg) 0%, color-mix(in srgb, var(--bg) 55%, white) 46%, var(--bg-deep) 100%);
  }
  .page-flow--flat { margin-top: 0; border-radius: 0; padding-top: 0; }
}

@layer components {
  /* ---------- header ---------- */
  .site-header {
    position: fixed;
    inset-inline: 0;
    top: 0;
    z-index: 100;
    background: color-mix(in srgb, var(--bg) 78%, transparent);
    backdrop-filter: blur(16px) saturate(140%);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
  }
  .site-header__inner { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: var(--space-md); }
  .site-header .logo img { height: 36px; width: auto; }
  .site-nav { display: flex; gap: var(--space-lg); font-weight: 600; font-size: .95rem; }
  .site-nav a { color: var(--text); }
  .site-header__cta { font-size: .88rem; padding: .55rem 1.15rem; }

  /* animated underline for text links */
  .site-nav a, .prose a, .u-link {
    background-image: linear-gradient(currentColor, currentColor);
    background-repeat: no-repeat;
    background-size: 0% 1.5px;
    background-position: 0 100%;
    padding-bottom: 2px;
    transition: background-size .35s var(--ease-out), color .2s;
  }
  .site-nav a:hover, .prose a:hover, .u-link:hover { background-size: 100% 1.5px; }
  .prose a { color: var(--brand-ink); background-size: 100% 1px; }
  .prose a:hover { background-size: 100% 2px; color: var(--brand-dark); }

  /* ---------- kickers (replace pill tags) ---------- */
  .kicker {
    display: inline-flex;
    align-items: center;
    gap: .7rem;
    font-size: var(--step-xs);
    font-weight: 600;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--brand-ink);
    margin: 0 0 1rem;
  }
  .kicker::before { content: ""; width: 2.5rem; height: 2px; background: var(--accent); flex: none; }
  .kicker--onphoto { color: rgb(255 255 255 / .95); text-shadow: 0 1px 10px rgb(0 0 0 / .5); }
  .kicker--onphoto::before { background: var(--accent); box-shadow: 0 1px 8px rgb(0 0 0 / .35); }
  .tag { display: inline-block; font-size: var(--step-xs); font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: rgb(255 255 255 / .92); text-shadow: 0 1px 8px rgb(0 0 0 / .5); }
  .tag + .tag { margin-left: 1rem; }

  /* ---------- buttons ---------- */
  .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: .8rem 1.6rem;
    border-radius: 999px;
    font-weight: 650;
    font-size: .95rem;
    text-decoration: none;
    border: 0;
    cursor: pointer;
    transition: transform .18s, box-shadow .18s, background .18s, color .18s;
  }
  .btn:hover { transform: translateY(-2px); }
  .btn-primary { background: var(--btn-fill); color: #fff; box-shadow: 0 10px 24px -10px var(--brand-glow); }
  .btn-primary:hover { background: var(--brand-dark); color: #fff; box-shadow: 0 14px 30px -10px var(--brand-glow); }
  .btn-light { background: #fff; color: var(--scrim); box-shadow: 0 10px 26px -12px rgb(0 0 0 / .45); }
  .btn-light:hover { background: #f6f2ec; color: var(--scrim); }
  .btn-glass {
    background: rgb(255 255 255 / .14);
    color: #fff;
    box-shadow: inset 0 0 0 1px rgb(255 255 255 / .45);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }
  .btn-glass:hover { background: rgb(255 255 255 / .26); color: #fff; }
  .btn-ghost { background: transparent; color: var(--brand-ink); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--brand-ink) 38%, transparent); }
  .btn-ghost:hover { background: var(--brand-soft); color: var(--brand-dark); }
  .btn--sm { padding: .6rem 1.1rem; font-size: .85rem; }

  /* ---------- hero cover ---------- */
  .hero-cover { position: relative; display: grid; align-items: end; min-height: min(100svh, 56rem); padding-top: 6rem; }
  .hero-cover__media { position: absolute; inset: 0; overflow: hidden; }
  .hero-cover__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
  .hero-cover__scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(178deg, rgb(0 0 0 / .24) 0%, rgb(0 0 0 / .18) 30%, color-mix(in srgb, var(--scrim) 34%, rgb(0 0 0 / .22)) 56%, color-mix(in srgb, var(--scrim) 84%, black) 100%);
  }
  .hero-cover__media::after {
    content: "";
    position: absolute;
    inset: 0;
    mix-blend-mode: soft-light;
    background: linear-gradient(160deg, var(--brand) 0%, transparent 60%);
    opacity: .35;
  }
  .hero-cover__grid { position: relative; z-index: 3; display: grid; grid-template-columns: repeat(12, 1fr); gap: 1rem; align-items: end; padding-bottom: clamp(2.5rem, 6vh, 4.5rem); }
  .hero-cover__content { grid-column: 1 / 10; }
  .hero-cover__title { font-size: var(--step-display); line-height: .98; letter-spacing: -.025em; color: #fff; max-width: 14ch; margin-bottom: .75rem; text-shadow: 0 2px 22px rgb(0 0 0 / .38); }
  .hero-cover__sub { font-size: 1.125rem; color: rgb(255 255 255 / .92); max-width: 52ch; margin-bottom: 1.5rem; text-shadow: 0 1px 12px rgb(0 0 0 / .45); }
  .hero-cover__index { grid-column: 10 / 13; justify-self: end; align-self: end; display: flex; flex-direction: column; gap: .65rem; font-size: .88rem; padding-bottom: .4rem; }
  .hero-cover__index-label { font-size: var(--step-xs); font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: rgb(255 255 255 / .65); }
  .hero-cover__index a { color: rgb(255 255 255 / .92); max-width: 24ch; text-shadow: 0 1px 8px rgb(0 0 0 / .55); }
  .hero-cover__index a:hover { color: #fff; }
  .hero-cover__index-label { text-shadow: 0 1px 8px rgb(0 0 0 / .55); }

  .booking-dock {
    position: relative;
    z-index: 3;
    display: inline-flex;
    flex-wrap: wrap;
    gap: .5rem;
    padding: .5rem;
    border-radius: 999px;
    background: color-mix(in srgb, var(--bg-elevated) 72%, transparent);
    backdrop-filter: blur(20px) saturate(1.4);
    -webkit-backdrop-filter: blur(20px) saturate(1.4);
    box-shadow: 0 24px 60px -24px color-mix(in srgb, var(--brand) 35%, rgb(0 0 0 / .25));
    margin-bottom: -1.4rem;
  }
  .booking-dock .btn-light { background: var(--btn-fill); color: #fff; }
  .booking-dock .btn-light:hover { background: var(--brand-dark); color: #fff; }
  .booking-dock .btn-glass { background: transparent; color: var(--brand-ink); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--brand-ink) 38%, transparent); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .booking-dock .btn-glass:hover { background: var(--brand-soft); color: var(--brand-dark); }

  /* inset (scrapbook) hero variant — Departures Diary */
  .hero-cover--inset { display: block; min-height: 0; padding: 8.5rem 0 5.5rem; }
  .hero-cover--inset .hero-cover__media { position: relative; inset: auto; width: min(var(--container), 92%); margin: 2.25rem auto 0; overflow: visible; }
  .hero-cover--inset .hero-cover__img { position: relative; inset: auto; aspect-ratio: 16 / 8; border-radius: 3.5rem 1.5rem 3.5rem 1.5rem; box-shadow: var(--shadow-deep); }
  .hero-cover--inset .hero-cover__media::before {
    content: "";
    position: absolute;
    inset: -3rem -4rem 30% auto;
    width: 46vw;
    background: radial-gradient(closest-side, var(--brand-glow), transparent);
    filter: blur(48px);
    z-index: -1;
  }
  .hero-cover--inset .hero-cover__media::after { display: none; }
  .hero-cover--inset .hero-cover__scrim { display: none; }
  .hero-cover--inset .hero-cover__grid { padding-bottom: 0; }
  .hero-cover--inset .hero-cover__title { color: var(--text); }
  .hero-cover--inset .hero-cover__sub { color: var(--text-muted); }
  .hero-cover--inset .kicker--onphoto { color: var(--brand-ink); }
  .hero-cover--inset .booking-dock { margin-bottom: 0; box-shadow: var(--shadow-soft); }
  .hero-cover--inset .hero-cover__index { display: none; }

  /* ---------- section headers (asymmetric, numbered) ---------- */
  .section-head { display: grid; grid-template-columns: repeat(12, 1fr); gap: 1rem; align-items: end; margin-bottom: clamp(2rem, 5vw, 3.5rem); counter-increment: section; }
  .section-head__eyebrow {
    grid-column: 1 / 2;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    justify-self: start;
    align-self: start;
    font-size: var(--step-xs);
    font-weight: 600;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--brand-ink);
    margin: 0;
  }
  .section-head__eyebrow::after { content: " / " counter(section, decimal-leading-zero); color: var(--text-muted); }
  .section-head h2 { grid-column: 2 / 8; font-size: var(--step-3xl); margin: 0; }
  .section-head__aside { grid-column: 8 / 13; justify-self: end; text-align: right; color: var(--text-muted); font-size: .98rem; max-width: 34rem; }
  .section-head__aside p { margin: 0; }
  .section-head__aside .u-link { font-weight: 650; color: var(--brand-ink); }

  /* ---------- magazine grid + photo tiles ---------- */
  .mag-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(1rem, 2.5vw, 2rem); align-items: start; }
  .mag-grid > :nth-child(3n+1) { grid-column: 1 / 8; --ratio: 16/10; }
  .mag-grid > :nth-child(3n+2) { grid-column: 8 / 13; --ratio: 4/5; margin-top: clamp(2rem, 6vw, 5rem); }
  .mag-grid > :nth-child(3n+3) { grid-column: 3 / 10; --ratio: 21/9; margin-top: clamp(-2.5rem, -3vw, -1rem); }
  .mag-grid--six > :nth-child(6n+1) { grid-column: 1 / 6; --ratio: 4/5; margin-top: 0; }
  .mag-grid--six > :nth-child(6n+2) { grid-column: 6 / 10; --ratio: 1/1; margin-top: 2.25rem; }
  .mag-grid--six > :nth-child(6n+3) { grid-column: 10 / 13; --ratio: 3/4; margin-top: 1rem; }
  .mag-grid--six > :nth-child(6n+4) { grid-column: 1 / 5; --ratio: 3/4; margin-top: 1.25rem; }
  .mag-grid--six > :nth-child(6n+5) { grid-column: 5 / 10; --ratio: 16/10; margin-top: -1.25rem; }
  .mag-grid--six > :nth-child(6n+6) { grid-column: 10 / 13; --ratio: 4/5; margin-top: .75rem; }

  .tile {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    border-radius: var(--tile-radius);
    overflow: hidden;
    aspect-ratio: var(--ratio, 4/5);
    box-shadow: var(--shadow-deep);
    transition: border-radius .6s cubic-bezier(.33, 1, .68, 1);
  }
  .tile:hover { border-radius: var(--tile-radius-hover); }
  .tile__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease-out); }
  .tile:hover .tile__img { transform: scale(1.06); }
  .tile__scrim { position: absolute; inset: 0; background: linear-gradient(to top, color-mix(in srgb, var(--scrim) 86%, black) 0%, color-mix(in srgb, var(--scrim) 45%, rgb(0 0 0 / .16)) 42%, color-mix(in srgb, var(--scrim) 10%, rgb(0 0 0 / .1)) 74%, rgb(0 0 0 / .08) 100%); }
  .tile__body { width: 100%; padding: clamp(1.1rem, 2vw, 1.6rem); z-index: 2; }
  .tile__kicker { display: block; font-size: var(--step-xs); font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: color-mix(in srgb, var(--brand) 34%, white); margin-bottom: .45rem; text-shadow: 0 1px 6px rgb(0 0 0 / .45); }
  .tile__title { font-size: var(--step-xl); line-height: 1.18; margin: 0 0 .5rem; }
  .tile__title a { color: #fff; }
  .tile__title a::after { content: ""; position: absolute; inset: 0; }
  .tile__meta { font-size: .85rem; color: rgb(255 255 255 / .75); display: flex; gap: .6rem; }
  .tile__badge { display: none; }
  .tile:focus-within { outline: 3px solid var(--brand); outline-offset: 4px; }

  /* ---------- journal entries (Departures Diary home) ---------- */
  .entry-list { display: flex; flex-direction: column; gap: clamp(2.5rem, 6vw, 4.5rem); }
  .entry { display: grid; grid-template-columns: repeat(12, 1fr); gap: 0 1rem; }
  .entry__figure { grid-column: 1 / 9; grid-row: 1; margin: 0; }
  .entry__figure img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--tile-radius); box-shadow: var(--shadow-deep); transition: border-radius .6s cubic-bezier(.33, 1, .68, 1); }
  .entry:hover .entry__figure img { border-radius: var(--tile-radius-hover); }
  .entry__body {
    grid-column: 6 / 13;
    grid-row: 1;
    align-self: end;
    position: relative;
    z-index: 2;
    background: var(--bg-elevated);
    border-radius: 1.75rem;
    padding: clamp(1.5rem, 3vw, 2.25rem) clamp(1.5rem, 3vw, 2.5rem);
    margin: 4rem 0 -1.75rem;
    box-shadow: 0 24px 50px -28px rgb(0 0 0 / .25);
  }
  .entry:nth-child(even) .entry__figure { grid-column: 5 / 13; }
  .entry:nth-child(even) .entry__body { grid-column: 1 / 8; }
  .entry__no { font-variant-caps: all-small-caps; letter-spacing: .12em; color: var(--brand-ink); font-weight: 600; margin-bottom: .3rem; }
  .entry__title { font-size: clamp(1.5rem, 2.4vw, 2rem); margin-bottom: .5rem; }
  .entry__title a { color: var(--text); }
  .entry__title a:hover { color: var(--brand-dark); }
  .entry__excerpt { color: var(--text-muted); font-size: .98rem; margin-bottom: .75rem; }
  .entry__meta { font-size: .85rem; color: var(--text-muted); display: flex; gap: .75rem; align-items: center; }
  .entry__read { font-weight: 650; color: var(--brand-ink); }

  /* ---------- breaker band ---------- */
  .breaker { position: relative; height: clamp(240px, 38vh, 420px); overflow: hidden; margin-block: var(--space-2xl); }
  .breaker__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
  .breaker::after { content: ""; position: absolute; inset: 0; background: color-mix(in srgb, var(--scrim) 46%, transparent); }
  .breaker__word {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    z-index: 2;
    font-family: var(--font-heading);
    font-size: clamp(3.25rem, 10.5vw, 8rem);
    font-weight: 700;
    letter-spacing: .02em;
    white-space: nowrap;
    -webkit-text-stroke: 2px rgb(255 255 255 / .92);
    color: rgb(255 255 255 / .12);
    text-shadow: 0 2px 30px rgb(0 0 0 / .3);
  }

  /* ---------- CTA band (photo + deep scrim) ---------- */
  .cta-band { position: relative; overflow: hidden; border-radius: var(--section-curve) var(--section-curve) 0 0; margin-top: var(--space-2xl); padding: clamp(4rem, 9vh, 6rem) 0 clamp(4.5rem, 10vh, 6.5rem); }
  .cta-band__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
  .cta-band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, color-mix(in srgb, var(--scrim) 55%, rgb(0 0 0 / .3)) 0%, color-mix(in srgb, var(--scrim) 88%, black) 82%); }
  .cta-band__inner { position: relative; z-index: 2; text-align: center; }
  .cta-band h2, .cta-band h3 { color: #fff; font-size: var(--step-3xl); margin-bottom: .5rem; }
  .cta-band p { color: rgb(255 255 255 / .85); margin-bottom: 1.75rem; }
  .cta-band__actions { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; }

  /* ---------- footer (curved seam over the page flow) ---------- */
  .site-footer { position: relative; z-index: 3; background: var(--scrim); border-radius: var(--section-curve) var(--section-curve) 0 0; margin-top: calc(-1 * max(var(--section-curve), 2rem)); color: rgb(255 255 255 / .6); padding: clamp(3rem, 6vw, 4rem) 0 3.25rem; text-align: center; font-size: .9rem; }
  .site-footer__nav { display: flex; justify-content: center; gap: var(--space-lg); margin-bottom: 1rem; font-size: .95rem; }
  .site-footer__nav a { color: rgb(255 255 255 / .78); }
  .site-footer__nav a:hover { color: #fff; }
  .site-footer__fine { max-width: 60ch; margin-inline: auto; opacity: .8; }

  /* ---------- post hero ---------- */
  .post-hero { position: relative; display: grid; align-items: end; min-height: min(78svh, 46rem); padding-top: 7rem; }
  .post-hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
  .post-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
      linear-gradient(180deg, rgb(0 0 0 / .25) 0%, rgb(0 0 0 / .1) 26%, rgb(0 0 0 / .1) 60%, transparent 74%),
      linear-gradient(to top, color-mix(in srgb, var(--scrim) 88%, black) 0%, color-mix(in srgb, var(--scrim) 52%, rgb(0 0 0 / .16)) 54%, rgb(0 0 0 / .14) 100%);
  }
  .post-hero .container { position: relative; z-index: 2; padding-bottom: clamp(2.5rem, 6vh, 4rem); }
  .post-hero__tags { margin-bottom: .9rem; }
  .post-hero h1 { color: #fff; font-size: clamp(2.4rem, 5.5vw, 5rem); line-height: 1.02; max-width: 20ch; margin-bottom: 1rem; text-shadow: 0 2px 22px rgb(0 0 0 / .4); }
  .post-hero--long h1 { font-size: clamp(2rem, 4vw, 3.4rem); max-width: 26ch; }
  .post-hero__meta { color: rgb(255 255 255 / .9); font-size: .95rem; display: flex; flex-wrap: wrap; gap: .65rem; align-items: center; text-shadow: 0 1px 8px rgb(0 0 0 / .5); }
  .post-hero__meta .sep { opacity: .55; font-size: .8rem; }

  /* ---------- post layout + trip kit rail ---------- */
  .post-layout { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(1.5rem, 3vw, 3rem); padding-block: var(--space-2xl); }
  .post-main { grid-column: 1 / 9; min-width: 0; }
  .post-rail { grid-column: 9 / 13; }
  .trip-kit {
    position: sticky;
    top: 6rem;
    background: color-mix(in srgb, var(--brand) 7%, var(--bg-elevated));
    border-radius: 1.75rem;
    padding: 1.6rem;
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    gap: .6rem;
  }
  .trip-kit .kicker { margin-bottom: .1rem; }
  .trip-kit h3 { font-size: 1.35rem; margin: 0 0 .4rem; }
  .trip-kit .btn { width: 100%; }
  .trip-kit__all { font-size: .88rem; font-weight: 650; text-align: center; margin-top: .3rem; }

  .prose { font-size: var(--step-md); line-height: 1.8; color: var(--text); max-width: 68ch; counter-reset: proseh2; }
  .prose p, .prose ul, .prose ol { margin-bottom: var(--space-md); }
  .prose p, .prose li { text-wrap: pretty; }
  .prose h2 { font-size: var(--step-2xl); margin-top: 2.75rem; margin-bottom: var(--space-md); scroll-margin-top: 96px; counter-increment: proseh2; }
  .prose h2::before {
    content: counter(proseh2, decimal-leading-zero);
    display: block;
    font-family: var(--font-body);
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .2em;
    color: var(--brand-ink);
    margin-bottom: .4rem;
  }
  .prose h3 { font-size: var(--step-xl); margin-top: 2rem; margin-bottom: .75rem; }
  .prose img { border-radius: var(--tile-radius); margin-block: 2rem; box-shadow: var(--shadow-soft); }
  .prose blockquote {
    margin: 2.5rem 0;
    padding: 0;
    border: 0;
    font-family: var(--font-heading);
    font-style: italic;
    font-size: var(--step-xl);
    line-height: 1.4;
    color: var(--text);
  }
  .prose blockquote::before { content: "\201C"; display: block; font-size: 3rem; line-height: .6; color: var(--brand); margin-bottom: .75rem; }
  .prose ul li { margin-bottom: .35rem; }
  .back-link { display: inline-flex; align-items: center; gap: .4rem; font-size: var(--step-xs); font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--brand-ink); margin-top: 2.5rem; }

  /* ---------- travel services → ticket strip ---------- */
  .travel-services {
    position: relative;
    margin: 2.75rem 0;
    padding: 2rem 2.25rem 2rem 2.75rem;
    background: var(--bg-elevated);
    border-radius: var(--tile-radius);
    box-shadow: var(--shadow-soft);
  }
  .travel-services::before {
    content: "";
    position: absolute;
    left: -1px;
    top: 6px;
    bottom: 6px;
    width: 16px;
    background-image: radial-gradient(circle at 0 50%, var(--bg-deep) 7px, transparent 8px);
    background-size: 16px 26px;
    background-repeat: repeat-y;
  }
  .travel-services__title { font-size: 1.5rem; margin: 0 0 .25rem; }
  .travel-services__subtitle { color: var(--text-muted); font-size: .95rem; margin: 0 0 1.5rem; }
  .svc-group { padding-top: 1.1rem; margin-top: 1.1rem; border-top: 1px dashed color-mix(in srgb, var(--brand-ink) 28%, transparent); }
  .svc-group:first-of-type { border-top: 0; padding-top: 0; margin-top: 0; }
  .svc-group__title { font-size: var(--step-xs); text-transform: uppercase; letter-spacing: .18em; color: var(--text-muted); margin: 0 0 .6rem; font-weight: 600; }
  .svc-group__buttons { display: flex; flex-wrap: wrap; gap: .6rem; }
  .svc-btn {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .6rem 1rem;
    background: color-mix(in srgb, var(--brand) 8%, var(--bg-elevated));
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--brand) 18%, transparent);
    border-radius: .85rem;
    font-size: .9rem;
    font-weight: 500;
    color: var(--text);
    transition: all .2s ease;
  }
  .svc-btn:hover { background: var(--brand-soft); color: var(--brand-dark); transform: translateY(-1px); }
  .svc-btn__icon { font-size: 1.1rem; line-height: 1; }
  .svc-btn__label { white-space: nowrap; }
  .travel-services__widget { margin: 0 0 1.4rem; padding: 1rem; background: color-mix(in srgb, var(--brand) 5%, var(--bg-elevated)); border-radius: .85rem; min-height: 80px; }
  .travel-services__widget script { display: none; }

  /* ---------- simple page hero (blog/about) ---------- */
  .page-hero { padding: 8.5rem 0 1.5rem; }
  .page-hero h1 { font-size: clamp(2.6rem, 6vw, 4.5rem); margin-bottom: .5rem; max-width: 16ch; }
  .page-hero__lede { color: var(--text-muted); font-size: 1.1rem; max-width: 56ch; margin: 0; }

  /* ---------- scroll reveal (JS-gated, transform-only) ---------- */
  html.js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); transition-delay: calc(var(--reveal-i, 0) * 90ms); }
  html.js [data-reveal].in-view { opacity: 1; transform: none; }

  @keyframes hero-drift { from { transform: scale(1.06); } to { transform: scale(1); } }
  .hero-cover:not(.hero-cover--inset) .hero-cover__img { animation: hero-drift 7s ease-out both; }

  @supports (animation-timeline: view()) {
    @keyframes breaker-slide { from { transform: translateX(3%); } to { transform: translateX(-3%); } }
    .breaker__word { animation: breaker-slide linear both; animation-timeline: view(); }
  }

  /* ================= per-site signatures ================= */

  /* Aloratrip — golden-hour glossy: Playfair italics + inner keyline on featured tiles */
  .site--aloratrip .hero-cover__title em { font-style: italic; font-weight: 500; }
  .site--aloratrip .mag-grid > .tile::after {
    content: "";
    position: absolute;
    inset: 1rem;
    border: 1px solid rgb(255 255 255 / .5);
    border-radius: calc(1.75rem - .75rem);
    pointer-events: none;
  }
  .site--aloratrip .prose > p:first-of-type::first-letter,
  .site--departuresdiary .prose > p:first-of-type::first-letter {
    font-family: var(--font-heading);
    font-size: 3.2em;
    float: left;
    line-height: .82;
    padding-right: .14em;
    color: var(--brand-dark);
  }

  /* Olapath — expedition: diagonal seams, dashed rules, outlined accent, route line */
  .site--olapath .page-flow,
  .site--olapath .cta-band,
  .site--olapath .site-footer { border-radius: 0; clip-path: polygon(0 2.5rem, 100% 0, 100% 100%, 0 100%); }
  .site--olapath .page-flow--flat { clip-path: none; }
  .site--olapath .hero-cover__title { text-transform: uppercase; letter-spacing: -.01em; }
  .site--olapath .hero-cover__title em { font-style: normal; -webkit-text-stroke: 2px #fff; color: transparent; }
  .site--olapath .kicker::before { background: none; height: 0; border-top: 2px dashed var(--accent); }
  .site--olapath .hero-cover__media::before {
    content: "";
    position: absolute;
    left: 6%;
    right: 6%;
    bottom: 24%;
    height: 64px;
    z-index: 2;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 60' preserveAspectRatio='none'%3E%3Cpath d='M8 50 C 120 8, 250 54, 392 12' fill='none' stroke='white' stroke-width='2' stroke-dasharray='6 7' opacity='.85'/%3E%3Ccircle cx='8' cy='50' r='4' fill='white'/%3E%3Ccircle cx='392' cy='12' r='4' fill='white'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
    pointer-events: none;
  }

  /* Budget Routes — fare-deal zine: highlighter accent, rotated badge, boarding-pass ticket */
  .site--budgetroutes .hero-cover__title { font-weight: 800; }
  .site--budgetroutes .hero-cover__title em {
    font-style: normal;
    background: linear-gradient(104deg, transparent .5%, var(--accent) 3%, var(--accent) 97%, transparent 99.5%);
    color: var(--scrim);
    padding-inline: .15em;
    border-radius: .2em;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
  }
  .site--budgetroutes .tile__badge {
    display: inline-block;
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 2;
    transform: rotate(-3deg);
    background: var(--accent);
    color: var(--scrim);
    font-weight: 800;
    font-size: .72rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: .42rem .7rem;
    border-radius: .55rem;
    box-shadow: 0 6px 14px -6px rgb(0 0 0 / .35);
  }
  .site--budgetroutes .svc-group { border-top-width: 2px; }
  .site--budgetroutes .travel-services::after {
    content: "";
    position: absolute;
    right: 2rem;
    top: 2.1rem;
    width: 86px;
    height: 30px;
    background: repeating-linear-gradient(90deg, var(--scrim) 0 2px, transparent 2px 5px);
    opacity: .22;
    pointer-events: none;
  }

  /* Departures Diary — journal: squiggle accent underline */
  .site--departuresdiary .hero-cover__title { margin-bottom: 1.2rem; }
  .site--departuresdiary .hero-cover__title em {
    font-style: italic;
    padding-bottom: .1em;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 12' preserveAspectRatio='none'%3E%3Cpath d='M2 8 Q 16 2, 30 7 T 60 7 T 90 7 T 118 5' fill='none' stroke='%23f59e0b' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E") bottom / 100% .24em no-repeat;
  }

  /* ---------- sticky deal bar (SEO-safe: bottom-anchored, ~10% viewport, dismissible) ---------- */
  .deal-bar {
    position: fixed;
    inset-inline: 0;
    bottom: 0;
    z-index: 90;
    background: color-mix(in srgb, var(--scrim) 94%, black);
    box-shadow: 0 -12px 30px -18px rgb(0 0 0 / .5);
    transform: translateY(100%);
    transition: transform .4s var(--ease-out);
  }
  .deal-bar.is-in { transform: translateY(0); }
  .deal-bar__inner { display: flex; align-items: center; gap: 1rem; padding: .7rem 0; flex-wrap: wrap; }
  .deal-bar__text { color: rgb(255 255 255 / .92); font-size: .95rem; font-weight: 500; flex: 1 1 auto; min-width: 12rem; }
  .deal-bar__actions { display: flex; gap: .5rem; flex: none; }
  .deal-bar .btn-ghost { color: #fff; box-shadow: inset 0 0 0 1.5px rgb(255 255 255 / .45); }
  .deal-bar .btn-ghost:hover { background: rgb(255 255 255 / .16); color: #fff; }
  .deal-bar__close { flex: none; background: none; border: 0; color: rgb(255 255 255 / .6); font-size: 1.5rem; line-height: 1; cursor: pointer; padding: .2rem .5rem; border-radius: 8px; transition: color .2s, background .2s; }
  .deal-bar__close:hover { color: #fff; background: rgb(255 255 255 / .12); }
}

@layer utilities {
  .visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
}

/* Pagination */
/* Pager — borderless inset-ring chips, same language as .svc-btn; AA-safe fills */
.pager { display: flex; align-items: center; justify-content: center; gap: .5rem; margin-top: 3rem; flex-wrap: wrap; }
.pager__link, .pager__nav { display: inline-flex; align-items: center; justify-content: center; min-width: 2.6rem; height: 2.6rem; padding: 0 .9rem; border-radius: 999px; font-size: .9rem; font-weight: 650; text-decoration: none; background: color-mix(in srgb, var(--brand) 8%, var(--bg-elevated)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--brand) 18%, transparent); color: var(--brand-ink); transition: transform .18s, background .18s, color .18s; }
.pager__link:hover, .pager__nav:hover:not(.pager__nav--disabled) { background: var(--brand-soft); color: var(--brand-dark); transform: translateY(-2px); }
.pager__link--current { background: var(--btn-fill); color: #fff; box-shadow: none; }
.pager__nav { font-size: .85rem; }
.pager__nav--disabled { opacity: .4; cursor: not-allowed; }

/* Continent cards — "Explore by region" band, FIELD NOTES vocabulary */
.section--continents { padding-block: var(--space-2xl); }
.continent-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: clamp(1rem, 2vw, 1.5rem); }
.continent-card { position: relative; display: block; border-radius: var(--tile-radius); overflow: hidden; aspect-ratio: 4/3; box-shadow: var(--shadow-deep); transition: border-radius .6s cubic-bezier(.33, 1, .68, 1), transform .3s; }
.continent-card:hover { border-radius: var(--tile-radius-hover); transform: translateY(-4px); }
.continent-card__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease-out); }
.continent-card:hover .continent-card__img { transform: scale(1.06); }
.continent-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, color-mix(in srgb, var(--scrim) 84%, black) 0%, color-mix(in srgb, var(--scrim) 25%, transparent) 55%, transparent 80%); }
.continent-card__body { position: absolute; inset: auto 0 0 0; padding: 1.1rem 1.2rem; z-index: 2; display: flex; flex-direction: column; gap: .1rem; }
.continent-card__name { color: #fff; font-weight: 700; font-size: 1.15rem; font-family: var(--font-heading); text-shadow: 0 1px 8px rgb(0 0 0 / .4); }
.continent-card__count { color: rgb(255 255 255 / .8); font-size: var(--step-xs); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.blog-group { scroll-margin-top: 90px; }

@media (max-width: 1080px) {
  .post-main { grid-column: 1 / -1; }
  .post-rail { grid-column: 1 / -1; grid-row: 1; }
  .trip-kit { position: static; flex-direction: row; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; }
  .trip-kit h3 { margin: 0; font-size: 1.15rem; }
  .trip-kit .kicker { width: 100%; margin: 0; }
  .trip-kit .btn { width: auto; flex: 1 1 auto; }
  .trip-kit__all { margin: 0; }
  .hero-cover__index { display: none; }
  .hero-cover__content { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .site-nav { gap: .9rem; font-size: .88rem; }
  .site-nav a[href="/feed.xml"] { display: none; }
  .section-head { display: block; }
  .section-head__eyebrow { writing-mode: horizontal-tb; transform: none; display: inline-flex; margin-bottom: .6rem; }
  .section-head__aside { text-align: left; margin-top: .75rem; max-width: 56ch; }
}

@media (max-width: 860px) {
  .mag-grid > *, .mag-grid--six > * { grid-column: 1 / -1 !important; margin-top: 0 !important; --ratio: 16/10; }
  .entry { display: block; }
  .entry__body { margin: -2.5rem auto 0; width: 92%; }
  .cta-band, .site-footer, .page-flow { --section-curve: 1.75rem; }
}

@media (max-width: 600px) {
  .site-header .logo img { height: 28px; }
  .site-nav { gap: .6rem; font-size: .82rem; }
  .site-header__cta { padding: .5rem .85rem; font-size: .8rem; }
  .hero-cover { min-height: min(92svh, 44rem); }
  .hero-cover__title { font-size: clamp(2.5rem, 11vw, 3.5rem); }
  .booking-dock { display: flex; width: 100%; border-radius: 1.75rem; }
  .booking-dock .btn { flex: 1 1 100%; }
  .hero-cover--inset { padding-top: 7rem; }
  .hero-cover--inset .hero-cover__img { aspect-ratio: 4 / 3; border-radius: 2.25rem 1rem 2.25rem 1rem; }
  .post-hero h1 { font-size: clamp(1.9rem, 8vw, 2.6rem); }
  .breaker__word { font-size: clamp(2.5rem, 13vw, 4rem); }
  .travel-services { padding: 1.5rem 1.25rem 1.5rem 1.75rem; }
  /* keep the deal bar compact on phones (well under 15% viewport) */
  .deal-bar__inner { gap: .5rem; padding: .55rem 0; }
  .deal-bar__text { flex: 1 1 100%; font-size: .82rem; min-width: 0; }
  .deal-bar__actions { flex: 1 1 auto; }
  .deal-bar__actions .btn { flex: 1 1 auto; padding: .5rem .7rem; font-size: .8rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
  html.js [data-reveal] { opacity: 1; transform: none; }
}