/* Homepage, direction A "Index" (after Ryuichi Sakamoto's site; dated news line after Hosono).
   Layout: name across the top; a large cover on the left that follows the record in focus;
   the records as a quiet list on the right; a dated news line down the right edge. */
:root {
  --paper: #FBFBF9;
  --ink: #161616;
  --quiet: #5E5E5E;      /* 6.1:1 on paper */
  --rule: #DEDEDA;
  --field: #9A9A96;
  --river: #24408E;      /* the one accent: open rows, focus, notes, the news mark */
  --error: #A3261C;
  --s1: 12px; --s2: 14px; --s3: 16px; --s4: 22px;
  --mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--paper); color: var(--ink); }
body { font-family: var(--mono); font-size: var(--s3); line-height: 1.55; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--river); outline-offset: 3px; }
.skip-link { position: absolute; left: 16px; top: -48px; background: var(--ink); color: var(--paper); padding: 8px 12px; z-index: 10; text-decoration: none; }
.skip-link:focus { top: 8px; }

.page { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) 56px; }
.frame { padding: 40px 40px 64px; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: 48px; align-content: start; }

.who { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: baseline; gap: 12px 24px; flex-wrap: wrap; }
.who h1 { margin: 0; font-size: var(--s4); font-weight: 300; letter-spacing: 0.08em; }
.who-right { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.who p { margin: 0; color: var(--quiet); font-size: var(--s2); }
.site-nav { display: flex; flex-wrap: wrap; gap: 0 20px; font-size: var(--s2); }
.site-nav a { min-height: 44px; display: inline-flex; align-items: center; text-decoration: none; color: var(--quiet); border-bottom: 1px solid transparent; }
.site-nav a:hover { color: var(--river); }
.site-nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--river); }

.stage { position: sticky; top: 40px; align-self: start; margin-top: 120px; }
.stage figure { margin: 0; aspect-ratio: 1; max-width: 100%; background: #EFEFEC; }
.stage img { width: 100%; height: 100%; object-fit: cover; display: block; transition: opacity 220ms ease; }

.index { margin-top: 120px; }
.index h2 { margin: 0 0 16px; font-size: var(--s1); font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--quiet); }
.index ol, ol.index { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.index li { border-bottom: 1px solid var(--rule); }
.row { all: unset; box-sizing: border-box; width: 100%; min-height: 56px; display: grid; grid-template-columns: 64px minmax(0, 1fr) auto 20px; gap: 16px; align-items: center; padding: 12px 0; cursor: pointer; }
.row:focus-visible { outline: 2px solid var(--river); outline-offset: 2px; }
.row .yr { color: var(--quiet); font-size: var(--s2); font-variant-numeric: tabular-nums; }
.row .t { font-size: var(--s3); }
.row .f { color: var(--quiet); font-size: var(--s2); }
.row .rm { color: var(--river); white-space: nowrap; }
.row .chev { color: var(--quiet); text-align: right; }
.row .chev::before { content: '+'; }
.row[aria-expanded="true"] .chev::before { content: '\2212'; }
html:not(.js) .row .chev { visibility: hidden; }
.row:hover .t, .row[aria-expanded="true"] .t { color: var(--river); }
.row[aria-expanded="true"] .chev { color: var(--river); }

.panel { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 16px; padding: 4px 0 24px; }
.panel[hidden] { display: none; }
html.js .row[aria-expanded="false"] + .panel { display: none; }   /* folded before first paint, so folded covers never download */
.panel .inner { display: grid; gap: 14px; min-width: 0; }
.panel img { display: none; width: 160px; height: auto; aspect-ratio: 1; max-width: 100%; object-fit: cover; }
.panel .desc { margin: 0; max-width: 58ch; font-size: var(--s2); }
.panel .start { margin: 0; font-size: var(--s2); color: var(--quiet); display: flex; flex-wrap: wrap; align-items: center; gap: 0 16px; }
.panel .start a { color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; border-bottom: 1px solid transparent; }
.panel .start a:hover { color: var(--river); border-bottom-color: var(--river); }
.listen { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 24px; }
.listen a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; border-bottom: 1px solid transparent; }
.listen a:hover { border-bottom-color: var(--river); color: var(--river); }
.listen li:first-child a { font-weight: 600; }

.reach { margin-top: 72px; scroll-margin-top: 24px; }
.reach .row .t { font-weight: 500; }
.reach .lead { margin: 0 0 8px; color: var(--quiet); font-size: var(--s2); }
.contact-form { display: grid; gap: 16px; max-width: 520px; }
.contact-form label { display: grid; gap: 6px; font-size: var(--s2); color: var(--quiet); }
.contact-form input, .contact-form select, .contact-form textarea { font: inherit; color: var(--ink); background: transparent; border: 0; border-bottom: 1px solid var(--field); padding: 10px 0; border-radius: 0; min-height: 44px; width: 100%; }
.contact-form textarea { min-height: 112px; resize: vertical; }
.contact-form select { -webkit-appearance: none; appearance: none; padding-right: 28px; background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23161616' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 4px center; }   /* Safari ignores min-height on a native select */
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: none; border-bottom: 2px solid var(--river); }
.contact-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-send { justify-self: start; font: inherit; background: var(--ink); color: var(--paper); border: 0; padding: 0 24px; min-height: 48px; cursor: pointer; }
.contact-send:hover { background: var(--river); }
.contact-send:disabled { opacity: 0.6; cursor: wait; }
.contact-status { margin: 0; min-height: 1.4em; font-size: var(--s2); color: var(--error); }
.contact-status--ok { color: var(--river); }

.foot { grid-column: 1 / -1; margin-top: 96px; display: flex; gap: 0 24px; flex-wrap: wrap; font-size: var(--s1); color: var(--quiet); }
.foot a, .foot span { text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.foot a:hover { color: var(--river); }

/* Right edge: the dated news line (after Hosono's vertical ticker). */
.ticker { border-left: 1px solid var(--rule); position: sticky; top: 0; height: 100vh; display: flex; justify-content: center; padding: 40px 0; overflow: hidden; }
.ticker p { margin: 0; writing-mode: vertical-rl; font-size: var(--s1); letter-spacing: 0.08em; color: var(--quiet); white-space: nowrap; }
.ticker b { color: var(--river); font-weight: 500; }

@media (max-width: 1100px) {   /* tablet and small laptop: format moves under the title */
  .row { grid-template-columns: 56px minmax(0, 1fr) 20px; grid-template-areas: 'yr t chev' 'yr f chev'; row-gap: 0; }
  .row .yr { grid-area: yr; } .row .t { grid-area: t; } .row .f { grid-area: f; font-size: var(--s1); } .row .chev { grid-area: chev; }
}
@media (max-width: 760px) {
  .page { grid-template-columns: minmax(0, 1fr) 36px; }
  .frame { padding: 24px 20px 48px; grid-template-columns: minmax(0, 1fr); }
  .who-right { align-items: flex-start; }
  .stage { display: none; }
  .index { margin-top: 32px; }
  .row { grid-template-columns: 48px minmax(0, 1fr) 20px; }
  .panel { grid-template-columns: minmax(0, 1fr); padding-left: 64px; }
  .panel img { display: block; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
