/* esound.music — two-colour risograph print: a blue plate and a green plate on cool paper. */
:root {
  --paper: #eef2ef;
  --paper-deep: #e1e8e3;
  --ink: #0b1f2a;
  --slate: #4c5e66;
  --blue: #0078bf;      /* riso Blue */
  --blue-text: #005a91; /* same ink, darkened for body-size text contrast */
  --green: #3ddc4f;     /* riso Fluorescent Green */
  --rule: #c9d6cf;

  --display: 'Big Shoulders Display', 'Arial Narrow', 'Helvetica Neue', sans-serif;
  --body: 'Atkinson Hyperlegible', 'Helvetica Neue', Arial, sans-serif;
  --mono: 'Martian Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --gutter: clamp(16px, 4vw, 48px);
  --measure: 68ch;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  padding-inline: var(--gutter);
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--blue-text); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 2px; }

.skip {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  background: var(--ink);
  color: var(--paper);
  padding: 8px 12px;
  z-index: 10;
}
.skip:focus { top: 8px; }

.label {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--slate);
  margin: 0;
}

/* ---------- masthead ---------- */
.masthead {
  max-width: 1200px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-block: 20px;
  border-bottom: 2px solid var(--ink);
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--display);
  font-weight: 900;
  font-size: 1.9rem;
  line-height: 1;
  letter-spacing: 0.01em;
}
.masthead nav { display: flex; gap: clamp(14px, 3vw, 32px); flex-wrap: wrap; }
.masthead nav a {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  padding-block: 4px;
  border-bottom: 2px solid transparent;
}
.masthead nav a:hover,
.masthead nav a[aria-current='page'] { border-bottom-color: var(--blue); }

main { max-width: 1200px; margin-inline: auto; }

/* ---------- hero: the two plates ---------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: center;
  padding-block: clamp(40px, 8vw, 96px) clamp(48px, 8vw, 104px);
}
.hero-eyebrow { margin-bottom: 18px; }

.plates {
  display: grid;
  margin: 0 0 28px;
  font-family: var(--display);
  font-weight: 900;
  text-transform: uppercase;
  font-size: clamp(3.6rem, 11vw, 9.5rem);
  line-height: 0.86;
  letter-spacing: -0.005em;
}
.plate { grid-area: 1 / 1; display: block; }
.plate .line { display: block; }
.plate-blue { color: var(--blue); mix-blend-mode: multiply; }
.plate-green {
  color: var(--green);
  transform: translate(0.05em, 0.035em);
  animation: register 1.1s cubic-bezier(0.2, 0.7, 0.1, 1) both;
}
@keyframes register {
  from { transform: translate(-0.22em, 0.16em); opacity: 0; }
  30% { opacity: 1; }
  to { transform: translate(0.05em, 0.035em); }
}

.lede {
  max-width: 34ch;
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  line-height: 1.45;
  margin: 0 0 28px;
}
.requirements { margin: 14px 0 0; font-size: 0.9rem; color: var(--slate); }

.store {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  margin: 0;
  padding: 12px 22px 13px;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  border-radius: 14px;
  box-shadow: 6px 6px 0 var(--green);
  transition: transform 160ms ease, box-shadow 160ms ease;
}
a.store:hover { transform: translate(-2px, -2px); box-shadow: 8px 8px 0 var(--green); }
.store-small { font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.06em; text-transform: uppercase; opacity: 0.85; }
.store-big { font-family: var(--display); font-weight: 700; font-size: 1.7rem; line-height: 1; letter-spacing: 0.02em; }
.store-soon { background: transparent; color: var(--ink); border: 2px solid var(--ink); box-shadow: 6px 6px 0 var(--green); }

.hero-art { position: relative; margin: 0; justify-self: center; width: min(100%, 420px); aspect-ratio: 1; max-width: 100%; }
.halftone {
  position: absolute;
  inset: 0;
  transform: translate(7%, 7%);
  border-radius: 23%;
  background-image: radial-gradient(circle at center, var(--green) 0 34%, transparent 36%);
  background-size: 11px 11px;
  mix-blend-mode: multiply;
}
.hero-art img { position: relative; width: 100%; border-radius: 23%; box-shadow: 0 1px 0 rgba(11, 31, 42, 0.1); }

/* ---------- sides A / B ---------- */
.sides {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 2px solid var(--ink);
}
.side { padding-block: clamp(32px, 5vw, 56px); }
.side + .side { border-left: 1px solid var(--rule); padding-left: clamp(20px, 4vw, 56px); }
.side:first-child { padding-right: clamp(20px, 4vw, 56px); }
.side-head h2 {
  font-family: var(--display);
  font-weight: 900;
  text-transform: uppercase;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 0.95;
  margin: 6px 0 22px;
}
.tracks { list-style: none; margin: 0; padding: 0; }
.track {
  display: grid;
  grid-template-columns: 3.2rem minmax(0, 1fr);
  gap: 12px;
  padding-block: 16px;
  border-top: 1px solid var(--rule);
}
.track-no { font-family: var(--mono); font-size: 0.8rem; color: var(--blue-text); padding-top: 0.2rem; }
.track h3 { margin: 0 0 2px; font-size: 1.1rem; line-height: 1.3; }
.track p { margin: 0; color: var(--slate); }

/* ---------- facts ---------- */
.facts {
  border-top: 2px solid var(--ink);
  padding-block: clamp(32px, 5vw, 56px);
}
.facts h2 {
  font-family: var(--display);
  font-weight: 900;
  text-transform: uppercase;
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 1;
  margin: 0 0 24px;
}
.facts ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 0 clamp(20px, 3vw, 40px);
}
.facts li { border-top: 1px solid var(--rule); padding-block: 16px; }
.facts h3 { margin: 0 0 4px; font-size: 1.05rem; }
.facts p { margin: 0; color: var(--slate); }

/* ---------- closing band ---------- */
.encore {
  /* full-bleed band without horizontal overflow: the border-image paints past the column */
  border-image: conic-gradient(var(--blue) 0 0) fill 0 // 0 100vw;
  color: var(--paper);
  padding-block: clamp(40px, 7vw, 80px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.encore-line {
  margin: 0;
  font-family: var(--display);
  font-weight: 900;
  text-transform: uppercase;
  font-size: clamp(2.2rem, 6vw, 4.4rem);
  line-height: 0.92;
  max-width: 14ch;
}
.store-invert { background: var(--paper); color: var(--ink); box-shadow: 6px 6px 0 var(--ink); }
a.store-invert:hover { box-shadow: 8px 8px 0 var(--ink); }
.store-invert.store-soon { background: transparent; color: var(--paper); border-color: var(--paper); }

/* ---------- documents ---------- */
.doc { padding-block: clamp(32px, 6vw, 72px); }
.doc.has-toc {
  display: grid;
  grid-template-columns: minmax(180px, 250px) minmax(0, var(--measure));
  grid-template-areas: 'head head' 'toc body';
  gap: 0 clamp(28px, 5vw, 72px);
}
.doc-head { grid-area: head; border-bottom: 2px solid var(--ink); padding-bottom: 20px; margin-bottom: 32px; }
.doc-head h1 {
  font-family: var(--display);
  font-weight: 900;
  text-transform: uppercase;
  font-size: clamp(2.8rem, 8vw, 5.5rem);
  line-height: 0.9;
  margin: 8px 0 12px;
  color: var(--blue);
}
.doc-updated { margin: 0; font-family: var(--mono); font-size: 0.78rem; color: var(--slate); }
.doc-toc { grid-area: toc; align-self: start; position: sticky; top: 24px; }
.doc-toc ol { margin: 10px 0 0; padding-left: 1.3em; font-size: 0.92rem; line-height: 1.4; }
.doc-toc li { margin-bottom: 8px; }
.doc-toc a { color: var(--ink); text-decoration: none; }
.doc-toc a:hover { color: var(--blue-text); text-decoration: underline; }
.doc-body { grid-area: body; max-width: var(--measure); }
.doc-body h2 {
  font-size: 1.35rem;
  line-height: 1.3;
  margin: 2.2em 0 0.5em;
  padding-top: 0.9em;
  border-top: 1px solid var(--rule);
  scroll-margin-top: 20px;
}
.doc-body h2:first-child { margin-top: 0; }
.doc-body h3 { font-size: 1.08rem; margin: 1.6em 0 0.4em; }
.doc-body p, .doc-body li { max-width: var(--measure); }
.doc-body ul, .doc-body ol { padding-left: 1.3em; }
.doc-body li { margin-bottom: 0.4em; }
.doc-body code { font-family: var(--mono); font-size: 0.85em; background: var(--paper-deep); padding: 0.1em 0.35em; border-radius: 4px; }

/* ---------- colophon ---------- */
.colophon {
  max-width: 1200px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px 32px;
  padding-block: 36px 44px;
  border-top: 2px solid var(--ink);
  font-size: 0.95rem;
}
.page-home .colophon { border-top: 0; }
.colophon p { margin: 0; }
.colophon-publisher .label { margin-bottom: 6px; }
.colophon-links { display: flex; gap: 20px; flex-wrap: wrap; align-self: start; }
.colophon-links a { color: var(--ink); }
.colophon-fine { grid-column: 1 / -1; color: var(--slate); font-size: 0.82rem; }

/* ---------- small screens ---------- */
@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; }
  .hero-art { width: min(40%, 180px); justify-self: start; order: -1; }
  .sides { grid-template-columns: 1fr; }
  .side + .side { border-left: 0; padding-left: 0; border-top: 1px solid var(--rule); }
  .side:first-child { padding-right: 0; }
  .doc.has-toc { grid-template-columns: minmax(0, 1fr); grid-template-areas: 'head' 'toc' 'body'; }
  .doc-toc { position: static; margin-bottom: 28px; padding-bottom: 20px; border-bottom: 1px solid var(--rule); }
  .colophon { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .plate-green { animation: none; }
  .store, a.store:hover { transition: none; transform: none; }
}
