/* Composer pages: the hub (hiroki-naito-composer*.html) and score sales (hiroki-naito-scores*.html).
   The design of the works list (hiroki-naito-works.html): Inter Tight, JetBrains Mono for numbers,
   Source Serif 4 for titles, Noto Sans JP for Japanese, a blue accent and thin black rules. */
:root {
  --acc: #2050C8; --ink: #0a0a0a; --ink-2: #444; --ink-3: #888; --rule-l: #ececec; --bg: #fff;
  /* one blue per part; scores keep the main blue. The menu item and its section share the colour. */
  --works: #2A3F8F; --tuning: #1D6F86; --biography: #4F5F86; --listen: #4740B0;
  --sans: 'Inter Tight', 'Noto Sans JP', system-ui, sans-serif;
  --serif: 'Source Serif 4', 'Noto Sans JP', 'Times New Roman', serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 80px; }

/* ---- header ---- */
.top { display: flex; justify-content: space-between; align-items: baseline; gap: 24px;
  padding: 56px 0 8px; border-bottom: 1px solid var(--ink);
  font-size: 11px; letter-spacing: .15em; text-transform: uppercase; font-weight: 500; }
.top a { text-decoration: none; }
#works, .top nav a[href$="#works"] { --acc: var(--works); }
#tuning, .top nav a[href$="#tuning"] { --acc: var(--tuning); }
#biography, .top nav a[href$="#biography"] { --acc: var(--biography); }
#listen, .top nav a[href$="#listen"] { --acc: var(--listen); }
.top nav { display: flex; align-items: baseline; gap: 24px; }
.top nav a { color: var(--acc); }
.top nav a[lang] { color: var(--ink-3); }
.top nav a:hover { color: var(--ink); }
.top nav a.sale { font-size: 14px; letter-spacing: .12em; }
.top nav a[aria-current] { border-bottom: 1px solid currentColor; }
html:lang(ja) .top nav { font-size: 12.5px; letter-spacing: .12em; }
html:lang(ja) .top nav a.sale { font-size: 15px; letter-spacing: .1em; }
.hero { margin: 72px 0; }
.hero h1 { font-size: clamp(72px, 11vw, 128px); line-height: .88; font-weight: 300; letter-spacing: -.04em; margin: 0; }
.hero h1 em { font-family: var(--serif); font-style: italic; font-weight: 300; }
.eyebrow { font-size: 11px; letter-spacing: .3em; font-weight: 500; color: var(--acc); margin: 0 0 28px; text-transform: uppercase; }
.head { margin: 72px 0 56px; }
.head h1 { font-size: clamp(52px, 7.5vw, 96px); line-height: .95; font-weight: 300; letter-spacing: -.03em; margin: 0; }
.crumb { margin: 0 0 22px; font-size: 11px; letter-spacing: .15em; text-transform: uppercase; font-weight: 500; color: var(--ink-3); }
.crumb a { color: var(--acc); text-decoration: none; }
.crumb span { margin: 0 .8em; }

/* ---- sections ---- */
section { padding: 72px 0 0; }
h2 { margin: 0; padding-bottom: 10px; border-bottom: 1px solid var(--ink);
  font-size: 11px; letter-spacing: .3em; text-transform: uppercase; font-weight: 500; color: var(--acc); }
html:lang(ja) h2 { font-size: 13px; letter-spacing: .2em; }
.lead, .two { font-size: 14px; line-height: 1.7; color: var(--ink-2); }
.lead { margin: 16px 0 0; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; margin-top: 18px; }
.two p { margin: 0 0 10px; }
.two a, .lead a { color: var(--ink); }
.two a:hover, .lead a:hover { color: var(--acc); }
.more { margin: 16px 0 0; text-align: right; }
.more a, .actions a, .sample figcaption a { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; font-weight: 500; color: var(--acc);
  text-decoration: none; border-bottom: 1px solid var(--acc); padding-bottom: 1px; }
.more a:hover, .actions a:hover, .sample figcaption a:hover { opacity: .55; }

table.cat, table.pur { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.cat th, .pur thead th { text-align: left; font-size: 10px; letter-spacing: .18em; text-transform: uppercase; font-weight: 500; color: var(--ink-3);
  padding: 18px 12px 10px 0; border-bottom: 1px solid #ddd; white-space: nowrap; }
html:lang(ja) .cat th, html:lang(ja) .pur thead th { font-size: 11.5px; letter-spacing: .08em; }
.cat td, .pur td, .pur tbody th { padding: 14px 12px 14px 0; border-bottom: 1px solid var(--rule-l); vertical-align: top; text-align: left; font-weight: 400; }
.cat .nr { color: var(--acc); font-family: var(--mono); font-size: 12px; font-weight: 500; width: 56px; }
.cat .t { font-family: var(--serif); font-size: 16px; color: var(--ink); }
.cat .num { font-family: var(--mono); font-size: 12px; color: var(--ink-2); white-space: nowrap; }
.cat td.r, .cat th.r { text-align: right; padding-right: 0; white-space: nowrap; font-family: var(--mono); font-size: 12.5px; }
.cat td.r a { font-family: var(--sans); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--acc); text-decoration: none; border-bottom: 1px solid var(--acc); }
.pur td { color: var(--acc); font-size: 11px; padding-top: 16px; }
.pur td.no { color: var(--ink-3); }
.pur tbody th a { font-family: var(--serif); font-size: 16px; text-decoration: none; }
.pur-wrap { overflow-x: auto; }
.spectra { width: 100%; height: auto; display: block; margin-top: 22px; }
.spectra .lab { text-anchor: end; font-size: 12px; fill: var(--ink-2); font-family: var(--mono); }
.spectra .base { stroke: #ddd; stroke-width: 1; }
.spectra .ln { stroke: var(--ink); stroke-width: 1.3; }
.spectra .ln.ref { stroke: var(--ink-3); stroke-width: 1; }
.spectra .ln.mod { stroke: var(--acc); stroke-width: 2; }
.spectra .ax { text-anchor: middle; font-size: 10px; fill: var(--ink-3); font-family: var(--mono); }
.spectra .ax.end { text-anchor: end; }
footer { margin-top: 56px; padding: 18px 0 64px; border-top: 1px solid var(--ink); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-3); font-weight: 500; }
footer a { text-decoration: none; }
footer a:hover { color: var(--acc); }

/* ---- hub: scores for sale (larger than the other sections, one card per score) ---- */
#scores h2 { padding-bottom: 16px; font-size: clamp(34px, 4.4vw, 52px); line-height: 1.05; letter-spacing: -.02em; font-weight: 300; }
html:lang(ja) #scores h2 { font-size: clamp(30px, 3.8vw, 44px); letter-spacing: .04em; }
.shelf { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 24px; margin: 32px 0 0; padding: 0; list-style: none; }
.shelf a { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; }
.shelf img { display: block; width: 100%; height: auto; border: 1px solid var(--rule-l); }
.shelf a:hover img { border-color: var(--acc); }
.shelf .nr { margin: 16px 0 8px; font-family: var(--mono); font-size: 12px; font-weight: 500; color: var(--acc); }
.shelf .y { margin-left: 10px; color: var(--ink-3); font-weight: 400; }
.shelf .t { margin: 0 0 10px; font-family: var(--serif); font-size: 21px; line-height: 1.2; }
html:lang(ja) .shelf .t { font-family: var(--sans); font-size: 18px; line-height: 1.4; }
.shelf a:hover .t { color: var(--acc); }
.shelf .f { font-size: 12.5px; line-height: 1.6; color: var(--ink-2); }
.shelf .pr { margin-top: auto; padding-top: 14px; font-size: 22px; font-weight: 300; }
.shelf .yen { margin-left: 8px; font-family: var(--mono); font-size: 11.5px; color: var(--ink-3); }
#scores .more { margin-top: 36px; }
#scores .more a { display: inline-block; padding: 15px 24px 14px; border: 0; background: var(--acc); color: #fff; font-size: 12px; letter-spacing: .12em; }
html:lang(ja) #scores .more a { font-size: 14px; letter-spacing: .08em; }
#scores .more a:hover { opacity: 1; background: var(--ink); }

/* ---- score sales ---- */
.subnav { display: flex; flex-wrap: wrap; gap: 8px 24px; padding: 14px 0 10px; border-bottom: 1px solid var(--rule-l);
  font-size: 11px; letter-spacing: .12em; text-transform: uppercase; font-weight: 500; }
.subnav a { color: var(--ink-3); text-decoration: none; }
.subnav a:hover { color: var(--acc); }
.work { display: grid; grid-template-columns: minmax(0, 46%) minmax(0, 1fr); gap: 64px; align-items: start; padding: 64px 0; border-bottom: 1px solid var(--rule-l); scroll-margin-top: 24px; }
.sample { margin: 0; }
.sample img { width: 100%; height: auto; display: block; border: 1px solid var(--rule-l); }
.sample figcaption { display: flex; gap: 24px; margin-top: 14px; }
.wnr { margin: 0 0 10px; font-family: var(--mono); font-size: 12px; font-weight: 500; color: var(--acc); }
.wtitle { margin: 0 0 24px; font-family: var(--serif); font-size: 36px; line-height: 1.1; font-weight: 300; letter-spacing: -.01em; border: 0; padding: 0; color: var(--ink); text-transform: none; }
html:lang(ja) .wtitle { font-family: var(--sans); font-size: 32px; }
.wen { margin: -14px 0 24px; font-family: var(--serif); font-style: italic; font-size: 16px; color: var(--ink-3); }
.spec { display: grid; grid-template-columns: 120px 1fr; margin: 0; border-top: 1px solid var(--ink); font-size: 14px; }
.spec dt, .spec dd { margin: 0; padding: 11px 0; border-bottom: 1px solid var(--rule-l); }
.spec dt { font-size: 10px; letter-spacing: .18em; text-transform: uppercase; font-weight: 500; color: var(--ink-3); padding-top: 13px; }
html:lang(ja) .spec dt { font-size: 12px; letter-spacing: .06em; }
.price { margin: 28px 0 0; font-size: 30px; font-weight: 300; letter-spacing: -.01em; }
.price .yen { margin-left: 12px; font-family: var(--mono); font-size: 13px; color: var(--ink-3); }
.actions { margin: 20px 0 0; display: flex; gap: 28px; }
.addr-line { margin: 18px 0 0; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; font-family: var(--mono); font-size: 15px; }
.copy { font-family: var(--sans); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; font-weight: 500; padding: 5px 12px; border: 1px solid var(--ink); background: #fff; color: var(--ink); cursor: pointer; }
.copy:hover { border-color: var(--acc); color: var(--acc); }
ol.steps, ul.terms { margin: 18px 0 0; padding-left: 1.3em; font-size: 14px; line-height: 1.75; color: var(--ink-2); }
ol.steps li, ul.terms li { margin: 0 0 6px; }
h3 { margin: 30px 0 0; font-size: 10px; letter-spacing: .2em; text-transform: uppercase; font-weight: 500; color: var(--acc); }
html:lang(ja) h3 { font-size: 12.5px; letter-spacing: .1em; }
.law { display: grid; grid-template-columns: 200px 1fr; margin: 18px 0 0; font-size: 13.5px; line-height: 1.7; border-top: 1px solid var(--ink); }
.law dt, .law dd { margin: 0; padding: 10px 0; border-bottom: 1px solid var(--rule-l); }
.law dt { color: var(--ink-3); }

@media (max-width: 1200px) {
  .shelf { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .wrap { padding: 0 24px; }
  .top { flex-direction: column; gap: 8px; padding-top: 32px; }
  .top nav { flex-wrap: wrap; gap: 8px 14px; }
  .hero { margin: 40px 0; }
  .head { margin: 40px 0 36px; }
  .cat thead { display: none; }
  table.cat, .cat tbody { display: block; width: 100%; }
  .cat tr { display: block; padding: 12px 0; border-bottom: 1px solid var(--rule-l); }
  .cat td { display: block; border: 0; padding: 2px 0; }
  .cat td.r { text-align: left; }
  .cat .hide-s { display: none; }
  .shelf { grid-template-columns: 1fr; gap: 0; margin-top: 8px; }
  .shelf li { border-bottom: 1px solid var(--rule-l); }
  .shelf a { display: grid; grid-template-columns: 92px minmax(0, 1fr); column-gap: 18px; align-content: start; padding: 20px 0; }
  .shelf img { grid-row: 1 / span 5; }
  .shelf a > span { grid-column: 2; }
  .shelf .nr { margin-top: 0; }
  .shelf .pr { padding-top: 8px; font-size: 20px; }
  #scores .more { margin-top: 28px; text-align: left; }
  table.pur { font-size: 12.5px; }
  .pur th, .pur td, .pur tbody th { padding: 10px 8px 10px 0; }
  .two { grid-template-columns: 1fr; gap: 8px; }
  .work { grid-template-columns: 1fr; gap: 24px; padding: 40px 0; }
  .spec { grid-template-columns: 96px 1fr; }
  .law { grid-template-columns: 1fr; }
  .law dt { border-bottom: 0; padding-bottom: 0; }
}
