/* Thrive Studios' website (#3036): the look is the logo's (packages/brand/logo.mjs): its dark ground, its inks, the
   bloom's six petals and Manrope, the face its word is cut from. The bloom is the one loud thing on the page; the rest
   stays quiet. No inline styles (the Content-Security-Policy in vercel.json allows none). */
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 400 800; font-display: swap; src: url('/fonts/manrope-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 400 800; font-display: swap; src: url('/fonts/manrope-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --ground: #0d0a0c;   /* GROUND */
  --ink: #f2f0f7;      /* INK.thrive */
  --muted: #9a93b0;    /* INK.studios */
  --rule: #241e26;
  --sun: #ffcf3f;      /* the petals, COLOURS */
  --ember: #ff8a2a;
  --violet: #b23cff;
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; touch-action: manipulation; -webkit-tap-highlight-color: rgb(255 207 63 / 0.25); }
body {
  margin: 0; background: var(--ground); color: var(--ink);
  font: 400 1.0625rem/1.6 'Manrope', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration-color: var(--sun); text-decoration-thickness: 2px; text-underline-offset: 0.22em; }
a:hover { color: var(--sun); }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { margin: 0; font-weight: 800; letter-spacing: -0.025em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
[id] { scroll-margin-top: 1.5rem; }
::selection { background: rgb(178 60 255 / 0.55); color: var(--ink); }

.wrap { width: 100%; max-width: 72rem; margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: var(--gutter); top: -4rem; padding: 0.5rem 0.9rem; background: var(--ink); color: var(--ground); border-radius: 6px; z-index: 2; }
.skip:focus { top: 0.75rem; }

/* The header: the horizontal logo and the page's two places. */
.top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1.25rem; }
.brand { display: block; text-decoration: none; }
.brand svg { height: clamp(3.25rem, 7vw, 4.5rem); width: auto; margin-block: -0.6rem; }
.top nav { display: flex; gap: clamp(1rem, 3vw, 2rem); font-weight: 600; }
.top nav a { text-decoration: none; color: var(--muted); }
.top nav a:hover { color: var(--ink); }

/* The first screen: what the studio makes, beside the bloom, which unfolds petal by petal as the page opens. */
.intro { overflow-x: clip; }
.intro-grid { display: grid; gap: 2.5rem; align-items: center; padding-block: clamp(2.5rem, 8vw, 6rem) clamp(4rem, 10vw, 8rem); }
.intro h1 { font-size: clamp(2.9rem, 7.5vw, 5.6rem); line-height: 0.95; letter-spacing: -0.035em; max-width: 11ch; }
.intro-words p { margin-top: 1.5rem; max-width: 30ch; font-size: clamp(1.15rem, 2.2vw, 1.4rem); line-height: 1.5; color: var(--muted); }
.bloom { width: min(20rem, 70vw); justify-self: center; order: -1; }
.bloom path { transform-box: view-box; transform-origin: 50% 50%; animation: unfold 900ms cubic-bezier(0.2, 0.9, 0.25, 1) both; }
.bloom path:nth-child(2) { animation-delay: 90ms; }
.bloom path:nth-child(3) { animation-delay: 180ms; }
.bloom path:nth-child(4) { animation-delay: 270ms; }
.bloom path:nth-child(5) { animation-delay: 360ms; }
.bloom path:nth-child(6) { animation-delay: 450ms; }
@keyframes unfold { from { opacity: 0; transform: rotate(-75deg) scale(0.35); } }
@media (min-width: 860px) {
  .intro-grid { grid-template-columns: 1.25fr 1fr; min-height: min(78vh, 46rem); }
  .bloom { order: 0; width: min(40rem, 50vw); justify-self: end; translate: 12% 0; }
}

/* The games: one line on the game, then each of its two Steam apps with its own screenshot and petal. */
.games { padding-block: clamp(3.5rem, 9vw, 6.5rem); border-top: 1px solid var(--rule); }
.games h2, .contact h2 { font-size: clamp(2rem, 4.5vw, 3rem); line-height: 1.05; }
.lead { margin-top: 1rem; max-width: 44ch; font-size: clamp(1.15rem, 2vw, 1.35rem); line-height: 1.5; color: var(--muted); }
.game-list { display: grid; gap: clamp(2.5rem, 5vw, 3.5rem); margin-block: clamp(2.5rem, 5vw, 3.5rem); }
@media (min-width: 760px) { .game-list { grid-template-columns: 1fr 1fr; } }
.game img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 14px; background: var(--rule); }
.game h3 { display: flex; align-items: center; gap: 0.6rem; margin-top: 1.4rem; font-size: clamp(1.4rem, 2.6vw, 1.75rem); }
/* A petal before each game's name, the same 60° rhombus as the bloom's: ember for the campaign, violet for the night. */
.game h3::before { content: ''; flex: none; width: 0.62em; height: 1.07em; clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); background: var(--petal); }
.game--campaign { --petal: var(--ember); }
.game--night { --petal: var(--violet); }
.game p { margin-top: 0.6rem; max-width: 46ch; color: var(--muted); }
.game .steam { display: inline-block; margin-top: 1rem; font-weight: 700; color: var(--ink); }
.game a.steam { text-decoration-color: var(--petal); }
.button {
  display: inline-block; padding: 0.8rem 1.4rem; border: 2px solid var(--ink); border-radius: 999px;
  font-weight: 700; text-decoration: none;
}
.button { transition: background-color 150ms ease, color 150ms ease; }
.button:hover { background: var(--ink); color: var(--ground); }
@media (prefers-reduced-motion: reduce) { .button { transition: none; } }

/* Contact: the studio's three addresses (its Google Workspace groups, STUDIO.md §2). */
.contact { padding-block: clamp(3.5rem, 9vw, 6rem); border-top: 1px solid var(--rule); }
.contact dl { display: grid; gap: 1.75rem; margin: 2rem 0 0; }
.contact dl { grid-template-columns: repeat(auto-fit, minmax(min(100%, 21rem), 1fr)); }
.contact dt { color: var(--muted); }
.contact dd { margin: 0.3rem 0 0; font-size: clamp(1.05rem, 1.7vw, 1.25rem); font-weight: 700; overflow-wrap: anywhere; }

/* The privacy page: a column of plain words. */
.prose { max-width: 46rem; padding-block: clamp(2.5rem, 8vw, 5rem) clamp(3.5rem, 9vw, 6rem); }
.prose h1 { font-size: clamp(2.4rem, 6vw, 4rem); line-height: 1; }
.prose h2 { margin-top: 2.5rem; font-size: clamp(1.35rem, 2.6vw, 1.75rem); }
.prose ul { margin: 0.9rem 0 0; padding-left: 1.2rem; color: var(--muted); }
.prose li + li { margin-top: 0.6rem; }
.prose li::marker { color: var(--sun); }
.prose h2 + p, .prose ul + p { margin-top: 0.9rem; color: var(--muted); }
.prose .note { margin-top: 2.5rem; font-size: 0.95rem; color: var(--muted); }

.missing { padding-block: clamp(4rem, 14vw, 9rem); }
.missing h1 { font-size: clamp(2.4rem, 6vw, 4rem); line-height: 1; }
.missing p { margin-top: 1.25rem; color: var(--muted); }

.foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; padding-block: 2rem 2.5rem; border-top: 1px solid var(--rule); color: var(--muted); font-size: 0.95rem; }
.foot-name { display: flex; align-items: center; gap: 0.8rem; }
.foot-mark { width: 1.6rem; height: 1.6rem; }
.foot nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
.foot nav a { text-decoration: none; }
.foot nav a:hover { color: var(--ink); text-decoration: underline; text-decoration-color: var(--sun); }

@media (prefers-reduced-motion: reduce) { .bloom path { animation: none; } }
