/* ============================================================================
   TOKENS — what a study page links. Since 1 October 2026 (roadmap 30 U1)
   it holds nothing of the palette itself; it pulls in the three sheets
   that do, then names the colours only the study pages use.

     shell.css     the palette, generated from the design tokens (tokens.json
                   §shell, the lesson's own file) as --t-shell-*, light and
                   dark. Never edited here.
     semantic.css  the designer's names (--ink, --blue, --rose-field …) mapped
                   onto it. Read it for what each family is for.
     scale.css     type (--ty-*), space, radius, weight, measure, tracking,
                   lift and the faces.

   A product page (sign-in, consent, library, the player's bar) does not
   link this file: it links those three directly, because the app copies
   exactly what a contract page loads and none of the study pages' colours
   below (ui/contracts/README.md).

   The colours below are still literal hexes, as every colour once was
   here. They are each one page's own — My study's board, its night, its
   dark mode — and become tokens.json entries the day a product page needs
   one. Additions only, in the block of the page that needs them.
   ========================================================================= */
@import url("shell.css");
@import url("semantic.css");
@import url("scale.css");


/* ============================================================================
   MY STUDY'S DAY — the board, the notes, the highlighters, the night band,
   and the day states.
   ========================================================================= */
:root{
  /* The month's board by day (round 28): cork, its grain, and the sticky
     notes pinned to it for what is coming up. --ink is 7.2:1 on the cork
     and 12.5:1 or more on every note. */
  --cork:#CFA472; --cork-deep:#946537; --cork-hi:#E6C595;
  --note-yellow:#FFF0A6; --note-pink:#FFD6DE; --note-blue:#D3E7FB; --note-green:#D6F0D7;
  /* The 오답노트's highlighters (round 30), one per subject; --ink stays
     above 10:1 on each, as it is written over them. */
  --hl-yellow:#FFE566; --hl-pink:#FFC2D2; --hl-green:#BDEDB0;
  /* Continue?'s band by day (round 31): Today's night, in green. --on-fill
     is 15.3:1 and 8.1:1 on its two ends. */
  --green-night:#0F2A20; --green-night-2:#1E5A43;

  /* ---- day states -------------------------------------------------------
     Named for what the day DID, not for the colour, so the calendar can be
     restyled without hunting through app.css for "the green one".

     WHY COLOUR IS NOT DOING THE WORK ALONE. A day block says whether the
     day met its target. Colour carries that fastest, but it cannot carry
     it ALONE — roughly one man in twelve cannot separate this green from
     this red, and WCAG 1.4.1 is the rule that says so. Every day state
     therefore has three channels: the tint, the bar against a dashed target
     line you can see it fall short of, and a mark ("✓", "−9m") that says it
     in words. Turn the page greyscale and it still reads. A pastel border
     cannot be one of those channels (WCAG 1.4.11 wants 3:1, and every
     pastel line tested came in under 2.8:1 on white), so the BAR is the
     strong signal and the border is decoration. */
  --day-complete:      var(--green);        /* met the target            */
  --day-complete-bg:   var(--green-tint);
  --day-complete-line: #BCD6C7;
  --day-missed:        var(--red);          /* fell short                */
  --day-missed-bg:     var(--red-tint);
  --day-missed-line:   var(--red-pale);
  --day-today:         var(--blue);         /* in progress               */
  --day-today-bg:      var(--blue-tint);
  --day-planned:       var(--blue-pale);    /* not here yet              */
  --day-rest:          var(--muted2);       /* no target was set         */
  /* 3.15:1 on the green tint, 3.18 on the red, 3.21 on the blue, 3.63 on
     white. The line is what makes a short bar read as a shortfall, so it is
     a graphical object carrying meaning and WCAG 1.4.11 wants 3:1 — the
     softer #A9B4AE this replaces managed 1.87 and was decoration pretending
     to be information. */
  --day-target-line:   #7E8982;             /* where the target sat      */
}


/* ============================================================================
   MY STUDY — colours the student page names that the palette did not.
   Added 24 September by the student-page session, when the page left
   app.css, where each of these was a literal hex. Additions only: nothing
   above changes, and nothing else referenced these names when they arrived.
   ========================================================================= */
:root{
  /* THE PLAN RAMP — taught, still to teach, revision — per subject. The
     plan page's chart is drawn in exactly these, and the dashboard's plan
     strip is a preview of that chart, so they are one set of colours, not
     two that look alike. Validated as ramps: the light end was re-stepped
     until it cleared a white card (DESIGN-NOTES, Part 3). The first step of
     each is the subject's own deep accent. */
  --plan-maths-1:var(--blue-deep);    --plan-maths-2:#5090BE;   --plan-maths-3:#8CB9D8;
  --plan-english-1:var(--amber-deep); --plan-english-2:#AB8440; --plan-english-3:#CBAE76;
  --plan-science-1:var(--green);      --plan-science-2:#61997A; --plan-science-3:#8BB69F;
  --plan-korean-1:#5B3A63;            --plan-korean-2:#8F6A97;  --plan-korean-3:#B99DBF;

  /* THE 오답노트'S PAPER — the one skeuomorphic surface in the product
     (HANDOVER §5): cream stock, a spiral, dashed rules. Kept to the notebook
     so it stays personal rather than becoming the page's texture. */
  --notebook-paper:#FFFCF4;   /* the top of the sheet                      */
  --notebook-paper-2:#FDF6E7; /* the foot of it, and the spiral's holes     */
  --notebook-edge:#F0E3C8;    /* the binding strip and the sheet's edge     */
  --notebook-ring:#C7A85C;    /* a ring of the spiral                       */
  --notebook-rule:#E7D6A6;    /* the dashed line between entries            */
  --notebook-chip:#F5E8CC;    /* a count chip on the paper                  */
  --notebook-hair:#EADCBC;    /* the head's hairline on the paper           */
  /* The page itself, since the notebook became a page (round 3): the pale
     blue ruling of a school exercise book and its red margin line. Both are
     decoration, the ruling a writing guide, so neither carries meaning. */
  --notebook-ruling:#CFE0EE;  /* the ruled lines, one per 28px of writing   */
  --notebook-margin:#E4A9A0;  /* the red margin line down the left          */
  /* The night search (round 5): the student card's night sky and its cyan,
     named here so the search can wear them. */
  --night-bg:#141B2E;         /* the bar                                     */
  --night-grid:#1F2A43;       /* the faint grid on it                        */
  --night-line:#31405E;       /* its edge at rest                            */
  --night-text:#EDF2FA;       /* what you type, and the keycap               */
  --night-dim:#93A3BC;        /* the placeholder, and the keycap's lower edge */
  --night-cyan:#3DE0F5;       /* the prompt, the caret, the glow             */
  /* Text and marks set ON a solid colour fill (a blue band, a green day, a
     red strip). White in both themes, which is why it is not --card: --card
     is a surface, and in dark mode surfaces go dark. */
  --on-fill:#FFFFFF;

  /* My study's DARK MODE (round 9). home.css redeclares the page's
     tokens from these under html[data-theme="dark"], so no other page
     moves. Tuned for text ON the dark: accents lighter, tints darker. The
     night is the student card's navy. */
  --dk-page:#0A0E1A;          /* the page, darker so every box stands off it */
  --dk-card:#1A2338;          /* a surface                                   */
  --dk-raise:#232D46;         /* a surface on a surface, a hover             */
  --dk-line:#28334C; --dk-line-soft:#212B42; --dk-line-mid:#2C3852;
  --dk-edge:#6B7A96;          /* a control's edge: 3.8:1 on --dk-card        */
  --dk-ink:#E9EEF7; --dk-ink-soft:#C4CEDE; --dk-muted:#9AA7BE; --dk-dim:#5E6B84; --dk-faint:#3A4661;
  --dk-blue:#8EC3EE; --dk-blue-tint:#172B44; --dk-blue-wash:#1B3350; --dk-blue-pale:#2B4A6E; --dk-blue-field:#214C78;
  --dk-amber:#E8B970; --dk-amber-tint:#2B2216; --dk-amber-field:#5A4322;
  --dk-green:#7ACBA0; --dk-green-tint:#16291F; --dk-green-field:#21513B;
  --dk-green-fill:#2F7A57;    /* a day that met its target: white on it 5.2  */
  --dk-green-line:#203B30;    /* the fill of a day that fell short           */
  --dk-red:#F39B91; --dk-red-tint:#2E1A1C;
  --dk-purple:#C9A6D6; --dk-purple-tint:#261C2E; --dk-purple-field:#4C3460; --dk-purple-fill:#6B4A73;
  --dk-slate-fill:#5A6478;    /* the "mixed" subject's fill                  */
  --dk-neutral-ink:#B5C0D2;
  /* Each dark box its own tone and edge (round 11), as each light box has its
     own colour: one navy for everything read as one box. */
  --dk-today:#12253F; --dk-today-edge:#3A6A9E;                      /* Today's set: blue    */
  --dk-shelf:#0F2E33; --dk-shelf-edge:#2E6E72; --dk-shelf-plank:#1D4B50;  /* Paused: teal */
  --dk-teal:#6FD3C8;          /* Paused's ▶ cursor on its teal window (round 12) */
  --dk-paper:#2B2F3B; --dk-ruling:#3D4352; --dk-margin:#8C4B47; --dk-paper-edge:#565C6E;  /* the 오답노트: charcoal paper */
  --dk-cal:#1C2244; --dk-cal-board:#262D57; --dk-cal-edge:#4E5C8C; --dk-cal-tile:#28305A; /* the calendar: indigo */
  --dk-cu-page:#2C3558;       /* a Coming up page, lighter than the wall it hangs on */
  --dk-cal-day:#2E3767;       /* a day on the flip calendar's page (round 12): --dk-muted 4.6:1 on it */
  --dk-book:#1E2842;          /* a textbook's pages                          */
  --dk-sky:#1B1F45; --dk-sky-2:#2C3170;    /* Ask Boo's night              */
  /* DARK, A STEP BRIGHTER (round 16). The first dark surfaces sat so close
     to the page, and their tints and tracks so close to the surfaces, that
     a bar's empty half or a tag's ground could not be made out. The dark
     block now reads these: every surface, tint, line and quiet text colour
     one step up, the page itself left dark so the boxes stand off it. The
     round 9-12 --dk-* above stay as they were. Measured on the painted
     page: --dk2-muted is 4.7:1 on the lightest surface it sits on
     (--dk2-cal-day), 7:1 on --dk2-card. */
  --dk2-card:#222C47; --dk2-raise:#2C3756;
  --dk2-line:#3A4766; --dk2-line-soft:#313D5A; --dk2-line-mid:#405070;
  --dk2-edge:#8595B5;         /* a control's edge */
  --dk2-ink-soft:#D3DBE8; --dk2-muted:#ADB9CE; --dk2-dim:#7282A0; --dk2-faint:#4A5877;
  --dk2-blue-tint:#1F3D63; --dk2-blue-wash:#244670; --dk2-blue-pale:#3A6190;
  --dk2-amber-tint:#3F321E; --dk2-green-tint:#1F4231; --dk2-red-tint:#45262A; --dk2-purple-tint:#3B2C48;
  --dk2-today:#193561; --dk2-shelf:#11403F; --dk2-paper:#343A4A; --dk2-ruling:#4B5367;
  --dk2-cal:#242B58; --dk2-cal-board:#2F386B; --dk2-cal-day:#3A447E; --dk2-cu-page:#37416D;
  --dk2-book:#27325A;
  /* Each box's NEON EDGE in dark (round 16), the student card's own light
     given to every box, one hue each: Today blue, Continue teal, the
     오답노트 the coral of its red pen, the month violet, Ask Boo periwinkle,
     and each book its subject's neon (maths blue, English amber, science
     lime, Korean orchid). Edges and glows only, never text. */
  --dk-neon-blue:#4FB8FF; --dk-neon-teal:#3DE0C8; --dk-neon-coral:#FF8F80; --dk-neon-violet:#A594FF;
  --dk-neon-periwinkle:#8FA8FF; --dk-neon-amber:#FFC24B; --dk-neon-lime:#A6E86B; --dk-neon-orchid:#D39BFF;
  /* NEON MODE (round 18): every box built like the neon student card. Its
     glass (a navy lit at one corner), the cards inside it, their lines, and
     text that is white or near it, never a dim grey; and the dark navy for
     words set ON a neon fill, as on the card's level badge. --neon-muted
     measured 7.4:1 on --neon-card. */
  --neon-bg:#0F1628; --neon-bg-lit:#1A2442; --neon-card:#1B2543;
  --neon-line:#2F3C5D; --neon-line-soft:#27324F; --neon-line-mid:#364566;
  --neon-text:#EEF3FB; --neon-text-soft:#D4DCEA; --neon-muted:#B0BCD2; --neon-dim:#7D8BA8;
  --neon-on:#0B1122;
  /* THE NEON STREET (round 19): neon mode drawn as a Japanese night street.
     The night, blue-violet at its top as in the photos it came from, the
     buildings against it (far, then near), their lit windows, the sign
     colours the street adds to the boxes' neons (a hot pink, a lantern red,
     a warm orange), and the wet asphalt the signs reflect in. Decoration
     only, never text. */
  --st-sky-1:#070A26; --st-sky-2:#161B5A; --st-sky-3:#2A2477;
  --st-far:#1A1F55; --st-near:#0B0E2A; --st-window:#FFD58A; --st-window-2:#8FD6FF;
  --st-pink:#FF4FA3; --st-red:#FF5A4F; --st-orange:#FF9A3C;
  --st-asphalt:#070913;
  /* THE STREET's signs (rounds 22-23): the dark of their frames and
     brackets, the lighter edge of a frame, the warm paper of a lit panel,
     and the deep red of the gate. The street itself is a picture with its
     own colours (art/street-night.svg). */
  --sc-mullion:#090C2A; --sc-frame:#3B428F; --sc-paper:#FFE2AE; --sc-gate-side:#9C1E2E;
  --dk-lift-1:0 1px 2px rgba(0,0,0,.45);
  --dk-lift-2:0 18px 40px rgba(0,0,0,.55), 0 2px 6px rgba(0,0,0,.4);
}

/* Library v6 display steps, additive and used only by the library. */
:root{--ty-library-year:48px; --ty-library-subject:24px;}
