/* The studio identity (owner 2026-10-23: "premium ... no big red boxes or black"). Light and polished: a warm white
   ground, near-black type, one dark cinema red used only for the primary action and small highlights. Rounded cards
   with soft depth, a floating glass nav, smooth entrances. Hanken Grotesk for everything, Instrument Serif italic for
   the one word a headline leans on. Both OFL, self-hosted. */

@font-face { font-family: "Hanken Grotesk"; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url(/assets/fonts/hanken-grotesk-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: "Hanken Grotesk"; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url(/assets/fonts/hanken-grotesk-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; }
@font-face { font-family: "Instrument Serif"; font-style: italic; font-weight: 400; font-display: swap;
  src: url(/assets/fonts/instrument-serif-italic-400-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; }
@font-face { font-family: "Instrument Serif"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(/assets/fonts/instrument-serif-normal-400-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: #f7f6f3;        /* warm white */
  --surface: #ffffff;       /* cards */
  --tint: #efede8;          /* quiet panels */
  --ink: #141416;           /* near-black type */
  --ink-2: #3c3c42;
  --muted: #6b6b73;         /* secondary text, 5.4:1 */
  --line: rgba(20, 20, 22, .08);
  --line-2: rgba(20, 20, 22, .14);
  --red: #a8202a;           /* the primary action and small highlights only */
  --red-soft: rgba(168, 32, 42, .10);
  --ok: #1f7a4d;

  --sans: "Hanken Grotesk", "Segoe UI", system-ui, sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --r-lg: 28px; --r: 18px; --r-sm: 12px; --r-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(20, 20, 22, .05), 0 2px 8px rgba(20, 20, 22, .04);
  --shadow: 0 1px 2px rgba(20, 20, 22, .04), 0 12px 32px -8px rgba(20, 20, 22, .12);
  --shadow-lg: 0 2px 4px rgba(20, 20, 22, .04), 0 40px 80px -24px rgba(20, 20, 22, .22);
  --wrap: 1200px;
  --pad: clamp(20px, 4vw, 40px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  /* the older pages (dashboard, admin, sign-in) take the same identity */
  --bg: var(--ground); --bg2: var(--tint); --bg3: #e7e4de; --ink2: var(--ink-2); --card: var(--surface); --card2: var(--surface);
  --ember: var(--red); --ember2: #c94a52; --grad: var(--red); --mono: ui-monospace, "Cascadia Code", Consolas, monospace;
  --btn-bg: var(--ink); --btn-ink: #fff; --r2: var(--r-sm);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: var(--ground); --bg2: var(--tint); --ink: #141416; --ink2: var(--ink-2); --muted: #6b6b73; --card: #fff;
          --card2: #fff; --line: rgba(20, 20, 22, .08); --line2: rgba(20, 20, 22, .14); --btn-bg: #141416; --btn-ink: #fff;
          color-scheme: light; }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--ground); color: var(--ink); font: 400 17px/1.55 var(--sans);
       -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, h4, p { margin: 0; }
button, input { font: inherit; color: inherit; }
::selection { background: var(--red); color: #fff; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 6px; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }
.muted { color: var(--muted); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 22px;
       border-radius: var(--r-pill); font: 600 15px/1 var(--sans); text-decoration: none; border: 1px solid transparent;
       cursor: pointer; transition: transform .18s var(--ease), background-color .18s var(--ease), box-shadow .18s var(--ease); }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn-primary { background: var(--red); color: #fff; box-shadow: 0 6px 18px -6px rgba(168, 32, 42, .55); }
.btn-primary:hover { background: #951b24; }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line-2); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { border-color: rgba(20, 20, 22, .24); }
.btn-sm { height: 40px; padding: 0 16px; font-size: 14px; }

/* the floating glass nav */
.nav { position: sticky; top: 14px; z-index: 50; padding: 0 var(--pad); }
.nav-in { max-width: var(--wrap); margin: 0 auto; display: flex; align-items: center; gap: 20px; height: 60px; padding: 0 10px 0 18px;
          border-radius: var(--r-pill); background: rgba(255, 255, 255, .72); border: 1px solid var(--line);
          backdrop-filter: saturate(1.6) blur(16px); -webkit-backdrop-filter: saturate(1.6) blur(16px); box-shadow: var(--shadow-sm); }
.wordmark { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 17px; text-decoration: none; letter-spacing: -0.02em; }
.wordmark .mark { width: 28px; height: 28px; }
.nav-links { display: flex; gap: 4px; margin: 0 auto; }
.nav-links a { padding: 8px 14px; border-radius: var(--r-pill); font-size: 15px; text-decoration: none; color: var(--ink-2);
               transition: background-color .18s var(--ease), color .18s var(--ease); }
.nav-links a:hover { background: var(--tint); color: var(--ink); }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-signin { font-size: 15px; text-decoration: none; color: var(--ink-2); }
.nav-signin:hover { color: var(--ink); }
.nav-menu { display: none; width: 40px; height: 40px; border: 0; background: none; cursor: pointer; position: relative; }
.nav-menu span { position: absolute; left: 11px; right: 11px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s var(--ease); }
.nav-menu span:first-child { top: 15px; } .nav-menu span:last-child { top: 23px; }
.nav.open .nav-menu span:first-child { transform: translateY(4px) rotate(45deg); }
.nav.open .nav-menu span:last-child { transform: translateY(-4px) rotate(-45deg); }
@media (max-width: 860px) {
  .nav-links, .nav-signin { display: none; }
  .nav-menu { display: block; }
  .nav-cta { margin-left: auto; }
  .nav.open .nav-links { display: flex; position: absolute; top: 70px; left: var(--pad); right: var(--pad); flex-direction: column;
                         padding: 10px; background: #fff; border-radius: var(--r); box-shadow: var(--shadow-lg); border: 1px solid var(--line); }
  .nav.open .nav-links a { font-size: 17px; padding: 12px 14px; }
}

/* footer */
.foot { margin-top: 120px; border-top: 1px solid var(--line); padding: 56px var(--pad) 32px; }
.foot-in, .foot-last { max-width: var(--wrap); margin: 0 auto; }
.foot-in { display: grid; grid-template-columns: 1.4fr 2fr; gap: 48px; }
.foot-brand p { margin-top: 14px; color: var(--muted); max-width: 36ch; font-size: 15px; }
.foot-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.foot-cols h4 { font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 12px; }
.foot-cols a { display: block; font-size: 15px; color: var(--muted); text-decoration: none; padding: 4px 0; }
.foot-cols a:hover { color: var(--ink); }
.foot-last { display: flex; justify-content: space-between; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line);
             font-size: 14px; color: var(--muted); }
.foot-last a { text-decoration: none; }
@media (max-width: 860px) {
  .foot-in { grid-template-columns: 1fr; }
  .foot-cols { grid-template-columns: 1fr 1fr; }
}

/* entrances: rise once, never hidden without script or for long */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
  .js .reveal.is-in { opacity: 1; transform: none; }
}
/* the first screen: animated by CSS the moment it paints, never waiting on script */
@media (prefers-reduced-motion: no-preference) {
  .rise-now { animation: rise-now .9s var(--ease) both; }
  .rise-now:nth-child(2) { animation-delay: .06s; } .rise-now:nth-child(3) { animation-delay: .12s; }
  .rise-now:nth-child(4) { animation-delay: .18s; } .rise-now:nth-child(5) { animation-delay: .26s; }
  @keyframes rise-now { from { opacity: 0; transform: translateY(16px); } }
}
