/* One paint strip, one night: each section is a band, darkest at the top. */
:root {
  --sundown: #1a2366;
  --nightfall: #3b1a5e;
  --oxblood: #74202f;
  --ember: #de6a2c;
  --marigold: #f2ab3f;
  --apricot: #f9d6a2;
  --first-light: #fdf0da;
  --ink: #1c0f30;
  --cream: #fff4e2;
  --rail: #150b22;
  --gutter: clamp(1rem, 4.5vw, 4.5rem);
  --display: 'Besley', Georgia, serif;
  --body: 'Hanken Grotesk', system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scrollbar-color: var(--ember) var(--rail);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--sundown);
  color: var(--cream);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.55;
  caret-color: var(--ember);
}

::selection { background: var(--marigold); color: var(--ink); }

h1, h2, h3, p, ol, ul, dl, dd { margin: 0; padding: 0; }
ol, ul { list-style: none; }
i { font-style: normal; }

h1, h2 {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.06;
  text-wrap: balance;
}

h1 { font-size: clamp(2.5rem, 4.9vw, 5.2rem); }
h2 { font-size: clamp(2.1rem, 4.4vw, 4.1rem); }
h1 span { display: block; }

a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }

:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; border-radius: 2px; }

.skip {
  position: absolute;
  left: var(--gutter);
  top: -4rem;
  z-index: 10;
  background: var(--cream);
  color: var(--ink);
  padding: 0.5rem 0.9rem;
}
.skip:focus { top: 0.5rem; }

/* Bands */
.band {
  position: relative;
  padding: clamp(4.5rem, 9vw, 8.5rem) var(--gutter) clamp(5.5rem, 10vw, 9.5rem);
}
.band--nightfall { background: var(--nightfall); }
.band--oxblood { background: var(--oxblood); }
.band--ember { background: var(--ember); color: var(--ink); }
.band--marigold { background: var(--marigold); color: var(--ink); }
.band--apricot { background: var(--apricot); color: var(--ink); }
.band--first-light { background: var(--first-light); color: var(--ink); }

.band__tab {
  position: absolute;
  right: var(--gutter);
  bottom: 0;
  background: var(--cream);
  color: var(--ink);
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.3rem 0.8rem 0.25rem;
}
.band--first-light .band__tab { background: var(--ink); color: var(--cream); }

.lede { max-width: 34rem; margin-top: 1.25rem; font-size: clamp(1.0625rem, 1.3vw, 1.25rem); }
.wrap { max-width: 92rem; margin-inline: auto; }

/* Nav */
.nav {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.4vw, 2.25rem);
  padding: 1.15rem var(--gutter);
  font-size: 1rem;
}
.nav__brand {
  margin-right: auto;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.45rem;
  letter-spacing: -0.02em;
  text-decoration: none;
  padding-bottom: 0.1rem;
  border-bottom: 3px solid var(--marigold);
}
.nav a:not(.nav__brand) { text-decoration: none; padding-block: 0.5rem; }
.nav a:not(.nav__brand):hover { text-decoration: underline; }
.nav a[aria-current='page'] { text-decoration: underline; }
.nav__login { opacity: 0.86; }

/* Buttons */
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.5rem; margin-top: 1.75rem; }
.button {
  display: inline-block;
  border: 0;
  border-radius: 3px;
  background: var(--marigold);
  color: var(--ink);
  font: 700 1.0625rem/1 var(--body);
  padding: 1rem 1.4rem;
  text-decoration: none;
  cursor: pointer;
  transition: background 160ms ease-out, transform 160ms ease-out;
}
.button:hover { background: #ffc266; transform: translateY(-2px); }
.button:active { transform: translateY(0); }
.band--first-light .button { background: var(--ink); color: var(--cream); }
.band--first-light .button:hover { background: var(--nightfall); }

/* Hero */
.hero {
  position: relative;
  background: var(--sundown);
  overflow: hidden;
}
.hero__stage {
  display: grid;
  padding: clamp(1rem, 3vw, 2.5rem) var(--gutter) 0;
  position: relative;
  z-index: 2;
}
.hero__canvas { display: block; width: 100%; height: clamp(230px, 34svh, 400px); margin-top: -1.5rem; }
.hero__rack-block { padding: 0 var(--gutter) 2.25rem; position: relative; z-index: 2; }
.hero__rack { display: flex; gap: 4px; }
.hero__status { margin-top: 0.9rem; min-height: 3.2em; font-size: 0.9375rem; }
.hero__status strong { font-weight: 700; }
.hero__status small { display: block; font-size: 0.8125rem; opacity: 0.82; }

/* Scene chips */
.chip {
  border: 0;
  padding: 0;
  cursor: pointer;
  font: inherit;
  color: var(--ink);
  background: var(--cream);
  border-radius: 3px;
  overflow: hidden;
  transition: transform 220ms cubic-bezier(0.16, 1, 0.3, 1);
}
.chip__bands { display: flex; flex-direction: column; }
.chip__bands i { display: block; flex: 1; }
.chip__name { display: block; font-weight: 600; line-height: 1.15; }

.chip--fan { flex: 1 1 0; min-width: 0; height: 132px; display: flex; }
.chip--fan .chip__bands { flex: 1; }
.chip--fan .chip__name {
  writing-mode: vertical-rl;
  font-size: 0.75rem;
  padding: 0.45rem 0.2rem;
  white-space: nowrap;
}
.chip--fan:hover { transform: translateY(-5px); }
.chip--fan[aria-pressed='true'] { transform: translateY(-11px); outline: 2px solid var(--cream); outline-offset: 2px; }

.chip--swatch { display: flex; flex-direction: column; text-align: left; }
.chip--swatch .chip__bands { height: 76px; }
.chip--swatch .chip__name { padding: 0.5rem 0.6rem 0.55rem; font-size: 0.875rem; }
.chip--swatch:hover { transform: translateY(-3px); }
.chip--swatch[aria-pressed='true'] { outline: 3px solid var(--marigold); outline-offset: 2px; }

.chip:focus-visible { outline: 3px solid var(--marigold); outline-offset: 2px; }

/* Tonight */
.night__grid { display: grid; gap: 2.5rem; }
.night__time {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(4.2rem, 15vw, 6rem);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--marigold);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.night__caption { font-size: 1rem; margin-top: 0.5rem; }
.schedule { margin-top: clamp(3rem, 6vw, 5rem); }
.schedule__strip {
  display: flex;
  height: 54px;
  background: var(--rail);
  padding: 6px;
  border-radius: 3px;
  gap: 1px;
}
.schedule__strip i { flex: 1; min-width: 0; }
.schedule__marks { position: relative; height: 4.6rem; font-size: 0.875rem; line-height: 1.25; }
.schedule__mark {
  position: absolute;
  left: var(--at, 0%);
  top: 0;
  padding-top: 0.75rem;
  white-space: nowrap;
}
.schedule__mark::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 2px;
  height: 0.6rem;
  background: currentColor;
}
.schedule__mark b { display: block; font-weight: 700; }
.schedule__mark--end { transform: translateX(-100%); text-align: right; }
.schedule__mark--end::before { left: auto; right: 0; }

/* Rack */
.rack__head { display: grid; gap: 1.25rem; }
.track {
  margin-top: clamp(2.25rem, 5vw, 3.5rem);
  background: var(--rail);
  border-radius: 3px;
}
.track canvas { display: block; width: 100%; height: 48px; }
.track__label { margin-top: 0.7rem; font-size: 0.9375rem; }
.track__label strong { font-weight: 700; }
.tabs { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; margin-top: 2rem; }
.tabs button {
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  color: inherit;
  cursor: pointer;
  font: 600 1rem/1 var(--body);
  padding: 0.7rem 0 0.5rem;
}
.tabs button:hover { border-bottom-color: rgb(255 244 226 / 0.45); }
.tabs button[aria-pressed='true'] { border-bottom-color: var(--marigold); color: var(--marigold); }
.rack__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(9rem, 42%), 1fr));
  gap: 0.75rem;
  margin-top: 1.5rem;
}

/* Soffit drawing */
.soffit__grid { display: grid; gap: 2.5rem; align-items: center; }
.soffit__drawing svg { display: block; width: 100%; height: auto; }
.soffit__drawing text { font-family: var(--body); font-size: 23px; font-weight: 600; fill: var(--ink); }
.soffit__note { font-size: 0.875rem; margin-top: 0.5rem; }

/* Statement rows: steps on a paint strip */
.rows { margin-top: clamp(2.25rem, 5vw, 4rem); margin-inline: calc(var(--gutter) * -1); }
.rows li {
  display: grid;
  gap: 0.4rem 3rem;
  padding: clamp(1.4rem, 2.8vw, 2.2rem) var(--gutter);
}
.rows li:nth-child(1) { background: rgb(255 255 255 / 0.2); }
.rows li:nth-child(2) { background: rgb(255 255 255 / 0.13); }
.rows li:nth-child(3) { background: rgb(255 255 255 / 0.06); }
.rows h3 {
  font-family: var(--display);
  font-size: clamp(1.45rem, 2.6vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.15;
}
.rows p { max-width: 36rem; align-self: center; }
.band--nightfall .rows li:nth-child(1) { background: rgb(255 255 255 / 0.1); }
.band--nightfall .rows li:nth-child(2) { background: rgb(255 255 255 / 0.065); }
.band--nightfall .rows li:nth-child(3) { background: rgb(255 255 255 / 0.03); }

/* Steps */
.steps {
  display: grid;
  gap: 2rem;
  margin-top: clamp(2.25rem, 5vw, 3.75rem);
  counter-reset: step;
}
.steps li { counter-increment: step; border-top: 2px solid var(--ink); padding-top: 0.8rem; }
.steps li::before {
  content: counter(step);
  display: block;
  font-family: var(--display);
  font-weight: 800;
  font-size: 2.1rem;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}
.steps p { margin-top: 0.35rem; max-width: 26rem; }
.steps--plain li::before { content: none; }

/* Contact */
.contact__grid { display: grid; gap: 2.5rem; }
.contact__aside { margin-top: 1.25rem; }
.contact__aside a { font-weight: 700; }
.contact form { display: grid; gap: 1.1rem; }
.field-pair { display: grid; gap: 1.1rem; }
.field { display: grid; gap: 0.3rem; }
.field label { font-weight: 600; font-size: 0.9375rem; }
.field input, .field textarea {
  width: 100%;
  border: 0;
  border-bottom: 2px solid var(--ink);
  border-radius: 0;
  background: rgb(28 15 48 / 0.05);
  color: var(--ink);
  font: inherit;
  padding: 0.7rem 0.75rem;
}
.field textarea { min-height: 7rem; resize: vertical; }
.field input:focus, .field textarea:focus { outline: 2px solid var(--ink); outline-offset: 1px; }
.field input:user-invalid { border-bottom-color: #a31621; }
.form__status {
  background: var(--ink);
  color: var(--cream);
  padding: 0.9rem 1rem;
  border-radius: 3px;
}

/* Footer */
.footer {
  background: var(--rail);
  padding: 2.5rem var(--gutter) 2.25rem;
  font-size: 0.9375rem;
}
.footer__row { display: flex; flex-wrap: wrap; gap: 0.5rem 2rem; align-items: baseline; }
.footer__brand { font-family: var(--display); font-weight: 800; font-size: 1.3rem; margin-right: auto; }
.footer__fine { margin-top: 1.25rem; opacity: 0.8; font-size: 0.875rem; max-width: 46rem; }

/* Phone nav: logins move to the footer */
@media (max-width: 719px) {
  .nav__login { display: none; }
}

@media (min-width: 720px) {
  .chip--fan { height: 190px; }
  .chip--fan .chip__name { font-size: 0.875rem; padding: 0.6rem 0.3rem; }
  .rack__grid { grid-template-columns: repeat(auto-fill, minmax(10.5rem, 1fr)); }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .rows li { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .contact__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 4rem; }
  .field-pair { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 900px) {
  .night__grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); align-items: end; gap: 4rem; }
  .night__time { font-size: clamp(6rem, 11vw, 10.5rem); }
  .soffit__grid { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 4rem; }
  .rack__head { grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr); align-items: end; gap: 3rem; }
}

/* Wide: the rack hangs beside the headline, the street runs under both. */
@media (min-width: 1080px) {
  .hero { min-height: max(720px, 100svh); display: flex; flex-direction: column; }
  .hero__stage {
    grid-template-columns: minmax(0, 1fr);
    max-width: 63%;
  }
  .hero__canvas { position: absolute; left: 0; right: 0; bottom: 0; height: 58%; margin-top: 0; }
  .hero__rack-block {
    position: absolute;
    top: 5.75rem;
    right: var(--gutter);
    width: min(33%, 34rem);
    padding: 0;
  }
  .chip--fan { height: 232px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .chip, .button { transition: none; }
}
