/* ==========================================================
   Stile condiviso dei tre siti.
   Idea: il banco di lavoro. Carta da disegno, inchiostro verde-nero,
   matita gialla, nastro di carta, e un righello come filo conduttore.
   Colori, caratteri e decorazioni arrivano dal tema scelto nel pannello (shared/theme.js).
   ========================================================== */


:root {
  /* Valori di riserva: i veri valori arrivano dal tema scelto nel pannello (vedi shared/theme.js) */
  --paper: #eeebdf; --paper-2: #e2dfd3; --sheet: #f8f6ef;
  --ink: #1b231a; --muted: #565d4c; --line: #c6bfa8;
  --accent: #3d5a35; --accent-dark: #2f4829; --accent-ink: #ffffff; --link: #3d5a35;
  --soft: #dce4cf; --hi: #f2b81f; --hi-ink: #111111; --tape: #e6cf8a;
  --field: #ffffff; --dark: #1b231a; --on-dark: #ffffff; --on-accent: #ffffff; --ok-soft: #cfe8cf;
  --radius: 4px; --sx: 3px; --display-weight: 700;
  --slab: "Zilla Slab", Rockwell, Georgia, serif;
  --sans: "Hanken Grotesk", system-ui, sans-serif;
}

*, *::before, *::after { 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-color: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-underline-offset: 0.18em; text-decoration-thickness: 1.5px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3, h4 {
  font-family: var(--slab);
  font-weight: var(--display-weight);
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 0.6em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.3rem, 7vw, 4rem); }
h2 { font-size: clamp(1.7rem, 4.6vw, 2.5rem); }
h3 { font-size: 1.4rem; }
p { margin: 0 0 1em; }
.lead { font-size: clamp(1.15rem, 2.6vw, 1.35rem); line-height: 1.5; max-width: 38em; }
.muted { color: var(--muted); }

.wrap { width: min(1080px, 100% - 2.5rem); margin-inline: auto; }
.narrow { width: min(720px, 100% - 2.5rem); margin-inline: auto; }
.section { padding: clamp(3rem, 8vw, 5.5rem) 0; }
.section + .section { padding-top: 0; }
.section-head { margin-bottom: 1.6rem; }
.section-head h2 { margin-bottom: 0.25em; }
.section-head p { color: var(--muted); max-width: 40em; margin: 0; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--paper); padding: 0.6rem 1rem; z-index: 10; }
.skip:focus { left: 0.5rem; top: 0.5rem; }

/* ---------- Testata + righello ---------- */
.site-header { background: var(--sheet); border-bottom: 1.5px solid var(--ink); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.4rem 1.5rem; padding: 0.85rem 0; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; font-family: var(--slab); font-weight: var(--display-weight); font-size: 1.3rem; color: var(--ink); text-decoration: none; letter-spacing: -0.01em; }
.brand svg { width: 2rem; height: 2rem; flex: none; }
.nav { display: flex; flex-wrap: wrap; gap: 0.2rem 1.3rem; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 0.98rem; padding: 0.3rem 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--ink); }
.ruler {
  height: 16px;
  background-image:
    linear-gradient(90deg, var(--ink) 1px, transparent 1px),
    linear-gradient(90deg, var(--ink) 1.5px, transparent 1.5px);
  background-size: 10px 7px, 50px 15px;
  background-repeat: repeat-x;
  background-position: 0 0;
  opacity: 0.75;
}

/* ---------- Bottoni ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font: inherit; font-weight: 700; line-height: 1.2; text-decoration: none; cursor: pointer;
  padding: 0.8rem 1.35rem; min-height: 3rem;
  background: var(--accent); color: var(--accent-ink);
  border: 2px solid var(--ink); border-radius: var(--radius);
  box-shadow: var(--sx) var(--sx) 0 var(--ink);
  transition: transform 0.12s, box-shadow 0.12s, background 0.12s;
}
.btn:hover { background: var(--accent-dark); color: var(--accent-ink); transform: translate(min(1px, var(--sx)), min(1px, var(--sx))); box-shadow: calc(var(--sx) - min(1px, var(--sx))) calc(var(--sx) - min(1px, var(--sx))) 0 var(--ink); }
.btn:active { transform: translate(var(--sx), var(--sx)); box-shadow: 0 0 0 var(--ink); }
.btn.secondary { background: var(--sheet); color: var(--ink); }
.btn.secondary:hover { background: var(--hi); color: var(--hi-ink); }
.btn[aria-disabled="true"], .btn:disabled { background: transparent; color: var(--muted); border-style: dashed; box-shadow: none; cursor: not-allowed; transform: none; }
.actions { display: flex; flex-wrap: wrap; gap: 0.8rem 1rem; margin-top: 1.5rem; }

/* ---------- Nastro di carta (etichette di categoria) ---------- */
.tape {
  display: inline-block; background: var(--tape); color: var(--ink);
  font-weight: 700; font-size: 0.9rem; padding: 0.28rem 1rem; margin-bottom: 1.1rem;
  transform: rotate(-1.6deg);
  clip-path: polygon(0 0, 100% 0, 98% 50%, 100% 100%, 0 100%, 2% 50%);
}

/* ---------- Hero ---------- */
.hero { padding: clamp(2.5rem, 7vw, 4.5rem) 0 clamp(3rem, 8vw, 5rem); }
.hero .wrap { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 860px) { .hero .wrap { grid-template-columns: 1.15fr 0.85fr; gap: 4rem; } }
.hero h1 { margin-bottom: 0.4em; }
.frame {
  position: relative; background: var(--sheet); padding: 0.7rem 0.7rem 2.2rem;
  border: 1px solid var(--line); transform: rotate(1.4deg);
  box-shadow: 0 1px 0 var(--line);
}
.frame::before, .frame::after {
  content: ""; position: absolute; top: -0.9rem; width: 5rem; height: 1.7rem; background: var(--tape); opacity: 0.92;
  clip-path: polygon(0 0, 100% 0, 97% 50%, 100% 100%, 0 100%, 3% 50%);
}
.frame::before { left: 8%; transform: rotate(-5deg); }
.frame::after { right: 8%; transform: rotate(4deg); }
.frame img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--paper-2); }
.frame figcaption { position: absolute; left: 0.9rem; bottom: 0.55rem; font-family: var(--slab); font-size: 1rem; color: var(--muted); }

/* ---------- Registro degli aggiornamenti ---------- */
.log { list-style: none; margin: 0; padding: 0; border-top: 1.5px solid var(--ink); }
.log-item { display: grid; grid-template-columns: 1fr 5.5rem; gap: 0.2rem 1.2rem; padding: 1.3rem 0; border-bottom: 1px solid var(--line); position: relative; }
@media (min-width: 700px) { .log-item { grid-template-columns: 9rem 1fr 8rem; gap: 1.8rem; } }
.log-date { grid-column: 1 / -1; font-weight: 600; font-size: 0.92rem; color: var(--muted); font-variant-numeric: tabular-nums; }
@media (min-width: 700px) { .log-date { grid-column: auto; padding-top: 0.4rem; } }
.log-body h3 { margin-bottom: 0.25em; }
.log-body h3 a { color: var(--ink); text-decoration: none; }
.log-body h3 a::after { content: ""; position: absolute; inset: 0; }
.log-body p { margin: 0; color: var(--muted); max-width: 40em; }
.log-item:hover h3 a { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 3px; }
.log-thumb img { width: 100%; aspect-ratio: 1; object-fit: cover; border: 1px solid var(--line); background: var(--paper-2); }
.badge { display: inline-block; background: var(--ink); color: var(--paper); font-size: 0.8rem; font-weight: 700; padding: 0.1rem 0.55rem; border-radius: 2px; margin-left: 0.5rem; vertical-align: 0.15em; }
.empty { border: 2px dashed var(--line); padding: 2rem; border-radius: var(--radius); color: var(--muted); }

/* ---------- Pannelli progetto ---------- */
.panels { display: grid; gap: 1.2rem; }
@media (min-width: 800px) { .panels { grid-template-columns: 1fr 1fr; } }
.panel { padding: clamp(1.6rem, 4vw, 2.4rem); background: var(--accent); color: var(--on-accent); border: 2px solid var(--ink); border-radius: var(--radius); display: flex; flex-direction: column; align-items: flex-start; }
.panel { --on: var(--on-accent); }
.panel:nth-child(2) { background: var(--dark); --on: var(--on-dark); color: var(--on-dark); }
.panel h3 { font-size: clamp(1.6rem, 4vw, 2rem); color: var(--on); }
.panel p { color: color-mix(in srgb, var(--on) 88%, transparent); flex: 1; }
.panel .btn { background: var(--hi); color: var(--hi-ink); border-color: var(--on); box-shadow: var(--sx) var(--sx) 0 var(--on); }
.panel .btn:hover { background: var(--on); color: var(--dark); }

/* ---------- Testo + immagine ---------- */
.split { display: grid; gap: 2rem; align-items: start; }
@media (min-width: 860px) { .split { grid-template-columns: 0.9fr 1.1fr; gap: 4rem; } .split.flip { grid-template-columns: 1.1fr 0.9fr; } }
.split img { border: 1px solid var(--line); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--paper-2); }

/* ---------- Come funziona (sequenza reale) ---------- */
.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; gap: 1.1rem; }
@media (min-width: 800px) { .steps { grid-template-columns: 1fr 1fr; gap: 1.5rem 2.5rem; } }
.steps li { counter-increment: step; display: grid; grid-template-columns: 3.4rem 1fr; gap: 1rem; align-items: start; }
.steps li::before { content: counter(step); font-family: var(--slab); font-weight: var(--display-weight); font-size: 1.9rem; line-height: 1; width: 3.4rem; height: 3.4rem; display: grid; place-items: center; background: var(--soft); border: 2px solid var(--ink); border-radius: var(--radius); }
.steps h3 { font-size: 1.25rem; margin-bottom: 0.2em; }
.steps p { margin: 0; color: var(--muted); }

/* ---------- Elenco con segni di spunta ---------- */
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.7rem; }
.checks li { position: relative; padding-left: 2rem; }
.checks li::before { content: ""; position: absolute; left: 0.1rem; top: 0.5em; width: 1rem; height: 0.55rem; border-left: 3px solid var(--accent); border-bottom: 3px solid var(--accent); transform: rotate(-45deg); }
.checks strong { font-weight: 700; }

/* ---------- Scheda tecnica / stato ---------- */
.spec { margin: 0; border-top: 1.5px solid var(--ink); }
.spec > div { display: grid; gap: 0.1rem 1.5rem; padding: 0.85rem 0; border-bottom: 1px solid var(--line); }
@media (min-width: 640px) { .spec > div { grid-template-columns: 11rem 1fr; } }
.spec dt { font-weight: 700; }
.spec dd { margin: 0; color: var(--muted); }

/* ---------- Domande frequenti ---------- */
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1.5px solid var(--ink); }
.faq summary { cursor: pointer; list-style: none; padding: 1.05rem 2.5rem 1.05rem 0; font-family: var(--slab); font-weight: var(--display-weight); font-size: 1.2rem; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0.3rem; top: 0.7rem; font-size: 1.6rem; line-height: 1; transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 1.2rem; color: var(--muted); max-width: 42em; }

/* ---------- Moduli ---------- */
.contact-grid { display: grid; gap: 2.5rem; }
@media (min-width: 860px) { .contact-grid { grid-template-columns: 0.8fr 1.2fr; gap: 4rem; } }
.contact-list { list-style: none; padding: 0; margin: 1.4rem 0 0; display: grid; gap: 0.9rem; }
.contact-list a { font-weight: 700; }
.form { background: var(--sheet); border: 2px solid var(--ink); border-radius: var(--radius); padding: clamp(1.2rem, 4vw, 2rem); display: grid; gap: 1.1rem; }
.field { display: grid; gap: 0.35rem; }
.field label, .field legend { font-weight: 700; font-size: 0.97rem; }
.field .hint { font-weight: 400; color: var(--muted); font-size: 0.9rem; }
.form input[type="text"], .form input[type="email"], .form input[type="tel"], .form select, .form textarea {
  font: inherit; color: var(--ink); width: 100%; padding: 0.7rem 0.8rem; min-height: 3rem;
  background: var(--field); border: 1.5px solid var(--ink); border-radius: var(--radius);
}
.form textarea { min-height: 7.5rem; resize: vertical; }
.form .consent { display: flex; gap: 0.7rem; align-items: flex-start; font-size: 0.93rem; color: var(--muted); }
.form .consent input { width: 1.3rem; height: 1.3rem; margin-top: 0.15rem; flex: none; accent-color: var(--accent); }
.form .note { font-size: 0.9rem; color: var(--muted); margin: 0; }
.hp { position: absolute; left: -9999px; }

/* ---------- Articoli ---------- */
.post-head { padding: clamp(2.2rem, 6vw, 4rem) 0 1.5rem; }
.post-head .meta { color: var(--muted); font-weight: 600; margin-bottom: 0.6rem; }
.post-head h1 { font-size: clamp(2rem, 6vw, 3.2rem); }
.post-cover { margin: 0 0 2rem; }
.post-cover img { width: 100%; max-height: 32rem; object-fit: cover; border: 1px solid var(--line); background: var(--paper-2); }
.prose { max-width: 40rem; }
.prose h2 { font-size: 1.7rem; margin-top: 1.8em; }
.prose h3 { margin-top: 1.5em; }
.prose img { margin: 1.6rem 0; border: 1px solid var(--line); }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li { margin-bottom: 0.35em; }
.prose blockquote { margin: 1.5rem 0; padding: 0.2rem 0 0.2rem 1.2rem; border-left: 4px solid var(--hi); color: var(--muted); }
.video { position: relative; aspect-ratio: 16 / 9; margin: 0 0 2rem; background: var(--ink); border: 2px solid var(--ink); border-radius: var(--radius); overflow: hidden; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.back { display: inline-block; margin: 2.5rem 0 4rem; font-weight: 700; }

/* ---------- Carpe koi ---------- */
.fish-grid { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr)); }
.fish { background: var(--sheet); border: 2px solid var(--ink); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.fish-photo { position: relative; }
.fish-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--paper-2); }
.fish-body { padding: 1rem 1.1rem 1.2rem; display: grid; gap: 0.3rem; }
.fish-body h3 { margin: 0; font-size: 1.3rem; }
.fish-body p { margin: 0; color: var(--muted); font-size: 0.97rem; }
.fish-meta { display: flex; justify-content: space-between; align-items: baseline; font-weight: 700; }
.pill { position: absolute; left: 0.7rem; top: 0.7rem; background: var(--sheet); border: 2px solid var(--ink); padding: 0.1rem 0.7rem; font-weight: 700; font-size: 0.88rem; border-radius: 99px; }
.pill.disponibile { background: var(--ok-soft); }
.pill.riservato { background: var(--hi); color: var(--hi-ink); }
.pill.venduto { background: var(--paper-2); color: var(--muted); }
.fish.venduto img { filter: grayscale(0.8); opacity: 0.75; }

/* ---------- Pagina di ringraziamento / vuota ---------- */
.center-page { padding: clamp(4rem, 12vw, 8rem) 0; }

/* ---------- Piè di pagina ---------- */
.site-footer { background: var(--ink); color: var(--paper); margin-top: 2rem; }
.site-footer .ruler { background-image: linear-gradient(90deg, var(--paper) 1px, transparent 1px), linear-gradient(90deg, var(--paper) 1.5px, transparent 1.5px); opacity: 0.5; }
.site-footer .wrap { display: grid; gap: 1.2rem 3rem; padding: 2.2rem 0 2.6rem; }
@media (min-width: 760px) { .site-footer .wrap { grid-template-columns: 1fr auto; align-items: end; } }
.site-footer a { color: var(--paper); }
.site-footer a:hover { color: var(--hi); }
.site-footer .foot-name { font-family: var(--slab); font-weight: var(--display-weight); font-size: 1.35rem; margin: 0 0 0.2rem; }
.site-footer p { margin: 0; color: color-mix(in srgb, var(--paper) 78%, transparent); font-size: 0.95rem; }
.foot-links { display: flex; flex-wrap: wrap; gap: 0.4rem 1.4rem; font-weight: 600; }

/* Piccoli ritocchi */
.post-head { max-width: 48rem; }

.readable > * { max-width: 40rem; }
.gallery { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr)); margin: 2.5rem 0 0; }
.gallery figure { margin: 0; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border: 1px solid var(--line); background: var(--paper-2); }
.gallery figcaption { font-size: 0.93rem; color: var(--muted); margin-top: 0.4rem; }

/* ---------- Decorazioni scelte nel pannello (attributi su <html>) ---------- */
[data-ruler="off"] .ruler { display: none; }
[data-tape="off"] .tape { transform: none; clip-path: none; border-radius: var(--radius); background: var(--soft); }
[data-tape="off"] .frame::before, [data-tape="off"] .frame::after { display: none; }
[data-frame="flat"] .frame { transform: none; }
[data-frame="plain"] .frame { transform: none; padding: 0; border: 0; background: none; box-shadow: none; }
[data-frame="plain"] .frame::before, [data-frame="plain"] .frame::after { display: none; }
[data-frame="plain"] .frame img { border-radius: var(--radius); }
[data-frame="plain"] .frame figcaption { position: static; display: block; padding-top: 0.5rem; }

/* Decorazione sotto il menu e sopra il piè di pagina: righello (predefinito), onde, scaglie, gocce, piastrelle, tratteggio.
   --rl è il colore della decorazione (scuro in alto, chiaro nel piè di pagina). */
.ruler { --rl: var(--ink); }
.site-footer .ruler { --rl: var(--paper); }
[data-ruler="onde"] .ruler, [data-ruler="scaglie"] .ruler, [data-ruler="gocce"] .ruler {
  background-image: none; background-color: var(--rl);
  -webkit-mask-repeat: repeat-x; mask-repeat: repeat-x; -webkit-mask-position: 0 0; mask-position: 0 0;
}
[data-ruler="onde"] .ruler { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='16' viewBox='0 0 32 16'%3E%3Cg fill='none' stroke='black' stroke-width='1.6'%3E%3Cpath d='M0 5 Q8 -3 16 5 T32 5'/%3E%3Cpath d='M0 12 Q8 4 16 12 T32 12'/%3E%3C/g%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='16' viewBox='0 0 32 16'%3E%3Cg fill='none' stroke='black' stroke-width='1.6'%3E%3Cpath d='M0 5 Q8 -3 16 5 T32 5'/%3E%3Cpath d='M0 12 Q8 4 16 12 T32 12'/%3E%3C/g%3E%3C/svg%3E"); -webkit-mask-size: 32px 16px; mask-size: 32px 16px; }
[data-ruler="scaglie"] .ruler { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='16' viewBox='0 0 20 16'%3E%3Cg fill='none' stroke='black' stroke-width='1.5'%3E%3Cpath d='M0 3 A10 7 0 0 0 20 3'/%3E%3Cpath d='M-10 9 A10 7 0 0 0 10 9 M10 9 A10 7 0 0 0 30 9'/%3E%3C/g%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='16' viewBox='0 0 20 16'%3E%3Cg fill='none' stroke='black' stroke-width='1.5'%3E%3Cpath d='M0 3 A10 7 0 0 0 20 3'/%3E%3Cpath d='M-10 9 A10 7 0 0 0 10 9 M10 9 A10 7 0 0 0 30 9'/%3E%3C/g%3E%3C/svg%3E"); -webkit-mask-size: 20px 16px; mask-size: 20px 16px; }
[data-ruler="gocce"] .ruler { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='16' viewBox='0 0 28 16'%3E%3Cpath fill='black' d='M14 1 C12 5 9 8 9 10.5 A5 5 0 0 0 19 10.5 C19 8 16 5 14 1Z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='16' viewBox='0 0 28 16'%3E%3Cpath fill='black' d='M14 1 C12 5 9 8 9 10.5 A5 5 0 0 0 19 10.5 C19 8 16 5 14 1Z'/%3E%3C/svg%3E"); -webkit-mask-size: 28px 16px; mask-size: 28px 16px; opacity: 0.85; }
[data-ruler="piastrelle"] .ruler {
  background-image:
    linear-gradient(90deg, var(--rl) 1.5px, transparent 1.5px),
    linear-gradient(0deg, var(--rl) 1.5px, transparent 1.5px),
    conic-gradient(color-mix(in srgb, var(--rl) 16%, transparent) 25%, transparent 0 50%, color-mix(in srgb, var(--rl) 16%, transparent) 0 75%, transparent 0);
  background-size: 16px 16px, 16px 16px, 32px 32px; background-repeat: repeat; opacity: 0.8;
}
[data-ruler="tratteggio"] .ruler {
  height: 6px; background-image: repeating-linear-gradient(90deg, var(--rl) 0 22px, transparent 22px 28px); background-size: auto; opacity: 0.8;
}
[data-tape="pill"] .tape { transform: none; clip-path: none; border-radius: 999px; background: var(--soft); padding: 0.28rem 1.1rem; }
[data-tape="pill"] .frame::before, [data-tape="pill"] .frame::after { display: none; }

/* Prima sezione su fondo scuro */
[data-hero="dark"] .hero { background: var(--dark); color: var(--on-dark); border-bottom: 1.5px solid var(--ink); }
[data-hero="dark"] .hero h1, [data-hero="dark"] .hero .lead { color: var(--on-dark); }
[data-hero="dark"] .hero .btn.secondary { background: var(--sheet); color: var(--ink); }
[data-hero="dark"] .hero .frame figcaption { color: var(--muted); }
[data-hero="dark"] .hero .checks li { color: var(--on-dark); }
[data-hero="dark"] .hero .form { color: var(--ink); }
[data-hero="dark"] .hero .form a { color: var(--link); }
[data-hero="dark"] .hero a:not(.btn) { color: var(--on-dark); }
.frame img, .split img, .post-cover img, .gallery img, .log-thumb img, .fish-photo img { border-radius: min(var(--radius), 6px); }
.field input, .field select, .field textarea { border-radius: var(--radius); }
