/* Trombonest landing page. Uniform navy and lacquered brass; one typeface, Anybody,
   whose width axis stretches with the slide. */

@font-face {
  font-family: "Anybody";
  src: url("/assets/trombonest/fonts/anybody.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 50% 150%;
  font-display: swap;
}

:root {
  --navy: #17204b;
  --navy-2: #222d66;
  --brass: #e9b42c;
  --brass-hi: #ffe48c;
  --brass-lo: #a26a0f;
  --paper: #fff3d6;
  --gutter: clamp(20px, 5vw, 64px);
  --measure: 34em;
}

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

html { background: var(--navy); -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  color: var(--paper);
  font-family: "Anybody", system-ui, sans-serif;
  font-size: 18px;
  font-stretch: 100%;
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: 4px; }
a:hover { color: var(--brass-hi); }

:focus-visible { outline: 3px solid var(--brass-hi); outline-offset: 4px; border-radius: 4px; }

h2 { margin: 0 0 .5em; font-weight: 800; font-stretch: 118%; line-height: 1.05; letter-spacing: -.01em; }
p { margin: 0 0 1em; max-width: var(--measure); }

.home {
  position: absolute;
  top: 18px;
  left: var(--gutter);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  opacity: .7;
}
.home:hover { opacity: 1; }

/* Hero */

.hero {
  padding: 72px var(--gutter) 56px;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  overflow-x: clip;
}
@media (min-width: 1000px) and (min-height: 720px) {
  .hero { min-height: 100svh; justify-content: center; }
}

.wordmark {
  margin: 0;
  color: var(--brass);
  font-size: 16vw; /* landing.js fits it to the width */
  font-weight: 900;
  font-stretch: 100%;
  line-height: .82;
  letter-spacing: -.01em;
  text-transform: uppercase;
  white-space: nowrap;
}

.lede {
  margin: .9em 0 0;
  font-size: clamp(20px, 2.6vw, 28px);
  font-weight: 500;
  font-stretch: 108%;
  line-height: 1.25;
}

.play { margin: clamp(32px, 6vh, 64px) 0 0; }
@media (min-width: 1000px) {
  .play {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 360px);
    gap: clamp(40px, 4vw, 72px);
    align-items: end;
  }
}

.instrument {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: clamp(12px, 2vw, 28px);
}

.ladder {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  min-width: 2.5em; /* labels change with the partial; the horn shouldn't shift */
  font-size: 15px;
  font-weight: 700;
  font-stretch: 90%;
  line-height: 1;
}
.notes { list-style: none; margin: 4px 0; padding: 0; text-align: right; }
.notes li { padding: 3px 0; opacity: .35; transition: opacity .12s, color .12s; }
.notes li.is-on { color: var(--brass-hi); opacity: 1; }
.step {
  margin: 0;
  padding: 4px 0 4px 12px;
  border: 0;
  background: none;
  color: var(--brass-hi);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.step:hover { color: var(--paper); }
.step.is-off { opacity: .2; cursor: default; }
/* On phones the list is a row above the slide, in the order the slide plays it. */
@media (max-width: 599px) {
  .instrument { grid-template-columns: 1fr; }
  .ladder { flex-direction: row; align-items: center; }
  .notes { flex: 1; display: flex; margin: 0 4px; text-align: center; }
  .notes li { flex: 1; }
  .step { padding: 12px 10px; }
}

.stage {
  position: relative;
  padding-bottom: 30px;
  cursor: grab;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.stage.is-playing { cursor: grabbing; }

.horn { display: block; width: 100%; height: auto; overflow: visible; }
#slide { will-change: transform; }
.grip { fill: var(--navy-2); stroke: var(--brass-hi); stroke-width: 3; }
.is-playing .grip { fill: var(--brass-hi); }

.positions {
  list-style: none;
  margin: 0;
  padding: 0;
  position: absolute;
  inset: auto 0 0 0;
  height: 24px;
  font-size: 13px;
  font-weight: 700;
  line-height: 24px;
}
.positions li {
  position: absolute;
  width: 2ch;
  margin-left: -1ch;
  text-align: center;
  opacity: .35;
}
.positions li.is-on { color: var(--brass-hi); opacity: 1; }
/* Where the slide's end sits at each position: they get further apart, 8 cm to 11 cm. */
.positions li:nth-child(1) { left: 65.89%; }
.positions li:nth-child(2) { left: 70.51%; }
.positions li:nth-child(3) { left: 75.40%; }
.positions li:nth-child(4) { left: 80.58%; }
.positions li:nth-child(5) { left: 86.06%; }
.positions li:nth-child(6) { left: 91.88%; }
.positions li:nth-child(7) { left: 98.04%; }

.readout {
  margin: 16px 0 0;
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 800;
  font-stretch: 112%;
  font-variant-numeric: tabular-nums;
  color: var(--brass-hi);
}

.hint { margin: 2px 0 0; font-size: 15px; opacity: .7; }
.hint-mouse { display: none; }
@media (hover: hover) and (pointer: fine) {
  .hint-touch { display: none; }
  .hint-mouse { display: inline; }
}

.buy { margin-top: clamp(28px, 5vh, 44px); }
@media (min-width: 1000px) {
  .side { padding-bottom: 30px; }
  .readout { margin-top: 0; }
}

.cta {
  display: inline-block;
  padding: 18px 30px 17px;
  border-radius: 999px;
  background: var(--brass);
  color: var(--navy);
  font-size: 20px;
  font-weight: 800;
  font-stretch: 112%;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .12s;
}
.cta:hover { background: var(--brass-hi); color: var(--navy); }
.cta:active { transform: translateY(1px); }


/* In your room */

.room { background: var(--brass); color: var(--navy); padding: clamp(56px, 10vw, 128px) var(--gutter); }
.room-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  gap: clamp(28px, 6vw, 80px);
  align-items: center;
}
.room-video {
  display: block;
  width: min(100%, 360px);
  height: auto;
  aspect-ratio: 9 / 16;
  border-radius: 22px;
  background: var(--navy);
  object-fit: cover;
}
.room h2 { font-size: clamp(36px, 6vw, 64px); }
.room p { font-size: clamp(18px, 1.8vw, 21px); }
.room a:hover { color: var(--navy-2); }
@media (min-width: 760px) {
  .room-inner { grid-template-columns: 360px 1fr; }
}

/* The three things it does */

.truths {
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(64px, 11vw, 140px) var(--gutter) 0;
  display: grid;
  gap: clamp(48px, 8vw, 96px);
}
.truth h2 { font-size: clamp(34px, 6.4vw, 72px); color: var(--brass); }
.truth p { font-size: clamp(18px, 1.8vw, 21px); opacity: .9; }
@media (min-width: 900px) {
  .truth { display: grid; grid-template-columns: 1.35fr 1fr; gap: 56px; align-items: baseline; }
}

/* Questions */

.faq {
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(80px, 12vw, 160px) var(--gutter) 0;
}
.faq h2 { font-size: clamp(30px, 4vw, 44px); }
.faq dl { margin: 1.4em 0 0; display: grid; gap: 4px 48px; }
.faq dt { font-weight: 700; font-stretch: 105%; color: var(--brass-hi); margin-top: 1.1em; }
.faq dd { margin: 0; max-width: var(--measure); opacity: .9; }
@media (min-width: 900px) {
  .faq dl { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .faq dt { grid-column: 1; margin-top: 0; padding-top: 22px; }
  .faq dd { grid-column: 2; padding-top: 22px; }
}

/* The end: the wordmark at seventh position */

.finale {
  padding: clamp(96px, 14vw, 180px) var(--gutter) clamp(64px, 10vw, 120px);
  overflow: hidden;
}
.wordmark-out { font-stretch: 150%; margin-bottom: clamp(28px, 4vw, 48px); max-width: none; }

.foot {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  padding: 28px var(--gutter) 40px;
  border-top: 1px solid var(--navy-2);
  font-size: 15px;
  opacity: .75;
}
.foot p { margin: 0; }

@media (prefers-reduced-motion: reduce) {
  .notes li, .cta { transition: none; }
}
