/* account.nutria.cc. One stylesheet for every page, one column of text.

   Clear water on the web (ADR-080, docs/specs/clear-water/). This is the
   plainer sibling of nutria.cc/assets/site.css: the same token names, read
   from design/contract/tokens.json and written out here by hand because
   this directory has no build step, and the same translation decisions
   (one family, letter spacing 0, no uppercase labels, contract radii).
   These are task pages (a reset, a deletion, an export), not a root page,
   so there is no atmosphere wash (CW-11): canvas, plain.

   Light and dark are both real modes of the contract, and the visitor's
   system picks (`prefers-color-scheme`). There is no theme switch, because
   a switch is a preference to store and the site stores nothing (ADR-029
   rule 8). Light is what an unset browser gets, which is the contract's
   own default ground.

   The faces are served from this origin (assets/fonts), copied from
   nutria.cc's: this directory makes no third-party request either
   (`.claude/rules/web.md` §4), and `_headers`' CSP already allows
   `font-src 'self'`. */

@font-face {
  font-family: "Schibsted Grotesk"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("fonts/schibsted-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: "Schibsted Grotesk"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("fonts/schibsted-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Tokens (design/contract/tokens.json) ---------- */
:root {
  --canvas: #EDF4FC; --surface: #FFFFFF; --surface-alt: #E5ECF8;
  --ink: #233650; --muted: #495C75;
  --accent: #4056A4; --on-accent: #FFFFFF; --accent-soft: #DFE7FC;
  --line: #CBD5E5; --control-line: #61748D;
  --danger: #AB2940; --warning: #795300;
  --surface-edge: #FFFFFF;
  --atmosphere-a: #CBD7FA; --atmosphere-b: #C6E4E6;

  --f: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --r-control: 14px; --r-card: 20px; --r-sheet: 28px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --canvas: #141C28; --surface: #263142; --surface-alt: #2B3748;
    --ink: #E8EDF5; --muted: #B3BDCD;
    --accent: #B0BEF3; --on-accent: #1B2745; --accent-soft: #303C55;
    --line: #425066; --control-line: #8899B1;
    --danger: #F3ACB9; --warning: #E3CA91;
    --surface-edge: #65738A;
    --atmosphere-a: #242F46; --atmosphere-b: #1C343A;
  }
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--canvas); color: var(--ink); }
body {
  font: 400 17px/1.5 var(--f); letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
}
.page { max-width: 560px; margin: 0 auto; padding: 24px 20px 48px; }
.brand { display: flex; align-items: center; gap: 10px; font: 600 17px/1 var(--f); margin-bottom: 28px; }
.mark { width: 24px; height: 24px; flex: none; display: block; }
/* The dev badge, not a section label, so it takes no uppercase or tracking
   (CW-12); it is only ever shown against the dev project. */
.dev { font: 600 12px/1.4 var(--f); color: var(--muted); border: 1px solid var(--line); border-radius: 5px; padding: 1px 6px; }
h1 { font: 500 30px/1.15 var(--f); margin: 0 0 12px; }
h2 { font: 600 20px/1.3 var(--f); margin: 24px 0 8px; }
/* The label role: 14/20/600, no uppercase and no tracking (CW-12). */
h2.section { font: 600 14px/20px var(--f); color: var(--muted); margin: 28px 0 6px; }
.lead { font-size: 18px; margin: 0 0 8px; }
ul { margin: 0; padding-left: 22px; }
li { margin: 4px 0; }
.note { color: var(--muted); font-size: 15px; margin: 12px 0 0; }
.links { display: flex; flex-wrap: wrap; gap: 6px 18px; }
a { color: var(--accent); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.confirm { margin-top: 32px; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); }

/* Confirming an irreversible consequence is a dialog (CW-01): opaque, the
   sheet radius on every corner, capped at the contract's dialog width, over
   a scrim. Its safe action comes first and carries the accent (CW-25); the
   provider buttons below it keep their own artwork (ADR-048). Dark takes a
   surfaceEdge hairline instead of the shadow, like every other elevated
   surface in the contract (CW-11). */
dialog {
  width: calc(100% - 32px); max-width: 360px;
  margin: auto; padding: 24px 20px;
  border: 0; border-radius: var(--r-sheet);
  background: var(--surface); color: var(--ink);
  box-shadow: 0 8px 24px rgba(35, 54, 80, .10);
}
dialog::backdrop { background: rgba(20, 28, 40, .55); }
dialog h2 { margin: 0 0 8px; }
dialog .note { margin: 0 0 16px; }
dialog .problem { margin: 0 0 12px; }
@media (prefers-color-scheme: dark) {
  dialog { border: 1px solid var(--surface-edge); box-shadow: none; }
}
.confirm h2 { margin-top: 0; }
/* Primary commit action (CW-21): accent fill, onAccent label, control radius. */
.btn {
  display: block; width: 100%; min-height: 48px; margin-top: 10px; padding: 14px 18px; border-radius: var(--r-control);
  border: 1px solid transparent; font: 600 17px/1 var(--f); cursor: pointer;
  background: var(--accent); color: var(--on-accent);
}
/* Apple and Google are vendor sign-in marks: CW-14 and ADR-048 keep vendor
   artwork unrecolored, so this pair stays black/white regardless of theme. */
.btn.apple { background: #000; color: #fff; }
@media (prefers-color-scheme: dark) { .btn.apple { background: #fff; color: #000; } }
.btn.google { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.secondary { background: transparent; color: var(--ink); border-color: var(--line); }
.btn:disabled { opacity: .5; cursor: default; }
/* An error message is `danger` (CW-10); `warning` is reserved for the
   product's own caution, which this page never shows. */
.problem { color: var(--danger); font-size: 15px; margin: 0 0 12px; }
/* The forms (ADR-050 rules 12 and 15): one column, 48px targets, the
   autocomplete attributes the phone's password manager keys on. */
.field { display: block; margin-top: 14px; }
.field > span:first-child { display: block; font-size: 14px; color: var(--muted); margin-bottom: 6px; }
.field input {
  width: 100%; min-height: 48px; padding: 12px 14px; border-radius: var(--r-control);
  border: 1px solid var(--control-line); background: var(--surface); color: var(--ink); font: inherit;
}
.field input:read-only { color: var(--muted); }
.field input:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.password { position: relative; display: block; }
.password input { padding-right: 84px; }
.toggle {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  min-height: 48px; padding: 0 10px; border: 0; background: transparent;
  color: var(--accent); font: inherit; font-size: 15px; cursor: pointer;
}
.text { display: block; width: 100%; min-height: 48px; margin-top: 10px; padding: 12px; border: 0; background: transparent; color: var(--accent); font: inherit; font-weight: 600; cursor: pointer; }
.open { margin-top: 28px; }
.open .btn { text-align: center; text-decoration: none; }
.foot { margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.foot p { margin: 6px 0; }
[hidden] { display: none !important; }
/* /connect: the host the approval goes to is the headline, above the name the
   app gave itself. An address has no spaces, so it breaks anywhere rather
   than run off a phone. */
.host-label { margin: 0 0 4px; }
h1.host { overflow-wrap: anywhere; margin-bottom: 16px; }
/* /connect: who is signed in, and the way to switch. */
.who { margin-top: 28px; padding-top: 12px; border-top: 1px solid var(--line); }
.who .note { margin: 0; overflow-wrap: anywhere; }
.who .text { text-align: left; padding-left: 0; margin-top: 2px; }
