/* Spirit: the design system of sebxt.com, from the board cosmos.so/turner/spirit (cited #NN from inspiration/manifest.json).
   One sky from top to foot: the sun at noon over his name, the sky below it with his words, and the gold the sun goes down
   into, his name pressed in. The art is the light, faint; the words are plain. The law is in inspiration/NORTH-STAR.md. */
/* the one typeface, cut to Latin as WOFF2 by tools/make_fonts.py (58 and 43 KB) */
@font-face { font-family: "Cormorant Garamond"; src: url(assets/fonts/CormorantGaramond.woff2) format("woff2"); font-weight: 300 700; font-display: block; }
@font-face { font-family: "Cormorant Garamond"; src: url(assets/fonts/CormorantGaramond-Italic.woff2) format("woff2"); font-weight: 300 700; font-style: italic; font-display: block; }

:root {
  color-scheme: light only;
  --ultra: #1F34B3;       /* #21 */
  --azure: #0C72F4;       /* #9 #20 #35 */
  --white: #FFFFFF;
  --mist: rgba(255, 255, 255, .78);
  --ink: #1A2B98;         /* his words in the pale sky by day */
  --ink-soft: rgba(26, 43, 152, .7);
  --gold-deep: #33200A;   /* letters on the leaf (#5 #34) */
  --serif: "Cormorant Garamond", Garamond, "Times New Roman", serif;   /* his name */
  /* his words and the cards: the reader's own plain system sans, upright, one style (his words, Nov 25 2026: "It's too crazy
     the way it currently is, especially with the italicized words. It's not legible ... Go a lot simpler") */
  --sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --bleed-top: 22vh;      /* the sky below fades in over the hero's foot */
  --bleed-foot: 260px;    /* the gold fades in out of the light at the foot of the sky */
}
html.dusk { --ink: #FFFFFF; --ink-soft: rgba(255, 255, 255, .72); }
* { box-sizing: border-box; }
/* the page's ground follows the page as it scrolls (site.html, tint()): the sky's color at the top of the screen, the gold of
   the last rows near the end. A browser fills what lies past a page with it (behind its bars, on a pull past either end). */
html { background: var(--ultra); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: transparent; color: var(--white); font-family: var(--serif); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
::selection { background: rgba(255, 255, 255, .28); color: var(--white); }

.p { position: relative; overflow: hidden; isolation: isolate; }
.p > canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; z-index: -1; }

/* ---- I. noon: the name across the sun (#8 PRAXIS, #24 RAINMAKER, #10 #30) ---- */
.p-noon { height: 100vh; height: 100svh; min-height: 620px; }
.name-wrap { position: absolute; left: 0; right: 0; top: 43%; transform: translateY(-50%); }
.name {
  margin: 0; font: 300 var(--name-size, 5.6vw) / .9 var(--serif);   /* 8.4vw until Nov 25 2026: "Make my name smaller and tasteful" */ letter-spacing: .045em; text-align: center; white-space: nowrap;
  color: var(--white); text-indent: .045em;
}
.name span { display: inline-block; }
.name .l { opacity: 0; transform: translateY(.06em); filter: blur(10px); }
.name.in .l { opacity: 1; transform: none; filter: none; transition: opacity 1.4s var(--ease), transform 1.4s var(--ease), filter 1.4s var(--ease); }
/* where a letter crosses the sun's light it turns ultramarine, so it reads on white: each letter is filled by a gradient
   centered on the sun (set per letter from site.html), clipped to its glyph */
.name .l {
  background: radial-gradient(circle at var(--sx, -9999px) var(--sy, -9999px), #13269A var(--r0, 0px), #FFFFFF var(--r1, 1px));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  padding: .16em .08em; margin: -.16em -.08em;   /* the fill reaches past every glyph's ink; the layout is unchanged */
}

/* ---- II. the record: the sky below the sun, his words set plainly in it (#10 #20 #24) ---- */
.p-rec { z-index: 2; margin-top: calc(-1 * var(--bleed-top)); padding: calc(var(--bleed-top) + 150px) 24px calc(var(--bleed-foot) + 230px); }
/* one column in the middle of the page, as wide as its longest line, his words set flush left in it (his words, Nov 25
   2026: "let's test hugging the text to the left instead of having it centered ... not on the left of the screen, just to
   the left") */
.rec { width: fit-content; max-width: 100%; margin: 0 auto; text-align: left; color: var(--ink); }
.rec .blk + .blk { margin-top: 136px; }
.rec .kick { margin: 0 0 32px; font: 500 clamp(11px, .66vw, 13px)/1 var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--ink-soft); }
.rec .list { list-style: none; margin: 0; padding: 0; }
.rec li + li { margin-top: 28px; }
.rec .title, .rec .note { margin: 0; }
/* the words grow a little with big screens, so the sky below never swallows them */
.rec .title { font: 500 clamp(22px, 1.32vw, 27px)/1.3 var(--sans); letter-spacing: -.005em; }
.rec .note { margin-top: 3px; font: 400 clamp(15px, .9vw, 18px)/1.45 var(--sans); color: var(--ink-soft); }
.rec .kick, .rec li { opacity: 0; }
.rec .kick.in, .rec li.in { opacity: 1; animation: rise 1.2s var(--ease) backwards; transition: opacity .35s ease; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); filter: blur(5px); } }
.rec .list.looking li.in:not(.here) { opacity: .34; }
.rec li[data-app] { outline: none; }
.rec li[data-app]:focus-visible .title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 7px; }

/* ---- III. gold: the ground the sun goes down into, his name pressed into the leaf (#5 #34 #1 #23) ---- */
.p-gold { z-index: 1; margin-top: calc(-1 * var(--bleed-foot)); padding-top: var(--bleed-foot); min-height: calc(88vh + var(--bleed-foot)); display: grid; place-items: center; }
.gold-name { margin: 0; font: 500 clamp(19px, 2.1vw, 34px)/1.2 var(--serif); letter-spacing: .3em; padding-left: .3em; color: transparent; white-space: nowrap; user-select: none; -webkit-user-select: none; }
.p-gold[data-fallback] { background: #C99A3E; }
.p-gold[data-fallback] .gold-name { color: var(--gold-deep); }
.links { position: absolute; left: 0; right: 0; bottom: 30px; bottom: max(30px, calc(env(safe-area-inset-bottom) + 16px)); margin: 0; display: flex; justify-content: center; gap: 30px; font: italic 500 19px/1 var(--serif); letter-spacing: .02em; }
.links a { color: var(--gold-deep); text-shadow: 0 1px 0 rgba(255, 244, 200, .5); padding: 8px 2px; transition: color .25s ease; }
.links a:hover { color: #1F1305; }

/* ---- the cards: an app's App Store facts in the page's own type, on a pane of the sky ---- */
.card {
  width: 300px; padding: 24px 24px 22px; border-radius: 30px; text-align: center; color: var(--ink);
  background: rgba(255, 255, 255, .58); -webkit-backdrop-filter: blur(22px) saturate(1.5); backdrop-filter: blur(22px) saturate(1.5);
  border: 1px solid rgba(255, 255, 255, .7);
  box-shadow: 0 34px 70px -34px rgba(16, 30, 110, .5), 0 1px 0 rgba(255, 255, 255, .6) inset;
}
html.dusk .card { background: rgba(24, 38, 132, .5); border-color: rgba(255, 255, 255, .16); box-shadow: 0 34px 70px -30px rgba(2, 6, 40, .6), 0 1px 0 rgba(255, 255, 255, .12) inset; }
.card p { margin: 0; }
.card-kick { font: 500 10px/1 var(--sans); letter-spacing: .22em; padding-left: .22em; text-transform: uppercase; color: var(--ink-soft); }
.card-icon { display: block; width: 62px; height: 62px; margin: 16px auto 0; filter: drop-shadow(0 8px 14px rgba(16, 30, 110, .22)); }
.card-name { margin-top: 12px !important; font: 500 22px/1.2 var(--sans); }
.card-rule { height: 1px; margin: 18px 0 16px; background: currentColor; opacity: .16; }
.card-stats { display: grid; grid-template-columns: 1fr 1px 1fr; align-items: start; }
.card-split { width: 1px; height: 70px; background: currentColor; opacity: .16; }
.card-label { font: 500 9.5px/1 var(--sans); letter-spacing: .16em; padding-left: .16em; text-transform: uppercase; color: var(--ink-soft); }
.card-value { margin: 9px 0 8px !important; font: 300 38px/1 var(--sans); }
.card-sub { font: 400 13px/14px var(--sans); color: var(--ink-soft); }
.card-stars { position: relative; display: inline-block; height: 14px; vertical-align: top; }
.card-stars > span { display: flex; gap: 2.5px; }
.card-stars .s-full { position: absolute; left: 0; top: 0; overflow: hidden; }
.card-stars svg { flex: none; width: 12.5px; height: 12.5px; margin-top: 1px; }
.card-stars .s-empty svg { fill: none; stroke: var(--ink-soft); stroke-width: 1.6; stroke-linejoin: round; }
.card-stars .s-full svg { fill: var(--ink); }

/* on a laptop: beside its app, centered on it, gliding to the next app the pointer moves to; it fades in itself, because a
   fading parent would hide the sky its glass blurs */
.float { position: fixed; left: 0; top: 0; z-index: 30; width: 300px; pointer-events: none; will-change: transform; }
.float .card { position: absolute; left: 0; top: 0; opacity: 0; transform: translateY(6px) scale(.985); transition: opacity .2s ease, transform .5s var(--ease); }
.float .card.on { opacity: 1; transform: none; transition: opacity .3s ease, transform .55s var(--ease); }
/* a phone, or a window with no room beside the words, has no cards: this layer is out of the page (Safari makes its bars
   solid bands of color from layers fixed along the screen's edges) */
html:not(.floaty) .float { display: none; }

html.calm .rec .kick, html.calm .rec li { animation: none; }
@media (prefers-reduced-motion: reduce) {
  .name .l, .rec .kick, .rec li { opacity: 1 !important; transform: none !important; filter: none !important; transition: none !important; animation: none !important; }
}

/* ---- phones ---- */
@media (max-width: 879px) {
  :root { --bleed-top: 18vh; --bleed-foot: 200px; }
  /* the name across the sun as on a laptop, much smaller (his words, Nov 24 2026: "my name's way too big"), a step heavier
     so its strokes hold at this size */
  .name { font-size: var(--name-size, 6.6vw); font-weight: 400; }
  .name .l { filter: blur(3px); }   /* the whole name comes in at once, out of a blur in proportion to its size */
  .p-rec { padding: calc(var(--bleed-top) + 110px) 22px calc(var(--bleed-foot) + 180px); }
  .rec .blk + .blk { margin-top: 104px; }
  .rec .kick { margin-bottom: 26px; }
  .rec li + li { margin-top: 24px; }
  .rec .title { font-size: 21px; line-height: 28px; }
  .rec .note { font-size: 15px; line-height: 21px; }
  .gold-name { font-size: 5vw; letter-spacing: .24em; padding-left: .24em; }
  .links { font-size: 18px; gap: 26px; }
}
