/* marcochelo.com — warm paper design system.
 *
 * Values come from the handoff's design/tokens.css and the inline styles in
 * reference/home-desktop.html; this file is where they live now.
 *
 * The feel is a record sleeve with the liner notes written on it: warm paper,
 * terracotta and ochre, deep indigo for the music, hand-drawn line art,
 * screenshots pinned up like prints with tape. Few boxes and no grid of
 * equal cards — sections are told apart by background, a rule, or a drawing.
 *
 * Fonts are self-hosted. The handoff's tokens.css @imports them from Google;
 * we do not, for the same reason /aeolus/ does not — no third-party request
 * on any page, and a test enforces it.
 */

/* ---------------------------------------------------------------- fonts  */
/* All three families are variable, so one file per style covers every weight
   the design uses. Google's own CSS serves the same file for each weight. */

@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url("../fonts/BricolageGrotesque-var-latin.ad33cbc6d232.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url("../fonts/BricolageGrotesque-var-latin-ext.c4c7bb6a8d9b.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("../fonts/Newsreader-var-latin.f94a697b1650.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("../fonts/Newsreader-var-latin-ext.2e01db0610b1.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Newsreader';
  font-style: italic;
  font-weight: 400 500;
  font-display: swap;
  src: url("../fonts/Newsreader-var-italic-latin.e97067eb043b.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Newsreader';
  font-style: italic;
  font-weight: 400 500;
  font-display: swap;
  src: url("../fonts/Newsreader-var-italic-latin-ext.43736a955d60.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Caveat';
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("../fonts/Caveat-var-latin.2d9de14f93a2.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Caveat';
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("../fonts/Caveat-var-latin-ext.2a8768f8ef1f.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* --------------------------------------------------------------- tokens  */

:root {
  --paper: #F2E6D3;
  --paper-light: #FBF4E8;
  --paper-dark: #EADBC4;
  --ink: #2A1A12;
  --ink-soft: #4A3428;
  --terracotta: #C2461F;
  --terracotta-text: #A8391A;
  --terracotta-deep: #7A2810;   /* link hover, from the reference's <style> */
  --ochre: #D9A441;
  --ochre-dark: #8A5A12;
  --brass-line: #B07A1E;
  --indigo: #23305A;
  --rule-soft: #C9B497;
  --leader: #9C7F66;
  --placeholder-text: #5A4334;

  --font-display: 'Bricolage Grotesque', system-ui, sans-serif;
  --font-body: 'Newsreader', Georgia, serif;
  --font-hand: 'Caveat', cursive;

  --h1: clamp(40px, 5vw, 68px);
  --h2: clamp(32px, 3.6vw, 52px);
  --body-size: 19px;
  --hand-size: 26px;

  --max-width: 1240px;
  --gutter: 32px;
  --section-space: clamp(56px, 7vw, 104px);

  --print-shadow: 0 14px 30px rgba(42, 26, 18, 0.16);
  --tape: rgba(217, 164, 65, 0.55);
  --tape-terracotta: rgba(194, 70, 31, 0.35);
}

@media (max-width: 767px) {
  :root { --gutter: 20px; --body-size: 17px; --hand-size: 24px; }
}

/* ----------------------------------------------------------------- base  */

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--body-size);
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--terracotta-text); }
a:hover { color: var(--terracotta-deep); }

a:focus-visible, button:focus-visible, summary:focus-visible,
input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2.5px solid var(--terracotta);
  outline-offset: 3px;
}

img { max-width: 100%; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.04;
  margin: 0;
}
h3, h4 { letter-spacing: -0.01em; }

/* The signature move: the second half of a heading drops into the italic
   serif. Used on almost every h1 and h2. */
.soft {
  font-family: var(--font-body);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
}

.hand {
  font-family: var(--font-hand);
  font-size: var(--hand-size);
  line-height: 1.15;
  color: var(--terracotta-text);
}
.hand--tilt { transform: rotate(-2deg); transform-origin: left; }

.skip-link { position: absolute; left: -9999px; }
.skip-link:focus {
  left: var(--gutter); top: 8px; z-index: 20;
  background: var(--paper-light); color: var(--ink); padding: 10px 14px;
}

.wrap { max-width: var(--max-width); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.section { padding-top: var(--section-space); padding-bottom: var(--section-space); }

.eyebrow {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--terracotta-text);
  margin: 0 0 10px;
}

.lede { font-size: 21px; color: var(--ink-soft); max-width: 580px; }
.measure { max-width: 640px; }

/* ---------------------------------------------------------------- line art */

.art { display: block; }
.art--laptop { width: 150px; height: 130px; flex: none; }
.art--saxophone { width: 96px; height: 208px; flex: none; }
.art--sailboat { width: 200px; height: 140px; }
.art--hand-underline { width: 360px; max-width: 70%; height: 22px; margin: 6px 0 28px auto; }
.art--hand-arrow { width: 110px; height: 70px; }
.art--melody-divider { width: 100%; height: 70px; }
.art--staff-lines { width: 100%; height: 120px; }

@media (max-width: 767px) {
  .art--laptop { width: 76px; height: 66px; }
  .art--saxophone { width: 76px; height: 110px; }
  .art--hand-underline { width: 220px; height: 16px; margin: 6px 0 20px 120px; }
}

/* ---------------------------------------------------------------- buttons */

.btn {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  text-decoration: none;
  border-radius: 999px;
  padding: 16px 30px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid transparent;
  cursor: pointer;
}
.btn--solid { background: var(--terracotta); color: var(--paper-light); }
.btn--solid:hover { background: var(--terracotta-deep); color: var(--paper-light); }
.btn--outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--outline:hover { background: var(--ink); color: var(--paper-light); }
.btn--ochre { background: var(--ochre); color: var(--ink); }
.btn--ochre:hover { background: var(--ochre-dark); color: var(--paper-light); }
.btn--ghost-light { border-color: var(--paper-light); color: var(--paper-light); background: transparent; }
.btn--ghost-light:hover { background: var(--paper-light); color: var(--indigo); }
.btn--on-terracotta { background: var(--paper-light); color: var(--terracotta-deep); }
.btn--on-terracotta:hover { background: var(--ink); color: var(--paper-light); }

/* A text link that behaves like a second button: italic, ochre rule under. */
.link-quiet {
  color: var(--ink);
  font-style: italic;
  text-decoration: underline;
  text-decoration-color: var(--ochre);
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
  padding: 12px 4px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.link-hand { font-family: var(--font-hand); font-size: var(--hand-size); color: var(--terracotta-text); text-decoration: none; }
.link-hand:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ----------------------------------------------------------------- header */

.site-header {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 28px var(--gutter);
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}
.wordmark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.wordmark span { color: var(--terracotta); }
.site-nav { display: flex; flex-wrap: wrap; gap: 30px; align-items: center; font-family: var(--font-display); font-size: 16px; font-weight: 500; }
.site-nav a { color: var(--ink); text-decoration: none; }
.site-nav a:hover { color: var(--terracotta-text); text-decoration: underline; text-underline-offset: 5px; }
.site-nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--ochre); text-decoration-thickness: 2px; text-underline-offset: 5px; }

/* A checkbox and a label drive the mobile menu, so it opens with no
   JavaScript. Both are hidden above 768px, where the nav is a plain row.
   The checkbox is visually hidden rather than display:none so it stays
   focusable and reachable from the keyboard. */
.nav-check { position: absolute; opacity: 0; width: 44px; height: 44px; margin: 0; }
.nav-burger { display: none; }

@media (max-width: 767px) {
  .site-header { padding: 18px var(--gutter); position: relative; }
  .nav-check { right: var(--gutter); top: 18px; }
  .nav-burger {
    display: flex; align-items: center; justify-content: center;
    width: 44px; height: 44px;
    border: 1.5px solid var(--ink); border-radius: 999px;
    cursor: pointer;
  }
  .nav-check:focus-visible + .nav-burger { outline: 2.5px solid var(--terracotta); outline-offset: 3px; }
  .site-nav {
    display: none;
    position: absolute; right: var(--gutter); top: 66px; z-index: 10;
    flex-direction: column; align-items: flex-start; gap: 4px;
    background: var(--paper-light);
    border: 1.5px solid var(--ink);
    padding: 14px 20px;
    min-width: 210px;
    box-shadow: var(--print-shadow);
  }
  .nav-check:checked ~ .site-nav { display: flex; }
  .site-nav a { padding: 10px 0; min-height: 44px; display: flex; align-items: center; }
  .site-nav .btn { margin-top: 6px; }
}

/* ------------------------------------------------------------------- hero */

.hero { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; padding-top: 48px; padding-bottom: 72px; }
.hero__text { flex: 1 1 520px; min-width: 0; }
.hero h1 { font-size: var(--h1); line-height: 1; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; }

/* The pinned prints. Absolute on desktop so they can overlap and tilt;
   a plain stack on a phone, where overlapping just hides one of them.
   The small print has to clear the large one's caption — they are allowed to
   overlap, but "the school's website" has to stay readable, so the column
   gets a floor of 480px rather than shrinking until the two collide. */
.hero__prints { flex: 1 1 480px; min-width: 480px; position: relative; height: 480px; }
.hero__prints .print--large { position: absolute; left: 0; top: 40px; width: 350px; }
.hero__prints .print--small { position: absolute; right: 0; top: 150px; width: 180px; }
.hero__note { position: absolute; left: 10px; bottom: 0; margin: 0; width: 180px; transform: rotate(-3deg); }
.hero__arrow { position: absolute; left: 205px; bottom: 60px; }

@media (max-width: 1023px) {
  .hero__prints { min-width: 0; height: auto; display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-start; }
  .hero__prints .print--large,
  .hero__prints .print--small { position: static; width: auto; flex: 1 1 240px; }
  .hero__note { position: static; width: auto; margin-top: 8px; }
  .hero__arrow { display: none; }
}

/* ----------------------------------------------------------------- prints */
/* A screenshot pinned up: paper mount, soft shadow, slight tilt, a strip of
   tape over the top edge. The tilt is cosmetic, so it is dropped when the
   visitor has asked for less motion-ish decoration at small sizes. */

.print {
  background: var(--paper-light);
  padding: 14px 14px 44px;
  box-shadow: var(--print-shadow);
  position: relative;
}
.print--tilt-l { transform: rotate(-4deg); }
.print--tilt-r { transform: rotate(5deg); }
.print--tilt-sm { transform: rotate(-2deg); }
.print__shot {
  border: 1.5px dashed var(--leader);
  background: var(--paper-dark);
  display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 16px;
  font-size: 15px; font-style: italic; color: var(--placeholder-text);
  min-height: 200px;
}
.print__shot img { display: block; width: 100%; height: auto; }
.print__shot--filled { border: 0; padding: 0; background: none; min-height: 0; }
.print__caption {
  position: absolute; left: 0; right: 0; bottom: 10px;
  text-align: center;
  font-family: var(--font-hand); font-size: 22px; color: var(--ink);
}
.print__tape {
  position: absolute; top: -14px; left: 40%;
  width: 90px; height: 26px;
  background: var(--tape);
  transform: rotate(3deg);
}
.print__tape--alt { background: var(--tape-terracotta); transform: rotate(-6deg); width: 70px; height: 24px; }

/* -------------------------------------------------------------- two doors */

.doors { display: flex; flex-wrap: wrap; gap: 32px 80px; padding-top: 56px; padding-bottom: 80px; }
.door { flex: 1 1 440px; min-width: 0; text-decoration: none; color: var(--ink); display: flex; gap: 28px; align-items: flex-end; }
.door:hover { color: var(--ink); }
.door:hover .door__title { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }
.door__body { display: flex; flex-direction: column; gap: 6px; }
.door__title { font-family: var(--font-display); font-weight: 800; font-size: clamp(40px, 4.6vw, 64px); line-height: 1; letter-spacing: -0.03em; }
.door__title--soft { font-family: var(--font-body); font-style: italic; font-weight: 500; letter-spacing: -0.01em; }
.door__text { color: var(--ink-soft); }

@media (max-width: 767px) {
  .door { align-items: center; gap: 18px; }
  .door__text { font-size: 15px; }
}

/* ------------------------------------------------------------ liner notes */

.liner {
  border-top: 1.5px solid var(--ink);
  border-bottom: 1.5px solid var(--ink);
  padding: 20px 0;
  display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: baseline;
}
.liner__label { margin: 0; flex: none; }
.liner__items { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: baseline; }
.liner__item strong { font-family: var(--font-display); font-size: 30px; font-weight: 800; }
.liner__item em { font-size: 16px; }
.liner__sep { color: var(--ochre); }

@media (max-width: 767px) {
  .liner { display: block; }
  .liner__items { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
  .liner__sep { display: none; }
  .liner__item em { font-size: 15px; }
}

/* ----------------------------------------------------------- project grid */
/* Masonry-ish: prints of different heights, tilted, not a grid of equal
   cards. Each column is independent so the tilts do not line up. */

.projects { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 44px 32px; align-items: start; }
.project { margin: 0; }
.project:nth-child(even) .print { transform: rotate(2deg); }
.project:nth-child(3n) .print { transform: rotate(-3deg); }
.project__title { font-family: var(--font-display); font-size: 20px; font-weight: 800; margin: 16px 0 4px; }
.project__text { margin: 0 0 6px; color: var(--ink-soft); }
.project a { font-style: italic; }

/* ---------------------------------------------------------- the set list  */

.setlist { display: flex; flex-wrap: wrap; gap: 32px 64px; }
.setlist__intro { flex: 1 1 300px; min-width: 0; }
.setlist__intro h2 { font-size: var(--h2); }
.setlist__list { flex: 2 1 560px; min-width: 0; list-style: none; margin: 0; padding: 0; border-top: 1.5px solid var(--ink); }
.setlist__list > li { border-bottom: 1.5px solid var(--rule-soft); padding: 18px 0; display: flex; gap: 28px; align-items: baseline; }
.setlist__list > li:last-child { border-bottom: 1.5px solid var(--ink); }
.setlist__n { font-family: var(--font-body); font-style: italic; font-size: 20px; color: var(--terracotta-text); flex: none; width: 24px; }
.setlist__name { font-family: var(--font-display); font-size: clamp(20px, 2vw, 26px); font-weight: 800; }
.setlist__desc { font-style: italic; color: var(--ink-soft); margin: 4px 0 0; }

@media (max-width: 767px) {
  .setlist__list > li { gap: 16px; }
}

/* --------------------------------------------------------------- prices  */
/* A menu card taped to the page: dotted leaders between item and price,
   drawn with a repeating gradient so they stretch to fill. */

.pricecard {
  background: var(--paper-light);
  box-shadow: var(--print-shadow);
  transform: rotate(-0.6deg);
  max-width: 900px;
  margin: 0 auto;
  padding: 48px clamp(24px, 4vw, 64px) 56px;
  position: relative;
}
.pricecard__tape { position: absolute; top: -13px; left: calc(50% - 60px); width: 120px; height: 26px; background: var(--tape); transform: rotate(-1.5deg); }
.pricecard h2 { font-size: clamp(30px, 3.4vw, 46px); text-align: center; }
.pricecard__intro { text-align: center; font-style: italic; color: var(--ink-soft); margin: 10px 0 36px; }
.pricelist { list-style: none; margin: 0; padding: 0; }
.pricelist > li { display: flex; align-items: baseline; gap: 10px; padding: 11px 0; }
.pricelist__item { flex: none; }
.pricelist__leader {
  flex: 1 1 auto;
  min-width: 24px;
  height: 1px;
  align-self: flex-end;
  margin-bottom: 6px;
  background-image: radial-gradient(circle, var(--leader) 1px, transparent 1.2px);
  background-size: 6px 2px;
  background-repeat: repeat-x;
}
.pricelist__price { flex: none; font-family: var(--font-display); font-weight: 700; }
.pricecard__note { text-align: center; font-style: italic; color: var(--ink-soft); font-size: 16px; margin: 28px 0 0; }

@media (max-width: 767px) {
  .pricecard { transform: none; padding: 32px 20px 40px; }
  .pricelist > li { flex-wrap: wrap; gap: 2px 10px; }
  .pricelist__leader { display: none; }
  .pricelist__price { margin-left: auto; }
}

/* ---------------------------------------------------------------- music  */

.music { background: var(--indigo); color: var(--paper-light); position: relative; overflow: hidden; }
.music a { color: var(--paper-light); }
.music__staff { position: absolute; left: 0; right: 0; top: 0; pointer-events: none; }
.music__inner { position: relative; display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.music__media { flex: 1 1 420px; min-width: 0; }
.music__body { flex: 1 1 420px; min-width: 0; }
.music h2 { font-family: var(--font-body); font-style: italic; font-weight: 500; font-size: var(--h2); letter-spacing: -0.01em; }
.music .hand { color: var(--ochre); }
.music__text { color: var(--paper-light); }
.music__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.music .print { background: var(--paper-dark); }
.music .print__caption { color: var(--ink); }

/* ------------------------------------------------------------- about me  */

.about { display: flex; flex-wrap: wrap; gap: 40px 64px; align-items: center; }
.about__art { flex: 0 1 280px; min-width: 0; text-align: center; }
.about__art .hand { color: var(--ink); margin-top: 10px; }
.about__body { flex: 1 1 520px; min-width: 0; max-width: 640px; }
.about h2 { font-size: var(--h2); margin-bottom: 18px; }

/* -------------------------------------------------------------- contact  */

.contact-block {
  background: var(--terracotta);
  color: var(--paper-light);
  border-radius: 28px;
  padding: clamp(32px, 4vw, 56px);
  display: flex; flex-wrap: wrap; gap: 24px 40px; align-items: center; justify-content: space-between;
}
.contact-block h2 { font-size: clamp(28px, 3.2vw, 44px); flex: 1 1 520px; min-width: 0; }
.contact-block__side { flex: 0 1 300px; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.contact-block__text { flex: 1 1 100%; margin: 0; color: var(--paper-light); }
.contact-block .hand { color: var(--paper-light); }
.contact-block a:not(.btn) { color: var(--paper-light); }

/* --------------------------------------------------------------- footer  */

.site-footer { background: var(--ink); color: var(--paper-light); margin-top: var(--section-space); }
.site-footer a { color: var(--paper-light); text-decoration: none; }
.site-footer a:hover { color: var(--ochre); text-decoration: underline; text-underline-offset: 4px; }
.site-footer__inner { max-width: var(--max-width); margin: 0 auto; padding: 40px var(--gutter); display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; justify-content: space-between; }
.site-footer__links { display: flex; flex-wrap: wrap; gap: 12px 24px; font-size: 17px; }
.site-footer__name { font-family: var(--font-display); font-weight: 700; }
.site-footer__name span { font-family: var(--font-body); font-style: italic; font-weight: 400; }

/* ------------------------------------------------------- inner page bits  */

.page-head { padding-top: clamp(32px, 4vw, 56px); padding-bottom: clamp(24px, 3vw, 40px); }
.page-head h1 { font-size: var(--h1); max-width: 16ch; }
.page-head .lede { margin-top: 20px; }

.rule { border: 0; border-top: 1.5px solid var(--rule-soft); margin: 0; }

.prose > * + * { margin-top: 1em; }
.lead-in { font-family: var(--font-display); font-weight: 700; }

.ruled { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.ruled > li { border-left: 2px solid var(--ochre); padding-left: 16px; }

.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: flex; flex-direction: column; gap: 18px; max-width: 640px; }
.steps > li { display: flex; gap: 18px; }
.steps > li::before {
  counter-increment: step;
  content: counter(step);
  font-family: var(--font-body);
  font-style: italic;
  font-size: 20px;
  color: var(--terracotta-text);
  flex: none;
}

/* A table of capabilities, folded away until asked for. */
.disclose > summary {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  padding: 14px 28px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  list-style: none;
}
.disclose > summary::-webkit-details-marker { display: none; }
.disclose > summary:hover { background: var(--ink); color: var(--paper-light); }
.disclose[open] > summary { margin-bottom: 28px; }

.table-wrap { overflow-x: auto; }
table.plain { border-collapse: collapse; width: 100%; min-width: 540px; font-size: 17px; }
table.plain th, table.plain td { text-align: left; vertical-align: top; padding: 14px 20px 14px 0; border-bottom: 1px solid var(--rule-soft); }
table.plain th { font-family: var(--font-display); font-weight: 700; }
table.plain tr:last-child td { border-bottom: 0; }

/* An inverted block for the case study. */
.invert { background: var(--ink); color: var(--paper-light); }
.invert a { color: var(--ochre); }
.invert .lede, .invert .project__text { color: var(--paper-dark); }
.invert table.plain th, .invert table.plain td { border-bottom-color: rgba(251, 244, 232, 0.25); }
.invert .eyebrow { color: var(--ochre); }

/* ------------------------------------------------------------ blog: /log  */

.posts { display: flex; flex-direction: column; }
.post-item { border-top: 1.5px solid var(--rule-soft); padding: 36px 0; max-width: 640px; }
.post-item:first-child { border-top: 0; }
.post-item h2 { font-size: clamp(26px, 3vw, 36px); margin-bottom: 8px; }
.post-item h2 a { color: var(--ink); text-decoration: none; }
.post-item h2 a:hover { text-decoration: underline; text-underline-offset: 5px; }
.post-date { font-family: var(--font-display); font-size: 13px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ochre-dark); }

.pager { border-top: 1.5px solid var(--rule-soft); padding-top: 24px; display: flex; justify-content: space-between; gap: 24px; font-size: 16px; }

.post-body { max-width: 640px; }
.post-body > * + * { margin-top: 24px; }
.post-body img { display: block; height: auto; }
.post-body figure { margin: 0; }
.post-body figcaption { font-family: var(--font-hand); font-size: 20px; color: var(--ink-soft); margin-top: 8px; }
.post-body iframe { max-width: 100%; border: 0; }
.post-body .gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }

/* --------------------------------------------------------------- dates   */

.dates { list-style: none; margin: 24px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.dates > li { border-left: 2px solid var(--ochre); padding-left: 16px; display: flex; flex-wrap: wrap; gap: 2px 16px; align-items: baseline; }
.dates__when { font-family: var(--font-display); font-weight: 700; font-size: 16px; flex: none; }
.dates__time { font-style: italic; font-size: 15px; opacity: 0.85; }

/* ---------------------------------------------------------------- forms  */

.form { max-width: 640px; display: flex; flex-direction: column; gap: 24px; }
.form label { display: block; font-family: var(--font-display); font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.form input[type="text"], .form input[type="email"], .form input[type="number"],
.form input[type="url"], .form input[type="date"], .form select, .form textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: var(--body-size);
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper-light);
  border: 1.5px solid var(--leader);
  border-radius: 10px;
  padding: 12px 14px;
  min-height: 44px;
}
.form textarea { min-height: 170px; resize: vertical; }
.form .helptext { font-size: 15px; color: var(--ink-soft); }
.form ul.errorlist { list-style: none; margin: 6px 0 0; padding: 0; font-size: 15px; color: var(--terracotta-deep); }

/* -------------------------------------------------------------- motion   */

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}


/* ------------------------------------------- Music, Story, /log, Contact */
/* These four keep the content and layout they had — the brief puts them out
   of scope — but they were built against the previous palette, so their
   classes are redefined here on the new tokens. Same structure, warm paper.
   Without this they would read as a different website one click from home. */

.page { max-width: var(--max-width); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.section--flush { padding-top: 0; }
.h2 { font-size: var(--h2); }
.h3 { font-size: clamp(22px, 2.4vw, 30px); }
.cat { font-size: 16px; color: var(--ink-soft); font-style: italic; }
.strong-link { font-family: var(--font-hand); font-size: var(--hand-size); color: var(--terracotta-text); text-decoration: none; }
.strong-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.price { font-family: var(--font-hand); font-size: 22px; color: var(--ochre-dark); }
.mono { font-family: var(--font-display); }

/* Asymmetric two-column block. */
.split { display: flex; flex-wrap: wrap; gap: clamp(32px, 5vw, 72px); align-items: flex-start; }
.split__text { flex: 7 1 380px; max-width: 640px; display: flex; flex-direction: column; gap: 18px; }
.split__media { flex: 5 1 280px; }
.split--flip { flex-direction: row-reverse; }
@media (max-width: 779px) { .split--flip { flex-direction: row; } }

/* A labelled entry: album, recording, project. */
.entries { display: flex; flex-direction: column; }
.entry { display: flex; flex-wrap: wrap; gap: 20px clamp(32px, 5vw, 72px); border-top: 1.5px solid var(--rule-soft); padding: 32px 0; }
.entry:last-child { border-bottom: 1.5px solid var(--rule-soft); }
.entry__meta { flex: 4 1 220px; display: flex; flex-direction: column; gap: 8px; }
.entry__meta .frame { max-width: 200px; }
.entry__body { flex: 8 1 360px; max-width: 640px; display: flex; flex-direction: column; gap: 12px; }

/* A print without the tape: album art, a portrait, a screenshot in prose. */
.frame { margin: 0; background: var(--paper-light); padding: 10px; box-shadow: var(--print-shadow); }
.frame img { display: block; width: 100%; height: auto; }
.frame--auto img { height: auto; }
.caption { font-family: var(--font-hand); font-size: 20px; color: var(--ink-soft); margin-top: 8px; display: block; }

/* The photo strip on /music: shared height, own widths, scrolls on a phone. */
.strip { display: flex; gap: 24px; overflow-x: auto; padding-bottom: 8px; }
.strip figure { margin: 0; flex: none; display: flex; flex-direction: column; gap: 10px; }
.strip img { display: block; height: clamp(240px, 26vw, 340px); width: auto; max-width: none; box-shadow: var(--print-shadow); }
.strip figcaption { max-width: 34ch; }

/* The Spotify player — the one third-party embed on the site. */
.player { display: block; width: 100%; max-width: 640px; border: 0; }

/* The chart route on /story. Both orientations ship; CSS picks one.
   The bottom margin is load-bearing: the labels sit above the dots, so
   without it the next paragraph runs into the line. */
.route { position: relative; display: flex; justify-content: space-between; padding-top: 24px; margin-bottom: 44px; }
.route__line { position: absolute; left: 6px; right: 6px; top: 30px; height: 2px; background: var(--terracotta); }
.route__stop { position: relative; display: flex; flex-direction: column; align-items: center; width: 14px; }
.route__label { position: absolute; bottom: 20px; font-family: var(--font-hand); font-size: 20px; white-space: nowrap; color: var(--ink); }
.route__label--start { left: 0; }
.route__label--end { right: 0; }
.route__label--mid { left: 50%; transform: translateX(-50%); }
.route__dot { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--terracotta); background: var(--paper); flex: none; }
.route--v { display: none; position: relative; flex-direction: column; gap: 24px; }
.route--v .route__line { left: 6px; top: 6px; bottom: 6px; right: auto; width: 2px; height: auto; }
.route--v .route__stop { flex-direction: row; align-items: center; gap: 16px; width: auto; }
.route--v .route__label { position: static; transform: none; }
@media (max-width: 639px) {
  .route--h { display: none; }
  .route--v { display: flex; }
}

/* The inverted blocks on /music and /log keep their inner wrapper. */
.invert__inner { max-width: var(--max-width); margin: 0 auto; padding: var(--section-space) var(--gutter); display: flex; flex-direction: column; gap: 24px; }
.invert .caption, .invert .cat { color: var(--paper-dark); }
.invert .strong-link, .invert .price { color: var(--ochre); }
.invert .frame { background: var(--paper-dark); }
.invert--indigo { background: var(--indigo); }

