/* Rachmanow — Ink & Paper. Mobile-first; desktop rules at the end. */
:root {
  color-scheme: light;
  --paper: #ffffff;
  --ink: #111111;
  --graphite: #3c3c3c;
  --ash: #737373;
  --mist: #e6e6e6;
  --serif: ui-serif, "New York", Charter, Georgia, "Times New Roman", serif;
  --sans: ui-sans-serif, -apple-system, system-ui, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --gutter: clamp(20px, 5vw, 64px);
  --hairline: 1px;
  font-family: var(--serif);
}
@media (prefers-color-scheme: dark) {
  :root { color-scheme: dark; --paper: #0a0a0a; --ink: #f2f2f0; --graphite: #c9c9c6; --ash: #8a8a86; --mist: #2a2a2a; }
}
@media (min-resolution: 2dppx) { :root { --hairline: 0.5px; } }

* { box-sizing: border-box; }
html { scroll-padding-top: 24px; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--paper); color: var(--ink); font-size: 17px; line-height: 1.5; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
a:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
img, svg { max-width: 100%; }
h1, h2, h3, p, figure { margin: 0; }
::selection { background: var(--ink); color: var(--paper); }

.page { max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter); }
.skip-link { position: absolute; top: 8px; left: 20px; z-index: 2; padding: 12px 16px; background: var(--ink); color: var(--paper); transform: translateY(-150%); }
.skip-link:focus { transform: none; }

/* Chrome type: small, tracked, uppercase sans */
.eyebrow, .index, .section-label h2, .strip > span, nav a {
  font-family: var(--sans); font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; line-height: 1.4;
}

/* Score glyphs */
.notehead { display: inline-block; width: 10px; height: 8px; flex: none; background: var(--ink); border-radius: 50%; transform: rotate(-20deg); }
.notehead.void { background: transparent; border: 1px solid var(--ink); }
.barline { display: inline-block; width: 1.5px; height: 14px; flex: none; background: var(--ink); }

/* Header */
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; border-bottom: var(--hairline) solid var(--mist); }
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-size: 21px; font-weight: 600; letter-spacing: -.02em; white-space: nowrap; }
.brand-mark { width: 22px; height: 22px; fill: currentColor; }
.site-header nav { display: flex; align-items: center; gap: 20px; }
.site-header nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--graphite); }
.site-header nav .nav-how { display: none; }
.site-header nav a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }

/* Hero */
.hero { display: grid; gap: 48px; padding: 40px 0 48px; border-bottom: var(--hairline) solid var(--mist); }
.eyebrow { display: flex; align-items: center; gap: 10px; color: var(--graphite); }
h1 { font-size: clamp(40px, 9vw, 82px); line-height: 1.02; font-weight: 600; letter-spacing: -.02em; margin: 20px 0 24px; text-wrap: balance; }
.lede { max-width: 32em; font-size: 17px; line-height: 1.6; color: var(--graphite); }
.store { margin-top: 32px; }
.store-badge { display: inline-block; }
.store-badge img { display: block; height: 48px; width: auto; }
.hint { margin-top: 12px; font-style: italic; font-size: 14px; line-height: 1.5; color: var(--ash); }
.section-body .hint { margin-top: 20px; }

/* Strip */
.strip { display: grid; gap: 14px; padding: 20px 0; border-top: 2px solid var(--ink); border-bottom: var(--hairline) solid var(--mist); }
.strip > span { display: flex; align-items: center; gap: 12px; color: var(--graphite); }

/* Sections */
.section { display: grid; gap: 24px; padding: 48px 0; border-bottom: var(--hairline) solid var(--mist); }
.section-label { display: flex; align-items: baseline; gap: 12px; }
.index { color: var(--ash); }
.section-label h2 { color: var(--graphite); }
.section h3 { font-size: clamp(28px, 4.2vw, 40px); line-height: 1.15; font-weight: 600; letter-spacing: -.015em; margin-bottom: 20px; text-wrap: balance; }
.section p { max-width: 36em; color: var(--graphite); line-height: 1.6; }
.section p + p { margin-top: 16px; }
.venue-run { max-width: none; font-style: italic; line-height: 1.7; }
.text-link { display: inline-block; margin-top: 28px; padding-bottom: 1px; border-bottom: 1px solid var(--ink); }
.text-link:hover { color: var(--graphite); border-color: var(--graphite); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; }
.steps li { padding-top: 16px; border-top: var(--hairline) solid var(--mist); }
.step-number { display: block; margin-bottom: 12px; font-size: 15px; font-style: italic; color: var(--ash); }
.steps h3 { font-size: 22px; letter-spacing: 0; margin-bottom: 8px; }
.steps p { font-size: 16px; }

/* Closing */
.closing { padding: 56px 0 64px; }
.closing h2 { font-size: clamp(40px, 9vw, 96px); line-height: 1; font-weight: 600; letter-spacing: -.025em; margin: 16px 0 8px; }

/* Footer, opened by a final barline: thin rule, then thick */
.site-footer { position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding: 28px 0 40px; border-top: var(--hairline) solid var(--ink); font-size: 13px; color: var(--ash); }
.site-footer::before { content: ""; position: absolute; top: 3px; left: 0; right: 0; height: 3px; background: var(--ink); }
.site-footer a { color: var(--graphite); }
.site-footer a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.site-footer nav { display: flex; gap: 16px; }
.site-footer nav a { display: inline-flex; align-items: center; min-height: 44px; }

/* Legal pages (privacy, terms) */
.legal { max-width: 40em; padding: 40px 0 64px; }
.legal .eyebrow { margin-bottom: 20px; }
.legal h1 { font-size: clamp(32px, 7vw, 52px); line-height: 1.08; font-weight: 600; letter-spacing: -.02em; margin-bottom: 8px; }
.legal h2 { font-family: var(--sans); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--graphite); margin: 36px 0 12px; padding-top: 24px; border-top: var(--hairline) solid var(--mist); }
.legal h2:first-of-type { margin-top: 32px; }
.legal p { color: var(--graphite); line-height: 1.65; }
.legal p + p { margin-top: 14px; }
.legal ul { margin: 14px 0 0; padding-left: 1.1em; color: var(--graphite); line-height: 1.65; }
.legal li + li { margin-top: 10px; }
.legal li::marker { color: var(--ash); }
.legal .hint { margin-top: 36px; }

@media (min-width: 720px) {
  .site-header { min-height: 80px; }
  .brand { font-size: 24px; }
  .brand-mark { width: 24px; height: 24px; }
  .site-header nav { gap: 28px; }
  .site-header nav .nav-how { display: inline-flex; }
  .strip { grid-template-columns: repeat(3, 1fr); gap: 24px; padding: 24px 0; }
  .section { grid-template-columns: minmax(0, 1fr) minmax(0, 3fr); gap: 48px; padding: 64px 0; }
  .section-label { flex-direction: column; gap: 8px; }
  .steps { grid-template-columns: repeat(3, 1fr); gap: 32px; }
  .closing { padding: 80px 0 88px; }
  .legal { padding: 64px 0 88px; }
}
@media (min-width: 960px) {
  .hero { padding: 88px 0 80px; }
  .lede { font-size: 19px; }
  .store-badge img { height: 52px; }
  .section { padding: 80px 0; gap: 64px; }
  .section-label { flex-direction: row; gap: 12px; }
}
