/* noocene.ai — the brand, as one stylesheet every page loads.
 *
 * From stages/05_brand (type pairings, round 1, 2026-10-02):
 *   Serif carries the thinker's words and name. The second face carries
 *   machine replies, the user's question and the interface. Oxide marks
 *   generated text only. Pairing 1a: Fraunces + IBM Plex Mono.
 *   Colours: Ground #121416 · Line #2A2E33 · Ink #E9E6E1 · Paper #F4F3F0 · Oxide #C8714E
 *
 * To try another pairing, change the two font stacks under :root and swap the
 * @font-face files. Nothing else should need to move.
 *
 * Fonts are self-hosted under /assets/fonts/ (SIL Open Font Licence), taken
 * from the pairings bundle. This file and those fonts are the only things the
 * sign-in page can load before a visitor has the cookie, so the root
 * .htaccess exempts exactly them from the gate.
 */

@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 300 600; font-display: swap;
  src: url("/assets/fonts/Fraunces-Normal-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: "Fraunces"; font-style: normal; font-weight: 300 600; font-display: swap;
  src: url("/assets/fonts/Fraunces-Normal-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Fraunces"; font-style: italic; font-weight: 300 600; font-display: swap;
  src: url("/assets/fonts/Fraunces-Italic-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: "Fraunces"; font-style: italic; font-weight: 300 600; font-display: swap;
  src: url("/assets/fonts/Fraunces-Italic-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("/assets/fonts/IBM-Plex-Mono-400-Normal-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: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("/assets/fonts/IBM-Plex-Mono-400-Normal-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "IBM Plex Mono"; font-style: italic; font-weight: 400; font-display: swap;
  src: url("/assets/fonts/IBM-Plex-Mono-400-Italic-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: "IBM Plex Mono"; font-style: italic; font-weight: 400; font-display: swap;
  src: url("/assets/fonts/IBM-Plex-Mono-400-Italic-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("/assets/fonts/IBM-Plex-Mono-500-Normal-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: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("/assets/fonts/IBM-Plex-Mono-500-Normal-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* Dark is the default (the brief: dark screens first). A visitor can switch
   the whole site to light with the "Light mode" button; the choice is kept in
   the browser (localStorage "nc-theme") and applied by a one-line script in
   each page's <head> before anything paints. Light mode is the same five
   colours the other way up: Paper becomes the ground, Ink the text. */
:root {
  color-scheme: dark;
  --ground: #121416;
  --ground-2: #16191c;              /* a panel on the ground */
  --ground-rgb: 18, 20, 22;         /* for gradients and translucent fills */
  --line: #2A2E33;
  --line-soft: #1e2226;             /* a rule inside a panel */
  --ink: #E9E6E1;
  --ink-dim: rgba(233, 230, 225, .62);
  --ink-faint: rgba(233, 230, 225, .40);
  --paper: #F4F3F0;
  --oxide: #C8714E;
  --contrast: #F4F3F0;              /* the opposite pole: buttons, selection, focus */
  --contrast-hover: #ffffff;
  --serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --radius: 6px;
  --focus: 2px solid var(--contrast);
}
:root[data-theme="light"] {
  color-scheme: light;
  --ground: #F4F3F0;
  --ground-2: #FBFAF8;
  --ground-rgb: 244, 243, 240;
  --line: #D6D2CA;
  --line-soft: #E5E2DB;
  --ink: #121416;
  --ink-dim: rgba(18, 20, 22, .66);
  --ink-faint: rgba(18, 20, 22, .46);
  --contrast: #121416;
  --contrast-hover: #000000;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { margin: 0; }
body {
  background: var(--ground);
  color: var(--ink);
  font: 400 15px/1.65 var(--mono);
  -webkit-font-smoothing: antialiased;
  font-optical-sizing: auto;
}
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: .18em; text-decoration-color: var(--ink-faint); }
:focus-visible { outline: var(--focus); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--contrast); color: var(--ground); }
i, em, cite { font-style: italic; }
img { max-width: 100%; }

/* ---- the two registers ---------------------------------------------------- */
.serif, .nc-serif { font-family: var(--serif); font-weight: 400; letter-spacing: -.005em; }
.mono, .nc-mono  { font-family: var(--mono); }

/* A small mono label, letter-spaced, as on every panel in the pairings. */
.nc-label {
  font: 500 .68rem/1.2 var(--mono);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-dim);
}
/* Generated text is the one thing oxide marks. The square is the mark. */
.nc-label.gen { color: var(--oxide); }
.nc-label.gen::before { content: ""; display: inline-block; width: .42em; height: .42em; background: var(--oxide); margin: 0 .6em .08em 0; vertical-align: baseline; }

/* ---- wordmark: the point (a line, and a point of oxide above it) + the name */
.nc-wordmark { display: inline-flex; align-items: center; gap: .75rem; color: var(--ink); }
.nc-wordmark:hover { text-decoration: none; }
.nc-wordmark svg { width: 2.75rem; height: 1.95rem; flex: none; display: block; }
.nc-wordmark .name { font: 400 2.4rem/1 var(--serif); letter-spacing: -.014em; transform: translateY(-.05em); }

/* ---- controls --------------------------------------------------------------- */
.nc-btn {
  display: inline-block;
  font: 500 .85rem/1 var(--mono);
  letter-spacing: .01em;
  color: var(--ground);
  background: var(--contrast);
  border: 1px solid var(--contrast);
  border-radius: var(--radius);
  padding: .8rem 1.15rem;
  cursor: pointer;
}
.nc-btn:hover { text-decoration: none; background: var(--contrast-hover); border-color: var(--contrast-hover); }
.nc-btn.ghost { color: var(--ink); background: transparent; border-color: var(--line); }
.nc-btn.ghost:hover { background: var(--ground-2); border-color: var(--ink-faint); }
.nc-btn[disabled], .nc-btn[aria-disabled="true"] { opacity: .4; cursor: default; pointer-events: none; }

.nc-input, textarea.nc-input, input.nc-input {
  font: 400 .95rem/1.5 var(--mono);
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: .8rem .95rem;
}
.nc-input::placeholder { color: var(--ink-faint); }
.nc-input:focus { outline: none; border-color: var(--ink-dim); }

/* The light/dark switch: a button that looks like the nav links around it. */
.nc-theme { font: inherit; color: var(--ink-dim); background: none; border: 0; padding: 0; cursor: pointer; letter-spacing: inherit; }
.nc-theme:hover { color: var(--ink); text-decoration: underline; text-underline-offset: .18em; text-decoration-color: var(--ink-faint); }

/* ---- rules ------------------------------------------------------------------ */
.nc-hr { border: 0; border-top: 1px solid var(--line); margin: 0; }
.nc-panel { background: var(--ground-2); border: 1px solid var(--line); border-radius: 12px; }

@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
