/* Marginata.dk — udkast. Tokens: se DESIGN.md */
:root {
  --bg: #F6F1E7; --surface: #FFFDF8; --sand: #ECE3D0; --fg: #1E2416; --muted: #565D4B; --line: #E0D6C1;
  --accent: #3F6B2A; --accent-hover: #34591F; --accent-ink: #FFFFFF; --accent-soft: #E3EBD5; --deep: #18210F;
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif; --sans: 'Source Sans 3', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --r-card: 16px; --r-img: 12px; --wrap: 1240px; --gut: clamp(16px, 4vw, 40px);
  --shadow: 0 1px 0 var(--line); --shadow-lift: 0 14px 30px -12px rgb(0 0 0 / .25);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 400 16px/1.5 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: -.01em; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(40px, 6vw, 72px); line-height: 1.04; }
h2 { font-size: clamp(28px, 3.4vw, 44px); line-height: 1.1; }
h3 { font-size: 22px; line-height: 1.25; }
p { margin: 0; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.skip { position: absolute; left: 8px; top: -60px; background: var(--fg); color: #fff; padding: 12px 16px; border-radius: 8px; z-index: 100; }
.skip:focus { top: 8px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ico { width: 20px; height: 20px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

/* draft bar */
.draftbar { background: var(--deep); color: #DCE3CF; font-size: 14px; text-align: center; padding: 8px var(--gut); }
.draftbar strong { color: #fff; font-weight: 600; }

/* header */
.top { position: sticky; top: 0; z-index: 40; background: rgb(246 241 231 / .92); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 24px; height: 72px; }
.brand { display: flex; align-items: center; flex: none; }
.brand img { height: 34px; width: auto; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { text-decoration: none; padding: 10px 12px; border-radius: 999px; font-weight: 600; font-size: 15px; color: var(--fg); }
.nav a:hover { background: var(--sand); }
.nav a[aria-current="page"] { background: var(--accent-soft); color: var(--accent); }
.searchbtn { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; color: var(--muted); }
.searchbtn:hover { border-color: var(--accent); color: var(--fg); }
.searchbtn kbd { font: 600 12px var(--sans); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; color: var(--muted); }
.menubtn { display: none; width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); align-items: center; justify-content: center; cursor: pointer; }
@media (max-width: 1060px) {
  .nav { display: none; }
  .menubtn { display: inline-flex; }
  .top .wrap { gap: 10px; }
  .searchbtn { margin-left: auto; }
  .searchbtn kbd, .searchbtn .lbl { display: none; }
  .searchbtn { width: 44px; padding: 0; justify-content: center; }
}
.sheet { position: fixed; inset: 0; z-index: 60; background: rgb(24 33 15 / .45); display: none; }
.sheet.open { display: block; }
.sheet nav { position: absolute; right: 0; top: 0; bottom: 0; width: min(360px, 88vw); background: var(--surface); padding: 24px; display: flex; flex-direction: column; gap: 4px; overflow-y: auto; }
.sheet nav a { text-decoration: none; font: 600 20px var(--serif); padding: 14px 8px; border-bottom: 1px solid var(--line); }
.sheet .close { align-self: flex-end; width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--line); background: none; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; margin-bottom: 8px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px; border-radius: 999px; font-weight: 600; font-size: 16px; text-decoration: none; border: 1px solid transparent; cursor: pointer; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost { border-color: rgb(30 36 22 / .22); background: transparent; color: var(--fg); }
.btn-ghost:hover { border-color: var(--fg); }
.btn-light { background: #fff; color: var(--deep); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.link { color: var(--accent); font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* sections */
section { padding: clamp(64px, 9vw, 112px) 0; }
.eyebrow { font: 600 13px var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; display: block; }
.lead { font-size: clamp(18px, 1.6vw, 20px); line-height: 1.6; color: var(--muted); max-width: 62ch; margin-top: 16px; }
.sec-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 40px; flex-wrap: wrap; }
.alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* hero */
.hero { position: relative; min-height: min(88vh, 820px); display: flex; align-items: flex-end; color: #fff; padding: 0; overflow: hidden; background: var(--deep); }
.hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 40%; }
@media (max-width: 640px) { .hero > img { object-position: 78% 30%; height: 62%; } .hero { min-height: 0; } .hero .wrap { padding-top: 200px; } .hero::after { background: linear-gradient(180deg, rgb(24 33 15 / 0) 0%, rgb(24 33 15 / .2) 25%, rgb(24 33 15 / .92) 52%, var(--deep) 62%); } .herostats div:nth-child(n+3) { display: none; } .quick a:nth-child(4) { display: none; } }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(24 33 15 / .15) 0%, rgb(24 33 15 / .35) 45%, rgb(24 33 15 / .88) 100%), linear-gradient(90deg, rgb(24 33 15 / .55), transparent 70%); }
.hero .wrap { position: relative; z-index: 1; padding-top: 120px; padding-bottom: clamp(40px, 6vw, 72px); }
.hero .eyebrow { color: #CFE0B4; }
.hero h1 { max-width: 15ch; }
.hero .lead { color: #E8EDE0; }
.herosearch { margin-top: 32px; max-width: 640px; }
.herosearch form { display: flex; background: #fff; border-radius: 999px; padding: 6px; box-shadow: 0 20px 40px -20px rgb(0 0 0 / .6); }
.herosearch input { flex: 1; min-width: 0; border: 0; background: none; font: 400 18px var(--sans); padding: 0 8px 0 18px; color: var(--fg); outline: none; }
.herosearch input::placeholder { color: #6E7562; }
.herosearch .btn { min-height: 48px; }
.quick { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.quick a { color: #fff; text-decoration: none; font-weight: 600; font-size: 14px; padding: 10px 14px; border-radius: 999px; background: rgb(255 255 255 / .14); border: 1px solid rgb(255 255 255 / .28); }
.quick a:hover { background: rgb(255 255 255 / .24); }
.herostats { display: flex; gap: clamp(20px, 4vw, 48px); margin-top: 40px; flex-wrap: wrap; }
.herostats div { display: flex; flex-direction: column; }
.herostats b { font: 600 clamp(28px, 3vw, 36px)/1 var(--serif); }
.herostats span { font-size: 14px; color: #D5DCCB; margin-top: 6px; }
.credit { position: absolute; right: 16px; bottom: 12px; z-index: 1; font-size: 12px; color: rgb(255 255 255 / .75); }

/* season strip */
.season { padding: 0; }
.season .card-season { margin-top: -1px; background: var(--surface); border-bottom: 1px solid var(--line); }
.season-in { display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center; padding-top: 22px; padding-bottom: 22px; }
.season-dot { width: 52px; height: 52px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }
.season-dot .ico { width: 26px; height: 26px; }
.season small { display: block; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.season p { font-size: 18px; }
@media (max-width: 760px) { .season-in { grid-template-columns: 1fr; gap: 14px; } .season-dot { display: none; } .season p { font-size: 17px; } }

/* cards / grids */
.grid { display: grid; gap: 24px; }
.g4 { grid-template-columns: repeat(4, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 1000px) { .g4 { grid-template-columns: repeat(2, 1fr); } .g3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .g4, .g3, .g2 { grid-template-columns: 1fr; } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; text-decoration: none; display: flex; flex-direction: column; }
.card .ph { aspect-ratio: 4 / 3; background: var(--sand); overflow: hidden; }
.card .ph img { width: 100%; height: 100%; object-fit: cover; }
.card .bd { padding: 20px 20px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card .bd p { color: var(--muted); }
.card .meta { font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.card h3 em { font-style: italic; font-weight: 500; }
.species .ph { aspect-ratio: 5 / 4; }
.sublinks { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; align-items: center; }
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); text-decoration: none; font-weight: 600; font-size: 15px; cursor: pointer; }
.chip:hover { border-color: var(--accent); }
.chip[aria-pressed="true"], .chip.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.chip .n { font-weight: 400; opacity: .75; }

/* topics */
.topics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 1000px) { .topics { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .topics { grid-template-columns: 1fr; } }
.topic { display: flex; gap: 14px; align-items: flex-start; padding: 20px; border-radius: var(--r-card); background: var(--surface); border: 1px solid var(--line); text-decoration: none; }
.topic .ti { width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; flex: none; }
.topic h3 { font-size: 19px; }
.topic p { color: var(--muted); font-size: 15px; margin-top: 4px; }
.topic .cnt { font-size: 13px; color: var(--accent); font-weight: 600; margin-top: 8px; display: block; }

/* guide (hvor står du) */
.guide { display: grid; grid-template-columns: 340px 1fr; gap: 32px; align-items: start; }
@media (max-width: 900px) { .guide { grid-template-columns: 1fr; } }
.guide-tabs { display: flex; flex-direction: column; gap: 8px; }
@media (max-width: 900px) { .guide-tabs { flex-direction: row; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; margin: 0 calc(var(--gut) * -1); padding-left: var(--gut); padding-right: var(--gut); } .guide-tabs::-webkit-scrollbar { display: none; } }
.gtab { text-align: left; display: flex; gap: 12px; align-items: center; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; font-weight: 600; min-height: 56px; flex: none; }
.gtab .ico { color: var(--accent); }
.gtab[aria-selected="true"] { background: var(--deep); color: #fff; border-color: var(--deep); }
.gtab[aria-selected="true"] .ico { color: #CFE0B4; }
.gpanel { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: clamp(24px, 3vw, 36px); }
.gpanel[hidden] { display: none; }
.gpanel h3 { font-size: 26px; }
.gpanel > p { color: var(--muted); margin-top: 8px; max-width: 60ch; }
.path { list-style: none; padding: 0; margin: 24px 0 0; counter-reset: s; display: grid; gap: 10px; }
.path li a { display: grid; grid-template-columns: 40px 1fr auto; gap: 14px; align-items: center; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); text-decoration: none; background: var(--bg); }
.path li a:hover { border-color: var(--accent); }
.path li a::before { counter-increment: s; content: counter(s); width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-weight: 600; font-size: 15px; }
.path b { font-weight: 600; }
.path small { display: block; color: var(--muted); font-size: 14px; margin-top: 2px; }

/* trips timeline */
.trips { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(280px, 1fr); gap: 20px; overflow-x: auto; padding: 4px var(--gut) 16px; margin: 0 calc(var(--gut) * -1); scroll-snap-type: x mandatory; scrollbar-width: thin; }
.trips .card { scroll-snap-align: start; }
.trips .yr { font: 600 28px/1 var(--serif); color: var(--accent); }

/* about */
.about { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; } }
.about figure { margin: 0; position: relative; }
.about figure img { border-radius: 20px; width: 100%; }
.about figcaption { font-size: 14px; color: var(--muted); margin-top: 10px; }
.about .txt p { font-size: 18px; line-height: 1.7; margin-top: 16px; max-width: 62ch; }
.sig { font: italic 600 22px var(--serif); margin-top: 20px; display: block; }

/* contact */
.contact { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 32px; }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }
.cbox { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 22px; display: flex; flex-direction: column; gap: 6px; }
.cbox small { color: var(--muted); font-weight: 600; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; }
.cbox .v { font: 600 22px var(--serif); text-decoration: none; }
.cbox .row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.cbox .btn { min-height: 44px; padding: 0 16px; font-size: 15px; }

/* news */
.news { display: grid; gap: 0; border-top: 1px solid var(--line); }
.news article { display: grid; grid-template-columns: 170px 1fr; gap: 24px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.news time { color: var(--muted); font-weight: 600; font-size: 15px; }
.news h3 { font-size: 20px; }
.news p { margin-top: 6px; color: var(--muted); max-width: 68ch; white-space: pre-line; }
@media (max-width: 640px) { .news article { grid-template-columns: 1fr; gap: 6px; } }
.yearjump { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }

/* page head */
.phead { padding-top: clamp(48px, 7vw, 88px); padding-bottom: clamp(32px, 4vw, 48px); }
.phead .lead { margin-top: 14px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 14px; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--muted); }
.banner { position: relative; color: #fff; padding: 0; min-height: 420px; display: flex; align-items: flex-end; overflow: hidden; background: var(--deep); }
.banner > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(24 33 15 / .1), rgb(24 33 15 / .85)); }
.banner .wrap { position: relative; z-index: 1; padding-top: 96px; padding-bottom: 48px; }
.banner .lead { color: #E8EDE0; }
.banner .eyebrow { color: #CFE0B4; }

/* archive */
.arch-tools { position: sticky; top: 72px; z-index: 20; background: rgb(246 241 231 / .95); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); padding: 16px 0; border-bottom: 1px solid var(--line); }
.field { display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 0 18px; min-height: 52px; }
.field:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.field input { flex: 1; min-width: 0; border: 0; background: none; font: 400 17px var(--sans); outline: none; color: var(--fg); min-height: 48px; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 12px 0 2px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chips .chip { flex: none; }
.catblock { padding-top: 48px; }
.catblock h2 { font-size: clamp(26px, 3vw, 34px); }
.catblock > p { color: var(--muted); margin-top: 6px; }
.alist { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 24px; }
@media (max-width: 1000px) { .alist { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .alist { grid-template-columns: 1fr; } }
.arow { display: grid; grid-template-columns: 96px 1fr; gap: 14px; align-items: center; padding: 10px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; }
.arow img { width: 96px; height: 72px; object-fit: cover; border-radius: 10px; background: var(--sand); }
.arow b { font-weight: 600; line-height: 1.3; display: block; overflow-wrap: anywhere; }
.arow small { color: var(--muted); font-size: 14px; }
.results { display: grid; gap: 12px; margin-top: 24px; }
.res { display: block; text-decoration: none; padding: 16px 18px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.res:hover, .res.sel { border-color: var(--accent); }
.res b { font: 600 19px var(--serif); display: block; }
.res small { color: var(--accent); font-weight: 600; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; }
.res p { color: var(--muted); margin-top: 6px; font-size: 15px; }
.res mark { background: #F3E3A6; color: inherit; border-radius: 3px; padding: 0 2px; }
.empty { padding: 32px; border: 1px dashed var(--line); border-radius: 16px; text-align: center; color: var(--muted); }
.loading { color: var(--muted); padding: 16px 4px; }

/* search overlay */
.so { position: fixed; inset: 0; z-index: 80; background: rgb(24 33 15 / .55); display: none; padding: 8vh 16px 16px; overflow-y: auto; }
.so.open { display: block; }
.so-box { max-width: 760px; margin: 0 auto; background: var(--bg); border-radius: 20px; padding: 16px; box-shadow: 0 30px 60px -20px rgb(0 0 0 / .5); }
.so-top { display: flex; gap: 8px; align-items: center; }
.so-top .field { flex: 1; }
.so-close { width: 48px; height: 48px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.so .results { max-height: 62vh; overflow-y: auto; margin-top: 12px; }
.so-hint { font-size: 14px; color: var(--muted); padding: 10px 6px 2px; }
@media (max-width: 640px) { .so { padding: 0; } .so-box { border-radius: 0; min-height: 100%; } .so .results { max-height: none; } }

/* article */
.art { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: clamp(32px, 5vw, 72px); align-items: start; padding-bottom: 96px; }
@media (max-width: 1000px) { .art { grid-template-columns: 1fr; } }
.ahead { padding: clamp(40px, 6vw, 72px) 0 24px; }
.ahead h1 { font-size: clamp(34px, 5vw, 60px); max-width: 20ch; }
.ameta { display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--muted); font-size: 15px; margin-top: 18px; align-items: center; }
.ameta span { display: inline-flex; align-items: center; gap: 6px; }
.prose { font-size: 18px; line-height: 1.7; max-width: 70ch; }
.prose > * + * { margin-top: 1.05em; }
.prose h2 { font-size: clamp(24px, 2.6vw, 30px); margin-top: 1.9em; scroll-margin-top: 96px; }
.prose h3 { font-size: 21px; margin-top: 1.6em; }
.prose a { color: var(--accent); font-weight: 600; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose figure { margin: 1.6em 0; }
.prose figure img { border-radius: var(--r-img); background: var(--sand); width: 100%; }
.prose figure.sm { float: right; width: 38%; max-width: 240px; margin: .3em 0 1em 1.4em; }
.prose figcaption { font-size: 15px; line-height: 1.5; color: var(--muted); margin-top: 10px; font-style: italic; }
.prose .callout { background: var(--accent-soft); border-left: 4px solid var(--accent); border-radius: 0 14px 14px 0; padding: 18px 22px; font-family: var(--serif); font-size: 20px; line-height: 1.5; clear: both; }
.prose .tbl { overflow-x: auto; clear: both; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.prose table { border-collapse: collapse; width: 100%; font-size: 16px; }
.prose td, .prose th { padding: 10px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose tr:first-child td { font-weight: 600; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose::after { content: ""; display: block; clear: both; }
@media (max-width: 600px) { .prose figure.sm { float: none; width: 100%; max-width: none; margin: 1.4em 0; } }
.aside { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 20px; }
@media (max-width: 1000px) { .aside { position: static; order: -1; } }
.toc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 18px; }
.toc summary { font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; min-height: 28px; }
.toc summary::-webkit-details-marker { display: none; }
.toc ol { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 2px; max-height: 56vh; overflow-y: auto; }
.toc a { display: block; text-decoration: none; color: var(--muted); font-size: 15px; padding: 6px 8px; border-radius: 8px; line-height: 1.35; }
.toc a:hover { background: var(--bg); color: var(--fg); }
.toc a.on { color: var(--accent); background: var(--accent-soft); font-weight: 600; }
.pager { display: flex; flex-wrap: wrap; gap: 8px; }
.pager a, .pager span { min-width: 44px; height: 44px; display: inline-grid; place-items: center; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; font-weight: 600; background: var(--surface); padding: 0 6px; }
.pager span[aria-current] { background: var(--accent); color: #fff; border-color: var(--accent); }
.serie { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 18px; }
.serie b { display: block; margin-bottom: 12px; }
.nextprev { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 56px; max-width: 70ch; }
.nextprev a { padding: 18px; border-radius: var(--r-card); border: 1px solid var(--line); background: var(--surface); text-decoration: none; }
.nextprev a:hover { border-color: var(--accent); }
.nextprev small { color: var(--muted); display: block; font-size: 14px; }
.nextprev b { font-weight: 600; }
.nextprev .nx { text-align: right; grid-column: 2; }
@media (max-width: 600px) { .nextprev { grid-template-columns: 1fr; } .nextprev .nx { grid-column: 1; } }
.source-note { margin-top: 40px; font-size: 14px; color: var(--muted); max-width: 70ch; }

/* sale */
.sale { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
@media (max-width: 900px) { .sale { grid-template-columns: 1fr; } }
.rules { display: grid; gap: 12px; margin-top: 28px; }
.rule { display: flex; gap: 14px; padding: 16px 18px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.rule .ico { color: var(--accent); margin-top: 2px; }
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 28px; }
.trio figure { margin: 0; }
.trio img { border-radius: 12px; width: 100%; height: auto; }
.trio figcaption { font-weight: 600; margin-top: 8px; text-align: center; }
.form { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: clamp(20px, 3vw, 32px); position: sticky; top: 96px; }
.form h2 { font-size: 28px; }
.form > p { color: var(--muted); margin-top: 8px; }
.fl { display: grid; gap: 6px; margin-top: 18px; }
.fl label, .fl legend { font-weight: 600; font-size: 15px; padding: 0; }
.fl input, .fl textarea, .fl select { font: 400 16px var(--sans); color: var(--fg); background: var(--surface); border: 1px solid #B9AE95; border-radius: 12px; padding: 12px 14px; min-height: 48px; width: 100%; }
.fl textarea { min-height: 110px; resize: vertical; }
.fl input:focus, .fl textarea:focus, .fl select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
fieldset.fl { border: 0; margin: 18px 0 0; padding: 0; }
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg label { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; cursor: pointer; font-weight: 600; background: var(--bg); }
.seg input { accent-color: var(--accent); width: 18px; height: 18px; min-height: 0; }
.seg label:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.note { margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: #FBF1D9; border: 1px solid #EBD8A8; font-size: 15px; }
.note[hidden] { display: none; }
.err { color: #A3341F; font-size: 14px; font-weight: 600; }
.err:empty { display: none; }
.sendrow { display: grid; gap: 10px; margin-top: 20px; }
.ok { margin-top: 12px; color: var(--accent); font-weight: 600; min-height: 1.5em; }

/* year wheel + chart */
.yearwrap { display: grid; grid-template-columns: minmax(0, 520px) 1fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
@media (max-width: 960px) { .yearwrap { grid-template-columns: 1fr; } }
.wheel { width: 100%; max-width: 520px; margin: 0 auto; }
.wheel svg { width: 100%; height: auto; display: block; overflow: visible; }
.wheel .arc { cursor: pointer; transition: opacity .2s; }
.wheel .arc:hover, .wheel .arc.on { opacity: 1 !important; }
.wheel .arc:focus-visible { outline: none; stroke: var(--fg); stroke-width: 3; }
.phase { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: clamp(22px, 3vw, 32px); min-height: 320px; }
.phase .when { font-weight: 600; color: var(--accent); font-size: 15px; display: block; margin-bottom: 8px; }
.phase h3 { font-size: clamp(26px, 3vw, 34px); margin-top: 6px; }
.phase blockquote { margin: 18px 0 0; padding-left: 18px; border-left: 3px solid var(--accent); font: italic 400 19px/1.55 var(--serif); color: var(--fg); }
.phase blockquote cite { display: block; font: 600 14px var(--sans); color: var(--muted); margin-top: 8px; font-style: normal; }
.phase ul { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 8px; }
.phase ul a { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line); text-decoration: none; font-weight: 600; }
.phase ul a:hover { border-color: var(--accent); }
.legend { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.legend button { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; font-weight: 600; font-size: 14px; }
.legend button[aria-pressed="true"] { border-color: var(--fg); }
.legend i { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.today-pill { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: var(--deep); color: #fff; font-weight: 600; font-size: 14px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 32px; }
@media (max-width: 860px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 20px; }
.stat b { font: 600 clamp(28px, 3.4vw, 40px)/1 var(--serif); display: block; }
.stat span { color: var(--muted); font-size: 15px; margin-top: 8px; display: block; }
.chart { margin-top: 32px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: clamp(16px, 3vw, 28px); }
.chartscroll { overflow-x: auto; padding-top: 30px; margin-top: -30px; }
.bars { min-width: 520px; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; align-items: end; height: 260px; border-bottom: 1px solid var(--line); position: relative; }
.bars button { border: 0; padding: 0; background: #B9C9A4; border-radius: 6px 6px 0 0; cursor: pointer; min-width: 0; position: relative; transition: background .2s; }
.bars button:hover, .bars button.on { background: var(--accent); }
.bars button:focus-visible { outline: 2px solid var(--fg); outline-offset: 2px; }
.avgline { position: absolute; left: 0; right: 0; border-top: 2px dashed var(--fg); opacity: .45; pointer-events: none; }
.avgline span { position: absolute; right: 0; top: -26px; font-size: 13px; font-weight: 600; background: var(--surface); padding: 2px 6px; border-radius: 6px; }
.axis { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); margin-top: 8px; }
.readout { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px 28px; align-items: baseline; min-height: 56px; }
.readout b { font: 600 24px var(--serif); }
.readout span { color: var(--muted); }

/* footer */
.foot { background: var(--deep); color: #D5DCCB; padding: 64px 0 32px; margin-top: 0; }
.foot .cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
@media (max-width: 860px) { .foot .cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .foot .cols { grid-template-columns: 1fr; } }
.foot h3 { font-size: 18px; color: #fff; margin-bottom: 12px; }
.foot a { color: #D5DCCB; text-decoration: none; display: block; padding: 6px 0; }
.foot a:hover { color: #fff; }
.foot .small { border-top: 1px solid rgb(255 255 255 / .12); margin-top: 40px; padding-top: 20px; font-size: 14px; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
.foot p { max-width: 42ch; line-height: 1.6; }

/* 404 */
.nf { min-height: 60vh; display: grid; place-items: center; text-align: center; }
.nf p { color: var(--muted); margin: 12px auto 24px; max-width: 48ch; }

@media (max-width: 640px) {
  .species { grid-template-columns: 1fr 1fr; gap: 12px; }
  .species .bd { padding: 14px; }
  .species h3 { font-size: 18px; }
  .topics { grid-template-columns: 1fr 1fr; gap: 10px; }
  .topic { flex-direction: column; gap: 10px; padding: 16px; }
  .topic p { display: none; }
  .topic h3 { font-size: 17px; }
  .hero h1 { font-size: 38px; }
  .herostats { gap: 18px 28px; }
}

/* round 2 */
.topic .tph { width: 100%; aspect-ratio: 16 / 10; border-radius: 10px; object-fit: cover; background: var(--sand); }
.topic { flex-direction: column; gap: 12px; padding: 12px 12px 18px; }
.topic > span:last-child { padding: 0 6px; }
.tripnav { display: flex; gap: 8px; }
.tripnav button { width: 48px; height: 48px; border-radius: 999px; border: 1px solid rgb(30 36 22 / .22); background: var(--surface); cursor: pointer; display: inline-grid; place-items: center; }
.tripnav button:hover { border-color: var(--fg); }
.trips { scroll-padding-left: var(--gut); scrollbar-width: none; }
.trips::-webkit-scrollbar { display: none; }
.more { margin-top: 16px; }
.alist .arow.hide { display: none; }
.ylab { position: absolute; left: 0; font-size: 12px; color: var(--muted); transform: translateY(50%); }
.pagesel { display: flex; align-items: center; gap: 8px; }
.pagesel select { flex: 1; min-height: 44px; border-radius: 999px; border: 1px solid #B9AE95; background: var(--surface); padding: 0 14px; font: 600 15px var(--sans); color: var(--fg); }
.pagesel a, .pagesel span.dis { width: 44px; height: 44px; flex: none; display: inline-grid; place-items: center; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); text-decoration: none; }
.pagesel span.dis { opacity: .35; }
.relbox { margin-top: 48px; max-width: 70ch; }
.relbox h2 { font-size: 26px; margin-bottom: 16px; }
.relgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 600px) { .relgrid { grid-template-columns: 1fr; } }
@media (max-width: 1000px) { .aside .serie b { margin-bottom: 8px; } .aside { gap: 12px; } }
.feat { display: grid; grid-template-columns: 1.4fr 1fr; gap: 0; border-radius: 20px; overflow: hidden; background: var(--deep); color: #fff; text-decoration: none; margin-bottom: 32px; }
.feat img { width: 100%; height: 100%; object-fit: cover; min-height: 320px; }
.feat .bd { padding: clamp(24px, 4vw, 48px); display: flex; flex-direction: column; justify-content: center; gap: 12px; }
.feat .meta { color: #CFE0B4; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; font-size: 13px; }
.feat h2 { font-size: clamp(26px, 3vw, 38px); }
.feat p { color: #D5DCCB; }
@media (max-width: 760px) { .feat { grid-template-columns: 1fr; } .feat img { min-height: 0; aspect-ratio: 16 / 10; } }
@media (max-width: 640px) { .g3 .card .ph { aspect-ratio: 16 / 9; } }
.quote-band { background: var(--deep); color: #fff; padding: clamp(64px, 9vw, 112px) 0; position: relative; overflow: hidden; }
.quote-band blockquote { margin: 0; font: italic 500 clamp(26px, 3.4vw, 42px)/1.3 var(--serif); max-width: 28ch; }
.quote-band cite { display: block; margin-top: 20px; font: 600 15px var(--sans); color: #CFE0B4; font-style: normal; }
.quote-band .wrap { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: center; }
.quote-band img { border-radius: 16px; width: 100%; }
@media (max-width: 860px) { .quote-band .wrap { grid-template-columns: 1fr; } }
@media (max-width: 860px) { .quote-band img { max-width: 360px; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 30%; } }
.ylab { left: 4px; background: var(--surface); padding: 0 4px; border-radius: 4px; z-index: 1; }
/* round 3 */
@media (min-width: 761px) { .arch-tools .chips { flex-wrap: wrap; overflow: visible; } }
@media (max-width: 760px) { .chips { -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); padding-right: 32px; } }
@media (max-width: 900px) { .guide-tabs { display: grid; grid-template-columns: 1fr 1fr; overflow: visible; margin: 0; padding: 0; } .gtab { min-height: 64px; padding: 12px; font-size: 15px; } }
@media (max-width: 380px) { .guide-tabs { grid-template-columns: 1fr; } }
.prose figure img { max-height: 78vh; width: auto; max-width: 100%; margin: 0 auto; }
@media (max-width: 600px) { .prose figure.sm { float: right; width: 42%; max-width: 160px; margin: .3em 0 .8em 1em; } }
.feat p { color: #E8EDE0; }
.banner::after { background: linear-gradient(180deg, rgb(24 33 15 / .55), rgb(24 33 15 / .2) 35%, rgb(24 33 15 / .88)); }
.asub { font: 500 clamp(20px, 2.2vw, 26px)/1.3 var(--serif); color: var(--muted); margin-top: 10px; max-width: 40ch; }
.draftbar .long { display: inline; }
@media (max-width: 640px) { .draftbar .long { display: none; } }
.phase .go { margin-top: 18px; }
/* round 4 */
.grid > *, .trips > * { min-width: 0; }
.card h3, .res b { overflow-wrap: anywhere; hyphens: auto; }
.feat.card .bd p { color: #E8EDE0; }
.prose figure img { margin: 0; }
@media (max-width: 760px) { .chips { -webkit-mask-image: linear-gradient(90deg, #000 72%, transparent); mask-image: linear-gradient(90deg, #000 72%, transparent); padding-right: 56px; } }
.herostats span { color: #E8EDE0; }
.bars { min-width: 900px; }
.bars button { min-width: 24px; }
.avgline span, .ylab { color: var(--fg); }
.phase h2 { font-size: clamp(26px, 3vw, 34px); margin-top: 6px; }
