/* All Avatars — field-guide interface (ADR 0004).
   The generated avatars carry the colour; the interface stays calm around
   them. System fonts only: sans for interface text, serif for headings. */

:root {
  --bg: #f7f3ea;
  --surface: #fffdf8;
  --tint: #efe9dc;
  --ink: #1b1a17;
  --muted: #615c52;
  --line: #ddd5c4;
  --accent: #c2410c;
  --accent-hover: #9a3412;
  --accent-ink: #ffffff;
  --dark: #14141b;
  --dark-raised: #1e1e28;
  --dark-line: #2c2c3a;
  --dark-muted: #b9b9cc;
  --dark-faint: #8d8da3;
  --accent-on-dark: #ff8a5b;
  --radius: 22px;
  --tile-radius: 24%;
  --shadow: 0 1px 2px rgb(20 20 27 / 6%), 0 14px 36px rgb(20 20 27 / 9%);
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 1rem; }
body { min-width: 20rem; margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 1rem; line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-underline-offset: 0.18em; }
button { font: inherit; color: inherit; }
svg { display: block; width: 100%; height: auto; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
main:focus { outline: none; }

h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 500; letter-spacing: -0.02em; line-height: 1.02; }
h1 { font-size: clamp(2.6rem, 6vw, 5rem); }
h2 { font-size: clamp(2rem, 3.6vw, 3rem); }
h1 em, h2 em { font-style: italic; color: var(--accent); }
p { margin: 0; }

.wrap { width: min(100% - 2rem, 76rem); margin-inline: auto; }
.narrow { width: min(100% - 2rem, 48rem); }
.intro { max-width: 36rem; color: var(--muted); font-size: clamp(1.05rem, 1.4vw, 1.22rem); line-height: 1.5; }

.skip-link { position: fixed; z-index: 30; top: 0.75rem; left: 0.75rem; padding: 0.65rem 1rem; border-radius: 0.6rem; background: var(--dark); color: #fff; font-weight: 700; transform: translateY(-200%); }
.skip-link:focus { transform: translateY(0); }

/* ---------- header and footer ---------- */
.site-header { border-bottom: 1px solid var(--line); background: var(--bg); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.25rem; }
.brand { display: inline-flex; white-space: nowrap; align-items: center; gap: 0.65rem; font-family: var(--serif); font-size: 1.25rem; font-weight: 600; letter-spacing: -0.01em; text-decoration: none; }
.brand-stack { display: flex; }
.brand-stack span { width: 1.85rem; height: 1.85rem; overflow: hidden; border: 2px solid var(--bg); border-radius: 50%; }
.brand-stack span + span { margin-left: -0.6rem; }
.primary-nav { display: flex; gap: clamp(0.9rem, 2.4vw, 2rem); }
.primary-nav a { color: var(--muted); font-size: 0.95rem; font-weight: 600; text-decoration: none; }
.primary-nav a:hover, .primary-nav a[aria-current] { color: var(--ink); }
.primary-nav a[aria-current] { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; }

.site-footer { padding-block: 3rem; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.92rem; }
.footer-inner { display: grid; grid-template-columns: 1fr auto; gap: 1.5rem; }
.site-footer strong { color: var(--ink); font-family: var(--serif); font-size: 1.1rem; font-weight: 600; }
.site-footer p { margin-top: 0.35rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.footer-note { grid-column: 1 / -1; font-size: 0.82rem; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; min-height: 2.75rem; padding: 0.55rem 1.15rem; border: 1px solid transparent; border-radius: 99px; background: none; font-size: 0.95rem; font-weight: 700; text-decoration: none; cursor: pointer; transition: background-color 150ms, border-color 150ms, transform 150ms; }
.btn:active { transform: scale(0.97); }
.btn-lg { min-height: 3.25rem; padding-inline: 1.5rem; font-size: 1.02rem; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost { border-color: var(--line); background: var(--surface); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-text { padding-inline: 0.6rem; text-decoration: underline; text-underline-offset: 0.2em; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.7rem; margin-top: 2rem; }

/* ---------- sections ---------- */
.sec { padding-block: clamp(4rem, 8vw, 6.5rem); }
.sec-tight { padding-block: 0 4rem; }
.sec-tint { background: var(--tint); }
.sec-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 0.5rem 2rem; margin-bottom: 2rem; padding-bottom: 1rem; border-bottom: 2px solid var(--ink); }
.sec-head p { color: var(--muted); font-family: var(--serif); font-size: 1.1rem; font-style: italic; }
.note { padding: 1.25rem 1.5rem; border: 1px solid var(--line); border-radius: var(--radius); color: var(--muted); }
.note strong { color: var(--ink); }
.note a { color: var(--accent); font-weight: 700; text-decoration: none; }

/* ---------- dark heroes (home and maker) ---------- */
.dark { background: var(--dark); color: #fff; }
.dark .intro { color: var(--dark-muted); }
.dark h1 em, .dark h2 em { color: var(--accent-on-dark); }
.dark .btn-text { color: #fff; }
.dark .btn-ghost { border-color: #3a3a4a; background: transparent; color: #fff; }
.dark .btn-ghost:hover { border-color: #fff; }

.home-hero { padding-block: clamp(3rem, 6vw, 5.5rem); }
.home-hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.home-hero h1 { max-width: 11ch; margin-bottom: 1.5rem; font-size: clamp(2.8rem, 6.2vw, 5.4rem); line-height: 0.98; }

.plate { margin: 0; padding: clamp(0.9rem, 2vw, 1.4rem); border: 1px solid var(--dark-line); background: var(--surface); color: var(--ink); box-shadow: 0 30px 80px rgb(0 0 0 / 45%); transform: rotate(1.2deg); }
.plate-grid { display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(2, 1fr); gap: 0.6rem; }
.plate-grid > span { overflow: hidden; border-radius: 10%; }
.plate-main { grid-column: span 2; grid-row: span 2; }
.plate figcaption { display: flex; gap: 0.75rem; margin-top: 1rem; color: var(--muted); font-family: var(--serif); font-size: 0.98rem; font-style: italic; }
.plate figcaption span { flex: none; color: var(--ink); font-style: normal; font-weight: 600; }

.studio { padding-block: clamp(2.5rem, 5vw, 4.5rem); }
.studio-grid { display: grid; grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.studio h1 { margin-bottom: 1.25rem; font-size: clamp(2.8rem, 6vw, 5rem); }
.for-label { margin: 2.25rem 0 0.75rem; color: var(--dark-faint); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip { display: inline-flex; align-items: center; gap: 0.35rem; min-height: 2.6rem; padding: 0.45rem 1.05rem; border: 1px solid #3a3a4a; border-radius: 99px; color: #fff; font-size: 0.95rem; font-weight: 650; text-decoration: none; transition: background-color 150ms, border-color 150ms; }
.chip:hover { border-color: #fff; background: #23232e; }
.chip-out { border-style: dashed; }

/* ---------- generator ---------- */
.gen { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; padding: clamp(1.25rem, 3vw, 2.25rem); border: 1px solid var(--line); border-radius: calc(var(--radius) + 8px); background: var(--surface); }
.gen-stage { display: grid; grid-template-columns: 1fr auto; gap: 1.25rem; align-items: end; }
.gen-preview { overflow: hidden; border-radius: var(--tile-radius); aspect-ratio: 1; }
.gen-preview.is-pop svg { animation: pop 320ms cubic-bezier(.2, 1.4, .4, 1); }
@keyframes pop { from { transform: scale(0.9); opacity: 0.4; } to { transform: scale(1); opacity: 1; } }
.gen-crops { display: grid; justify-items: center; gap: 0.7rem; }
.gen-crop { display: block; overflow: hidden; border-radius: 50%; box-shadow: 0 0 0 3px var(--surface), 0 0 0 4px var(--line); }
.gen-crop-l { width: 4.5rem; }
.gen-crop-m { width: 2.75rem; }
.gen-crop-s { width: 1.75rem; }
.gen-crops small { max-width: 5.5rem; color: var(--muted); font-size: 0.72rem; line-height: 1.25; text-align: center; }
.gen-panel { display: grid; gap: 1.25rem; }
.gen-styles { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.gen-styles button { min-height: 2.5rem; padding: 0.4rem 1rem; border: 1px solid var(--line); border-radius: 99px; background: var(--surface); font-size: 0.92rem; font-weight: 650; cursor: pointer; }
.gen-styles button:hover { border-color: var(--ink); }
.gen-styles button[aria-checked="true"] { border-color: var(--ink); background: var(--ink); color: #fff; }
.gen-initials { display: inline-flex; align-items: center; gap: 0.75rem; font-weight: 650; }
.gen-initials[hidden] { display: none; }
.gen-initials input { width: 5rem; padding: 0.55rem 0.8rem; border: 1px solid var(--line); border-radius: 12px; font: inherit; font-family: var(--serif); font-size: 1.2rem; text-transform: uppercase; }
.gen-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.gen-variants { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0.5rem; }
.gen-variant { overflow: hidden; padding: 0; border: 0; border-radius: var(--tile-radius); background: var(--tint); cursor: pointer; transition: transform 150ms; aspect-ratio: 1; }
.gen-variant:hover { transform: translateY(-3px); }
.gen-note { color: var(--muted); font-size: 0.85rem; }
.no-js .gen-actions, .no-js .gen-styles, .no-js .gen-variants { display: none; }

.dark .gen { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); border: 0; background: var(--dark-raised); box-shadow: 0 0 0 1px var(--dark-line), 0 30px 80px rgb(0 0 0 / 45%); color: #fff; }
.dark .gen-styles button { border-color: #3a3a4a; background: transparent; color: #fff; }
.dark .gen-styles button:hover { border-color: #fff; }
.dark .gen-styles button[aria-checked="true"] { border-color: #fff; background: #fff; color: var(--dark); }
.dark .gen-crop { box-shadow: 0 0 0 3px var(--dark-raised), 0 0 0 4px #3a3a4a; }
.dark .gen-crops small, .dark .gen-note { color: var(--dark-faint); }
.dark .gen-variant { background: #2a2a36; }
.dark .gen-initials input { border-color: #3a3a4a; background: var(--dark); color: #fff; }

/* ---------- need routes (editorial index) ---------- */
.route { display: grid; grid-template-columns: 4.5rem minmax(0, 1fr) auto; gap: 1.5rem; align-items: center; padding-block: 1.1rem; border-bottom: 1px solid var(--line); text-decoration: none; transition: background-color 160ms; }
.route:hover { background: linear-gradient(90deg, transparent, rgb(194 65 12 / 6%), transparent); }
.route:hover .route-text strong { color: var(--accent); }
.route-art { display: block; width: 4.5rem; height: 4.5rem; overflow: hidden; border-radius: 50%; }
.route-text { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 0.25rem 2rem; align-items: baseline; }
.route-text strong { font-family: var(--serif); font-size: 1.75rem; font-weight: 500; letter-spacing: -0.015em; line-height: 1.2; }
.route-text > span { color: var(--muted); font-size: 0.95rem; line-height: 1.45; }
.route-go { color: var(--accent); font-size: 0.9rem; font-weight: 700; }
.photo-art { position: relative; display: block; width: 100%; height: 100%; }
.photo-art > svg { filter: grayscale(1) contrast(1.1); }
.photo-art > span { position: absolute; inset: 0; clip-path: polygon(55% 0, 100% 0, 100% 100%, 35% 100%); }

/* ---------- style specimens ---------- */
.specimens { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.25rem; }
.specimen { display: grid; gap: 0.9rem; text-decoration: none; }
.specimen-art { overflow: hidden; border-radius: 12%; transition: transform 200ms; }
.specimen:hover .specimen-art { transform: rotate(-2deg) scale(1.02); }
.specimen-meta { display: grid; gap: 0.1rem; }
.specimen-meta span:first-child { color: var(--muted); font-family: var(--serif); font-size: 0.85rem; font-style: italic; }
.specimen-meta strong { font-family: var(--serif); font-size: 1.4rem; font-weight: 500; }
.specimen-meta span:last-child { color: var(--muted); font-size: 0.88rem; }
.more { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.25rem; margin-top: 2.5rem; color: var(--muted); }

/* ---------- guides ---------- */
.guides { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; }
.guide { display: grid; gap: 0.5rem; align-content: start; text-decoration: none; }
.guide-tag { color: var(--accent); font-size: 0.78rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }
.guide strong, .guide h2 { font-family: var(--serif); font-size: 1.55rem; font-weight: 500; letter-spacing: -0.015em; line-height: 1.15; }
.guide > span:last-child, .guide p { color: var(--muted); }
.guides .guide:first-child strong, .guides .guide:first-child h2 { font-size: 2.2rem; }
a.guide:hover strong { text-decoration: underline; text-decoration-thickness: 1px; }
.status { justify-self: start; padding: 0.15rem 0.6rem; border: 1px solid var(--line); border-radius: 99px; color: var(--muted); font-size: 0.78rem; font-weight: 700; }

/* ---------- tips ---------- */
.tips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }
.tip { display: grid; gap: 0.75rem; align-content: start; }
.tip-art { width: 4.5rem; overflow: hidden; border-radius: 50%; }
.tip strong, .tip h2, .tip h3 { font-family: var(--serif); font-size: 1.55rem; font-weight: 500; letter-spacing: -0.015em; line-height: 1.15; }
.tip p { color: var(--muted); }

/* ---------- secondary pages ---------- */
.page-head { padding-block: clamp(3.5rem, 7vw, 5.5rem) clamp(2.5rem, 5vw, 3.5rem); border-bottom: 1px solid var(--line); }
.page-head-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2rem; align-items: end; }
.page-head h1 { max-width: 14ch; margin-bottom: 1.25rem; }
.page-head-art { display: flex; gap: 0.6rem; }
.page-head-art span { width: clamp(4rem, 8vw, 6rem); overflow: hidden; border-radius: var(--tile-radius); }
.page-head-art span:nth-child(2) { transform: translateY(-1rem) rotate(4deg); }
.page-head-art span:nth-child(1) { transform: rotate(-3deg); }
.prose { display: grid; gap: 1rem; max-width: 40rem; font-size: 1.1rem; }
.prose h2 { margin-top: 1.5rem; font-size: clamp(1.7rem, 2.6vw, 2.2rem); }
.prose h2:first-child { margin-top: 0; }
.prose p { color: var(--muted); }
.prose a { color: var(--accent); font-weight: 600; }
.cards3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.card { display: grid; gap: 0.75rem; align-content: start; padding: 1.25rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); text-decoration: none; }
.card-art { display: block; width: 6rem; overflow: hidden; border-radius: var(--tile-radius); }
.card h2 { font-size: 1.6rem; }
.card p { color: var(--muted); }
a.card { transition: transform 160ms, box-shadow 160ms; }
a.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card-go { margin-top: 0.25rem; color: var(--accent); font-size: 0.9rem; font-weight: 700; }
.tool-index-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: 1.25rem; }
.lost { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 18rem); gap: 3rem; align-items: center; }
.lost-art { overflow: hidden; border-radius: var(--tile-radius); transform: rotate(-4deg); }

/* ---------- themed makers (ADR 0005) ---------- */
.crumb { margin-bottom: 1.25rem; color: var(--dark-faint); font-size: 0.9rem; font-weight: 650; }
.crumb a { color: var(--dark-muted); text-decoration: none; }
.crumb a:hover { color: #fff; text-decoration: underline; }
.theme-gallery { display: grid; grid-template-columns: repeat(8, 1fr); gap: 0.75rem; }
.theme-tile { display: block; overflow: hidden; border-radius: var(--tile-radius); transition: transform 160ms; }
.theme-tile:hover { transform: translateY(-3px) rotate(-2deg); }
.good-for { margin-top: 1.75rem; color: var(--muted); }
.good-for strong { margin-right: 0.5rem; color: var(--ink); }
.card h3 { font-size: 1.6rem; }
.theme-links { display: grid; gap: 0.65rem; margin: 0; padding: 0; list-style: none; }
.theme-links a { display: flex; align-items: center; gap: 0.75rem; font-family: var(--serif); font-size: 1.25rem; text-decoration: none; }
.theme-links a:hover { color: var(--accent); }
.theme-links span { flex: none; width: 2.75rem; overflow: hidden; border-radius: 50%; }
.themes4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr)); gap: 1.25rem; }
.theme-card-art { display: block; overflow: hidden; border-radius: var(--tile-radius); }

/* ---------- platform makers (ADR 0006) ---------- */
.facts-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 3rem; align-items: start; }
.facts-grid .sec-head { display: grid; gap: 1rem; margin: 0; }
.facts-grid .sec-head p { margin: 0; font-family: var(--sans); font-style: normal; }
.facts-grid .facts-summary { color: var(--ink); font-size: 1.15rem; }
.facts-grid .checked { color: var(--muted); font-size: 0.9rem; }
.facts { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.facts li { display: grid; gap: 0.35rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.facts p { margin: 0; }
.fact-sources { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; }
.facts a { color: var(--accent); font-size: 0.88rem; font-weight: 700; text-decoration: none; }
.facts a:hover, .facts-grid .checked a:hover { text-decoration: underline; }
.facts-grid .checked a { color: var(--accent); font-weight: 700; text-decoration: none; }

/* ---------- reviewed tool guides ---------- */
.crumb-light { margin-bottom: 1rem; color: var(--muted); }
.crumb-light a { color: var(--ink); }
.tool-guide-head h1 { max-width: 12ch; }
.sec-tight-top { padding-block: clamp(3rem, 6vw, 4.5rem); }
.guide-answer-grid, .guide-method-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 3rem; align-items: start; }
.guide-answer-grid h2, .guide-method-grid h2 { margin-top: 0.6rem; font-size: clamp(1.8rem, 3vw, 2.6rem); }
.guide-answer { display: grid; gap: 1rem; font-size: 1.15rem; }
.guide-answer .checked { color: var(--muted); font-size: 0.9rem; }
.guide-answer .checked a { color: var(--accent); font-weight: 700; text-decoration: none; }
.tool-list { display: grid; gap: 1.5rem; }
.tool-entry { display: grid; gap: 1.25rem; padding: clamp(1.25rem, 3vw, 2rem); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.tool-entry-head { display: flex; justify-content: space-between; gap: 1.5rem; align-items: start; }
.tool-entry-head > div { display: grid; gap: 0.25rem; }
.tool-entry-head h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); }
.tool-entry-head p { max-width: 44rem; color: var(--muted); }
.tool-audience { color: var(--muted); }
.tool-audience strong { color: var(--ink); }
.tool-tags { display: flex; flex-wrap: wrap; gap: 0.45rem; margin: 0; padding: 0; list-style: none; }
.tool-tags li { padding: 0.2rem 0.65rem; border: 1px solid var(--line); border-radius: 99px; color: var(--muted); font-size: 0.82rem; font-weight: 650; }
.tool-facts { display: grid; grid-template-columns: 1fr 1fr; margin: 0; border-top: 1px solid var(--line); }
.tool-facts > div { display: grid; gap: 0.3rem; align-content: start; padding: 1rem 1rem 1rem 0; border-bottom: 1px solid var(--line); }
.tool-facts > div:nth-child(even) { padding-inline: 1rem 0; border-left: 1px solid var(--line); }
.tool-facts dt { font-size: 0.78rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }
.tool-facts dd { margin: 0; color: var(--muted); }
.tool-facts a { display: table; margin-top: 0.35rem; color: var(--accent); font-size: 0.84rem; font-weight: 700; text-decoration: none; }
.tool-facts a:hover { text-decoration: underline; }
.tool-facts .fact-unclear dt, .tool-facts .fact-varies dt, .tool-facts .fact-limited dt { color: var(--accent-hover); }
.tool-review { color: var(--muted); font-size: 0.82rem; }
.guide-method-grid .prose { max-width: none; }
.guide-method-grid .prose ul { display: grid; gap: 0.75rem; margin: 0; padding-left: 1.25rem; color: var(--muted); }
.alternative-note { display: flex; justify-content: space-between; gap: 1.5rem; align-items: center; }
.alternative-note > div { display: grid; gap: 0.35rem; max-width: 48rem; }
.alternative-note p { margin: 0; }
.alternative-note .btn-primary { color: var(--accent-ink); }

/* ---------- rights guide ---------- */
.rights-licence { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 3rem; padding: clamp(1.5rem, 4vw, 2.5rem); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.rights-licence h2 { max-width: 14ch; margin-top: 0.6rem; font-size: clamp(1.9rem, 3.4vw, 2.8rem); }
.rights-licence > div:last-child { display: grid; gap: 1rem; align-content: start; font-size: 1.08rem; }
.rights-licence .rights-limit { color: var(--muted); font-size: 0.95rem; }
.rights-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.rights-card { display: grid; gap: 0.8rem; align-content: start; padding: clamp(1.25rem, 3vw, 1.75rem); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.rights-card h2 { font-size: clamp(1.6rem, 2.5vw, 2.1rem); }
.rights-card p { color: var(--muted); }
.rights-card a, .source-list a { color: var(--accent); font-weight: 700; text-decoration: none; }
.rights-card a:hover, .source-list a:hover { text-decoration: underline; }
.rights-checklist ol { display: grid; gap: 0.9rem; margin: 0; padding-left: 1.4rem; color: var(--muted); }
.rights-checklist strong { color: var(--ink); }
.source-list strong { font-size: 0.9rem; }

/* ---------- responsive ---------- */
@media (max-width: 64rem) {
  .specimens { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 52rem) {
  .home-hero-grid, .studio-grid, .gen, .dark .gen, .lost, .facts-grid, .guide-answer-grid, .guide-method-grid, .rights-licence, .rights-grid { grid-template-columns: 1fr; }
  .guides, .tips, .cards3 { grid-template-columns: 1fr; gap: 1.75rem; }
  .theme-gallery { grid-template-columns: repeat(4, 1fr); }
  .facts { border-top: 0; }
  .route-text { grid-template-columns: 1fr; }
  .plate { transform: none; }
  .page-head-grid { grid-template-columns: 1fr; }
  .lost-art { width: 12rem; }
  .tool-entry-head { display: grid; }
  .tool-entry-head .btn { justify-self: start; }
  .tool-facts { grid-template-columns: 1fr; }
  .tool-facts > div:nth-child(even) { padding-inline: 0; border-left: 0; }
  .alternative-note { align-items: start; flex-direction: column; }
}

@media (max-width: 40rem) {
  .header-inner { min-height: 3.75rem; }
  .header-inner { gap: 0.75rem; }
  .primary-nav { gap: 0.8rem; }
  .primary-nav a { font-size: 0.88rem; }
  .brand { gap: 0.5rem; font-size: 1.05rem; }
  .brand-stack span { width: 1.6rem; height: 1.6rem; }
  .brand-stack span:nth-child(n + 2) { display: none; }
  .route { grid-template-columns: 3.5rem minmax(0, 1fr); gap: 1rem; }
  .route-art { width: 3.5rem; height: 3.5rem; }
  .route-go { display: none; }
  .route-text strong { font-size: 1.4rem; }
  .specimens { grid-template-columns: repeat(2, 1fr); }
  .gen-stage { grid-template-columns: 1fr; }
  .gen-crops { grid-auto-flow: column; justify-content: start; align-items: center; }
  .gen-crops small { max-width: none; text-align: left; }
  .gen-variants { grid-template-columns: repeat(3, 1fr); }
  .footer-inner { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
