/* Adil with Ai. Palette, type and accent rule from adil-visual-style (espresso, off-white, one orange accent). */
:root {
  --bg: #141110;          /* espresso black */
  --bg-raise: #1d1916;    /* panel */
  --bg-raise-2: #26201c;
  --fg: #F5F0E8;          /* warm off-white */
  --muted: #8C8378;       /* warm gray */
  --soft: #b9b0a4;
  --line: rgba(140,131,120,.28);
  --sand: #E8D9B5;
  --olive: #5A6B4A;
  --accent: #FF6A1A;      /* warm orange, one per view */
  --accent-ink: #1a0d05;
  --font-head: "Inter Tight", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --radius: 14px;
  --wrap: 1120px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font: 400 17px/1.65 var(--font-body);
  background-image: radial-gradient(1200px 600px at 85% -10%, rgba(255,106,26,.07), transparent 60%),
                    radial-gradient(900px 500px at -10% 20%, rgba(232,217,181,.04), transparent 60%);
  background-repeat: no-repeat;
}
img { max-width: 100%; }
a { color: var(--fg); text-decoration-color: rgba(245,240,232,.35); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--accent); }
:focus-visible { outline: 2px solid var(--sand); outline-offset: 3px; border-radius: 4px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; background: var(--fg); color: var(--bg); padding: 8px 12px; z-index: 50; }

h1, h2, h3 { font-family: var(--font-head); letter-spacing: -0.025em; line-height: 1.08; text-wrap: balance; margin: 0; }
h1 { font-weight: 800; font-size: clamp(2.4rem, 6vw, 4.4rem); }
h2 { font-weight: 800; font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
h3 { font-weight: 700; font-size: 1.25rem; letter-spacing: -0.015em; line-height: 1.25; }
.em { color: var(--sand); }
p { margin: 0; }
.label { font: 500 .72rem/1.4 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.lede { font-size: 1.2rem; color: var(--soft); max-width: 62ch; }

/* header */
.site-head { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: rgba(20,17,16,.86); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; align-items: center; gap: 24px; min-height: 64px; }
.logo { font: 800 1.15rem/1 var(--font-head); letter-spacing: -0.02em; text-decoration: none; white-space: nowrap; }
.logo span { color: var(--sand); }
.nav { display: flex; gap: 22px; margin-left: auto; align-items: center; }
.nav a { text-decoration: none; color: var(--soft); font-size: .95rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--fg); }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--line); color: var(--fg); border-radius: 8px; padding: 6px 10px; font: inherit; font-size: .9rem; }
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 64px; flex-direction: column; align-items: stretch; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px max(20px, env(safe-area-inset-left, 0px)) 16px; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 12px; text-align: center; }
}

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 20px; border-radius: 999px; font: 600 .98rem/1.2 var(--font-body); text-decoration: none; border: 1px solid var(--line); color: var(--fg); background: transparent; cursor: pointer; }
.btn:hover { border-color: var(--soft); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: #ff7d38; border-color: #ff7d38; }
.btn-small { padding: 8px 14px; font-size: .9rem; }
.nav .btn { color: var(--fg); }

/* sections */
section { padding-block: clamp(56px, 9vw, 104px); }
.section-head { display: grid; gap: 14px; margin-bottom: 36px; max-width: 760px; }
.section-head p { color: var(--soft); font-size: 1.08rem; }
.rule { border-top: 1px solid var(--line); }

/* hero */
.hero { padding-block: clamp(48px, 8vw, 96px) clamp(40px, 6vw, 72px); }
.hero-grid { display: grid; grid-template-columns: 1.35fr .9fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero-grid > * { min-width: 0; }
.hero h1 { margin-block: 18px 22px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.proof { display: flex; flex-wrap: wrap; gap: 10px 0; margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); font: 500 .76rem/1.5 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--soft); }
.proof span:not(:last-child)::after { content: "·"; margin: 0 12px; color: var(--muted); }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } }

/* placeholders */
.ph { border: 1.5px dashed rgba(232,217,181,.4); border-radius: var(--radius); background: rgba(232,217,181,.03); color: var(--sand); font: 500 .8rem/1.5 var(--font-mono); letter-spacing: .04em; padding: 18px; }
.ph-photo { aspect-ratio: 4 / 5; max-width: 100%; display: grid; place-items: center; text-align: center; padding: 28px; }
.ph-inline { display: inline-block; border: 1px dashed rgba(232,217,181,.45); border-radius: 6px; color: var(--sand); font: 500 .74rem/1.4 var(--font-mono); padding: 3px 8px; letter-spacing: .03em; vertical-align: middle; }

/* cards */
.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.grid-3 { display: grid; gap: 18px; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 860px) { .grid-3 { grid-template-columns: 1fr; } }
.card { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 24px; background: var(--bg-raise); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--fg); min-width: 0; }
a.card:hover { border-color: rgba(245,240,232,.4); background: var(--bg-raise-2); }
.card p { color: var(--soft); font-size: .98rem; }
.card .meta { margin-top: auto; padding-top: 10px; display: flex; justify-content: space-between; gap: 12px; align-items: center; font: 500 .72rem/1.4 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.card .go { color: var(--fg); letter-spacing: .04em; text-transform: none; font-family: var(--font-body); font-size: .92rem; font-weight: 600; white-space: nowrap; }
a.card:hover .go { color: var(--accent); }
.card.is-ph { background: transparent; border: 1.5px dashed rgba(232,217,181,.3); }
.card.is-ph h3 { color: var(--soft); }
.card.is-ph .ph-inline { align-self: flex-start; }
.badge { display: inline-flex; align-self: flex-start; gap: 8px; font: 500 .7rem/1 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; padding: 6px 9px; border-radius: 6px; background: rgba(232,217,181,.08); color: var(--sand); }
.badge.start { background: var(--accent); color: var(--accent-ink); }
.pillar { padding: 28px; }
.pillar h3 { font-size: 1.45rem; }

/* workshop */
.workshop { display: grid; grid-template-columns: 1.3fr 1fr; gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--bg-raise); }
.workshop > div { padding: clamp(24px, 4vw, 40px); min-width: 0; }
.workshop .side { background: var(--bg-raise-2); border-left: 1px solid var(--line); display: grid; gap: 18px; align-content: start; }
.workshop dl { margin: 0; display: grid; gap: 14px; }
.workshop dt { font: 500 .72rem/1.4 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.workshop dd { margin: 2px 0 0; }
.workshop h3 { font-size: 1.8rem; margin-block: 12px 14px; }
.workshop p { color: var(--soft); }
.below { margin-top: 22px; display: grid; gap: 10px; color: var(--soft); }
@media (max-width: 820px) { .workshop { grid-template-columns: 1fr; } .workshop .side { border-left: 0; border-top: 1px solid var(--line); } }

/* signup */
.signup { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; padding: clamp(28px, 5vw, 48px); border-radius: var(--radius); background: linear-gradient(135deg, #221b17, #1a1613); border: 1px solid var(--line); }
.signup > * { min-width: 0; }
.signup p { color: var(--soft); margin-top: 12px; }
.signup form { display: flex; flex-wrap: wrap; gap: 10px; }
.signup input { flex: 1 1 220px; min-width: 0; padding: 13px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); color: var(--fg); font: inherit; font-size: 1rem; }
.form-note { flex-basis: 100%; font-size: .85rem; color: var(--muted); }
.form-note.ph-msg { color: var(--sand); font-family: var(--font-mono); font-size: .78rem; }
@media (max-width: 820px) { .signup { grid-template-columns: 1fr; } }

/* about */
.about { display: grid; grid-template-columns: 300px 1fr; gap: clamp(28px, 5vw, 56px); align-items: center; }
.about > * { min-width: 0; }
.about p { color: var(--soft); font-size: 1.1rem; max-width: 62ch; margin-block: 16px 24px; }
@media (max-width: 760px) { .about { grid-template-columns: 1fr; } .about .ph-photo { max-width: 260px; } }

.closing { text-align: left; }
.closing h2 { max-width: 20ch; }
.closing p { margin-top: 18px; font: 500 .85rem/1.5 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--soft); }
.closing p b { color: var(--accent); font-weight: 600; }

/* footer */
.site-foot { border-top: 1px solid var(--line); padding-block: 40px 48px; color: var(--muted); font-size: .92rem; }
.foot-grid { display: flex; flex-wrap: wrap; gap: 24px 48px; justify-content: space-between; }
.foot-links, .foot-social { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.foot-links a, .foot-social a { color: var(--soft); text-decoration: none; }
.foot-links a:hover, .foot-social a:hover { color: var(--fg); }
.foot-small { margin-top: 24px; font: 500 .72rem/1.5 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; }

/* guides library */
.lib-head { padding-block: clamp(40px, 7vw, 80px) 28px; }
.lib-head h1 { margin-block: 14px 16px; }
.filters { display: grid; gap: 14px; padding-block: 22px; border-block: 1px solid var(--line); margin-bottom: 28px; }
.filter-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.filter-row .label { width: 70px; flex-shrink: 0; }
.chip { font: 500 .88rem/1 var(--font-body); padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--soft); cursor: pointer; }
.chip:hover { color: var(--fg); border-color: var(--soft); }
.chip[aria-pressed="true"] { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.search-row { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; }
.search-row input[type="search"] { flex: 1 1 260px; min-width: 0; padding: 11px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg-raise); color: var(--fg); font: inherit; font-size: .98rem; }
.toggle { display: inline-flex; gap: 8px; align-items: center; color: var(--soft); font-size: .92rem; cursor: pointer; }
.toggle input { accent-color: var(--sand); width: 16px; height: 16px; }
.count { font: 500 .74rem/1.4 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.empty { padding: 36px; text-align: center; color: var(--soft); border: 1px dashed var(--line); border-radius: var(--radius); }
@media (max-width: 560px) { .filter-row .label { width: 100%; } }

/* guide page */
.guide-head { padding-block: clamp(36px, 6vw, 72px) 32px; border-bottom: 1px solid var(--line); }
.crumbs { font: 500 .74rem/1.4 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--fg); }
.guide-head h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); margin-block: 18px 18px; max-width: 22ch; }
.facts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.fact { display: grid; gap: 2px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg-raise); }
.fact b { font: 500 .66rem/1.3 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.fact span { font-size: .95rem; }
.notice { margin-top: 18px; display: flex; gap: 10px; align-items: baseline; padding: 12px 16px; border-radius: 10px; background: rgba(232,217,181,.06); border: 1px solid rgba(232,217,181,.2); color: var(--sand); font-size: .95rem; max-width: 720px; }
.notice a { color: var(--sand); }
.guide-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); padding-block: 40px 72px; }
.toc { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 88px); align-self: start; max-height: calc(100vh - 110px); overflow: auto; }
.toc ol { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 2px; }
.toc a { display: block; padding: 6px 10px; border-left: 2px solid var(--line); color: var(--soft); text-decoration: none; font-size: .88rem; line-height: 1.35; }
.toc a:hover { color: var(--fg); border-left-color: var(--soft); }
.toc a.on { color: var(--fg); border-left-color: var(--accent); }
@media (max-width: 900px) { .guide-layout { grid-template-columns: 1fr; } .toc { position: static; max-height: none; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; } }

.prose { max-width: 72ch; min-width: 0; }
.prose > * + * { margin-top: 1.05em; }
.prose h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-top: 2.2em; padding-top: .6em; scroll-margin-top: 96px; }
.prose h3 { font-size: 1.2rem; margin-top: 1.8em; scroll-margin-top: 96px; }
.prose h4 { font-family: var(--font-head); font-size: 1.02rem; margin: 1.5em 0 0; }
.prose p, .prose li { color: #e6dfd4; }
.prose strong { color: var(--fg); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .35em; }
.prose li::marker { color: var(--muted); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin-block: 2.2em; }
.prose blockquote { margin-inline: 0; padding: 14px 18px; border-radius: 10px; background: var(--bg-raise); border: 1px solid var(--line); }
.prose blockquote p { color: var(--soft); }
.prose code { font-family: var(--font-mono); font-size: .86em; background: var(--bg-raise-2); padding: .12em .38em; border-radius: 5px; overflow-wrap: anywhere; }
.prose pre { position: relative; overflow-x: auto; padding: 18px 18px; padding-top: 40px; background: #0e0c0b; border: 1px solid var(--line); border-radius: 12px; font-size: .86rem; line-height: 1.55; }
.prose pre code { background: none; padding: 0; overflow-wrap: normal; white-space: pre; font-size: inherit; color: #e9e2d6; }
.copy { position: absolute; top: 8px; right: 8px; font: 500 .7rem/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; padding: 7px 10px; border-radius: 6px; border: 1px solid var(--line); background: var(--bg-raise); color: var(--soft); cursor: pointer; }
.copy:hover { color: var(--fg); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
.prose table { border-collapse: collapse; width: 100%; font-size: .94rem; }
.prose th, .prose td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { font: 500 .72rem/1.4 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); background: var(--bg-raise); }
.prose tr:last-child td { border-bottom: 0; }
.prose input[type="checkbox"] { accent-color: var(--sand); }

.guide-end { margin-top: 56px; display: grid; gap: 18px; }
.action { padding: 24px; border-radius: var(--radius); background: var(--bg-raise); border: 1px solid var(--line); }
.action .label { color: var(--accent); }
.action p { margin-top: 8px; font: 700 1.3rem/1.3 var(--font-head); letter-spacing: -0.015em; }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.pager a { display: grid; gap: 6px; padding: 18px; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; }
.pager a:hover { border-color: var(--soft); }
.pager .next { text-align: right; grid-column: 2; }
.pager span { font: 600 1rem/1.3 var(--font-head); }
@media (max-width: 560px) { .pager { grid-template-columns: 1fr; } .pager .next { grid-column: 1; text-align: left; } }

/* simple pages */
.page { padding-block: clamp(40px, 7vw, 88px); }
.page h1 { margin-block: 14px 20px; }
.page .stack { display: grid; gap: 18px; margin-top: 32px; max-width: 760px; }
.mt-s { margin-top: 12px; }
.mt-m { margin-top: 28px; }
.spacer { height: 48px; }
.page .ph-photo { max-width: 320px; }
.photo { display: block; max-width: 100%; }
.photo img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--line); }
.photo-about { max-width: 300px; }
.page .photo-about { max-width: 320px; }
@media (max-width: 860px) { .photo-hero { max-width: 420px; } }
.prose .photo-about { margin-bottom: 8px; }
.prose h2:first-child, .prose > .photo + h2 { margin-top: .6em; }
.prose pre code { white-space: pre-wrap; overflow-wrap: anywhere; }

/* ---------- v2 library + guide layout (modelled on a reference library's structure) ---------- */
:root { --band-bg: #141110; --band-fg: #F5F0E8; --band-muted: #b9b0a4; --band-em: #E8D9B5; }
.announce { background: var(--band-bg); color: var(--band-fg); font-size: .88rem; }
.announce .wrap { display: flex; flex-wrap: wrap; gap: 6px 16px; justify-content: center; align-items: center; padding-block: 9px; text-align: center; }
.announce a { color: #FF6A1A; font-weight: 600; text-decoration: none; white-space: nowrap; }
.announce a:hover { text-decoration: underline; }

.band { background: var(--band-bg); color: var(--band-fg); text-align: center; position: relative; overflow: hidden; }
.band::after { content: ""; position: absolute; width: 640px; height: 640px; right: -220px; top: -260px; border-radius: 50%; background: radial-gradient(circle, rgba(255,106,26,.16), transparent 65%); pointer-events: none; }
.band .wrap { position: relative; z-index: 1; padding-block: clamp(56px, 9vw, 112px); display: grid; justify-items: center; gap: 18px; }
.band h1 { color: var(--band-fg); max-width: 18ch; font-size: clamp(2.6rem, 7vw, 5.2rem); line-height: .98; letter-spacing: -0.035em; }
.band .em { color: var(--band-em); }
.band .eyebrow, .band .back, .band .byline { font: 600 .74rem/1.4 var(--font-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--band-muted); margin: 0; }
.band .back a { color: var(--band-fg); text-decoration: none; }
.band .back a:hover { color: #FF6A1A; }
.band .byline b { color: var(--band-fg); font-weight: 600; margin-right: 10px; }
.band .byline a { color: var(--band-muted); margin-left: 8px; text-decoration-color: rgba(245,240,232,.3); }
.band .byline a:hover { color: var(--band-fg); }
.band-lede { max-width: 60ch; color: var(--band-muted); font-size: 1.15rem; }
.band .facts { justify-content: center; margin-top: 8px; }
.band .fact { background: rgba(245,240,232,.06); border-color: rgba(245,240,232,.16); text-align: left; }
.band .fact b { color: var(--band-muted); }
.band .fact span { color: var(--band-fg); }
.band .notice { margin-inline: auto; text-align: left; background: rgba(232,217,181,.1); border-color: rgba(232,217,181,.25); color: var(--band-em); }
.band .notice a { color: var(--band-em); }
.band .ph-inline { color: var(--band-em); border-color: rgba(232,217,181,.5); background: transparent; }
.band-guide h1 { max-width: 20ch; font-size: clamp(2.3rem, 6.2vw, 4.6rem); }

/* library */
.lib { max-width: 860px; }
.lib .filters { border: 0; padding-block: 40px 28px; margin: 0; display: grid; gap: 20px; }
.frow { display: grid; gap: 10px; }
.frow .chips { display: flex; flex-wrap: wrap; gap: 8px; }
.frow input[type="search"] { width: 100%; max-width: 440px; padding: 12px 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--field-bg); color: var(--fg); font: inherit; font-size: .98rem; }
.frow-inline { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: end; }
.frow-inline > div { display: grid; gap: 10px; }
.frow select { padding: 10px 36px 10px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--field-bg); color: var(--fg); font: inherit; font-size: .95rem; }
.lib .count { margin: 4px 0 0; padding-bottom: 24px; border-bottom: 1px solid var(--line); font: 400 .92rem/1.4 var(--font-body); letter-spacing: 0; text-transform: none; color: var(--muted); }
.lib .count b { color: var(--fg); }
.lib .chip { background: var(--bg-raise-2); border-color: transparent; color: var(--fg); }
.lib .chip:hover { border-color: var(--line); }
.lib .chip[aria-pressed="true"] { background: var(--fg); color: var(--bg); }

.ggrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 28px; }
.ggrid-home { margin-top: 0; }
@media (max-width: 700px) { .ggrid { grid-template-columns: 1fr; } }
.gcard { position: relative; display: flex; align-items: center; gap: 18px; padding: clamp(22px, 3vw, 32px); min-height: 220px; border-radius: 18px; border: 1px solid var(--line); background: var(--bg-raise); color: var(--fg); text-decoration: none; min-width: 0; }
.ggrid > .gcard:nth-child(4n+1), .ggrid > .gcard:nth-child(4n+4) { background: var(--card-alt); }
.gcard-body { flex: 1; min-width: 0; display: grid; gap: 10px; align-content: center; }
.gcard h3 { font-size: clamp(1.45rem, 2.6vw, 1.95rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.05; }
.gcard-tag { font: 500 .7rem/1.4 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.gcard-sum { color: var(--soft); font-size: .95rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.gcard-go { flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--fg); color: var(--bg); font-size: 1.2rem; transition: transform .15s ease, background .15s ease; }
a.gcard:hover { border-color: var(--hover-line); }
a.gcard:hover .gcard-go { background: #FF6A1A; color: #1a0d05; transform: translateX(3px); }
.gstart { justify-self: start; font: 600 .68rem/1 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; padding: 6px 9px; border-radius: 6px; background: #FF6A1A; color: #1a0d05; }
.gcard.is-ph { background: transparent !important; border: 1.5px dashed var(--ph-line); }
.gcard.is-ph h3 { color: var(--soft); }
.gcard.is-ph .ph-inline { justify-self: start; }

/* guide reading column */
.read { max-width: 780px; padding-block: 40px 72px; }
.read .prose { max-width: none; }
.promo { border-radius: 22px; padding: 14px; background: var(--band-bg); margin-bottom: 36px; }
.promo-inner { background: var(--bg-raise); border-radius: 14px; padding: clamp(24px, 4vw, 40px); display: grid; gap: 14px; justify-items: start; }
.promo-eyebrow { font: 600 .74rem/1.4 var(--font-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--promo-eye); }
.promo h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
.promo p { color: var(--soft); }
.toc-box { border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; margin-bottom: 12px; background: var(--bg-raise); }
.toc-box summary { cursor: pointer; font: 600 .76rem/1.4 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--soft); }
.toc-box ol { margin: 12px 0 2px; padding-left: 1.3em; display: grid; gap: 4px; }
.toc-box a { color: var(--soft); text-decoration: none; }
.toc-box a:hover { color: var(--fg); text-decoration: underline; }

/* theme tokens for v2 parts (dark values; light.css overrides) */
:root { --field-bg: #1d1916; --card-alt: #231d19; --hover-line: rgba(245,240,232,.4); --ph-line: rgba(232,217,181,.35); --promo-eye: #FF6A1A; }
.band { border-bottom: 1px solid var(--line); }
.promo { border: 1px solid var(--line); }
.theme-toggle { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: transparent; color: var(--fg); cursor: pointer; flex: none; }
.theme-toggle:hover { border-color: var(--soft); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .moon { display: none; }
:root:not([data-theme="dark"]) .theme-toggle .sun { display: none; }
:root:not([data-theme="dark"]) .theme-toggle .moon { display: block; }
@media (max-width: 760px) { .theme-toggle { margin-left: auto; } .nav-toggle { margin-left: 8px; } }
.site-head .nav { order: 2; }
.site-head .theme-toggle { order: 3; }
.site-head .nav-toggle { order: 4; }

/* 3 guides per row */
.lib { max-width: var(--wrap); }
.lib .filters, .lib .count { max-width: 860px; }
.ggrid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ggrid > .gcard:nth-child(4n+1), .ggrid > .gcard:nth-child(4n+4) { background: var(--bg-raise); }
.ggrid > .gcard:nth-child(odd) { background: var(--card-alt); }
.gcard { flex-direction: column; align-items: stretch; min-height: 260px; }
.gcard-body { align-content: start; }
.gcard h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); }
.gcard-go { align-self: flex-end; width: 40px; height: 40px; }
@media (max-width: 960px) { .ggrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .ggrid { grid-template-columns: 1fr; } .gcard { min-height: 0; } }

/* light theme (default) */
:root:not([data-theme="dark"]) {
  --bg: #F5F0E8;
  --bg-raise: #FBF8F2;
  --bg-raise-2: #EFE7DA;
  --fg: #141110;
  --muted: #7A7167;
  --soft: #4A433C;
  --line: rgba(20,17,16,.13);
  --sand: #5A6B4A;            
  --sand-fill: #E8D9B5;
  --field-bg: #fff; --card-alt: #EDE3CF; --hover-line: rgba(20,17,16,.35); --ph-line: rgba(90,107,74,.4); --promo-eye: #c24d0c;
  --accent: #FF6A1A;
  --accent-ink: #1a0d05;
  color-scheme: light;
}
:root:not([data-theme="dark"]) body {
  background-image: radial-gradient(1200px 600px at 85% -10%, rgba(255,106,26,.08), transparent 60%),
                    radial-gradient(900px 500px at -10% 20%, rgba(232,217,181,.55), transparent 60%);
}
:root:not([data-theme="dark"]) a { text-decoration-color: rgba(20,17,16,.3); }
:root:not([data-theme="dark"]) .site-head { background: rgba(245,240,232,.88); }
:root:not([data-theme="dark"]) .nav .btn { border-color: rgba(20,17,16,.25); }
:root:not([data-theme="dark"]) .ph { border-color: rgba(90,107,74,.45); background: rgba(232,217,181,.28); color: #4b5a3d; }
:root:not([data-theme="dark"]) .ph-inline { border-color: rgba(90,107,74,.5); color: #4b5a3d; background: rgba(232,217,181,.35); }
:root:not([data-theme="dark"]) .card { box-shadow: 0 1px 0 rgba(20,17,16,.03); }
:root:not([data-theme="dark"]) a.card:hover { border-color: rgba(20,17,16,.35); background: #fff; }
:root:not([data-theme="dark"]) .card.is-ph { border-color: rgba(90,107,74,.35); }
:root:not([data-theme="dark"]) .badge { background: var(--sand-fill); color: #3d3529; }
:root:not([data-theme="dark"]) .badge.start { background: var(--accent); color: var(--accent-ink); }
:root:not([data-theme="dark"]) .workshop .side { background: var(--bg-raise-2); }
:root:not([data-theme="dark"]) .signup { background: linear-gradient(135deg, #EFE3C8, #F3EADB); }
:root:not([data-theme="dark"]) .signup input, :root:not([data-theme="dark"]) .search-row input[type="search"] { background: #fff; }
:root:not([data-theme="dark"]) .chip[aria-pressed="true"] { background: var(--fg); color: var(--bg); border-color: var(--fg); }
:root:not([data-theme="dark"]) .notice { background: rgba(232,217,181,.4); border-color: rgba(90,107,74,.3); color: #3f4c33; }
:root:not([data-theme="dark"]) .notice a { color: #3f4c33; }
:root:not([data-theme="dark"]) .prose p, :root:not([data-theme="dark"]) .prose li { color: #2a2420; }
:root:not([data-theme="dark"]) .prose code { background: #EAE1D2; }
:root:not([data-theme="dark"]) .prose pre { background: #1d1916; border-color: #1d1916; }
:root:not([data-theme="dark"]) .prose pre code { color: #F0E9DD; }
:root:not([data-theme="dark"]) .copy { background: #2a2420; color: #d6cdc0; border-color: rgba(245,240,232,.2); }
:root:not([data-theme="dark"]) .copy:hover { color: #fff; }
:root:not([data-theme="dark"]) .action { background: var(--bg-raise); }
:root:not([data-theme="dark"]) .prose th { background: var(--bg-raise-2); }
:root:not([data-theme="dark"]) .prose input[type="checkbox"], :root:not([data-theme="dark"]) .toggle input { accent-color: #5A6B4A; }
:root:not([data-theme="dark"]) .em { color: #5A6B4A; }
:root:not([data-theme="dark"]) .band .em { color: #E8D9B5; }

/* Light motion (added 2026-11-26). Off for visitors who ask for reduced motion, and off without JavaScript. */
@media (prefers-reduced-motion: no-preference) {
  .js-motion .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.2,1); transition-delay: var(--d, 0ms); }
  .js-motion .reveal.in { opacity: 1; transform: none; }
  a.card, a.gcard { transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease; }
  a.card:hover, a.gcard:hover { transform: translateY(-4px); box-shadow: 0 16px 32px -20px rgba(20,17,16,.45); }
  .btn { transition: transform .15s ease, background .15s ease, border-color .15s ease; }
  .btn:hover { transform: translateY(-1px); }
  .photo img { transition: transform .6s cubic-bezier(.2,.7,.2,1); }
  .photo:hover img { transform: scale(1.02); }
  .js-motion h1 .em, .js-motion h2 .em { background: linear-gradient(currentColor, currentColor) no-repeat 0 96% / 0 .07em; transition: background-size .7s ease .45s; }
  .js-motion .in .em, .js-motion .seen .em { background-size: 100% .07em; }
}

/* Guide pictures and card icons (added 2026-11-26) */
.gfig { margin: 0 0 30px; padding: clamp(14px, 3vw, 24px); border: 1px solid var(--line); border-radius: 18px; background: var(--bg-raise); }
.gfig-scroll { overflow-x: auto; }
.gfig svg { display: block; width: 100%; min-width: 600px; height: auto; color: var(--fg); font-family: var(--font-body); }
.gfig figcaption { margin-top: 14px; font-size: .92rem; line-height: 1.5; color: var(--soft); }
.prose > .gfig + h2 { margin-top: .6em; }
.gfig .b { fill: var(--bg); stroke: currentColor; stroke-opacity: .22; stroke-width: 1.2; }
.gfig .b.hi { stroke: #FF6A1A; stroke-opacity: 1; stroke-width: 1.6; }
.gfig .zone { fill: none; stroke: currentColor; stroke-opacity: .3; stroke-width: 1.2; stroke-dasharray: 5 5; }
.gfig .chip { fill: var(--bg); stroke: currentColor; stroke-opacity: .16; }
.gfig .rule { stroke: currentColor; stroke-opacity: .16; }
.gfig .t { fill: currentColor; font: 700 15px var(--font-head); }
.gfig .t2 { fill: currentColor; font: 600 13.5px var(--font-body); }
.gfig .s { fill: currentColor; fill-opacity: .68; font-size: 12.5px; }
.gfig .s2 { fill: currentColor; fill-opacity: .85; font-size: 13px; font-weight: 500; }
.gfig .l { fill: currentColor; fill-opacity: .68; font-size: 12px; font-weight: 500; }
.gfig .lno { fill: #c2410c; font-size: 12px; font-weight: 600; }
.gfig .m { fill: currentColor; fill-opacity: .55; font: 500 10.5px var(--font-mono); letter-spacing: .1em; }
.gfig .n { fill: #1a0d05; font: 700 12.5px var(--font-head); }
.gfig .acc { fill: #FF6A1A; }
.gfig .a { stroke: currentColor; stroke-opacity: .5; stroke-width: 1.5; fill: none; }
.gfig .a.dash { stroke-dasharray: 4 4; }
.gfig .ah { fill: currentColor; fill-opacity: .55; }
.gfig .no { stroke: #c2410c; stroke-width: 1.6; stroke-dasharray: 5 4; fill: none; }
.gfig path.no:not(.nofill) { stroke-dasharray: none; stroke-width: 2; }
:root[data-theme="dark"] .gfig .lno { fill: #ff8a4c; }
:root[data-theme="dark"] .gfig .no { stroke: #ff8a4c; }
.picon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--bg-raise-2); border: 1px solid var(--line); color: var(--fg); margin-bottom: 4px; }
.picon svg { width: 22px; height: 22px; }

/* Tool logos on the Resources page (added 2026-11-26). Logo shapes from Simple Icons 16.38.1 (CC0). */
.tlogo { display: inline-grid; place-items: center; width: 30px; height: 30px; margin-right: 12px; vertical-align: middle; border-radius: 8px; border: 1px solid var(--line); background: var(--bg-raise-2); color: var(--fg); }
.tlogo svg { width: 16px; height: 16px; }
.tlogo-l { font: 700 .8rem/1 var(--font-head); color: var(--soft); }
.prose td:first-child { white-space: nowrap; }

/* Scroll statement and wide closing button (added 2026-11-26) */
.why .label { margin-bottom: 18px; }
.statement { max-width: 22ch; font-size: clamp(2rem, 5.2vw, 4.1rem); line-height: 1.06; letter-spacing: -0.03em; text-wrap: pretty; }
.statement .hot { color: var(--accent); }
.js-motion .statement .w { opacity: .26; transition: opacity .35s ease; }
.js-motion .statement .w.on { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .statement .w { opacity: 1 !important; } }
.why-notes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 40px; margin-top: clamp(32px, 5vw, 56px); max-width: 980px; }
.why-notes p { color: var(--soft); font-size: 1.08rem; }
@media (max-width: 720px) { .why-notes { grid-template-columns: 1fr; } }
.btn-wide { display: flex; justify-content: space-between; width: 100%; margin-top: clamp(28px, 4vw, 44px); padding: clamp(20px, 2.6vw, 30px) clamp(22px, 3vw, 36px); border-radius: 18px; font: 800 clamp(1.25rem, 2.6vw, 1.9rem)/1.1 var(--font-head); letter-spacing: -0.02em; }
.btn-wide .btn-arrow { transition: transform .2s ease; }
.btn-wide:hover .btn-arrow { transform: translateX(6px); }

/* Glossary page (added 2026-11-26): cards, three per row */
.g-track { margin-top: clamp(36px, 6vw, 64px); }
.filters + .g-track { margin-top: 0; }
.g-track h2 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 20px; }
.g-count { font: 500 .72rem/1 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.g-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.g-card { display: flex; flex-direction: column; gap: 12px; padding: 24px; border: 1px solid var(--line); border-radius: 18px; background: var(--bg-raise); scroll-margin-top: 96px; }
.g-grid > .g-card:nth-child(even) { background: var(--card-alt); }
.g-card[hidden] { display: none; }
.g-num { font: 500 .72rem/1 var(--font-mono); letter-spacing: .14em; color: var(--muted); }
.g-card h3 { font-size: 1.3rem; line-height: 1.15; letter-spacing: -0.02em; }
.g-card p { margin: 0; }
.g-def { color: var(--soft); font-size: .98rem; line-height: 1.55; }
.g-catch { margin-top: auto !important; padding: 12px 14px; border-left: 3px solid var(--accent); background: var(--bg); border-radius: 0 10px 10px 0; font-size: .92rem; line-height: 1.5; }
.g-catch b { display: block; margin-bottom: 4px; font: 500 .68rem/1.4 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.g-more { font-size: .92rem; }
.g-more a { font-weight: 600; }
@media (max-width: 960px) { .g-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .g-grid { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: no-preference) { .g-card { transition: transform .2s ease, box-shadow .2s ease; } .g-card:hover { transform: translateY(-3px); box-shadow: 0 16px 32px -22px rgba(20,17,16,.45); } }

/* Waiting-list form on the Workshop page (added 2026-11-26) */
.join { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 24px 48px; align-items: start; margin-top: clamp(40px, 6vw, 72px); padding-top: clamp(32px, 5vw, 56px); border-top: 1px solid var(--line); scroll-margin-top: 96px; }
.join-text h2 { margin-block: 12px 14px; }
.join-text p:last-child { color: var(--soft); font-size: 1.08rem; }
.join-form { border: 1px solid var(--line); border-radius: 18px; background: #fff; padding: 8px; }
.join-form iframe { display: block; width: 100%; height: 340px; border: 0; border-radius: 12px; background: #fff; }
.join-form .form-note { margin: 8px 10px 6px; font-size: .86rem; color: #5b554e; }
.join-form .form-note a { color: #141110; }
@media (max-width: 820px) { .join { grid-template-columns: 1fr; } }
