/* Kumitok marketing pages (Home, About).
 *
 * Placeholder styling: the wordmark, type, palette and Living Print direction
 * are in progress with the designer. To restyle:
 *   - change the tokens in :root (type, palette, spacing);
 *   - per-sound colours come from art/posters.js via data-look (--ground, --fg, --shape);
 *   - artwork comes from art/posters.js via data-art.
 * The markup uses only these classes: site-header, wm, nav, hero, section,
 * section--night, band, art, eyebrow, lede, cta, cta-note, site-footer.
 */
:root {
  --font-display: 'Fraunces', Georgia, serif;
  --font-text: 'Fraunces', Georgia, serif;
  --font-label: 'IBM Plex Mono', ui-monospace, monospace;

  --paper: #F1E9DA;
  --ink: #211D24;
  --night: #16182A;
  --night-ink: #ECE5CB;

  --gutter: clamp(20px, 6vw, 72px);
  --wide: 1180px;
  --measure: 34rem;
  --space: clamp(72px, 14vw, 168px);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--font-text); font-size: clamp(18px, 1.1vw + 14px, 21px); line-height: 1.5;
  overflow-x: hidden; -webkit-tap-highlight-color: transparent;
}
a { color: inherit; }
a:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; border-radius: 2px; }
img, svg { display: block; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: var(--gutter); top: 8px; z-index: 10; background: var(--paper); color: var(--ink); padding: 10px 14px; }

/* colour context: a data-look element takes a sound's colours */
[data-look] { background: var(--ground); color: var(--fg); --cta-bg: var(--fg); --cta-fg: var(--ground); }
.section--night { background: var(--night); color: var(--night-ink); --cta-bg: var(--night-ink); --cta-fg: var(--night); }

/* header */
.site-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: max(10px, env(safe-area-inset-top)) var(--gutter) 0;
  font-family: var(--font-label); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
}
.wm {
  font-family: var(--font-display); font-weight: 700; font-size: 22px; letter-spacing: -0.02em; text-transform: none;
  text-decoration: none; display: inline-flex; align-items: center; min-height: 48px;
}
.nav { display: flex; align-items: center; }
.nav a { text-decoration: none; display: inline-flex; align-items: center; min-height: 48px; padding: 0 2px; }
.nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }
.nav .dot { padding: 0 10px; opacity: 0.6; }

/* shared type */
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.03em; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(46px, 12.5vw, 112px); line-height: 0.92; }
h2 { font-size: clamp(36px, 8.5vw, 72px); line-height: 0.96; }
h3 { font-size: clamp(34px, 7vw, 56px); line-height: 0.96; }
p { margin: 0; max-width: var(--measure); text-wrap: pretty; }
p + p { margin-top: 0.9em; }
.eyebrow { font-family: var(--font-label); font-size: 12px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; margin: 0 0 18px; }
.lede { font-size: 1.12em; }

/* call to action */
.cta {
  display: inline-flex; align-items: center; gap: 12px; min-height: 52px; padding: 0 26px; border-radius: 999px;
  background: var(--cta-bg, var(--ink)); color: var(--cta-fg, var(--paper));
  font-family: var(--font-label); font-size: 14px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none;
}
.cta::after { content: ""; width: 0; height: 0; border-style: solid; border-width: 6px 0 6px 10px; border-color: transparent transparent transparent currentColor; }
.cta:focus-visible { outline-offset: 5px; }
.cta-note { margin-top: 16px; font-family: var(--font-label); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; }

/* artwork from art/posters.js */
.art { position: relative; }
.art svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }

/* hero */
.hero { padding: 0 var(--gutter) clamp(40px, 9vw, 96px); }
.hero .art { height: clamp(150px, 30svh, 460px); margin: 0 calc(-1 * var(--gutter)); }
.hero h1 { margin-bottom: 22px; }
.hero .cta { margin-top: 28px; }
@media (max-height: 620px) { .hero .art { height: 22svh; } .hero .cta { margin-top: 20px; } }

/* text sections */
.section { padding: var(--space) var(--gutter); }
.section > * { max-width: var(--wide); margin-left: auto; margin-right: auto; }
.section h2 { margin-bottom: 0.6em; }
.section .stack > * + * { margin-top: 0.9em; }
.section h1 + .stack { margin-top: 1.4em; }
.section .cta { margin-top: 40px; }

/* the four sounds */
.sounds-intro { padding-bottom: clamp(36px, 7vw, 72px); }
.band { padding: clamp(28px, 6vw, 64px) var(--gutter) clamp(48px, 9vw, 96px); }
.band .art { height: clamp(200px, 62vw, 420px); margin: 0 calc(-1 * var(--gutter)) 20px; }
.band .n { font-family: var(--font-label); font-size: 12px; letter-spacing: 0.16em; margin: 0 0 10px; }
.band h3 { margin-bottom: 12px; }
.sounds-cta { padding: clamp(48px, 9vw, 96px) var(--gutter) var(--space); }

/* footer */
.site-footer {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 24px;
  padding: 28px var(--gutter) max(28px, env(safe-area-inset-bottom));
  border-top: 1px solid color-mix(in srgb, currentColor 25%, transparent);
  font-family: var(--font-label); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
}
.site-footer a { text-decoration: none; display: inline-flex; align-items: center; min-height: 48px; }

/* wider screens: text and art side by side */
@media (min-width: 860px) {
  .hero { display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 0 var(--gutter); min-height: calc(100svh - 58px); padding-bottom: var(--gutter); }
  .hero .art { order: 2; height: min(70svh, 560px); margin: 0 calc(-1 * var(--gutter)) 0 0; }
  .band { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 0 var(--gutter); padding-top: var(--gutter); padding-bottom: var(--gutter); }
  .band .art { height: min(56vw, 440px); margin: 0; }
  .band:nth-of-type(even) .art { order: 2; }
  .section .stack, .section h2 { max-width: var(--wide); }
  .section.split > .inner { display: grid; grid-template-columns: 1fr 1fr; gap: 0 var(--gutter); align-items: start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
