/*
 * One stylesheet. Brand colours arrive as custom properties from
 * site.config.js (build.js writes them into a <style> block in <head>), so
 * this file only uses the token names.
 *
 * The look: the sky above, the pet below. Every page opens on a night sky
 * band; the content sits on bright sticker cards with an ink outline and a
 * hard offset shadow. Dark mode follows the system setting.
 */

@font-face {
  font-family: 'DynaPuff';
  src: url('/fonts/dynapuff-latin-600-normal.woff2') format('woff2');
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: 'DynaPuff';
  src: url('/fonts/dynapuff-latin-700-normal.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: 'Switzer';
  src: url('/fonts/Switzer-Variable.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --f-display: 'DynaPuff', 'Trebuchet MS', system-ui, sans-serif;
  --f-body: 'Switzer', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --bg: var(--c-mist);
  --card: var(--c-paper);
  --text: var(--c-ink);
  --muted: #5B5680;
  --line: var(--c-ink);
  --shadow: var(--c-ink);
  --soft: #E6E2F6;
  --sky: var(--c-night);
  --sky-text: #F6F3FF;
  --sky-muted: #BDB6E6;
  --focus: #2F7BFF;

  --r-lg: 26px;
  --r-md: 18px;
  --r-sm: 12px;
  --pad: clamp(16px, 4vw, 32px);
  --max: 1140px;
  --ease: cubic-bezier(0.05, 0.7, 0.1, 1);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #100E24;
    --card: #1D1A38;
    --text: #F3F1FF;
    --muted: #B3AED6;
    --line: #3E3874;
    --shadow: #05040F;
    --soft: #2A2650;
    --sky: #0B0A1C;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-x: hidden;
}
img, svg, canvas { max-width: 100%; }
a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--c-brand); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
[id] { scroll-margin-top: 24px; }
h1, h2, h3, .display {
  font-family: var(--f-display);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.01em;
  text-wrap: balance;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.1rem, 1.4rem + 3.6vw, 4rem); }
h2 { font-size: clamp(1.55rem, 1.2rem + 1.6vw, 2.3rem); }
h3 { font-size: clamp(1.15rem, 1.05rem + 0.5vw, 1.35rem); font-weight: 600; }
p { margin: 0 0 1em; text-wrap: pretty; }
.muted { color: var(--muted); }
.small { font-size: 0.9rem; }
.wrap { width: min(100% - 2 * var(--pad), var(--max)); margin-inline: auto; }
.read { max-width: 68ch; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; margin: -1px; padding: 0; border: 0;
}
.skip { position: absolute; left: -999px; top: 8px; z-index: 50; background: var(--c-sun); color: var(--c-ink); padding: 8px 14px; border-radius: 10px; font-weight: 700; }
.skip:focus { left: 8px; }
.icon { width: 1.25em; height: 1.25em; flex: none; vertical-align: -0.25em; }
.glyph { width: 1em; height: 1em; fill: currentColor; flex: none; }

/* ------------------------------------------------------------------ */
/* The sky band: header plus page intro                               */
/* ------------------------------------------------------------------ */

.sky {
  position: relative;
  background: var(--sky);
  color: var(--sky-text);
  isolation: isolate;
  overflow: hidden;
  padding-bottom: clamp(40px, 7vw, 72px);
}
.sky::before {
  /* the star field: three layers of tiny dots */
  content: '';
  position: absolute; inset: 0; z-index: -1;
  background-image:
    radial-gradient(1.5px 1.5px at 12% 18%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 28% 62%, #fff 50%, transparent 51%),
    radial-gradient(2px 2px at 44% 30%, #FFE9A8 50%, transparent 51%),
    radial-gradient(1px 1px at 61% 12%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 72% 48%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 86% 22%, #fff 50%, transparent 51%),
    radial-gradient(2px 2px at 93% 70%, #FFD0DD 50%, transparent 51%),
    radial-gradient(1px 1px at 6% 84%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 52% 88%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 36% 8%, #fff 50%, transparent 51%);
  background-size: 420px 300px;
  opacity: 0.85;
}
.sky::after {
  /* the horizon glow */
  content: '';
  position: absolute; left: -10%; right: -10%; bottom: -120px; height: 240px; z-index: -1;
  background: radial-gradient(closest-side, color-mix(in oklab, var(--c-brand) 38%, transparent), transparent);
  opacity: 0.55;
}
.sky a { color: inherit; }
.sky .constellation-bg {
  position: absolute; right: -40px; top: 40px; width: min(52vw, 520px); z-index: -1; opacity: 0.35;
}

.site-header { display: flex; align-items: center; gap: 12px; padding-block: 16px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--f-display); font-weight: 700; font-size: 1.35rem; text-decoration: none; }
.logo svg { width: 36px; height: 36px; }
.site-nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.site-nav a { text-decoration: none; padding: 8px 12px; border-radius: 999px; font-weight: 600; font-size: 0.98rem; color: var(--sky-muted); }
.site-nav a:hover, .site-nav a[aria-current='page'] { color: var(--sky-text); background: rgba(255, 255, 255, 0.08); }
.site-nav .btn { margin-left: 8px; color: var(--c-ink); }
.menu { display: none; margin-left: auto; position: relative; }
.menu summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; padding: 10px 14px; border: 2px solid rgba(255,255,255,.25); border-radius: 999px; font-weight: 700; min-height: 44px; }
.menu summary::-webkit-details-marker { display: none; }
.menu[open] summary { background: rgba(255,255,255,.1); }
.menu-panel {
  position: absolute; right: 0; top: calc(100% + 10px); z-index: 40; width: min(86vw, 320px);
  background: var(--card); color: var(--text); border: 2px solid var(--line); border-radius: var(--r-md);
  box-shadow: 5px 5px 0 var(--shadow); padding: 10px; display: grid; gap: 4px;
  animation: pop 0.28s var(--ease);
}
.menu-panel a { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 12px; text-decoration: none; font-weight: 600; min-height: 48px; }
.menu-panel a:hover { background: var(--soft); }
/* Transform only. Animating opacity here would promote the panel to its own
 * layer inside the header and can leave it drawn behind the page. */
@keyframes pop { from { transform: translateY(-6px) scale(0.98); } to { transform: none; } }
@media (max-width: 860px) {
  .site-nav { display: none; }
  .menu { display: block; }
}

.page-intro { padding-top: clamp(20px, 5vw, 56px); }
.page-intro p.lede { font-size: clamp(1.08rem, 1rem + 0.4vw, 1.3rem); color: var(--sky-muted); max-width: 60ch; }
.crumbs { font-size: 0.9rem; color: var(--sky-muted); margin-bottom: 14px; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 0.85rem; letter-spacing: 0.02em; color: var(--c-sun); margin-bottom: 10px; }

/* ------------------------------------------------------------------ */
/* Stickers, buttons, chips                                           */
/* ------------------------------------------------------------------ */

.card {
  background: var(--card);
  color: var(--text);
  border: 2px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: 5px 5px 0 var(--shadow);
  padding: clamp(18px, 3.5vw, 30px);
}
.card + .card { margin-top: 22px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 700 1.02rem/1.2 var(--f-body);
  background: var(--c-brand); color: var(--c-ink);
  border: 2px solid var(--c-ink); border-radius: 999px;
  padding: 12px 20px; min-height: 48px;
  box-shadow: 3px 3px 0 var(--c-ink);
  text-decoration: none; cursor: pointer;
  transition: transform 0.12s var(--ease), box-shadow 0.12s var(--ease);
}
.btn:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--c-ink); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--c-ink); }
.btn.sun { background: var(--c-sun); }
.btn.plain { background: var(--card); color: var(--text); border-color: var(--line); box-shadow: 3px 3px 0 var(--shadow); }
.btn.big { font-size: 1.15rem; padding: 16px 26px; min-height: 56px; }
.btn[disabled] { opacity: 0.6; cursor: progress; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px; border-radius: 999px; font-weight: 700; font-size: 0.9rem;
  border: 2px solid var(--c-ink); color: var(--c-ink); background: var(--c-sun);
  text-decoration: none; white-space: nowrap;
}
.chip.fire { background: var(--c-fire); }
.chip.earth { background: color-mix(in oklab, var(--c-earth) 55%, white); }
.chip.air { background: color-mix(in oklab, var(--c-air) 70%, white); }
.chip.water { background: color-mix(in oklab, var(--c-water) 45%, white); }
.chip.ghost { background: transparent; color: inherit; border-color: currentColor; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }

.el-fire { --el: var(--c-fire); }
.el-earth { --el: var(--c-earth); }
.el-air { --el: var(--c-air); }
.el-water { --el: var(--c-water); }

/* ------------------------------------------------------------------ */
/* Layout pieces                                                      */
/* ------------------------------------------------------------------ */

main { display: block; }
.section { padding-block: clamp(36px, 6vw, 72px); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.section-head h2 { margin: 0; }
.lift { margin-top: calc(-1 * clamp(28px, 5vw, 48px)); position: relative; z-index: 2; }
.grid { display: grid; gap: 18px; }
.grid.two { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.grid.three { grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }

/* Sign tiles */
.sign-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
@media (max-width: 420px) { .sign-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } }
.sign-tile {
  position: relative; display: grid; gap: 4px; justify-items: start;
  background: var(--card); border: 2px solid var(--line); border-radius: var(--r-md);
  box-shadow: 4px 4px 0 var(--shadow); padding: 14px 14px 12px; text-decoration: none;
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease);
  overflow: hidden;
}
.sign-tile:hover { transform: translate(-2px, -3px) rotate(-1deg); box-shadow: 6px 7px 0 var(--shadow); text-decoration: none; }
.sign-tile .badge { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--el); color: var(--c-ink); border: 2px solid var(--c-ink); }
.sign-tile .badge .glyph { width: 22px; height: 22px; }
.sign-tile strong { font-family: var(--f-display); font-size: 1.2rem; font-weight: 700; margin-top: 6px; }
.sign-tile span { font-size: 0.85rem; color: var(--muted); line-height: 1.3; }
.sign-tile .mini-const { position: absolute; right: -6px; top: -6px; width: 72px; opacity: 0.35; color: var(--el); }

/* Species doors */
.species-doors { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); }
.door { display: flex; align-items: center; gap: 12px; padding: 16px; border-radius: var(--r-md); border: 2px solid var(--line); background: var(--card); box-shadow: 4px 4px 0 var(--shadow); text-decoration: none; font-weight: 700; font-family: var(--f-display); font-size: 1.15rem; }
.door .icon { width: 34px; height: 34px; padding: 6px; border-radius: 12px; background: var(--c-sun); color: var(--c-ink); border: 2px solid var(--c-ink); box-sizing: content-box; }
.door:hover { transform: translate(-1px, -2px); }

/* ------------------------------------------------------------------ */
/* The chart form                                                     */
/* ------------------------------------------------------------------ */

.hero { padding-top: clamp(16px, 4vw, 40px); display: grid; gap: clamp(22px, 4vw, 48px); grid-template-columns: 1fr; align-items: start; }
@media (min-width: 980px) { .hero { grid-template-columns: 1.05fr 1fr; align-items: center; } }
.hero h1 { font-size: clamp(2.4rem, 1.5rem + 4.4vw, 4.6rem); }
.hero h1 .pop { color: var(--c-sun); }
.hero .lede { font-size: clamp(1.1rem, 1rem + 0.5vw, 1.35rem); color: var(--sky-muted); max-width: 46ch; }
.hero-points { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 8px; color: var(--sky-muted); }
.hero-points li { display: flex; gap: 10px; align-items: center; }
.hero-points .icon { color: var(--c-sun); }

.chart-form { display: grid; gap: 18px; }
.chart-form fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.chart-form legend, .field > label, .label { display: block; font-weight: 700; margin-bottom: 8px; font-size: 1rem; }
.field { display: grid; gap: 0; min-width: 0; }
.hint { font-size: 0.88rem; color: var(--muted); margin-top: 6px; }
input[type='text'], input[type='email'], input[type='date'], input[type='month'], select, textarea {
  width: 100%; font: 500 1.05rem/1.3 var(--f-body); color: var(--text);
  background: var(--card); border: 2px solid var(--line); border-radius: var(--r-sm);
  padding: 12px 14px; min-height: 50px; font-size: max(16px, 1.05rem);
}
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-position: calc(100% - 20px) 55%, calc(100% - 14px) 55%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }

.species-pick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 560px) { .species-pick { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.species-pick label { position: relative; cursor: pointer; }
.species-pick input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.species-pick span {
  display: grid; justify-items: center; gap: 4px; padding: 10px 4px 8px; border-radius: 16px;
  border: 2px solid var(--line); background: var(--card); font-weight: 700; font-size: 0.9rem;
  transition: transform 0.15s var(--ease), background 0.15s;
}
.species-pick .icon { width: 30px; height: 30px; }
.species-pick input:checked + span { background: var(--c-sun); color: var(--c-ink); border-color: var(--c-ink); box-shadow: 3px 3px 0 var(--c-ink); transform: translate(-1px, -1px); }
.species-pick input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }

.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg span { display: inline-flex; align-items: center; min-height: 42px; padding: 8px 14px; border-radius: 999px; border: 2px solid var(--line); font-weight: 600; font-size: 0.95rem; background: var(--card); cursor: pointer; }
.seg input:checked + span { background: var(--c-ink); color: #fff; border-color: var(--c-ink); }
@media (prefers-color-scheme: dark) { .seg input:checked + span { background: var(--c-sun); color: var(--c-ink); } }
.seg input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }

.photo-drop { display: flex; align-items: center; gap: 14px; padding: 12px; border: 2px dashed var(--line); border-radius: var(--r-md); cursor: pointer; background: var(--soft); }
.photo-drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.photo-drop:focus-within { outline: 3px solid var(--focus); outline-offset: 2px; }
.photo-thumb { width: 64px; height: 64px; border-radius: 50%; border: 2px solid var(--line); background: var(--card) center/cover no-repeat; display: grid; place-items: center; flex: none; color: var(--muted); }
.photo-thumb .icon { width: 28px; height: 28px; }
.photo-drop.has-photo .photo-thumb .icon { display: none; }
.two-col { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .two-col { grid-template-columns: 1fr 1fr; } }
.form-note { font-size: 0.85rem; color: var(--muted); display: flex; gap: 8px; align-items: flex-start; }
.form-note .icon { margin-top: 2px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 0.95rem; cursor: pointer; }
.check input { width: 22px; height: 22px; margin: 1px 0 0; flex: none; accent-color: var(--c-brand); }

/* ------------------------------------------------------------------ */
/* Example cards stack (home) and the result                          */
/* ------------------------------------------------------------------ */

.stack-wrap { overflow: clip; padding: 12px 0 18px; }
.stack { position: relative; height: 420px; width: min(100%, 460px); margin-inline: auto; }
.mini-card {
  position: absolute; width: 250px; aspect-ratio: 4 / 5; border-radius: 22px; border: 2px solid var(--c-ink);
  box-shadow: 6px 6px 0 rgba(0,0,0,.45); padding: 18px; color: var(--c-ink); display: grid; align-content: space-between;
  background: var(--el);
}
.mini-card .pic { width: 92px; height: 92px; border-radius: 50%; background: #fff; border: 2px solid var(--c-ink); display: grid; place-items: center; }
.mini-card .pic .icon { width: 52px; height: 52px; }
.mini-card b { font-family: var(--f-display); font-size: 1.8rem; line-height: 1; display: block; }
.mini-card small { font-weight: 700; }
.mini-card:nth-child(1) { left: 0; top: 40px; transform: rotate(-8deg); }
.mini-card:nth-child(2) { left: 50%; top: 0; transform: translateX(-50%) rotate(3deg); z-index: 2; }
.mini-card:nth-child(3) { right: 0; top: 70px; transform: rotate(9deg); }
@media (max-width: 520px) {
  .stack { height: 330px; }
  .mini-card { width: 168px; padding: 14px; }
  .mini-card:nth-child(1) { left: 6px; }
  .mini-card:nth-child(3) { right: 6px; }
  .mini-card .pic { width: 70px; height: 70px; }
  .mini-card .pic .icon { width: 40px; height: 40px; }
  .mini-card b { font-size: 1.4rem; }
}

.result-top { display: grid; gap: 28px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 980px) { .result-top { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); } }
.card-preview { position: relative; }
.card-preview canvas { width: 100%; height: auto; display: block; border-radius: 22px; border: 2px solid var(--c-ink); box-shadow: 7px 7px 0 var(--shadow); background: var(--soft); }
.card-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.format-toggle { margin-bottom: 14px; }
.format-toggle input:checked + span { background: var(--c-sun); color: var(--c-ink); border-color: var(--c-ink); }
.big-signs { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; margin: 18px 0; }
.big-sign { border: 2px solid var(--c-ink); border-radius: var(--r-md); padding: 14px; background: var(--el); color: var(--c-ink); box-shadow: 4px 4px 0 var(--c-ink); }
.big-sign .k { font-weight: 700; font-size: 0.85rem; display: flex; align-items: center; gap: 6px; }
.big-sign .v { font-family: var(--f-display); font-size: clamp(1.5rem, 1.2rem + 1.5vw, 2.2rem); line-height: 1.05; display: flex; align-items: center; gap: 8px; }
.big-sign .v .glyph { width: 0.8em; height: 0.8em; }
.big-sign .or { font-size: 0.9rem; font-weight: 600; }
.pick { margin: 4px 0 20px; }
.pick .chips { margin-top: 8px; }
.pick button.chip { cursor: pointer; font: inherit; font-weight: 700; font-size: 0.9rem; min-height: 40px; }
.pick-two { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }

/* Profile sections */
.traits { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); list-style: none; padding: 0; margin: 0; }
.traits li { border: 2px solid var(--line); border-radius: var(--r-md); padding: 16px; background: var(--card); }
.traits li b { display: block; font-family: var(--f-display); font-weight: 600; font-size: 1.1rem; margin-bottom: 4px; }
.love-list { counter-reset: love; list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.love-list li { counter-increment: love; display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: start; }
.love-list li::before { content: counter(love); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--c-brand); color: var(--c-ink); border: 2px solid var(--c-ink); font-family: var(--f-display); font-weight: 700; }
.quirks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.quirks li { background: var(--c-sun); color: var(--c-ink); border: 2px solid var(--c-ink); border-radius: 16px 16px 16px 4px; padding: 10px 14px; font-weight: 600; width: fit-content; max-width: 100%; }
.quirks li:nth-child(2) { margin-left: auto; border-radius: 16px 16px 4px 16px; background: color-mix(in oklab, var(--c-brand) 55%, white); }
.split { display: grid; gap: 22px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .split { grid-template-columns: 1.4fr 1fr; } }
.prose h2 { margin-top: 1.4em; }
.prose h2:first-child { margin-top: 0; }
.faq details { border-top: 2px solid var(--soft); padding: 14px 0; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 1.05rem; }
.faq details p { margin: 10px 0 0; }
.paws { display: inline-flex; gap: 3px; vertical-align: middle; }
.paws .icon { width: 22px; height: 22px; }
.paws .on { color: var(--c-brand); fill: currentColor; }
.paws .off { color: var(--muted); opacity: 0.4; }

/* Horoscope */
.horo { display: grid; gap: 14px; }
.horo-lines p { font-size: 1.12rem; }
.meters { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
.meter { border: 2px solid var(--line); border-radius: var(--r-md); padding: 12px 14px; }
.meter b { font-family: var(--f-display); font-size: 1.6rem; display: block; line-height: 1.1; }
.bar { height: 10px; border-radius: 99px; background: var(--soft); overflow: hidden; margin-top: 8px; border: 2px solid var(--line); }
.bar i { display: block; height: 100%; background: var(--c-brand); }
.facts { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.facts li { font-size: 0.85rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--soft); }
.horo-date { font-weight: 700; color: var(--muted); }

/* Notes and callouts */
.vet-note { display: flex; gap: 12px; align-items: flex-start; border: 2px solid var(--line); border-radius: var(--r-md); padding: 14px 16px; background: var(--soft); font-size: 0.95rem; }
.vet-note .icon { width: 26px; height: 26px; color: var(--c-earth); margin-top: 2px; }
.callout { background: var(--c-sun); color: var(--c-ink); border-color: var(--c-ink); box-shadow: 5px 5px 0 var(--c-ink); }
.callout a { color: var(--c-ink); }
.slot { border-style: dashed; }
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 2px solid var(--soft); }
th { font-family: var(--f-display); font-weight: 600; }
.compat-picker { display: grid; gap: 14px; grid-template-columns: 1fr 1fr auto; align-items: end; }
@media (max-width: 640px) { .compat-picker { grid-template-columns: 1fr 1fr; } .compat-picker .btn { grid-column: 1 / -1; } }
.pair-grid { display: grid; gap: 6px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); list-style: none; padding: 0; margin: 0; }
.pair-grid a { display: flex; justify-content: space-between; gap: 8px; padding: 10px 12px; border-radius: 12px; text-decoration: none; background: var(--card); border: 2px solid var(--soft); font-weight: 600; }
.pair-grid a:hover { border-color: var(--line); }
.status { padding: 12px 14px; border-radius: 12px; font-weight: 600; }
.status.ok { background: color-mix(in oklab, var(--c-earth) 25%, var(--card)); }
.status.err { background: color-mix(in oklab, var(--c-fire) 25%, var(--card)); }
.status:empty { display: none; }
.countdown { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
.countdown div { border: 2px solid var(--line); border-radius: var(--r-md); padding: 14px; }
.countdown b { font-family: var(--f-display); font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2rem); display: block; line-height: 1.1; white-space: nowrap; }

/* ------------------------------------------------------------------ */
/* Footer                                                             */
/* ------------------------------------------------------------------ */

.site-footer { margin-top: clamp(40px, 8vw, 80px); background: var(--sky); color: var(--sky-muted); padding-block: 40px 28px; font-size: 0.95rem; }
.site-footer a { color: var(--sky-text); }
.foot-grid { display: grid; gap: 26px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .foot-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.foot-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.foot-grid h2 { font-size: 1rem; color: var(--sky-text); margin-bottom: 10px; }
.entertain { margin-top: 26px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.14); display: grid; gap: 6px; }

/* Reveal on scroll, only once the script confirms motion is welcome */
.motion-ok [data-reveal] { transform: translateY(14px); opacity: 0; transition: transform 0.6s var(--ease), opacity 0.6s var(--ease); }
.motion-ok [data-reveal].in { transform: none; opacity: 1; }

@media print {
  .sky, .site-footer, .card-actions, .no-print { display: none !important; }
  body { background: #fff; color: #000; }
}
