/* Numen v3, WP-SCREENS-C: number pages, sign pages, method, not found, and the static search
   copies under /n/ and /sign/ (which load this file with root paths). FINAL-DESIGN 3.0, 3.8 to
   3.10. Tokens from tokens.css. Nothing here animates. */

.c-page { width: 100%; max-width: var(--max); margin: 0 auto; padding: var(--s5) var(--gutter) var(--s7); }
/* ---------- head ---------- */
.c-head { display: block; }
.c-head-text { min-width: 0; }
.c-kicker { margin: 0 0 var(--s2); font: 600 var(--fs-label)/1.3 var(--font-text); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.c-h1 { font: 500 var(--fs-h1)/1.15 var(--font-display); color: var(--ink); overflow-wrap: anywhere; }
.c-h1--hero, .c-hero { display: flex; align-items: baseline; gap: 2px; margin: 0; line-height: .95; }
.c-hero { margin-bottom: var(--s2); }
.c-hero-c { font: 600 var(--nb-m)/1 var(--font-text); font-variant-numeric: lining-nums tabular-nums; color: var(--ink-3); }
.c-hero-r { font: 500 var(--nb-xxl)/.95 var(--font-display); font-variant-numeric: lining-nums; color: var(--glow-ink); }
.c-lead { margin-top: var(--s3); font-size: var(--fs-lead); line-height: 1.55; color: var(--ink); max-width: 60ch; }
.c-lead + .c-lead { color: var(--ink-2); }
.c-links { display: flex; flex-wrap: wrap; gap: 0 var(--s5); margin-top: var(--s4); }
.c-link { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }

/* ---------- views ---------- */
.c-view { margin-top: var(--s5); min-width: 0; }
.c-view--single { margin-left: calc(-1 * var(--gutter)); margin-right: calc(-1 * var(--gutter)); }
.c-vf { width: 100%; }
.c-stage { position: relative; overflow: hidden; }
.c-stage--single { height: var(--view-single); }
.c-stage--ring { width: min(100%, 360px); aspect-ratio: 1 / 1; margin: 0 auto; border-radius: 50%; }
/* the ring's name chips sit outside the painted animals and may reach past the ring's circle (art round 9 A07): the
   round skeleton keeps its own shape, the ring view clips nothing */
.c-stage--ring { overflow: visible; }
.c-skeleton { background: linear-gradient(var(--sky-0), var(--sky-1) 55%, var(--sky-2)); }
.c-skeleton::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 58%; background: var(--ink); opacity: .04;
  clip-path: polygon(0 70%, 8% 52%, 15% 64%, 24% 36%, 33% 58%, 42% 22%, 52% 50%, 61% 30%, 70% 56%, 79% 40%, 88% 62%, 100% 46%, 100% 100%, 0 100%); }
.c-stage--ring.c-skeleton { background: var(--night-2); box-shadow: none; outline: 1px solid var(--line); outline-offset: -1px; }
.c-stage--ring.c-skeleton::after { height: 100%; border-radius: 50%; clip-path: circle(30% at 50% 50%); }
.c-legend { margin: var(--s2) var(--gutter) 0; font-size: var(--fs-fine); line-height: 1.5; color: var(--ink-3); }
.c-legend--ring { margin: var(--s3) auto 0; max-width: 360px; text-align: center; }

/* ---------- sections ---------- */
.c-body { margin-top: var(--section-gap); }
.c-sections { display: flex; flex-direction: column; gap: var(--section-gap); }
.c-sec { background: var(--night-2); border: 1px solid var(--line); border-radius: var(--r-l); padding: var(--card-pad); min-width: 0; }
.c-sec--you { border-color: var(--glow-35); }
.c-h2 { margin: 0 0 var(--s4); padding-bottom: var(--s3); border-bottom: 1px solid var(--line);
  font: 600 var(--fs-card-head)/1.2 var(--font-display); letter-spacing: .26em; text-transform: uppercase; color: var(--ink-2); }
.c-p { max-width: 66ch; color: var(--ink); }
.c-p + .c-p, .c-p + .c-list, .c-list + .c-p { margin-top: var(--s3); }
.c-list { margin-top: var(--s2); }
.c-list li { position: relative; padding-left: 18px; margin-top: var(--s2); color: var(--ink); font-variant-numeric: lining-nums tabular-nums; }
.c-list li::before { content: ''; position: absolute; left: 2px; top: .62em; width: 5px; height: 5px; border-radius: 50%; background: var(--ink-3); }
.c-example { margin-top: var(--s4); padding: var(--s3) var(--s4); background: var(--night-3); border-left: 3px solid var(--line-3);
  border-radius: 0 var(--r-s) var(--r-s) 0; color: var(--ink-2); max-width: 66ch; font-variant-numeric: lining-nums tabular-nums; }
.c-facts { display: grid; gap: var(--s2); margin-top: var(--s3); }
.c-fact { display: flex; gap: var(--s3); }
.c-fact dt { color: var(--ink-3); min-width: 8ch; }
.c-group { margin-top: var(--s4); }
.c-label { margin-bottom: var(--s2); font: 600 var(--fs-label)/1.3 var(--font-text); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.c-nums, .c-tags { display: flex; flex-wrap: wrap; gap: var(--s2); }
.c-num { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 var(--s3);
  border: 1px solid var(--line-2); border-radius: var(--r-m); background: var(--night-2); color: var(--ink); text-decoration: none;
  font: 600 var(--nb-s)/1 var(--font-text); font-variant-numeric: lining-nums tabular-nums; transition: background var(--dur-1), border-color var(--dur-1); }
.c-num:hover { background: var(--night-3); border-color: var(--glow-45); }
.c-nums--friends .c-num { border-color: var(--glow-45); color: var(--glow-ink); }
.c-nums--enemies .c-num { border-style: dashed; border-color: var(--ember-45); color: var(--ember); }
.c-nums--cautions .c-num { border-style: dashed; }
/* the page's own number in the All the numbers row (round-2 S03) */
.c-num[aria-current="page"] { border-color: var(--glow-ink); color: var(--glow-ink); box-shadow: inset 0 0 0 1px var(--glow-ink); }
.c-tags li { display: flex; }
.c-tags a { min-height: 44px; display: inline-flex; align-items: center; }
.c-signlink { gap: 6px; padding: 0 var(--s3); border: 1px solid var(--line-2); border-radius: var(--r-m); color: var(--ink); text-decoration: none; }
.c-signlink-n, .c-signlink-note { font-size: var(--fs-label); color: var(--ink-3); }
/* All twelve signs, and their index: boxed like the numbers row, the page's own sign marked as its number is (round-12 S02) */
.c-sec--signs .c-tags a { padding: 0 var(--s3); border: 1px solid var(--line-2); border-radius: var(--r-m); background: var(--night-2);
  min-width: 44px; justify-content: center; transition: background var(--dur-1), border-color var(--dur-1); }
.c-sec--signs .c-tags a:hover { background: var(--night-3); border-color: var(--glow-45); }
.c-sec--signs .c-tags a .sg__name { text-decoration: none; }
.c-sec--signs .c-tags a[aria-current="page"] { border-color: var(--glow-ink); color: var(--glow-ink); box-shadow: inset 0 0 0 1px var(--glow-ink); }
.c-sec--signs .c-tags a[aria-current="page"] .sg__peak { color: var(--glow-ink); }
/* the signs' index: each sign with its birth years, one column to 960 px, two from there, where each year list has room
   for two lines (round-13 S02, round-14 S02) */
.c-signyears { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 var(--s5); }
.c-signyears__row { display: flex; flex-wrap: wrap; align-items: center; gap: 2px var(--s3); min-height: 44px; padding: var(--s1) 0; border-bottom: 1px solid var(--line); min-width: 0; }
/* the name keeps a column wide enough for the longest (Rooster), so the years line up row to row; the Cat's note
   pushes its years to the next line */
.c-signyears__row > .sg { flex: 0 1 auto; min-width: min(6.5em, 100%); min-height: 44px; }
.c-signyears__you { flex: none; padding: 2px 8px; border-radius: 999px; background: var(--glow-ink); color: var(--on-glow); font: 700 var(--fs-label)/1.3 var(--font-text); letter-spacing: .04em; }
.c-signyears__y { flex: 1 1 14ch; min-width: 0; font-size: var(--fs-small); line-height: 1.45; color: var(--ink-2); font-variant-numeric: lining-nums tabular-nums; font-feature-settings: 'lnum' 1, 'tnum' 1; }
.c-signyears__row.is-mine .c-signyears__y { color: var(--ink); }
/* the January and February caution, under the heading and above the rows (app) or cards (static /sign/), at reading
   size so it is read before a visitor takes an animal (round-14 S02) */
.c-p:has(+ .c-signyears), .c-p:has(+ .c-sign-grid) { margin-bottom: var(--s4); color: var(--ink-2); font-size: var(--fs-small); }
/* from 600 px each row is a grid: the tag over the You mark in a fixed first column, the years in the second, so every
   year list starts at one x whatever the Cat's note or the You mark take; the Cat's note sits under "Cat" */
@media (min-width: 600px) {
  .c-signyears__row { display: grid; grid-template-columns: 8.5em minmax(0, 1fr); column-gap: var(--s3); row-gap: 2px; align-items: start; }
  /* .c-signyears in front to outrank components.css's phone hit-target rule for a.sg.sg--link (to 899 px) */
  .c-signyears .c-signyears__row > .sg { grid-column: 1; grid-row: 1; min-width: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 6px; align-items: center; align-content: center; }
  .c-signyears__row > .sg .sg__note { grid-column: 2; display: block; font-size: var(--fs-label); line-height: 1.3; }
  .c-signyears__you { grid-column: 1; grid-row: 2; justify-self: start; margin-bottom: var(--s1); }
  /* the first line centred on the 44 px tag, so it reads level with the name */
  .c-signyears__y { grid-column: 2; grid-row: 1 / span 2; padding-top: calc((44px - 1.45em) / 2); }
}
@media (min-width: 960px) { .c-signyears { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* the static /sign/ draws the same twelve as portrait cards (round-13 H01, tools/build-static.mjs) */
.c-sign-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s3); }
@media (min-width: 600px) { .c-sign-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .c-sign-grid { grid-template-columns: repeat(4, 1fr); } }
.c-sign-grid > li { display: flex; min-width: 0; }
.c-sign-card { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 100%; min-width: 0; min-height: 44px; padding: var(--s2); border-radius: 12px; text-align: center;
  color: var(--ink); text-decoration: none; transition: background var(--dur-1); }
.c-sign-card img { width: 96px; height: 96px; border-radius: 50%; }
.c-sign-card__name { font-weight: 600; }
.c-sign-card__note, .c-sign-card__years { font-size: var(--fs-label); line-height: 1.45; color: var(--ink-3); overflow-wrap: anywhere; }
.c-sign-card__years { color: var(--ink-2); font-variant-numeric: lining-nums tabular-nums; font-feature-settings: 'lnum' 1, 'tnum' 1; }
/* night-3, not night-2: the card sits in a section painted night-2, where night-2 would not show */
.c-sign-card:hover, .c-sign-card:focus-visible { background: var(--night-3); }
.c-sign-card:focus-visible { outline: 2px solid var(--glow-ink); outline-offset: 2px; }
.c-people { display: grid; gap: var(--s2); }
.c-tile { display: flex; align-items: center; gap: var(--s3); min-height: 56px; padding: var(--s2) var(--s3); border: 1px solid var(--line); border-radius: var(--r-m); color: var(--ink); text-decoration: none; }
.c-tile:hover { background: var(--night-3); }
.c-tile-i { flex: none; width: 28px; height: 28px; border-radius: 50%; display: inline-grid; place-items: center; border: 1.4px solid var(--ink-2); font: 700 13px/1 var(--font-text); }
.c-tile-t { display: flex; flex-direction: column; min-width: 0; }
.c-tile-n { font-weight: 600; overflow-wrap: anywhere; }
.c-tile-m { font-size: var(--fs-small); color: var(--ink-2); font-variant-numeric: lining-nums tabular-nums; }
.c-btn { display: inline-flex; align-items: center; min-height: var(--btn-h); margin-top: var(--s4); padding: 0 var(--s5); border: 1px solid var(--line-2); border-radius: var(--r-m);
  color: var(--ink); font-weight: 600; transition: background var(--dur-1); }
.c-btn:hover { background: var(--night-3); }
.c-img { width: 100%; height: auto; margin-top: var(--s4); border-radius: var(--r-l); aspect-ratio: 16 / 9; object-fit: cover; background: var(--night-2); }

/* ---------- method: a long read, no cards ---------- */
.c-page--method .c-head, .c-page--method .c-body { max-width: 720px; }
.c-page--method .c-sections { gap: var(--s6); }
.c-page--method .c-sec { background: none; border: 0; border-radius: 0; padding: 0; }
.c-page--method .c-h2 { border: 0; padding: 0; margin-bottom: var(--s3); font: 500 var(--fs-card-title)/1.2 var(--font-display); letter-spacing: 0; text-transform: none; color: var(--ink); }

/* ---------- not found ---------- */
.c-page--notfound { min-height: 50vh; }
.c-page--notfound .c-links { flex-direction: column; gap: 0; }

/* ---------- static copies (site/n/, site/sign/, 404.html) ---------- */
.c-static-top { position: sticky; top: 0; z-index: var(--z-top); background: var(--night); border-bottom: 1px solid var(--line); }
.c-static-top-in { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); height: var(--top-h); display: flex; align-items: center; justify-content: space-between; gap: var(--s4); }
/* a 44 px tap target inside the var(--top-h) header row (round-6 S06) */
.c-wordmark { font: 500 var(--fs-wordmark)/1 var(--font-display); letter-spacing: .42em; text-transform: uppercase; color: var(--glow-ink); text-decoration: none; padding-left: .42em; display: inline-flex; align-items: center; min-height: 44px; }
.c-static-open { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }
.c-static-foot { border-top: 1px solid var(--line); }
.c-static-foot-in { max-width: var(--max); margin: 0 auto; padding: var(--s5) var(--gutter); font-size: var(--fs-fine); line-height: 1.5; color: var(--ink-3); }
.c-static-foot-in p { max-width: 70ch; }
.c-static-foot-in p + p { margin-top: var(--s2); }
.c-static-foot a { display: inline-flex; align-items: center; min-height: 44px; }
/* the yolfez mark sits at the far end of the last link's line, as in the app's footer */
.c-static-foot-in .c-static-home { width: fit-content; margin: -44px 0 0 auto; }
/* a sign page's portrait (round 9 H01): above the kicker on phones, beside the h1 from 760 px; its own alpha fades
   it to nothing before the circle, so the round clip never cuts paint */
.c-static-art { display: block; width: 120px; height: 120px; margin-bottom: var(--s3); border-radius: 50%; }
/* a sign or number page's painted band (round 16 A01): the scene its share card shows, full width (100%, never 100vw,
   so a classic scrollbar adds no sideways scroll). Phones: a 16:9 picture whose foot melts into the night, the head
   under it. From 900 px: the picture fills the band and the head sits over its open left sky. No edge of the picture
   shows: the sides are the screen's, the top meets the bar's line, the foot fades. */
.c-band { position: relative; width: 100%; }
.c-band__art { display: block; width: 100%;
  -webkit-mask-image: linear-gradient(#000 calc(100% - 48px), transparent); mask-image: linear-gradient(#000 calc(100% - 48px), transparent); }
.c-band__art img { display: block; width: 100%; height: auto; }
.c-band__in { position: relative; width: 100%; max-width: var(--max); margin: 0 auto; padding: var(--s3) var(--gutter) 0; }
.c-band .c-links { margin-top: var(--s5); }
.c-band + .c-page { padding-top: var(--section-gap); }
.c-band + .c-page > .c-body { margin-top: 0; }

/* ---------- wider screens ---------- */
@media (min-width: 760px) {
  .c-view--single { margin-left: 0; margin-right: 0; }
  .c-legend { margin-left: 0; margin-right: 0; }
  .c-static.c-page--sign .c-head { display: flex; align-items: center; gap: var(--s5); }
  .c-static-art { flex: none; width: 160px; height: 160px; margin: 0; }
}
@media (min-width: 900px) {
  .c-page { padding-top: var(--s6); }
  .c-h1 { line-height: 1.1; }
  .c-head:has(.c-view) { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s6); align-items: center; }
  .c-head:has(.c-view) .c-view { margin-top: 0; }
  .c-num { min-height: 32px; min-width: 40px; }
  .c-link, .c-tags a, .c-static-open, .c-static-foot a { min-height: 32px; }
  .c-static-foot-in .c-static-home { margin-top: -32px; }
  .c-page--number .c-sections, .c-page--oneliner .c-sections { display: block; columns: 2; column-gap: var(--s5); }
  .c-page--number .c-sec { break-inside: avoid; margin-bottom: var(--s5); }
  .c-page--number .c-sec--you { column-span: all; }
  /* sign: the ring on the left, every line of text on the right */
  .c-page--sign { display: grid; grid-template-columns: minmax(300px, 440px) minmax(0, 1fr); grid-template-areas: 'view text' 'view body'; column-gap: var(--s7); align-items: start; }
  .c-page--sign .c-head { display: contents; }
  .c-page--sign .c-head-text { grid-area: text; }
  .c-page--sign .c-view--ring { grid-area: view; margin-top: 0; position: sticky; top: calc(var(--top-h) + var(--s5)); }
  .c-page--sign .c-stage--ring { width: 100%; }
  .c-page--sign .c-body { grid-area: body; }
  .c-static.c-page--sign { display: block; max-width: 880px; }
  .c-view .vf__cap { padding-left: 0; padding-right: 0; }
  /* the band (round 16 A01): as tall as the picture's 8:3 up to 600 px, or the head plus 48 px above and below when
     that is taller; the picture covers it anchored right and high (the animals stand right of centre, their heads in
     the top third, so a taller band crops the left sky and the foot first) and its foot fades into the night */
  .c-band { display: flex; align-items: center; min-height: min(37.5vw, 600px); padding: 48px 0; }
  .c-band__art { position: absolute; inset: 0;
    -webkit-mask-image: linear-gradient(#000 calc(100% - 64px), transparent); mask-image: linear-gradient(#000 calc(100% - 64px), transparent); }
  .c-band__art img { height: 100%; object-fit: cover; object-position: 72% 15%; }
  .c-band__in { padding-top: 0; }
  /* the head keeps to the open sky, the left 45% the band files were measured for */
  .c-band .c-head { max-width: min(600px, calc(45vw - max(0px, (100vw - var(--max)) / 2) - var(--gutter))); }
  /* a number page's taller head (the numeral, two leads) reaches the lit horizon: a soft night scrim from the left,
     inside the picture's mask, holds its second lead at 4.8:1 or more (3.6:1 without it at 1440, sampled) */
  .c-band--n .c-band__art::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7, 11, 24, .6), transparent 70%); }
  /* a sign page's band (round-17 S16): the animal's name carries as the number band's numeral does, and its second lead
     sits on the same night scrim as the number band's second lead, so it holds 4.5:1 over the lightest sky behind it */
  .c-band--sign .c-h1 { font-size: clamp(48px, 4.4vw, 80px); }
  .c-band--sign .c-band__art::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7, 11, 24, .6), transparent 70%); }
}

/* the font shorthand resets font-variant-numeric, so the rules above that set font get lining
   figures: Cormorant's old-style 11 reads as "ii" (FINAL-DESIGN 2.3) */
.c-h1, .c-h2, .c-kicker, .c-label, .c-hero-c, .c-hero-r, .c-num, .c-tile-i, .c-wordmark { font-variant-numeric: lining-nums tabular-nums; font-feature-settings: 'lnum' 1, 'tnum' 1; }
html .c-h1, html .c-h2, html .c-hero-r { font-variant-numeric: lining-nums; font-feature-settings: 'lnum' 1; }

/* Check a number, above the index of #/n (round-19 S13): the field and the two readings side by side from 560 px, the
   result under them. The field and each choice keep a 44 px target */
.c-check__row { display: grid; gap: var(--s4); margin-top: var(--s3); }
.c-check__field { max-width: 16ch; }
.c-check__in { min-height: 48px; font-size: var(--fs-lead); letter-spacing: .04em; }
.c-check__kinds { margin: 0; padding: 0; border: 0; min-width: 0; display: flex; flex-wrap: wrap; gap: 0 var(--s4); align-items: center; }
.c-check__kinds legend { margin-bottom: 6px; padding: 0; }
.c-check__opt { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--ink); cursor: pointer; }
.c-check__radio { width: 20px; height: 20px; margin: 0; accent-color: var(--glow-ink); }
.c-check__out:not(:empty) { margin-top: var(--s4); padding-top: var(--s3); border-top: 1px solid var(--line); }
.c-check__steps { font-weight: 600; font-size: var(--fs-lead); color: var(--ink); overflow-wrap: anywhere; }
.c-check__out .c-p { margin-top: var(--s2); }
@media (min-width: 560px) { .c-check__row { grid-template-columns: auto 1fr; align-items: end; } }
