/* FLOWING BLUE — the Fresco Panel. Document pages only: /en/news/*, /en/tws/.
   The film uses theme.css instead; this file deliberately does NOT inherit the
   scrub engine's injected CSS, because these pages never mount the engine.

   Requires tokens.css. Design rationale:
   2026-08-01-site-pages-migration-design.md §4

   A fresco is pigment on light plaster, so the plate is genuinely light and
   mounted on the dark wall. That is also what makes 400-word articles
   comfortable to read while staying inside the film's world. */

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--fb-wall);
  color: var(--fb-ink-dark);
  font-family: var(--fb-font-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* Japanese needs more leading and no Latin tracking. Kana kerned for Latin
   looks wrong, and 62ch would run to a ~120-character line because a CJK
   glyph is two ch wide. */
:lang(ja) body { line-height: 1.9; letter-spacing: 0; }

.fp-page { max-width: 74rem; margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px) 96px; }

/* ---- header: a mark and a way back. Document pages only, never the film -- */
.fp-head {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px; padding: 22px 0 34px;
}
.fp-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 8px;
  background: #FFFFFF; color: var(--fb-deep);
  font-family: var(--fb-font-display); font-weight: 700; font-size: .84rem;
  letter-spacing: .03em; text-decoration: none;
  box-shadow: 0 2px 12px rgba(0,0,0,.38);
}
/* Seven items do not fit one row on a phone: unwrapped they measured 491px in a
   390px viewport. Wrap, and stack the nav under the mark on narrow screens. */
.fp-head nav { display: flex; flex-wrap: wrap; gap: 10px 18px; }
@media (max-width: 700px) {
  .fp-head { flex-direction: column; align-items: flex-start; gap: 14px; }
  .fp-head nav { gap: 9px 15px; }
}
.fp-head a:not(.fp-mark) {
  color: var(--fb-shallow); text-decoration: none; font-size: .84rem;
  border-bottom: 1px solid rgba(106,197,254,.35); padding-bottom: 2px;
}
.fp-head a:not(.fp-mark):hover { border-bottom-color: var(--fb-shallow); }
.fp-head a:focus-visible { outline: 2px solid var(--fb-shallow); outline-offset: 3px; }

/* ---- the plate ----------------------------------------------------------- */
.fp-plate {
  position: relative;
  background: var(--fb-plate);
  color: var(--fb-ink);
  border-radius: 2px;
  padding: clamp(28px, 5vw, 64px) clamp(20px, 5vw, 72px) clamp(36px, 6vw, 76px);
  box-shadow: 0 24px 70px rgba(0,0,0,.5);
}
.fp-plate::before {                       /* the hairline at the head */
  content: ""; position: absolute; inset: 0 0 auto 0; height: 2px;
  background: var(--fb-deep); border-radius: 2px 2px 0 0;
}

/* THE SIGNATURE — the Current. The thread that ran through all ten scenes now
   runs down the page and fills as you read. Light at the surface, deepening
   with depth. Decorative: scroll position already conveys progress, so
   nothing is lost where this does not render. */
.fp-current {
  position: absolute; left: 0; top: 2px; bottom: 0; width: 2px;
  background: linear-gradient(180deg, var(--fb-shallow) 0%, var(--fb-current) 40%, var(--fb-deep) 100%);
  transform-origin: top;
}
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    .fp-current {
      animation: fp-fill linear both;
      animation-timeline: scroll(root block);
    }
    @keyframes fp-fill { from { transform: scaleY(0); } to { transform: scaleY(1); } }
  }
}

/* ---- type --------------------------------------------------------------- */
.fp-title {
  margin: 0 0 14px;
  font-family: var(--fb-font-display);
  font-weight: 400;
  font-size: clamp(1.9rem, 4.4vw, 3rem);
  line-height: 1.15;
  color: var(--fb-deep);
  letter-spacing: -.01em;
}
:lang(ja) .fp-title { line-height: 1.4; letter-spacing: 0; }

.fp-meta { margin: 0 0 32px; color: var(--fb-meta); font-size: .84rem; letter-spacing: .02em; }

.fp-body { max-width: 62ch; }
:lang(ja) .fp-body { max-width: 34em; }
.fp-body > * + * { margin-top: 1.15em; }
.fp-body h2 {
  margin-top: 2.2em; margin-bottom: .5em;
  font-family: var(--fb-font-display); font-weight: 400;
  font-size: clamp(1.25rem, 2.4vw, 1.6rem); color: var(--fb-deep); line-height: 1.25;
}
.fp-body h3 { margin-top: 1.8em; margin-bottom: .4em; font-size: 1rem; font-weight: 700; color: var(--fb-ink); }
.fp-body a { color: var(--fb-deep); text-decoration: underline; text-underline-offset: 2px; }
.fp-body a:hover { text-decoration-thickness: 2px; }
.fp-body ul { margin: 0; padding-left: 1.2em; }
.fp-body li + li { margin-top: .4em; }
.fp-body strong { font-weight: 700; }
.fp-body hr { border: 0; border-top: 1px solid var(--fb-plate-edge); margin: 2.4em 0; }

/* ---- images ------------------------------------------------------------- */
.fp-hero, .fp-figure img { display: block; width: 100%; height: auto; border-radius: 2px; background: var(--fb-plate-edge); }
.fp-hero { margin: 0 0 34px; }
.fp-figure { margin: 2em 0; }
.fp-figure figcaption { margin-top: .6em; color: var(--fb-meta); font-size: .82rem; line-height: 1.5; }
.fp-bio { display: grid; grid-template-columns: 132px 1fr; gap: 20px; align-items: start; margin: 2em 0; }
.fp-bio img { width: 100%; height: auto; border-radius: 2px; }
@media (max-width: 640px) { .fp-bio { grid-template-columns: 1fr; } }

/* ---- news index: a lead panel and a 2-up. Three items, three cells ------ */
.fp-index { display: grid; gap: clamp(16px, 2.4vw, 28px); }
.fp-index .fp-lead { grid-column: 1 / -1; }
@media (min-width: 861px) { .fp-index { grid-template-columns: 1fr 1fr; } }

.fp-card {
  display: flex; flex-direction: column;
  background: var(--fb-plate); color: var(--fb-ink);
  border-radius: 2px; overflow: hidden; text-decoration: none;
  box-shadow: 0 18px 50px rgba(0,0,0,.42);
  transition: transform .25s cubic-bezier(.16,1,.3,1), box-shadow .25s ease;
}
.fp-card:hover { transform: translateY(-3px); box-shadow: 0 26px 64px rgba(0,0,0,.52); }
.fp-card:focus-visible { outline: 2px solid var(--fb-shallow); outline-offset: 3px; }
.fp-card img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.fp-lead img { aspect-ratio: 21 / 9; }
.fp-card__text { padding: 22px clamp(18px, 2.4vw, 30px) 26px; }
.fp-card h2 {
  margin: 0 0 8px; font-family: var(--fb-font-display); font-weight: 400;
  font-size: clamp(1.15rem, 2.2vw, 1.55rem); line-height: 1.2; color: var(--fb-deep);
}
.fp-lead h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
.fp-card p { margin: 0; color: var(--fb-ink); font-size: .94rem; }
.fp-card .fp-meta { margin: 0 0 10px; }
@media (prefers-reduced-motion: reduce) { .fp-card { transition: none; } .fp-card:hover { transform: none; } }

/* ---- forms -------------------------------------------------------------- */
.fp-form { max-width: 34rem; margin-top: 8px; }
.fp-field { display: block; margin-bottom: 18px; }
.fp-field > span {
  display: block; margin-bottom: 6px;
  font-size: .8rem; font-weight: 600; letter-spacing: .02em; color: var(--fb-meta);
}
.fp-field input {
  display: block; width: 100%; padding: 11px 13px;
  font: 400 1rem/1.45 var(--fb-font-body); color: var(--fb-ink);
  background: #FFFFFF; border: 1px solid var(--fb-plate-edge); border-radius: 2px;
}
.fp-field input:focus-visible { outline: 2px solid var(--fb-deep); outline-offset: 1px; }
.fp-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.fp-cap b { color: var(--fb-deep); font-weight: 700; margin-left: .35em; }
.fp-cap input { width: 96px; }
.fp-err { min-height: 1.3em; margin: 0 0 12px; font-size: .86rem; color: #A32116; }
.fp-ok { margin: 0; font-size: .96rem; color: var(--fb-deep); font-weight: 600; }

.fp-submit {
  padding: 12px 24px; border: 0; border-radius: 999px; cursor: pointer;
  font: 700 .92rem/1 var(--fb-font-body);
  background: var(--fb-current); color: #FFFFFF;
}
.fp-submit:hover { background: #0A82CE; }
.fp-submit:active { transform: translateY(1px); }
.fp-submit:focus-visible { outline: 2px solid var(--fb-deep); outline-offset: 3px; }
.fp-submit:disabled { opacity: .55; cursor: default; }
.fp-consent { margin: 12px 0 0; font-size: .82rem; color: var(--fb-meta); }
.fp-consent a { color: var(--fb-deep); }

/* the unsubscribe block is deliberately quieter than signup */
.fp-quiet { margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--fb-plate-edge); }
.fp-quiet h2 { margin: 0 0 8px; font-size: 1.05rem; font-weight: 700; color: var(--fb-ink); }
.fp-quiet p { margin: 0 0 18px; color: var(--fb-meta); font-size: .92rem; }

/* ---- back issues: chunked, not 58 hairlined rows ------------------------ */
.fp-issues { margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--fb-plate-edge); }
.fp-issues h2 { margin: 0 0 6px; font-family: var(--fb-font-display); font-weight: 400; font-size: 1.5rem; color: var(--fb-deep); }
.fp-issues > p { margin: 0 0 24px; color: var(--fb-meta); font-size: .92rem; }
.fp-issues ul {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 6px 28px; grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr));
}
.fp-issues a { color: var(--fb-deep); text-decoration: none; font-size: .92rem; font-variant-numeric: tabular-nums; }
.fp-issues a:hover { text-decoration: underline; }

/* ---- footer: copyright, newsletter, privacy ------------------------------
   Sits on the dark wall below the plate, not inside it, so it reads as site
   chrome rather than as part of the document. */
.fp-foot {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px 24px;
  margin-top: clamp(40px, 6vw, 72px);
  padding-top: 22px;
  border-top: 1px solid rgba(106,197,254,.22);
}
.fp-foot small { color: var(--fb-meta); font-size: .78rem; letter-spacing: .02em; }
.fp-foot nav { display: flex; flex-wrap: wrap; gap: 10px 20px; }
.fp-foot a {
  color: var(--fb-shallow); text-decoration: none; font-size: .78rem;
  border-bottom: 1px solid rgba(106,197,254,.3); padding-bottom: 1px;
}
.fp-foot a:hover { border-bottom-color: var(--fb-shallow); }
.fp-foot a:focus-visible { outline: 2px solid var(--fb-shallow); outline-offset: 3px; }
@media (max-width: 560px) {
  .fp-foot { flex-direction: column; align-items: flex-start; gap: 14px; }
}

/* ---- load ---------------------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  .fp-plate, .fp-card { animation: fp-rise .2s cubic-bezier(.16,1,.3,1) both; }
  @keyframes fp-rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
}
