/* JPOP site: the one shared stylesheet (started 2026-11-20 with the opening page).
   Order: values, then the universal text styles, then the shared parts. Every page links this file and adds no
   text styles of its own: a page only places things. A new value or style is added here, never inside a page. */

:root {
  /* colour, picked by eye from the opening painting */
  --paper: #FFFDF8;
  --ink: #14161B;
  --light: #FFFFFF;
  --tower: #D7322A;   /* Tokyo Tower red */
  --plate: #1B4B8F;   /* the blue of a Tokyo street address plate */
  --shade: 9 10 16;   /* darkening laid over the picture, used as rgb(var(--shade) / amount) */

  /* type: the families and the header's own numbers are set by the design in use */
  --font-text: "Zen Kaku Gothic New", "Hiragino Sans", "Yu Gothic", sans-serif;
  --font-display: var(--font-text);
  --w-display: 700;
  --size-display: 48px;
  --lh-display: 1.15;
  --track-display: 0;
  --size-sub: 20px;
  --size-text: 16px;
  --size-small: 13px;
  --size-credit: 8px;   /* a source's credit: there, and no more (11-27) */
  --lh-text: 1.6;

  /* space, in steps of four */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s6: 24px; --s8: 32px; --s12: 48px;
  --edge: clamp(16px, 3vw, 40px);   /* from the screen's edge to the nearest thing */
  --corner: 4px;                    /* a pane's corner (his word 11-20: no big round edges) */
}

/* universal text styles */
.header { margin: 0; font: var(--w-display) var(--size-display) / var(--lh-display) var(--font-display); letter-spacing: var(--track-display); text-wrap: balance; }
.subheader { margin: 0; font: 500 var(--size-sub) / 1.35 var(--font-text); }
.text { margin: 0; font: 400 var(--size-text) / var(--lh-text) var(--font-text); max-width: 64ch; }
.small { margin: 0; font: 400 var(--size-small) / 1.5 var(--font-text); }
.credit { margin: 0; font: 500 var(--size-credit) / 1.2 var(--font-text); white-space: nowrap; }
.credit a { color: inherit; text-decoration: none; }
.link { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .25em; }
.link:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

/* shared parts */
.logo { display: inline-flex; align-items: center; gap: var(--s3); color: inherit; text-decoration: none; }
.logo img { display: block; height: var(--logo-h, 36px); width: auto; }
.logo span { font: 500 var(--size-small) / 1 var(--font-text); letter-spacing: .06em; white-space: nowrap; }

.news { color: inherit; text-decoration: none; font: 400 var(--size-small) / 1.5 var(--font-text); }
.news b { font-weight: 700; }
.news time { font-variant-numeric: tabular-nums; }
.news:hover span { text-decoration: underline; text-underline-offset: .25em; }

/* a section's parts (started with the music section, 11-20): the panel that holds a section's summary, figures (a
   number with its line), covers (a row of square pictures with a caption each) */
.panel { display: grid; gap: var(--s6); padding: var(--s6) var(--s8); border-radius: var(--corner); }
.figures { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s6) var(--s8); }
.figures b { display: block; font: var(--w-display) var(--size-figure, 40px) / 1.05 var(--font-display); letter-spacing: var(--track-display); }
.figures span { display: block; margin-top: var(--s1); font: 400 var(--size-small) / 1.45 var(--font-text); }
.covers { margin: 0; padding: 0; list-style: none; display: flex; --cover: 180px; }
.covers li { flex: none; position: relative; }
.covers figure { margin: 0; }
.covers img { display: block; width: var(--cover); aspect-ratio: 1; object-fit: cover; }
.covers figcaption { margin-top: var(--s2); font: 400 var(--size-small) / 1.4 var(--font-text); }
.covers figcaption b { display: block; font-weight: 700; }
/* (11-20, his notes) musubi: the word 結び, its seal, with what it means beside it, always showing (his word 11-23:
   "why not have the expanded opened all the time?"). now: the name and details of the record in hand. */
.musubi { position: relative; }
.musubi .seal { display: block; font: var(--w-display) var(--size-sub) / 1.1 var(--font-display); }
.musubi p { margin: 0; font: 400 var(--size-small) / 1.5 var(--font-text); }
.musubi p b, .musubi p q { display: block; }
.musubi p b { font-weight: 700; }
.musubi p q { margin-top: var(--s1); }
/* also: a section's further lines, each what it is of (dt) and what it names (dd); data-lead marks the one that
   leads, here and among the figures. facts: a record's details, a label over each, in a row */
.also { margin: 0; display: grid; gap: var(--s2); font: 400 var(--size-small) / 1.5 var(--font-text); }
.also dt { font-weight: 700; }
.also dd { margin: 0; }
.now { margin: 0; font: 400 var(--size-small) / 1.4 var(--font-text); }
.now b { display: block; font: 700 var(--size-text) / 1.3 var(--font-text); }
.facts { margin: var(--s2) 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s3); }
.facts dt { font: 400 11.5px / 1.4 var(--font-text); }
.facts dd { margin: 0; font: 500 var(--size-small) / 1.4 var(--font-text); }
.now small { display: block; margin-top: var(--s1); font: 400 11px / 1.4 var(--font-text); }
