/* ============================================================================
   inou.css — InoU's one stylesheet for folio-rs (One face, D-310; P-2853, P-3215).

   InoU is an offspring of Clavitor: same engine, same .fo markup, same block
   vocabulary — and deliberately nothing shared visually. folio-rs ships no
   stylesheet so that two products using it can look nothing alike
   (folio-rs/src/contract.rs).

   How this file is held (face.toml; `face check`):
     1. Every value is named once, in the :root block below. Nothing else writes
        a colour, a font size, a spacing or a radius.
     2. Every element is defined once. A different look is a named variant.
     3. Light only: the site has one mood. A dark theme would exist only if an atom named it.
     4. The :root block defines every name of folio-rs's VALUE_CONTRACT (the
        "contract" group), so a Folio piece reads right the day a page loads one.
   site/tests/style.rs asserts that every class a served page emits has a rule here
   and that every block-scoped .container rule names the same blocks.

   Two rules run through the look:
     - Marigold is a GROUND on light, never ink on light (measured 1.77:1 against
       paper). Text on marigold is ink.
     - One width. Every block centres in --width; text limits itself with
       max-width on the element, never by changing the container.
   ========================================================================= */

:root{
  color-scheme:light;

  /* ---- brand ---------------------------------------------------------- */
  --marigold:#E9A32B;
  --cocoa:#2B1B0F;

  /* ---- contract: colour (folio-rs VALUE_CONTRACT) ----------------------- */
  --ink:#241708;
  --ink-soft:#6B5B4A;
  --ink-faint:#857A70;
  --surface:#F3EFE6;
  --surface-alt:#EAE4D8;
  --line:#DCD4C4;
  --accent:#8A5714;            /* marigold darkened until it reads as ink on paper */
  --accent-deep:#6B4210;
  --accent-tint:color-mix(in srgb,var(--marigold) 22%,var(--surface));
  --on-accent:#FBF8F1;
  --good:#2F7D4F;
  --good-tint:#E3F0E6;
  --on-good:#FBF8F1;
  --wrong:#B4462F;
  --wrong-tint:#F7E4DE;
  --scrim:rgba(43,27,15,.45);
  --shadow:none;               /* the site is flat */

  /* ---- InoU's own colour ------------------------------------------------- */
  --ink-on-marigold:color-mix(in srgb,var(--cocoa) 72%,transparent);

  /* ---- type -------------------------------------------------------------
     Figtree carries the text. Quicksand is the wordmark's face and stays the
     voice of the headings: at body size its single-storey `a` reads juvenile.
     Quicksand has no Cyrillic and no CJK, so those fall through per glyph to
     Noto Sans, Noto Sans JP (before KR, so kana takes Japanese forms) and
     Noto Sans KR. No :lang() rules anywhere. */
  --font-sans:'Figtree','Noto Sans','Noto Sans JP','Noto Sans KR',system-ui,sans-serif;
  --font-display:'Quicksand','Noto Sans','Noto Sans JP','Noto Sans KR',system-ui,sans-serif;
  --font-mono:'Spline Sans Mono',ui-monospace,'SFMono-Regular',Menlo,monospace;
  --w-normal:400;
  --w-medium:500;
  --w-bold:700;

  --t-xs:.8125rem;
  --t-sm:.9375rem;
  --t-base:1.0625rem;
  --t-lead:1.35rem;
  --t-xl:1.375rem;
  --t-h2:clamp(1.7rem,3.4vw,2.9rem);
  --t-plate:clamp(3.1rem,11vw,9.5rem);
  --t-code:.92em;
  --indent-list:1.25em;
  --pad-code:.35em;

  --ls-plate:-.045em;
  --ls-heading:-.025em;
  --ls-mono:.02em;


  /* ---- spacing and measure ------------------------------------------------ */
  --sp-1:8px;
  --sp-2:14px;
  --sp-3:20px;
  --sp-4:32px;
  --sp-5:48px;
  --sp-6:64px;
  --sp-7:88px;
  --sp-8:104px;
  --width:1280px;
  --measure:980px;
  --pad:clamp(20px,5vw,64px);

  /* ---- shape ----------------------------------------------------------------- */
  --radius:14px;
  --radius-sm:6px;
}

*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:var(--marigold);color:var(--ink);
     font:var(--w-normal) var(--t-base)/1.65 var(--font-sans);
     text-rendering:optimizeLegibility;}
a{color:inherit}
:focus-visible{outline:2px solid var(--accent);outline-offset:3px;border-radius:var(--radius-sm)}
@media (prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}

/* ---- the lockup header inou-site writes above every page ------------------- */
.site-head{padding:var(--sp-4) 0 var(--sp-1);background:var(--marigold);}
.site-head svg{height:34px;width:auto;display:block;color:var(--ink);}

/* ---- the one width ------------------------------------------------------------
   Folio hands every block the same .container. The annotated column is ONE
   measure declared ONCE for every block that carries it; a host that styles
   .container per block loses the one-width guarantee (site/tests/style.rs). */
.container{max-width:var(--width);margin:0 auto;padding-inline:var(--pad);}
.section>.container,.section-alt>.container,.aside>.container{
  margin-left:max(var(--pad),16%);max-width:var(--measure);
  border-left:1px solid var(--line);padding-left:var(--sp-4);}

/* ---- :::hero: the headline plate on marigold --------------------------------- */
.hero{padding-block:var(--sp-8) var(--sp-7);text-align:center;}
.hero .section-eyebrow{margin-bottom:var(--sp-4);color:var(--ink-on-marigold);}
.hero-header{margin:0 auto;max-width:none;font-family:var(--font-display);
             font-size:var(--t-plate);font-weight:var(--w-bold);line-height:.9;
             letter-spacing:var(--ls-plate);text-wrap:balance;}
.hero-lead{margin:var(--sp-4) auto 0;max-width:50ch;font-size:var(--t-lead);
           font-weight:var(--w-medium);line-height:1.4;}

/* ---- :::section ----------------------------------------------------------------- */
.section{padding:var(--sp-6) 0 var(--sp-7);background:var(--surface);}
.section-alt{padding:var(--sp-6) 0 var(--sp-7);background:var(--surface-alt);}
.section-eyebrow,.aside-eyebrow{display:block;margin:0 0 var(--sp-3);font-family:var(--font-mono);
                   font-size:var(--t-xs);font-weight:var(--w-medium);line-height:1;
                   letter-spacing:var(--ls-mono);color:var(--ink-on-marigold);}
.section-header{margin:0;max-width:22ch;font-family:var(--font-display);
                font-size:var(--t-h2);font-weight:var(--w-bold);line-height:1.1;
                letter-spacing:var(--ls-heading);text-wrap:balance;}
.section p:not(.section-eyebrow),.section-alt p:not(.section-eyebrow){margin:var(--sp-3) 0 0;max-width:48ch;font-size:var(--t-lead);
                          font-weight:var(--w-medium);line-height:1.42;color:var(--ink);}

/* ---- :::grid and :::card ----------------------------------------------------------- */
.grid-2{display:grid;gap:var(--sp-5);margin-top:var(--sp-4);
        grid-template-columns:repeat(auto-fit,minmax(280px,1fr));}
.card-feature{padding:0 0 0 var(--sp-4);border-left:1px solid var(--line);}

/* ---- :::aside: a numbered annotation, the page's main block -------------------------- */
.aside{padding:var(--sp-7) 0 var(--sp-8);background:var(--surface);}
.aside-layout{display:grid;grid-template-columns:1fr;gap:var(--sp-5);align-items:start;}
@media (max-width:900px){ .aside-layout{gap:var(--sp-3);} }
.aside-left{min-width:0;}

.aside-header{font-family:var(--font-display);font-size:var(--t-h2);font-weight:var(--w-bold);
              line-height:1.1;letter-spacing:var(--ls-heading);}
.aside-subtitle{margin-top:var(--sp-2);max-width:48ch;font-size:var(--t-lead);
                font-weight:var(--w-medium);line-height:1.42;color:var(--ink-soft);}
.aside-body p{margin:0 0 var(--sp-2);max-width:54ch;font-size:var(--t-base);
              font-weight:var(--w-medium);line-height:1.5;}
.aside-body p:last-child{margin-bottom:0;}

/* ---- :::photo ------------------------------------------------------------------------ */
.photo{margin:0;padding:0;background:var(--surface);}
.photo-img{display:block;width:100%;height:clamp(300px,42vw,560px);object-fit:cover;}
.focus-middle-center{object-position:50% 50%;}
.photo-caption{margin:var(--sp-2) 0 0;margin-left:max(var(--pad),16%);max-width:var(--measure);
               padding:0 0 var(--sp-4) calc(var(--sp-4) + 1px);
               font-size:var(--t-sm);color:var(--ink-soft);}

/* ---- Markdown natives: a list, a code span, THE table ---------------------------------
   Folio emits a bare <table> for pipe tables: no class, so STYLE_CONTRACT cannot
   catch a missing rule. InoU has one table look (before P-3215 it had three: a
   base table, .compare-table, and .aside table); it reads as data, in mono. */
ul,ol{max-width:65ch;padding-left:var(--indent-list);}
li{margin:0 0 var(--sp-1);}
pre,kbd,samp{font-family:var(--font-mono);}
code{font-family:var(--font-mono);font-size:var(--t-code);background:var(--surface-alt);padding:0 var(--pad-code);border-radius:var(--radius-sm);}
.code-block{margin:var(--sp-3) 0 0;padding:var(--sp-2) var(--sp-3);background:var(--surface-alt);
            border-radius:var(--radius-sm);overflow-x:auto;}
.code-block code{padding:0;}
table{width:auto;margin:var(--sp-5) 0 0;border-collapse:collapse;font-family:var(--font-mono);
      font-size:var(--t-base);font-weight:var(--w-medium);font-variant-numeric:tabular-nums;}
th{padding:0 var(--sp-4) var(--sp-2) 0;border-bottom:1px solid var(--line);white-space:nowrap;
   text-align:left;font-size:var(--t-xs);font-weight:var(--w-medium);
   letter-spacing:var(--ls-mono);color:var(--ink-faint);}
td{padding:var(--sp-2) var(--sp-4) var(--sp-2) 0;border-bottom:1px solid var(--line);
   white-space:nowrap;vertical-align:top;}
td:first-child{color:var(--ink-soft);}
tr:last-child td{border-bottom:0;}
th:last-child,td:last-child{padding-right:0;white-space:normal;}
@media (max-width:640px){ table{display:block;overflow-x:auto;} }
/* /status: :::status and :::network-map are core/status's piece, styled by its own sheets
   (/fleet/status.css, /fleet/map.css, served by the edge). No second definition here (P-2853). */
