/* Femida subsite. Values come from design/system/project/tokens.json (site/tests check them).
   Fonts: Onest and Unbounded subsets, SIL Open Font License 1.1 (onest-OFL.txt, unbounded-OFL.txt) */
@font-face { font-family: "Onest"; src: url("onest.aa8a5824dbb3.woff2") format("woff2"); font-weight: 400 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Unbounded"; src: url("unbounded.e30a300717fd.woff2") format("woff2"); font-weight: 600 800; font-style: normal; font-display: swap; }

:root {
  color-scheme: light;
  --bg: #F8F7F1;
  --surface: #FEFDFA;
  --surface-2: #ECEAE1;
  --surface-3: #E1DED3;
  --ink: #1A182A;
  --ink-2: #5A586B;
  --line: #E2E0D7;
  --line-strong: #858395;
  --inverse: #1A182A;
  --on-inverse: #F8F7F1;
  --ink-fixed: #1A182A;
  --paper-fixed: #FBFAF5;
  --accent-text: #5B2FD6;
  --focus-ring: #2D5BFF;
  --phase-period: #F24522;
  --phase-follicular: #D1F956;
  --phase-follicular-edge: #678811;
  --phase-fertile-edge: #B56203;
  --phase-fertile-tint: #F5CC9F;
  --phase-ovulation-edge: #C55205;
  --phase-ovulation-tint: #FEE2CC;
  --phase-luteal: #7449F1;
  --phase-luteal-edge: #7449F1;
  --phase-luteal-tint: #E9E6FF;
  --danger: #B3261E;
  --danger-surface: #FBE5E1;
  --success: #2E6B12;
  --success-surface: #ECF5D6;
  --premium-panel: #1A182A;
  --today-ring: var(--ink);
  --brand-ink: #1A182A;
  --brand-paper: #F8F7F1;
  --brand-poppy: #F24522;
  --brand-lime: #D1F956;
  --logo-ink: var(--brand-ink);
  --logo-key: var(--brand-poppy);
  --band: var(--premium-panel);

  --font-text: "Onest", "Manrope", "Noto Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-numeral: "Unbounded", "Onest", system-ui, sans-serif;
  --font-display: var(--font-text);
  --display-weight: 800;
  --display-tracking: 0;
  --eyebrow-case: none;
  --eyebrow-tracking: 0;
  --leading: 1.5;

  --space-2xs: 4px;
  --space-xs: 6px;
  --space-s: 8px;
  --space-m: 12px;
  --space-l: 16px;
  --space-xl: 20px;
  --space-2xl: 24px;
  --space-3xl: 32px;
  --space-4xl: 48px;
  --space-5xl: 64px;
  --radius-s: 9px;
  --radius-m: 14px;
  --radius-l: 22px;
  --radius-xl: 28px;
  --radius-pill: 999px;
  --shadow-raised: 0 1px 2px rgb(15 13 28 / 0.08), 0 10px 28px rgb(15 13 28 / 0.10);
  --shadow-floating: 0 2px 0 rgb(15 13 28 / 0.25), 0 12px 24px rgb(15 13 28 / 0.28);
  --shadow-key: inset 0 -3px 0 rgb(15 13 28 / 0.18);
  --shadow-pressed: inset 0 2px 0 rgb(15 13 28 / 0.22);
  --opacity-disabled: 0.4;
  --opacity-glow: 0.32;
  --touch-min: 44px;
  --control-m: 52px;
  --gutter: var(--space-l);
  --width: 72rem;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #0F0D1C;
    --surface: #1B192B;
    --surface-2: #29273B;
    --surface-3: #36344A;
    --ink: #F3F2EC;
    --ink-2: #B0AFBD;
    --line: #2F2D42;
    --line-strong: #7A788E;
    --inverse: #F3F2EC;
    --on-inverse: #1A182A;
    --accent-text: #AE95FF;
    --focus-ring: #8FA8FF;
    --phase-follicular: #AACE59;
    --phase-follicular-edge: #AACE59;
    --phase-fertile-edge: #DD9144;
    --phase-fertile-tint: #54351A;
    --phase-ovulation-edge: #FF8A3D;
    --phase-ovulation-tint: #47270F;
    --phase-luteal-edge: #8D6BFF;
    --phase-luteal-tint: #292440;
    --danger: #FF8A7A;
    --danger-surface: #3B1E22;
    --success: #B5DA6A;
    --success-surface: #232F1B;
    --premium-panel: #262438;
    --logo-ink: var(--brand-paper);
    --logo-key: var(--brand-lime);
    --band: var(--surface);
  }
}

/* Unbounded sets headings only in Latin and Russian; every other language keeps Onest */
:root:lang(ru), :root:lang(en) {
  --font-display: "Unbounded", var(--font-text);
  --display-weight: 600;
  --display-tracking: -0.02em;
}
:root:lang(ru), :root:lang(en), :root:lang(kk), :root:lang(uk), :root:lang(be), :root:lang(ky), :root:lang(tg), :root:lang(uz), :root:lang(az), :root:lang(tr), :root:lang(de), :root:lang(fr), :root:lang(es), :root:lang(pt), :root:lang(it), :root:lang(pl), :root:lang(ro), :root:lang(nl), :root:lang(el) {
  --eyebrow-case: uppercase;
  --eyebrow-tracking: 0.08em;
}
:root:lang(el) { --font-text: "Manrope", "Noto Sans", system-ui, -apple-system, Roboto, sans-serif; }
:root:lang(ar), :root:lang(fa), :root:lang(ps), :root:lang(ur) { --font-text: "Noto Sans Arabic", "SF Arabic", "Geeza Pro", Tahoma, system-ui, sans-serif; --leading: 1.7; }
:root:lang(he) { --font-text: "Noto Sans Hebrew", "SF Hebrew", "Arial Hebrew", system-ui, sans-serif; --leading: 1.6; }

@media (min-width: 40rem) { :root { --gutter: var(--space-2xl); } }
@media (min-width: 64rem) { :root { --gutter: var(--space-3xl); } }

/* Base */
*, *::before, *::after { box-sizing: border-box; }
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(--ink); font-family: var(--font-text); font-size: 1rem; font-weight: 500; line-height: var(--leading); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
h1, h2, h3, p, ul, ol { margin: 0; }
h1, h2, h3 { text-wrap: balance; overflow-wrap: break-word; }
h1, h2 { font-family: var(--font-display); font-weight: var(--display-weight); letter-spacing: var(--display-tracking); }
h3 { font-size: 1.1875rem; line-height: 1.3; font-weight: 800; }
p, li { overflow-wrap: break-word; }
svg { flex: none; }
a { color: var(--accent-text); text-decoration-line: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 2px; }
a:focus-visible { border-radius: 4px; }
.wrap { width: min(var(--width), 100% - 2 * var(--gutter)); margin-inline: auto; }
.hero > *, .doc-grid > *, .cards > *, .points > *, .download > *, .footer-inner > *, .notfound > * { min-width: 0; }
.icon { width: 22px; height: 22px; }
time { font-variant-numeric: tabular-nums; }
mark { background: var(--danger-surface); color: var(--ink); padding-inline: 2px; }

.skip { position: absolute; inset-inline-start: var(--space-l); top: var(--space-s); z-index: 10; padding: var(--space-m) var(--space-l); border-radius: var(--radius-pill); background: var(--inverse); color: var(--on-inverse); font-weight: 700; text-decoration: none; transform: translateY(-200%); }
.skip:focus { transform: none; }
.warning { padding: var(--space-s) var(--space-l); background: var(--inverse); color: var(--on-inverse); font-size: .875rem; font-weight: 600; line-height: 1.4; text-align: center; }

/* Buttons: pills that press like the blocks of the app icon */
.button { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-s); min-height: var(--control-m); padding: 14px var(--space-2xl); border: 2px solid transparent; border-radius: var(--radius-pill); font-family: var(--font-text); font-size: .9375rem; font-weight: 800; line-height: 1.2; text-align: center; text-decoration: none; cursor: pointer; transition: background-color 200ms var(--ease), box-shadow 120ms var(--ease), transform 120ms var(--ease); }
.button:hover { text-decoration: none; }
.button:active { box-shadow: var(--shadow-pressed); transform: translateY(1px); }
.button:disabled { cursor: default; opacity: var(--opacity-disabled); transform: none; }
.button-primary { background: var(--inverse); color: var(--on-inverse); box-shadow: var(--shadow-key); }
.button-primary:hover { background: color-mix(in oklab, var(--inverse) 86%, var(--bg)); }
.button-secondary { background: var(--surface-2); color: var(--ink); box-shadow: var(--shadow-key); }
.button-secondary:hover { background: var(--surface-3); }
.button-danger { background: var(--danger-surface); color: var(--danger); box-shadow: var(--shadow-key); }
.button-s { min-height: var(--touch-min); padding: 10px var(--space-l); font-size: .875rem; }
.actions { display: flex; flex-wrap: wrap; gap: var(--space-m); }

/* Header */
.site-header { padding-block: var(--space-m); }
.header-inner { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-m) var(--space-l); }
.brand { display: inline-flex; padding-block: var(--space-s); margin-inline-end: auto; color: var(--logo-ink); }
.lockup { display: block; height: 28px; width: auto; aspect-ratio: 469.67 / 118.85; }
.logo-key { fill: var(--logo-key); stroke: var(--logo-key); }
.site-nav { display: none; }
.site-nav ul, .lang ul, .stores, .footer-nav ul { list-style: none; margin: 0; padding: 0; }
.lang ul { display: flex; flex-wrap: wrap; gap: 2px; padding: 3px; border-radius: var(--radius-pill); background: var(--surface-2); }
.lang a { display: flex; align-items: center; min-height: var(--touch-min); padding-inline: var(--space-l); border-radius: var(--radius-pill); color: var(--ink-2); font-size: .875rem; font-weight: 700; text-decoration: none; }
.lang a:hover { color: var(--ink); }
.lang a[aria-current] { background: var(--surface); color: var(--ink); font-weight: 800; box-shadow: var(--shadow-floating); }
@media (min-width: 64rem) {
  .site-nav { display: block; }
  .site-nav ul { display: flex; align-items: center; gap: var(--space-2xs); }
  .site-nav a:not(.button) { display: flex; align-items: center; min-height: var(--touch-min); padding-inline: var(--space-m); border-radius: var(--radius-pill); color: var(--ink); font-size: .9375rem; font-weight: 600; text-decoration: none; }
  .site-nav a:not(.button):hover { background: var(--surface-2); }
  .site-nav li:last-child { margin-inline-start: var(--space-s); }
}

/* Type helpers */
.lead { color: var(--ink-2); font-size: 1.0625rem; line-height: 1.55; max-width: 38em; }
.section-note, .hero-note, .callout, .notice { font-size: .875rem; line-height: 1.45; }
.section-note { margin-top: var(--space-2xl); color: var(--ink-2); max-width: 46em; }
@media (min-width: 64rem) { .lead { font-size: 1.1875rem; } }

/* Landing: hero with the cycle arch */
.hero { display: grid; gap: var(--space-2xl); padding-block: var(--space-l) var(--space-4xl); }
.hero-art { order: -1; justify-self: center; width: min(76%, 20rem); }
.hero-copy { display: grid; gap: var(--space-xl); justify-items: start; }
.hero h1 { font-size: clamp(1.875rem, 1.2rem + 3vw, 3.5rem); line-height: 1.1; max-width: 15em; }
.hero-note { display: flex; gap: var(--space-s); align-items: flex-start; color: var(--ink-2); max-width: 34em; }
.hero-note .icon, .callout .icon, .notice .icon { width: 18px; height: 18px; margin-top: 1px; color: var(--ink); }
@media (min-width: 48rem) {
  .hero { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); align-items: center; gap: var(--space-3xl); padding-block: var(--space-3xl) var(--space-4xl); }
  .hero-art { order: 0; width: 100%; max-width: 30rem; }
}
@media (min-width: 64rem) { .hero { gap: var(--space-4xl); } }
.arch { display: block; width: 100%; height: auto; overflow: visible; }
.arch .blk { stroke-width: 2; stroke-linejoin: round; }
.arch .p { fill: var(--phase-period); stroke: var(--phase-period); }
.arch .f { fill: var(--phase-follicular); stroke: var(--phase-follicular-edge); stroke-width: 1.5; }
.arch .w { fill: var(--phase-fertile-tint); stroke: var(--phase-fertile-edge); stroke-dasharray: 0 5; stroke-linecap: round; }
.arch .k-est { fill: var(--phase-ovulation-tint); stroke: var(--phase-ovulation-edge); }
.arch .l { fill: var(--phase-luteal); stroke: var(--phase-luteal); }
.arch .l-fc { fill: var(--phase-luteal-tint); stroke: var(--phase-luteal-edge); }
.arch .halo { fill: none; stroke: var(--bg); stroke-width: 8; stroke-linejoin: round; }
.arch .ring { fill: none; stroke: var(--today-ring); stroke-width: 2.5; stroke-linejoin: round; }
.arch .door, .arch .glow { fill: var(--phase-luteal); }
.arch .glow { display: none; }
.arch .day { fill: var(--paper-fixed); font-family: var(--font-numeral); font-size: 138px; font-weight: 800; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
@media (prefers-color-scheme: dark) { .arch .glow { display: inline; opacity: var(--opacity-glow); } }

/* Landing sections */
.band { padding-block: var(--space-4xl); }
.section-head { display: grid; gap: var(--space-l); max-width: 46rem; margin-bottom: var(--space-3xl); }
.section-head h2, .download h2 { font-size: clamp(1.75rem, 1.3rem + 1.9vw, 2.75rem); line-height: 1.12; }
.cards { display: grid; gap: var(--space-l); }
.card, .point, .qa, .form-card, .toc-inline details { border: 1px solid transparent; border-radius: var(--radius-l); background: var(--surface); box-shadow: var(--shadow-raised); }
.card { display: grid; align-content: start; gap: var(--space-m); padding: var(--space-2xl); }
.card h3 { font-size: 1.1875rem; }
.card-text { color: var(--ink-2); }
.price { font-size: 1.5rem; font-weight: 800; line-height: 1.2; }
.steps, .checks, .points { list-style: none; padding: 0; }
.steps, .checks { display: grid; gap: var(--space-l); margin-top: var(--space-s); }
.steps li, .checks li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--space-m); align-items: start; }
.step-num { display: grid; place-items: center; width: 34px; height: 38px; padding-top: 3px; border-radius: 17px 17px var(--radius-s) var(--radius-s); background: var(--surface-2); color: var(--ink); font-family: var(--font-numeral); font-size: .9375rem; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.checks .icon { width: 22px; height: 22px; margin-top: 1px; color: var(--ink); }
.item-body { display: grid; gap: var(--space-2xs); }
.item-title { font-weight: 800; line-height: 1.35; }
.item-text { color: var(--ink-2); font-size: .9375rem; line-height: 1.45; }
.points { display: grid; gap: var(--space-l); }
.point { display: grid; align-content: start; gap: var(--space-s); padding: var(--space-2xl); }
.point h3 { display: flex; gap: var(--space-m); align-items: baseline; font-size: 1.0625rem; }
.point h3::before { content: ""; flex: none; width: 14px; height: 16px; border-radius: 7px 7px 3px 3px; background: var(--phase-luteal); transform: translateY(1px); }
.point p { color: var(--ink-2); font-size: .9375rem; line-height: 1.5; }
.callout, .notice { display: flex; gap: var(--space-m); align-items: flex-start; padding: var(--space-m) var(--space-l); border-radius: var(--radius-l); background: var(--surface-2); color: var(--ink); }
.callout { margin-top: var(--space-2xl); max-width: 46rem; }
@media (min-width: 40rem) { .points { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 48rem) { .cards-2, .band-price .cards-3 { grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); } }
@media (min-width: 64rem) {
  .band { padding-block: var(--space-5xl); }
  .cards-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .points { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .card { padding: var(--space-3xl) var(--space-2xl); }
}

/* Download: the one night band, where the mark may wear every phase colour */
.band-night { --bg: var(--band); --ink: #F3F2EC; --ink-2: #B0AFBD; --surface: #1B192B; --surface-2: #29273B; --surface-3: #36344A; --inverse: #F3F2EC; --on-inverse: #1A182A; --accent-text: #AE95FF; --focus-ring: #8FA8FF; color-scheme: dark; background: var(--bg); color: var(--ink); }
.download { display: grid; gap: var(--space-3xl); }
.download-copy { display: grid; gap: var(--space-xl); justify-items: start; }
.download-art .mark { display: block; width: clamp(5.5rem, 18vw, 12rem); height: auto; }
.stores { display: flex; flex-wrap: wrap; gap: var(--space-m); }
.store-pending { display: inline-flex; align-items: center; min-height: var(--control-m); padding-inline: var(--space-2xl); border: 2px dashed var(--line-strong); border-radius: var(--radius-pill); font-weight: 700; }
.band-night .section-note { margin-top: 0; }
@media (min-width: 56rem) { .download { grid-template-columns: auto minmax(0, 1fr); align-items: center; column-gap: var(--space-5xl); } }

/* Questions: native details, one card each */
.narrow .qa-list, .narrow .section-head { max-width: 50rem; }
.qa-list { display: grid; gap: var(--space-s); }
.qa summary { display: flex; align-items: center; justify-content: space-between; gap: var(--space-l); min-height: 60px; padding: var(--space-l) var(--space-xl); border-radius: var(--radius-l); font-size: 1.0625rem; font-weight: 700; line-height: 1.35; cursor: pointer; list-style: none; }
.qa summary::-webkit-details-marker, .toc-inline summary::-webkit-details-marker { display: none; }
.qa summary:hover { background: color-mix(in oklab, var(--surface) 92%, var(--ink)); }
.qa summary .icon, .toc-inline summary .icon { color: var(--ink-2); transition: transform 200ms var(--ease); }
.qa[open] summary .icon, .toc-inline details[open] summary .icon { transform: rotate(180deg); }
.qa-body { display: grid; gap: var(--space-s); padding: 0 var(--space-xl) var(--space-xl); color: var(--ink-2); max-width: 44em; }
.more { margin-top: var(--space-2xl); }

/* Legal and service pages: calm long-form reading */
.page-doc { padding-block: var(--space-2xl) var(--space-5xl); }
.doc-grid { display: grid; gap: var(--space-2xl); }
.doc-head { display: grid; gap: var(--space-l); max-width: 46rem; }
.doc-head h1 { font-size: clamp(1.25rem, 6.2vw, 2.75rem); line-height: 1.15; }
.doc-meta { color: var(--ink-2); font-size: .875rem; }
.doc-intro { display: grid; gap: var(--space-m); color: var(--ink-2); font-size: 1.0625rem; line-height: 1.6; }
.doc-body { min-width: 0; max-width: 46rem; font-size: 1.0625rem; font-weight: 400; line-height: 1.65; }
.doc-section { padding-top: var(--space-4xl); scroll-margin-top: var(--space-l); }
.doc-section:first-child { padding-top: var(--space-s); }
.doc-section > h2 { margin-bottom: var(--space-m); font-family: var(--font-text); font-size: 1.375rem; font-weight: 800; letter-spacing: 0; line-height: 1.3; }
.doc-section:target > h2::before { content: ""; display: inline-block; width: 12px; height: 14px; margin-inline-end: var(--space-m); border-radius: 6px 6px 3px 3px; background: var(--phase-luteal); }
.doc-body p, .doc-body ul, .doc-body ol { margin-bottom: var(--space-l); }
.doc-body ul, .doc-body ol { padding-inline-start: 1.4em; }
.doc-body li + li { margin-top: var(--space-s); }
.doc-body li::marker { color: var(--ink-2); }
.doc-body .qa-list, .doc-body .qa { font-weight: 500; }
.doc-body .qa + .qa { margin-top: var(--space-s); }
.doc-body .qa p { margin-bottom: 0; }
.contact { margin-top: var(--space-s); }
.form-section + .contact { margin-top: var(--space-2xl); }
.toc-title { margin-bottom: var(--space-m); color: var(--ink-2); font-size: .75rem; font-weight: 700; line-height: 1.2; letter-spacing: var(--eyebrow-tracking); text-transform: var(--eyebrow-case); }
.toc ol { list-style: none; margin: 0; padding: 0; }
.toc a { display: block; padding: 7px var(--space-m); border-radius: var(--radius-m); color: var(--ink-2); font-size: .875rem; font-weight: 600; line-height: 1.35; text-decoration: none; }
.toc a:hover { background: var(--surface-2); color: var(--ink); }
.toc-side { display: none; }
.toc-inline summary { display: flex; align-items: center; justify-content: space-between; gap: var(--space-l); min-height: var(--control-m); padding: var(--space-m) var(--space-xl); border-radius: var(--radius-l); font-weight: 700; cursor: pointer; list-style: none; }
.toc-inline ol { padding: 0 var(--space-s) var(--space-m); }
@media (min-width: 64rem) {
  .doc-grid.has-toc { grid-template-columns: 15rem minmax(0, 46rem); grid-template-areas: "toc head" "toc body"; column-gap: var(--space-5xl); }
  .doc-head h1 { font-size: clamp(2rem, 0.9rem + 2.3vw, 2.75rem); }
  .has-toc .doc-head { grid-area: head; }
  .has-toc .doc-body { grid-area: body; }
  .toc-side { grid-area: toc; display: block; position: sticky; top: var(--space-2xl); align-self: start; max-height: calc(100vh - 2 * var(--space-2xl)); overflow: auto; padding: var(--space-s) 2px; }
  .toc-inline { display: none; }
  .doc-grid:not(.has-toc) { grid-template-columns: minmax(0, 46rem); }
}

/* The deletion form */
.form-section > h2 + .form-card { margin-top: var(--space-l); }
.form-card { display: grid; gap: var(--space-xl); max-width: 36rem; padding: var(--space-2xl); border-radius: var(--radius-xl); font-weight: 500; }
.form-card p { margin: 0; }
.field { display: grid; gap: var(--space-s); }
.field label { font-size: .9375rem; font-weight: 700; line-height: 1.35; }
.field input:not([type=checkbox]) { width: 100%; min-height: var(--control-m); padding: var(--space-m) var(--space-l); border: 1.5px solid var(--line-strong); border-radius: var(--radius-m); background: var(--surface); color: var(--ink); font: inherit; font-size: 1rem; }
.field input:not([type=checkbox]):focus-visible { border-color: var(--ink); border-width: 2px; }
.field-check { grid-template-columns: auto minmax(0, 1fr); align-items: start; }
.field-check input { width: 24px; height: 24px; margin: 0; accent-color: var(--inverse); }
.field-check .field-error { grid-column: 1 / -1; }
.field input[aria-invalid="true"] { border-color: var(--danger); border-width: 2px; background: var(--danger-surface); }
.field-error, .form-error { display: flex; gap: var(--space-s); align-items: flex-start; color: var(--danger); font-size: .875rem; font-weight: 700; line-height: 1.4; }
.form-error { padding: var(--space-m) var(--space-l); border-radius: var(--radius-m); background: var(--danger-surface); }
.field-error::before, .form-error::before { content: "!"; content: "!" / ""; flex: none; display: grid; place-items: center; width: 18px; height: 18px; margin-top: 1px; border: 2px solid currentColor; border-radius: 50%; font-size: .6875rem; font-weight: 800; line-height: 1; }
.field-error:empty, .form-error:empty { display: none; }
.form-status { color: var(--ink); font-weight: 700; }
.form-status:empty { display: none; }
form[data-state="sent"] .form-status { display: flex; gap: var(--space-m); align-items: flex-start; padding: var(--space-m) var(--space-l); border-radius: var(--radius-m); background: var(--success-surface); color: var(--success); font-size: .875rem; line-height: 1.4; }
form[data-state="sent"] .form-status::before { content: ""; flex: none; width: 7px; height: 12px; margin: 1px 5px 0; border: solid currentColor; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.form-card .button { justify-self: start; }

/* 404 */
.notfound { display: grid; gap: var(--space-xl); justify-items: start; padding-block: var(--space-3xl) var(--space-5xl); }
.big-num { font-family: var(--font-numeral); font-size: clamp(4.5rem, 3rem + 8vw, 9rem); font-weight: 800; line-height: 1; letter-spacing: -0.03em; color: var(--phase-luteal); font-variant-numeric: tabular-nums; }
.notfound h1 { font-size: clamp(1.75rem, 1.2rem + 2.4vw, 3.25rem); line-height: 1.12; max-width: 16em; }
.notfound-text { display: grid; gap: var(--space-m); color: var(--ink-2); font-size: 1.0625rem; max-width: 38em; }

/* Footer */
.site-footer { padding-block: var(--space-4xl) var(--space-3xl); border-top: 1px solid var(--line); color: var(--ink-2); font-size: .875rem; line-height: 1.5; }
.footer-inner { display: grid; gap: var(--space-3xl); }
.footer-brand { display: grid; gap: var(--space-m); justify-items: start; }
.footer-brand > a { color: var(--logo-ink); padding-block: var(--space-s); }
.wordmark { display: block; height: 24px; width: auto; aspect-ratio: 364.11 / 76.58; }
.tagline { color: var(--ink); font-size: 1rem; font-weight: 600; max-width: 26em; }
.footer-nav ul { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(10rem, 100%), 1fr)); gap: var(--space-2xs) var(--space-l); }
.footer-nav a { display: inline-flex; align-items: center; min-height: var(--touch-min); padding-block: var(--space-2xs); color: var(--ink); font-weight: 600; line-height: 1.3; text-decoration: none; }
.footer-nav a:hover { text-decoration: underline; }
.footer-fine { display: grid; gap: var(--space-s); max-width: 60rem; font-size: .8125rem; }
@media (min-width: 64rem) { .footer-inner { grid-template-columns: minmax(0, 20rem) minmax(0, 1fr); column-gap: var(--space-5xl); } .footer-fine { grid-column: 1 / -1; } }

/* Comfort and contrast settings */
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition-duration: 1ms !important; animation: none !important; } }
@media (forced-colors: active) { .button, .lang a[aria-current], .card, .point, .qa, .form-card { border: 1px solid CanvasText; } .arch { forced-color-adjust: none; } }
@media print {
  .site-header nav, .skip, .toc, .hero-art, .actions, .footer-nav, .download-art { display: none; }
  body, .band-night { background: #fff; color: #000; }
  .card, .point, .qa, .form-card { box-shadow: none; border: 1px solid #999; }
  .doc-section { break-inside: avoid-page; }
}
