/* Hallmark · genre: editorial · macrostructure: Marquee Hero · theme: Garden (brand palette)
 * nav: N9 Edge-aligned minimal · footer: Ft2 Inline single line
 * Audience: radio listeners · Use: see the station's visual identity · Tone: quiet, botanical
 * Pre-emit critique: Philosophy 5 · Hierarchy 5 · Execution 4 · Specificity 5 · Restraint 5 · Variety 4 */
:root {
  --color-paper: #f7f7ef;
  --color-ink: #364332;
  --color-muted: #62705b;
  --color-logo: #a8c97f;
  --color-white: #ffffff;
  --color-body: #333333;
  --color-photo: #e9eddf;
  --color-line: #dce1d2;
  --color-hover: #edf0e3;
  --color-backdrop: #202b24a6;
  --color-transparent: transparent;
  --color-overlay: #000000;
  --color-header-tint: rgb(168 201 127 / 3%);
  --color-header-shadow: rgb(54 67 50 / 6%);
  --color-reading-panel: rgb(247 247 239 / 62%);
  --color-glass-shadow: rgb(28 43 20 / 14%);
  --glass-blur: 18px;
  --kv-overlay-opacity: .2;
  --kv-reveal-duration: 500ms;
  --font-label: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-body: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', sans-serif;
  --font-script: 'Allura', 'Snell Roundhand', cursive;
  --about-title-ink-offset: -.055em;
  --page-gutter: clamp(16px, 2.2vw, 40px);
  --header-height: 80px;
  --listen-dock-bottom: max(16px, calc(env(safe-area-inset-bottom) + 12px));
  --listen-button-height: 56px;
  --ease-out: cubic-bezier(.2, .7, .2, 1);
}
@font-face { font-family: 'Allura'; src: url('./assets/allura-regular.ttf') format('truetype'); font-style: normal; font-weight: 400; font-display: swap; }
@font-face { font-family: 'Ayres'; src: url('./assets/ayres-regular.otf') format('opentype'); font-style: normal; font-weight: 400; font-display: swap; }
@font-face { font-family: 'Radio Gallery'; src: url('./assets/gallery-display.woff') format('woff'); font-style: normal; font-weight: 500; font-display: swap; }
@font-face { font-family: 'Noto Sans JP'; src: url('./assets/noto-sans-jp-regular.woff?v=about-copy') format('woff'); font-style: normal; font-weight: 400; font-display: swap; }
* { box-sizing: border-box; }
html, body { overflow-x: clip; }
body { margin: 0; padding-block: 32px; color: var(--color-ink); background: var(--color-paper); font-family: var(--font-body); -webkit-font-smoothing: antialiased; }
button, a { -webkit-tap-highlight-color: var(--color-transparent); }
button { color: inherit; font: inherit; cursor: pointer; }
button:focus-visible, a:focus-visible { outline: 2px solid var(--color-ink); outline-offset: 5px; }
button:disabled { cursor: default; }
button:active:not(:disabled) { opacity: .7; }
button svg { display: block; width: 20px; height: 20px; }
[hidden] { display: none !important; }
.filter-definitions { position: absolute; width: 0; height: 0; overflow: hidden; }
.page-shell { padding: 0 var(--page-gutter); }
.brand { position: absolute; top: 50%; left: 50%; z-index: 2; display: grid; place-items: center; width: clamp(220px, 30vw, 400px); aspect-ratio: 1; transform: translate(-50%, -50%); text-decoration: none; transition: opacity 180ms; }
.brand:hover { opacity: .75; }
.brand-mark { display: block; width: 100%; height: 100%; }
.painting { position: fixed; inset: 0; z-index: 0; width: 100%; height: 100vh; height: 100lvh; overflow: hidden; isolation: isolate; pointer-events: none; background: var(--color-paper); }
.finished-art, .paint-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.finished-art { display: block; object-fit: cover; object-position: 54% 50%; }
.paint-canvas { opacity: 0; pointer-events: none; transition: none; }
.has-js .painting[data-state="loading"] .paint-canvas,
.painting[data-state="painting"] .paint-canvas { opacity: 1; }
.has-js .painting[data-state="loading"] .paint-canvas { background: var(--color-paper); }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
@media (min-width: 1800px) { :root { --header-height: 88px; } }
@media (max-width: 600px) {
  :root { --header-height: 64px; --page-gutter: 12px; }
  .finished-art { object-position: 54% 50%; }
}
@media (max-height: 520px) and (min-width: 601px) {
  :root { --header-height: 60px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .paint-canvas { display: none; }
}

/* The opening painting, then the station and its two hosts. */
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-height) + 40px); }
body { color: var(--color-body); }
.page-shell { position: relative; z-index: 1; padding-left: max(var(--page-gutter), env(safe-area-inset-left)); padding-right: max(var(--page-gutter), env(safe-area-inset-right)); }
.hero-section { position: relative; height: calc(100vh - 32px); height: calc(100svh - 32px); }
.hero-scroll-link {
  position: absolute;
  left: 50%;
  bottom: calc(var(--listen-dock-bottom) + var(--listen-button-height) + 16px);
  transform: translateX(-50%);
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 2px;
  min-height: 48px;
  padding: 8px 16px;
  border-radius: 9999px;
  background: var(--color-backdrop);
  color: var(--color-white);
  font: 500 11px/1 var(--font-label);
  letter-spacing: .15em;
  text-decoration: none;
  text-transform: uppercase;
}
.hero-scroll-arrow { font-size: 18px; letter-spacing: 0; }
.hero-scroll-link:hover span:first-child { text-decoration: underline; text-underline-offset: 3px; }
.hero-scroll-link:focus-visible { outline-color: var(--color-white); }
.has-js .hero-scroll-link { opacity: 0; visibility: hidden; }
.has-js .painting[data-state="complete"]:not(.is-scrolled) ~ .page-shell .hero-scroll-link {
  opacity: 1;
  visibility: visible;
  transition: opacity 220ms var(--ease-out) var(--kv-reveal-duration), visibility 0s var(--kv-reveal-duration);
}
@media (max-height: 480px) and (min-width: 560px) {
  .hero-scroll-link { right: 0; left: auto; bottom: var(--listen-dock-bottom); transform: none; }
}
.reading-panel { position: relative; width: min(1100px, 100%); margin: 0 auto 64px; padding-block: 32px; overflow: hidden; border: 1px solid var(--color-glass-edge); border-radius: 20px; background: var(--color-reading-panel); -webkit-backdrop-filter: blur(var(--glass-blur)); backdrop-filter: blur(var(--glass-blur)); box-shadow: 0 16px 40px var(--color-glass-shadow), inset 1px 1px 1px var(--color-glass-glint), inset -1px -1px 1px var(--color-glass-glint-soft); }
/* Light catches the glass edge without blurring the text or ornament layers. */
.reading-panel::before { content: ''; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(135deg, var(--color-glass-light), var(--color-transparent) 18%, var(--color-transparent) 84%, var(--color-glass-light-soft)); pointer-events: none; }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .reading-panel { background: var(--color-glass-fallback); }
}
@media (prefers-reduced-transparency: reduce) {
  .reading-panel { background: var(--color-paper); -webkit-backdrop-filter: none; backdrop-filter: none; }
}
.hero-brand { top: 50svh; opacity: 1; }
.has-js .hero-brand { opacity: 0; visibility: hidden; pointer-events: none; transition: none; }
.has-js .painting[data-state="complete"] .hero-brand { opacity: 1; visibility: visible; transition: opacity var(--kv-reveal-duration) linear; }
.has-js .painting[data-state="complete"].is-scrolled .hero-brand { opacity: 0; }
.kv-overlay { position: absolute; inset: 0; z-index: 1; background: var(--color-overlay); opacity: var(--kv-overlay-opacity); pointer-events: none; }
.has-js .kv-overlay { opacity: 0; transition: none; }
.has-js .painting[data-state="complete"] .kv-overlay { opacity: var(--kv-overlay-opacity); transition: opacity var(--kv-reveal-duration) linear; }
.site-header { position: fixed; inset: max(16px, calc(env(safe-area-inset-top) + 8px)) 0 auto; z-index: 20; width: min(1100px, calc(100% - max(var(--page-gutter), env(safe-area-inset-left)) - max(var(--page-gutter), env(safe-area-inset-right)))); height: var(--header-height); margin-inline: auto; padding-inline: 20px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border: 1px solid var(--color-logo); border-radius: 9999px; background: var(--color-header-tint); box-shadow: 0 6px 24px var(--color-header-shadow); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity 500ms var(--ease-out), visibility 0s 500ms; }
.site-header.is-visible { opacity: 1; visibility: visible; pointer-events: auto; transition-delay: 0s; }
.header-brand { display: block; flex: 0 0 auto; width: 60px; height: 60px; text-decoration: none; }
.header-brand:hover { opacity: .8; }
.header-nav { display: flex; align-items: center; gap: 24px; }
.header-nav a { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; color: var(--color-body); font-family: var(--font-label); font-size: 11px; font-weight: 500; line-height: 1; letter-spacing: .12em; text-decoration: none; white-space: nowrap; }
.header-nav a:hover { text-decoration: underline; text-underline-offset: 5px; }
.site-header.is-over-kv .header-nav a { color: var(--color-white); }
.site-header.is-over-kv a:focus-visible { outline-color: var(--color-white); }
.about-section { padding: 0 0 32px; }
.about-frame { position: relative; display: grid; place-items: center; width: min(1080px, 100%); min-height: 440px; margin-inline: auto; padding-block: 64px; }
.vine-frame { position: absolute; inset: 0; pointer-events: none; }
.vine-frame img { display: block; width: 100%; height: 100%; }
.about-content { position: relative; display: flex; flex-direction: column; align-items: center; width: 100%; min-width: 0; text-align: center; }
.script-title { margin: 0; color: var(--color-logo); font-family: var(--font-script); font-size: clamp(70px, 7vw, 96px); line-height: 1.15; font-weight: 700; text-align: center; }
/* Center the visible ink, including Allura's terminal stroke overhang. */
#about-title { display: flex; align-items: center; justify-content: center; width: 100%; font-weight: 700; }
#about-title > span { display: block; transform: translateX(var(--about-title-ink-offset)); }
.about-text { width: min(700px, calc(100% - 2 * clamp(48px, 12vw, 160px))); margin: 16px auto 0; color: var(--color-body); font-size: 14px; line-height: 2.5; letter-spacing: .07em; }
.about-text p { margin: 0; }
.about-text p + p { margin-top: 24px; }
.cast-section { width: min(920px, 100%); margin-inline: auto; text-align: center; }
.cast-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(48px, 8vw, 120px); width: min(800px, 100%); margin: 56px auto 0; }
.cast-photo { display: grid; place-items: center; width: 100%; aspect-ratio: 1; background: var(--color-photo); }
img.cast-photo { display: block; height: auto; }
.cast-photo span { color: var(--color-muted); font-family: var(--font-label); font-size: 10px; letter-spacing: .2em; }
.cast-member h3 { margin: 28px 0 16px; color: var(--color-logo); font-size: 20px; font-weight: 400; line-height: 1.6; letter-spacing: .12em; }
.cast-member p { margin: 0; color: var(--color-body); font-size: 13px; line-height: 2.2; letter-spacing: .04em; }
@media (max-width: 600px) {
  html { scroll-padding-top: 104px; }
  .site-header { padding-inline: 14px; gap: 8px; }
  .header-nav { gap: 10px; }
  .header-nav a { font-size: 10px; letter-spacing: .06em; }
  .header-brand { width: 48px; height: 48px; }
  .about-frame { min-height: 0; padding-block: 24px; }
  .about-frame .vine-frame { inset: 0; }
  .script-title { font-size: clamp(64px, 18vw, 74px); }
  .about-text { width: 70%; font-size: 13px; line-height: 2.3; letter-spacing: .035em; }
  .about-text p + p { margin-top: 24px; }
  .cast-grid { grid-template-columns: minmax(0, 1fr); gap: 64px; width: min(300px, calc(100% - 32px)); margin-top: 40px; }
  .cast-member h3 { margin-top: 24px; }
}
@media (max-width: 360px) {
  .brand { width: 200px; }
  .about-text { width: 72%; }
}

.listen-dock { position: fixed; left: 50%; bottom: var(--listen-dock-bottom); z-index: 30; transform: translateX(-50%); }
.listen-cta { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: var(--listen-button-height); min-width: 240px; padding: 16px 32px; border: 1px solid var(--color-logo); border-radius: 9999px; background: var(--color-logo); color: var(--color-body); box-shadow: 0 8px 24px var(--color-header-shadow); font-size: 14px; font-weight: 600; line-height: 1.4; letter-spacing: .06em; text-decoration: none; white-space: nowrap; }
.listen-cta:hover { background: var(--color-hover); }
.listen-cta:active { opacity: .7; }
.listen-cta svg { width: 18px; height: 18px; }
@media (max-width: 600px) {
  .listen-dock { width: min(320px, calc(100% - 48px)); }
  .listen-cta { width: 100%; min-width: 0; }
}
@media (max-height: 520px) {
  .site-header { height: 56px; }
  .header-brand { width: 44px; height: 44px; }
}
