/* Nutravellia — field-journal atlas. Full-bleed travel photography, passport-stamp details, a to-scale dot atlas. */
:root {
  --paper: #F1F3EE;
  --surface: #FAFBF8;
  --ink: #14302E;
  --muted: #55706A;
  --line: #D2DBD5;
  --accent: #A86D04;
  --accent-soft: #F6E2AE;
  --eat: #A86D04;
  --move: #4C6E2A;
  --restore: #2F6585;
  --belong: #8A3F65;
  --on-photo: #FFFFFF;
  --scrim: rgba(8, 22, 21, 0.72);
  --font-display: "Bricolage Grotesque", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --font-body: "Newsreader", Georgia, "Times New Roman", serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --step--1: 0.8125rem;
  --step-0: 1.0625rem;
  --step-1: 1.3rem;
  --step-2: 1.75rem;
  --step-3: clamp(2rem, 4vw, 2.75rem);
  --step-4: clamp(2.6rem, 7vw, 5.4rem);
  --radius: 6px;
  --gutter: 20px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0D1918; --surface: #132321; --ink: #E4EDE9; --muted: #94ABA4; --line: #253835;
    --accent: #F0B43A; --accent-soft: #3A2E12;
    --eat: #F0B43A; --move: #A3C46F; --restore: #82BCDD; --belong: #E2A0C2;
    --scrim: rgba(4, 12, 11, 0.78);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0D1918; --surface: #132321; --ink: #E4EDE9; --muted: #94ABA4; --line: #253835;
  --accent: #F0B43A; --accent-soft: #3A2E12;
  --eat: #F0B43A; --move: #A3C46F; --restore: #82BCDD; --belong: #E2A0C2;
  --scrim: rgba(4, 12, 11, 0.78);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  padding-inline: var(--gutter);
}
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
.wrap { max-width: 1160px; margin-inline: auto; }
.bleed { margin-inline: calc(var(--gutter) * -1); }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.05; text-wrap: balance; margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
.eyebrow { font-family: var(--font-mono); font-size: var(--step--1); text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.c-eat { --c: var(--eat); } .c-move { --c: var(--move); } .c-restore { --c: var(--restore); } .c-belong { --c: var(--belong); }

/* Header */
.site-head {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter);
}
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 14px; }
.logo { font-family: var(--font-display); font-weight: 800; font-size: 1.35rem; text-decoration: none; letter-spacing: -0.03em; }
.logo span { color: var(--accent); }
.nav { display: flex; gap: 22px; font-family: var(--font-display); font-size: 0.95rem; align-items: center; }
.nav a { text-decoration: none; color: var(--muted); padding-block: 4px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.nav a[aria-current="page"] { border-bottom: 2px solid var(--accent); }
.menu-btn { display: none; font: 600 0.95rem var(--font-display); background: none; border: 1.5px solid var(--line); color: var(--ink); border-radius: 999px; padding: 6px 14px; cursor: pointer; }
@media (max-width: 760px) {
  .menu-btn { display: block; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--paper); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 16px; }
  .nav.open { display: flex; }
  .nav a { padding-block: 12px; border-bottom: 1px solid var(--line); font-size: 1.1rem; }
  .nav a[aria-current="page"] { border-bottom: 1px solid var(--line); color: var(--accent); }
}

/* Buttons */
.btn { display: inline-block; font-family: var(--font-display); font-weight: 600; font-size: 1rem; padding: 12px 22px; border-radius: 999px; text-decoration: none; border: 1.5px solid var(--ink); cursor: pointer; background: transparent; color: var(--ink); transition: transform .15s ease; }
.btn-solid { background: var(--ink); color: var(--paper); }
.btn:hover { transform: translateY(-1px); }
.btn-photo { border-color: var(--on-photo); color: var(--on-photo); }
.btn-photo.btn-solid { background: var(--on-photo); color: #14302E; }
.link-arrow { font-family: var(--font-display); font-weight: 600; text-decoration: none; color: var(--accent); white-space: nowrap; }
.link-arrow:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Photo hero */
.photo-hero { position: relative; min-height: clamp(460px, 72vh, 700px); display: grid; align-items: end; color: var(--on-photo); overflow: hidden; background: #0D1918; }
.photo-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 25%, var(--scrim) 100%), linear-gradient(90deg, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0) 60%); }
.photo-hero .inner { position: relative; z-index: 1; padding: clamp(48px, 8vw, 96px) var(--gutter) clamp(32px, 6vw, 64px); max-width: 1200px; margin-inline: auto; width: 100%; display: grid; gap: 20px; }
.photo-hero h1 { font-size: var(--step-4); font-weight: 800; max-width: 14ch; text-shadow: 0 2px 24px rgba(0,0,0,0.25); }
.photo-hero h1 em { font-family: var(--font-body); font-style: italic; font-weight: 400; color: #F6C35A; }
.photo-hero .lede { font-size: var(--step-1); line-height: 1.5; max-width: 40ch; opacity: 0.92; }
.photo-hero .eyebrow { color: var(--on-photo); opacity: 0.85; }
.photo-hero .credit { position: absolute; right: 12px; bottom: 8px; z-index: 1; font-family: var(--font-mono); font-size: 0.66rem; opacity: 0.7; }
.photo-hero .credit a { color: var(--on-photo); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.photo-hero.short { min-height: clamp(380px, 58vh, 560px); }

/* Stamp strip */
.stamps { display: flex; flex-wrap: wrap; gap: 14px 12px; justify-content: center; align-items: center; padding-block: 36px 8px; }
.stamp { --c: var(--accent); border: 2px solid var(--c); color: var(--c); padding: 9px 14px 7px; border-radius: 10px; display: grid; justify-items: center; gap: 1px; transform: rotate(var(--r, 0deg)); position: relative; background: color-mix(in srgb, var(--c) 6%, transparent); transition: transform .3s ease; text-decoration: none; }
.stamp::after { content: ""; position: absolute; inset: 3px; border: 1px dashed color-mix(in srgb, var(--c) 55%, transparent); border-radius: 7px; pointer-events: none; }
.stamp:hover { transform: rotate(0deg) scale(1.06); }
.stamp b { font-family: var(--font-display); font-size: 1.3rem; font-weight: 800; line-height: 1.1; }
.stamp small { font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.1em; text-transform: uppercase; }
.stamp.round { border-radius: 50%; width: 108px; height: 108px; align-content: center; padding: 8px; }
.stamp.round::after { border-radius: 50%; }

/* Sections */
section { padding-block: 72px; }
section + section { border-top: 1px solid var(--line); }
.sec-head { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 48px; align-items: end; margin-bottom: 32px; }
.sec-head h2 { font-size: var(--step-3); font-weight: 800; }
.sec-head p { color: var(--muted); max-width: 52ch; }
.sec-head .eyebrow { margin-bottom: 10px; }
@media (max-width: 760px) { .sec-head { grid-template-columns: 1fr; } section { padding-block: 52px; } }

/* Themes strip */
.themes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-block: 1px solid var(--line); }
.theme { padding: 26px 22px; display: grid; gap: 8px; align-content: start; text-decoration: none; border-left: 1px solid var(--line); }
.theme:first-child { border-left: 0; }
.theme h3 { font-size: 1.6rem; font-weight: 800; color: var(--c); }
.theme p { color: var(--muted); font-size: 0.98rem; }
.theme .mono { font-size: 0.75rem; color: var(--muted); }
.theme:hover { background: var(--surface); }
@media (max-width: 860px) { .themes { grid-template-columns: 1fr 1fr; } .theme:nth-child(3) { border-left: 0; } .theme:nth-child(n+3) { border-top: 1px solid var(--line); } }
@media (max-width: 460px) { .themes { grid-template-columns: 1fr; } .theme { border-left: 0; } .theme + .theme { border-top: 1px solid var(--line); } }

/* Photo mosaic */
.mosaic { display: grid; grid-template-columns: 1.6fr 1fr 1fr; grid-auto-rows: 260px; gap: 14px; }
.mosaic .tile:first-child { grid-row: span 2; }
@media (max-width: 860px) { .mosaic { grid-template-columns: 1fr 1fr; grid-auto-rows: 230px; } .mosaic .tile:first-child { grid-column: span 2; grid-row: span 1; } }
@media (max-width: 520px) { .mosaic { grid-template-columns: 1fr; } .mosaic .tile:first-child { grid-column: auto; } }
.tile { position: relative; border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--on-photo); display: grid; align-items: end; background: #0D1918; min-width: 0; }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 35%, rgba(5,15,14,0.82) 100%); }
.tile:hover img { transform: scale(1.04); }
.tile .txt { position: relative; z-index: 1; padding: 18px 20px; display: grid; gap: 4px; }
.tile .tag { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; display: inline-flex; align-items: center; gap: 6px; }
.tile .tag i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); display: inline-block; box-shadow: 0 0 0 2px rgba(255,255,255,0.7); }
.tile h3 { font-size: 1.5rem; font-weight: 800; }
.tile:first-child h3 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
.tile p { font-size: 0.95rem; opacity: 0.88; }
.more-row { display: flex; justify-content: flex-end; margin-top: 20px; }

/* Atlas */
.atlas { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 16px 10px; margin-bottom: 20px; }
.atlas-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; align-items: baseline; margin-bottom: 8px; }
.atlas-readout { font-family: var(--font-mono); font-size: var(--step--1); color: var(--muted); min-height: 1.4em; }
.atlas-readout strong { color: var(--ink); font-weight: 600; }
.atlas-svg { width: 100%; height: auto; display: block; }
.atlas-svg .grat { stroke: var(--line); stroke-width: 0.35; fill: none; }
.atlas-svg .eq { stroke: var(--muted); stroke-width: 0.4; stroke-dasharray: 1.5 1.5; }
.atlas-svg text { fill: var(--muted); font-family: var(--font-mono); font-size: 3.4px; }
.atlas-svg .dot { cursor: pointer; transition: opacity .2s ease; }
.atlas-svg .dot.dim { opacity: 0.18; }
.atlas-svg .dot.on { stroke: var(--ink); stroke-width: 0.8; }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.chip { font-family: var(--font-display); font-size: 0.92rem; font-weight: 600; padding: 7px 14px; border-radius: 999px; border: 1.5px solid var(--line); background: transparent; color: var(--muted); cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
.chip i { width: 9px; height: 9px; border-radius: 50%; background: var(--c, var(--ink)); display: inline-block; }
.chip[aria-pressed="true"] { border-color: var(--ink); color: var(--ink); background: var(--surface); }

/* Habit cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: grid; grid-template-rows: auto 1fr; min-width: 0; text-decoration: none; transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease; }
.card:hover { transform: translateY(-2px); border-color: var(--c); }
.card.flash { border-color: var(--c); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 30%, transparent); }
.card .ph { aspect-ratio: 3 / 2; overflow: hidden; background: var(--line); }
.card .ph img { width: 100%; height: 100%; object-fit: cover; }
.card .body { padding: 18px 20px 20px; display: grid; gap: 10px; grid-template-rows: auto auto 1fr auto; }
.card-meta { display: flex; justify-content: space-between; gap: 8px; font-family: var(--font-mono); font-size: 0.72rem; color: var(--muted); letter-spacing: 0.04em; }
.tag { color: var(--c); text-transform: uppercase; letter-spacing: 0.12em; font-weight: 600; }
.card h3 { font-size: 1.5rem; font-weight: 800; }
.native { font-family: var(--font-body); font-style: italic; font-weight: 400; font-size: 1rem; color: var(--muted); letter-spacing: 0; display: block; margin-top: 4px; }
.card p { font-size: 0.98rem; line-height: 1.55; color: var(--muted); }
.card .go { font-family: var(--font-display); font-weight: 600; font-size: 0.92rem; color: var(--c); }
.empty { color: var(--muted); font-style: italic; }

/* Day rail */
.day { display: grid; position: relative; }
.hour { display: grid; grid-template-columns: 76px 22px 1fr 96px; gap: 0 14px; align-items: center; padding-block: 10px; text-decoration: none; }
.hour time { font-family: var(--font-mono); font-size: 1rem; font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.hour .pin { width: 14px; height: 14px; border-radius: 50%; border: 3px solid var(--c); background: var(--paper); justify-self: center; position: relative; z-index: 1; }
.day::before { content: ""; position: absolute; left: calc(76px + 14px + 11px); top: 24px; bottom: 24px; width: 1px; background: var(--line); }
.hour h3 { font-size: 1.15rem; font-weight: 600; letter-spacing: -0.01em; }
.hour h3 .where { font-family: var(--font-mono); font-size: 0.72rem; font-weight: 400; color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; margin-left: 8px; }
.hour p { color: var(--muted); font-size: 0.98rem; max-width: 62ch; }
.hour .thumb { width: 96px; height: 64px; border-radius: 4px; object-fit: cover; }
.hour:hover h3 { color: var(--c); }
@media (max-width: 620px) { .hour { grid-template-columns: 50px 18px 1fr; gap: 0 10px; } .hour .thumb { display: none; } .day::before { left: calc(50px + 10px + 9px); } .hour time { font-size: 0.85rem; } }

/* Split feature */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.split > * { min-width: 0; }
.split img { border-radius: var(--radius); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.split h2 { font-size: var(--step-3); font-weight: 800; margin-block: 10px 16px; }
.split p { color: var(--muted); max-width: 48ch; }
.split .list { margin: 20px 0 24px; padding: 0; list-style: none; display: grid; gap: 8px; }
.split .list li { display: flex; gap: 10px; }
.split .list li::before { content: "✓"; color: var(--accent); font-weight: 700; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* Journal */
.journal { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 24px; }
@media (max-width: 860px) { .journal { grid-template-columns: 1fr; } }
.post { display: grid; gap: 10px; align-content: start; text-decoration: none; min-width: 0; }
.post .cover { aspect-ratio: 4 / 3; max-width: 100%; border-radius: var(--radius); overflow: hidden; background: var(--line); }
.post .cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.post:hover .cover img { transform: scale(1.04); }
.post h3 { font-size: 1.35rem; font-weight: 600; letter-spacing: -0.015em; }
.post:hover h3 { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 4px; }
.post p { color: var(--muted); font-size: 0.98rem; }

/* Newsletter */
.letter { background: var(--ink); color: var(--paper); border-radius: var(--radius); padding: clamp(28px, 5vw, 56px); display: grid; grid-template-columns: 1.2fr 1fr; gap: 28px 48px; align-items: center; position: relative; overflow: hidden; }
@media (max-width: 760px) { .letter { grid-template-columns: 1fr; } }
.letter h2 { font-size: var(--step-3); font-weight: 800; }
.letter p { opacity: 0.8; margin-top: 12px; max-width: 44ch; }
.letter form { display: grid; gap: 10px; }
.letter label { font-family: var(--font-mono); font-size: var(--step--1); letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.75; }
.field { display: flex; gap: 8px; flex-wrap: wrap; }
.field input { flex: 1 1 200px; min-width: 0; font: inherit; font-size: 1rem; padding: 12px 16px; border-radius: 999px; border: 1.5px solid color-mix(in srgb, var(--paper) 40%, transparent); background: transparent; color: var(--paper); }
.field input::placeholder { color: color-mix(in srgb, var(--paper) 55%, transparent); }
.field button { font-family: var(--font-display); font-weight: 600; font-size: 1rem; padding: 12px 22px; border-radius: 999px; border: 0; background: var(--accent); color: var(--ink); cursor: pointer; }
.form-msg { font-size: 0.95rem; min-height: 1.5em; }

/* Page intro (non-photo pages) */
.page-intro { padding-block: 64px 40px; display: grid; gap: 16px; }
.page-intro h1 { font-size: var(--step-4); font-weight: 800; max-width: 16ch; }
.page-intro p.lede { font-size: var(--step-1); color: var(--muted); max-width: 52ch; line-height: 1.5; }

/* Article / habit page */
.crumbs { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.06em; color: var(--on-photo); opacity: 0.85; }
.crumbs a { color: var(--on-photo); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.habit-hero .native { color: var(--on-photo); opacity: 0.9; font-size: clamp(1.1rem, 2vw, 1.4rem); margin-top: 10px; }
.habit-hero .tagline { display: flex; flex-wrap: wrap; gap: 8px 18px; font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; }
.habit-hero .tagline .pill { background: var(--c); color: #0D1918; padding: 3px 10px; border-radius: 999px; font-weight: 600; }
.article { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 56px; padding-block: 56px 24px; }
@media (max-width: 960px) { .article { grid-template-columns: 1fr; gap: 36px; } }
.prose { display: grid; gap: 22px; max-width: 66ch; }
.prose h2 { font-size: var(--step-2); font-weight: 800; margin-top: 18px; }
.prose p { font-size: 1.12rem; line-height: 1.7; }
.prose p.intro { font-size: var(--step-1); line-height: 1.55; }
.prose p.intro::first-letter { font-family: var(--font-display); font-weight: 800; float: left; font-size: 4.2rem; line-height: 0.85; padding: 6px 10px 0 0; color: var(--c, var(--accent)); }
.prose ul, .prose ol { margin: 0; padding-left: 1.3em; display: grid; gap: 8px; font-size: 1.08rem; }
.prose blockquote { margin: 8px 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--c, var(--accent)); font-style: italic; font-size: 1.3rem; line-height: 1.5; }
.prose figure { margin: 8px 0; display: grid; gap: 8px; }
.prose figure img { border-radius: var(--radius); }
.prose figcaption { font-family: var(--font-mono); font-size: 0.72rem; color: var(--muted); }
.steps { list-style: none; padding: 0 !important; display: grid; gap: 0 !important; counter-reset: s; }
.steps li { display: grid; grid-template-columns: 74px 1fr; gap: 16px; padding-block: 16px; border-top: 1px dashed var(--line); }
.steps li:last-child { border-bottom: 1px dashed var(--line); }
.steps .when { font-family: var(--font-mono); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--c, var(--accent)); font-weight: 600; padding-top: 4px; }
.steps b { font-family: var(--font-display); font-size: 1.1rem; display: block; margin-bottom: 2px; }
.steps p { font-size: 1.02rem !important; color: var(--muted); }

.factfile { position: sticky; top: 90px; align-self: start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: grid; gap: 14px; }
.factfile h2 { font-size: 0.8rem; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.14em; color: var(--muted); font-weight: 600; }
.factfile dl { margin: 0; display: grid; gap: 12px; }
.factfile dt { font-family: var(--font-mono); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); }
.factfile dd { margin: 2px 0 0; font-size: 1rem; line-height: 1.45; }
.factfile .stamp { justify-self: start; margin-top: 4px; }
@media (max-width: 960px) { .factfile { position: static; } }
.note { font-size: 0.9rem; font-style: italic; color: var(--muted); border-top: 1px solid var(--line); padding-top: 16px; }

.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding-block: 24px 8px; }
.pager a { text-decoration: none; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; display: grid; gap: 4px; background: var(--surface); }
.pager a:hover { border-color: var(--accent); }
.pager a:last-child { text-align: right; }
.pager b { font-family: var(--font-display); font-size: 1.2rem; }

/* Travel kit page */
.kit-grid { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 48px; padding-block: 24px 56px; }
@media (max-width: 860px) { .kit-grid { grid-template-columns: 1fr; gap: 24px; } }
.toc { position: sticky; top: 90px; align-self: start; display: grid; gap: 6px; font-family: var(--font-display); }
.toc a { text-decoration: none; color: var(--muted); padding: 6px 0; border-bottom: 1px solid var(--line); }
.toc a:hover { color: var(--ink); }
@media (max-width: 860px) { .toc { position: static; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); } }
.kit-block { display: grid; gap: 14px; padding-bottom: 36px; margin-bottom: 36px; border-bottom: 1px solid var(--line); }
.kit-block h2 { font-size: var(--step-2); font-weight: 800; }
.kit-block > p { color: var(--muted); max-width: 62ch; }
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
.checklist label { display: grid; grid-template-columns: 24px 1fr; gap: 12px; padding: 10px 12px; border-radius: 4px; cursor: pointer; align-items: start; }
.checklist label:hover { background: var(--surface); }
.checklist input { width: 18px; height: 18px; margin-top: 4px; accent-color: var(--accent); }
.checklist b { font-family: var(--font-display); font-weight: 600; }
.checklist span { color: var(--muted); }
.checklist input:checked + div b { text-decoration: line-through; text-decoration-color: var(--accent); }
.progress { display: flex; align-items: center; gap: 12px; font-family: var(--font-mono); font-size: 0.8rem; color: var(--muted); }
.progress .bar { flex: 1; height: 6px; background: var(--line); border-radius: 999px; overflow: hidden; max-width: 260px; }
.progress .bar i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .3s ease; }

/* About & credits */
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px 40px; }
@media (max-width: 860px) { .values { grid-template-columns: 1fr; } }
.values div { border-top: 2px solid var(--ink); padding-top: 14px; display: grid; gap: 8px; align-content: start; }
.values h3 { font-size: 1.25rem; font-weight: 600; }
.values p { color: var(--muted); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table { border-collapse: collapse; width: 100%; font-size: 0.92rem; min-width: 620px; }
th, td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-family: var(--font-mono); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); font-weight: 600; background: var(--surface); }
tr:last-child td { border-bottom: 0; }
td img { width: 72px; height: 48px; object-fit: cover; border-radius: 3px; }

footer { border-top: 1px solid var(--line); padding-block: 48px; margin-top: 24px; display: grid; gap: 28px; color: var(--muted); font-size: 0.92rem; }
.foot-cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 28px; }
@media (max-width: 760px) { .foot-cols { grid-template-columns: 1fr 1fr; } .foot-cols > :first-child { grid-column: span 2; } }
.foot-cols h4 { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; margin: 0 0 10px; color: var(--ink); }
.foot-cols ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.foot-cols a { text-decoration: none; }
.foot-cols a:hover { color: var(--ink); text-decoration: underline; }
.foot-cols .logo { color: var(--ink); display: inline-block; margin-bottom: 8px; }
footer .row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); padding-top: 20px; }
footer .disclaimer { max-width: 70ch; font-style: italic; }

/* Shop: header cart */
.site-head .wrap { position: relative; }
.nav { margin-left: auto; }
.cart-link { position: relative; display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--line); color: var(--ink); text-decoration: none; flex: none; }
.cart-link:hover { border-color: var(--ink); }
.cart-count { position: absolute; top: -5px; right: -6px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px; background: var(--accent); color: #14302E; font: 600 0.7rem/19px var(--font-mono); text-align: center; }
.cart-count[hidden] { display: none; }
@media (max-width: 760px) { .site-head .wrap { justify-content: flex-start; } .logo { margin-right: auto; } .menu-btn { order: 2; } .cart-link { order: 3; } }

/* Shop: buttons and prices */
.btn-small { padding: 8px 16px; font-size: 0.92rem; }
.btn-wide { width: 100%; text-align: center; }
.btn.in-cart { background: transparent; color: var(--ink); border-color: var(--accent); }
.btn.in-cart::before { content: "✓ "; color: var(--accent); }
.price { font-family: var(--font-display); font-weight: 800; font-size: 1.45rem; letter-spacing: -0.02em; display: inline-flex; gap: 8px; align-items: baseline; }
.price s { font-weight: 400; font-size: 0.95rem; color: var(--muted); }
.buy-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 8px; padding-top: 16px; border-top: 1px dashed var(--line); }
.small { font-size: 0.75rem; color: var(--muted); }

/* Shop: plan cards */
.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 22px; }
.plan-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: grid; grid-template-rows: auto 1fr; min-width: 0; transition: border-color .2s ease, transform .2s ease; }
.plan-card:hover { border-color: var(--c); transform: translateY(-2px); }
.plan-card[hidden] { display: none; }
.plan-card .ph { position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: var(--line); display: block; }
.plan-card .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.plan-card:hover .ph img { transform: scale(1.04); }
.days-badge { position: absolute; left: 14px; top: 14px; display: inline-flex; align-items: center; gap: 7px; background: rgba(8, 22, 21, 0.78); color: #fff; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; padding: 5px 11px 5px 9px; border-radius: 999px; backdrop-filter: blur(4px); }
.days-badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 2px rgba(255,255,255,0.8); }
.plan-card .body { padding: 20px 22px 22px; display: grid; gap: 10px; grid-template-rows: auto auto 1fr auto; }
.plan-card h3 { font-size: 1.45rem; font-weight: 800; }
.plan-card h3 a { text-decoration: none; }
.plan-card h3 a:hover { color: var(--c); }
.plan-card p { font-size: 0.98rem; line-height: 1.55; color: var(--muted); }

/* Shop: trust strip */
.trust { list-style: none; margin: 0; padding: 32px 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px 16px; border-bottom: 1px solid var(--line); align-items: start; }
.trust li { display: grid; gap: 2px; align-content: start; padding: 2px 0 2px 14px; border-left: 2px solid var(--accent); }
.trust b { font-family: var(--font-display); font-size: 1.05rem; }
.trust span { color: var(--muted); font-size: 0.92rem; }
@media (max-width: 760px) { .trust { grid-template-columns: 1fr 1fr; padding: 24px 0; } .trust span { font-size: 0.88rem; line-height: 1.4; } }
.trust + section { border-top: 0; }

/* Shop: bundles */
.bundles { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
@media (max-width: 860px) { .bundles { grid-template-columns: 1fr; } }
.bundle { border: 1.5px solid var(--ink); border-radius: var(--radius); overflow: hidden; display: grid; grid-template-rows: auto 1fr; background: var(--surface); }
.bundle .thumbs { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; height: 160px; background: var(--line); }
.bundle .thumbs img { width: 100%; height: 100%; object-fit: cover; min-width: 0; }
.bundle .body { padding: 24px 26px 26px; display: grid; gap: 10px; grid-template-rows: auto auto auto 1fr auto; }
@media (max-width: 520px) { .bundle .thumbs { height: 120px; } .bundle .body { padding: 20px; } .bundle h3 { font-size: 1.55rem; } }
.bundle h3 { font-size: 1.8rem; font-weight: 800; }
.bundle p { color: var(--muted); }
.bundle .eyebrow { color: var(--accent); }

/* Shop: what's inside */
.includes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px 36px; }
.includes li { border-top: 2px solid var(--ink); padding-top: 12px; display: grid; gap: 6px; align-content: start; }
.includes b { font-family: var(--font-display); font-size: 1.15rem; }
.includes span { color: var(--muted); }
@media (max-width: 860px) { .includes { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .includes { grid-template-columns: 1fr; } }
.prose .includes.compact { grid-template-columns: 1fr 1fr; gap: 18px 26px; padding: 0; font-size: 1rem; }
.prose .includes.compact li { border-top-width: 1px; }
@media (max-width: 520px) { .prose .includes.compact { grid-template-columns: 1fr; } }
.prose ul.ticks { list-style: none; padding: 0; }
.prose ul.ticks li { display: flex; gap: 10px; }
.prose ul.ticks li::before { content: "✓"; color: var(--c, var(--accent)); font-weight: 700; }

/* Shop: FAQ */
.faq { display: grid; max-width: 820px; }
.faq details { border-top: 1px solid var(--line); padding: 4px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { font-family: var(--font-display); font-weight: 600; font-size: 1.12rem; padding: 14px 0; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-weight: 800; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); padding-bottom: 16px; max-width: 64ch; }

/* Shop: plan page */
.habit-hero .lede { font-size: var(--step-1); line-height: 1.5; max-width: 46ch; opacity: 0.92; }
.itinerary li.locked b { color: var(--muted); }
.itinerary li.locked p { font-style: italic; }
.itinerary li.locked .when::after { content: " 🔒"; font-size: 0.7rem; }
.buybox { gap: 12px; }
.buy-price { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.buy-price .price { font-size: 2.2rem; }
.bundle-hint { font-size: 0.95rem; color: var(--muted); background: color-mix(in srgb, var(--accent) 10%, transparent); border-radius: 4px; padding: 10px 12px; }
.bundle-hint a { color: var(--accent); }
.plan-promo { border-top: 1px dashed var(--line); padding-top: 14px; display: grid; gap: 6px; }
.plan-promo b { font-family: var(--font-display); font-size: 1.15rem; }
.plan-promo p:not(.eyebrow) { color: var(--muted); font-size: 0.95rem; }
.plan-promo .price { font-size: 1.05rem; color: var(--ink); }

/* Shop: cart */
.cart-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 48px; padding-bottom: 40px; }
@media (max-width: 860px) { .cart-layout { grid-template-columns: 1fr; gap: 28px; } }
.cart-items { list-style: none; margin: 0; padding: 0; display: grid; }
.cart-items li { display: grid; grid-template-columns: 96px 1fr auto auto; gap: 16px; align-items: center; padding-block: 16px; border-top: 1px solid var(--line); }
.cart-items li:last-child { border-bottom: 1px solid var(--line); }
.cart-items img { width: 96px; height: 64px; object-fit: cover; border-radius: 4px; }
.cart-items b { font-family: var(--font-display); font-size: 1.15rem; display: block; }
.cart-items span { color: var(--muted); font-size: 0.92rem; }
.cart-items .mono { color: var(--ink); font-size: 1rem; }
@media (max-width: 520px) { .cart-items li { grid-template-columns: 64px 1fr auto; } .cart-items img { width: 64px; height: 48px; } .cart-items .chip { grid-column: 2 / -1; justify-self: start; } }
.cart-summary form { display: grid; gap: 10px; }
.cart-summary form[hidden] { display: none; }
.cart-summary input { font: inherit; font-size: 1rem; padding: 11px 14px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--paper); color: var(--ink); min-width: 0; }
.sum-row { display: flex; justify-content: space-between; align-items: baseline; }
.sum-row.total dd { font-size: 1.5rem; font-weight: 600; }
.cart-summary .form-msg { color: var(--muted); font-size: 0.9rem; }

/* Shop: toast */
.toast { position: fixed; left: 50%; bottom: 20px; transform: translate(-50%, 140%); background: var(--ink); color: var(--paper); padding: 12px 18px; border-radius: 999px; font-size: 0.95rem; z-index: 50; max-width: calc(100vw - 32px); transition: transform .3s ease; box-shadow: 0 8px 30px rgba(0,0,0,.2); }
.toast.show { transform: translate(-50%, 0); }
.toast a { color: var(--accent-soft); font-family: var(--font-display); font-weight: 600; margin-left: 6px; white-space: nowrap; }

.plans-hero h1 { max-width: 17ch; }
footer .addr { font-style: normal; margin-top: 14px; line-height: 1.5; }

/* Legal pages */
.legal-links { display: flex; flex-wrap: wrap; gap: 8px 22px; font-family: var(--font-display); font-size: 0.9rem; }
.legal-links a { text-decoration: none; }
.legal-links a:hover { color: var(--ink); text-decoration: underline; }
.legal .prose h2 { font-size: var(--step-1); margin-top: 14px; }
.legal .prose p, .legal .prose li { font-size: 1.05rem; }
.legal .addr { font-style: normal; }
.legal-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.legal-list a { color: var(--accent); font-family: var(--font-display); font-weight: 600; text-decoration: none; }
.cart-summary .small a { color: var(--accent); }
