/* LocalLauncher's Minimal look, shared by every home study.
   Colors are the Minimal palettes in app/src/main/java/dev/localtype/launcher/ui/Theme.kt.
   Type sizes are Faces.serif and Faces.sans from the same file, in rem so ?text=200 doubles them.
   The one accent, --mark, is the Okabe and Ito vermillion the Rose's Circle style fills its pointed sector with
   (core/Hues.kt). It marks a reading position or an armed app and is never the only cue: an underline, a ring
   or a position always carries the same state. It is not used for text. */

:root{
  color-scheme:light dark;
  --paper:#fff;--ink:#000;--secondary:#5e5e5e;--hairline:#d4d4d4;
  --press:rgba(0,0,0,.05);--scrim:rgba(255,255,255,.84);--mark:#d55e00;
  --gutter:16px;

  /* Faces.serif. Cormorant's small x-height is why it is set larger than the sans. */
  --face:"LL Cormorant","Cormorant Garamond",Georgia,serif;
  --t-clock:3rem;     --l-clock:1;      /* compact one-line clock, as on the map homes */
  --t-tile:1.9375rem; --l-tile:1.16;   /* 31 / 36 */
  --t-heading:1.6875rem;--l-heading:1.19;/* 27 / 32 */
  --t-row:1.375rem;   --l-row:1.2;      /* 22 */
  --t-title:1.375rem;                    /* 22 */
  --t-label:1.1875rem;                   /* 19 */
  --t-readout:1.0625rem;                 /* 17, italic */
  --t-note:1.0625rem; --l-note:1.35;    /* 17 / 23 */
  --t-small:.9375rem;                    /* counts and quiet figures */
  --readout-style:italic;
  --clock-weight:500;
}
html[data-face="sans"]{
  --face:system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;
  --t-clock:2.25rem;
  --t-tile:1.5rem;   --l-tile:1.25;     /* 24 */
  --t-heading:1.3125rem;--l-heading:1.29;/* 21 / 27 */
  --t-row:1.125rem;  --l-row:1.3;       /* 18 */
  --t-title:1.0625rem;                   /* 17 */
  --t-label:.875rem;                     /* 14 */
  --t-readout:.8125rem;                  /* 13 */
  --t-note:.875rem;  --l-note:1.36;     /* 14 / 19 */
  --t-small:.75rem;
  --readout-style:normal;
  --clock-weight:300;
}
/* A short window keeps the clock to one modest line, as the launcher's short-window composition does. */
@media (max-height:520px){
  :root{--t-clock:2rem}
  html[data-face="sans"]{--t-clock:1.5rem}
}
@media (prefers-color-scheme:dark){
  :root{--paper:#000;--ink:#ededed;--secondary:#a6a6a6;--hairline:#2f2f2f;
    --press:rgba(255,255,255,.06);--scrim:rgba(0,0,0,.8);--mark:#e69f00}
}

/* ?scheme=dark: the gallery's Dark switch, the same palette as the phone's dark setting. */
html[data-scheme="dark"]{color-scheme:dark;--paper:#000;--ink:#ededed;--secondary:#a6a6a6;--hairline:#2f2f2f;
  --press:rgba(255,255,255,.06);--scrim:rgba(0,0,0,.8);--mark:#e69f00}

html{font-family:var(--face);font-weight:500;font-feature-settings:"lnum";background:var(--paper);color:var(--ink)}
body{background:var(--paper);color:var(--ink);font-family:var(--face)}
button{font-family:inherit}

/* The clock band: time with a small day period, then the day in the readout style. Left on the gutter like
   every home, one line, so the mechanism below keeps its room. */
.ll-clock{display:flex;align-items:baseline;flex-wrap:wrap;gap:0 .55em;margin:0;padding:0;
  font-size:var(--t-clock);line-height:var(--l-clock);font-weight:var(--clock-weight);letter-spacing:0;
  font-variant-numeric:lining-nums;color:var(--ink)}
.ll-clock .ll-period{font-size:.38em;letter-spacing:.02em}
.ll-clock .ll-day{font-size:var(--t-readout);font-style:var(--readout-style);color:var(--secondary);line-height:1.2}

/* Group names: plain case, the readout style, never tracked capitals. */
.ll-group{font-size:var(--t-readout);font-style:var(--readout-style);color:var(--secondary);letter-spacing:0;text-transform:none}
.ll-count{font-family:system-ui,-apple-system,"Segoe UI",sans-serif;font-size:var(--t-small);font-weight:400;
  font-variant-numeric:tabular-nums;color:var(--secondary);font-style:normal}

/* An armed app: an underline in the mark color. Focus keeps its own ink outline, so the two never look alike. */
.ll-armed,[data-armed="true"]{outline:0;text-decoration:underline;text-decoration-thickness:2px;
  text-decoration-color:var(--mark);text-underline-offset:.18em}
:focus{outline:0}
:focus-visible{outline:2px solid var(--ink);outline-offset:3px}

/* The simulated app the studies open: a plain page with the app's name and a way back. */
#launch{background:var(--paper);color:var(--ink)}
#launch .app{font-family:var(--face);font-size:var(--t-tile);line-height:var(--l-tile);font-weight:500}
#launch .meta{font-family:system-ui,-apple-system,"Segoe UI",sans-serif;font-size:.875rem;color:var(--secondary);opacity:1}
#launch button{font-family:var(--face);font-size:var(--t-row);background:none;color:inherit;
  border:1px solid var(--ink);border-radius:0;min-height:48px;padding:.5rem 1.6rem}

@media (forced-colors:active){
  .ll-armed,[data-armed="true"]{text-decoration-color:Highlight}
  :focus-visible{outline-color:Highlight}
}
