/* Hallmark · pre-emit critique: P4 H4 E4 S5 R4 V5
 * genre: atmospheric · macrostructure: Narrative Workflow
 * theme: Midnight · axes: dark / geometric-sans / warm
 * tone: technical · anchor hue: warm brass
 * nav: N1b · knobs: links=3, dropdowns=none, scroll=always-solid, cta=fill
 * footer: Ft1
 * enrichment: real film
 * F4 knobs: numbering=1.0/2.0/3.0/4.0, layout=vertical stack, connector=thick rule
 * motion: button background-color
 * contrast: ink 17.4 · muted 9.8 · accent button 9.2 · rule 3.6 · danger text 6.4
 */

@import "tokens.css";

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

html,
body {
  overflow-x: clip;
}

html {
  background: var(--color-paper);
  scroll-padding-top: calc(var(--space-2xl) + var(--rule-thick) + var(--space-xs));
}

body {
  margin: 0;
  background:
    radial-gradient(26rem 18rem at 8% 0%, var(--color-bloom), transparent 70%),
    radial-gradient(22rem 16rem at 100% 12%, var(--color-bloom), transparent 72%),
    var(--color-paper);
  color: var(--color-ink-2);
  font-family: var(--font-body);
  font-size: var(--text-md);
  font-weight: 400;
  font-style: normal;
  line-height: 1.55;
  color-scheme: dark;
}

h1,
h2,
h3,
p,
li,
dt,
dd,
figcaption {
  overflow-wrap: anywhere;
  min-width: 0;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-style: normal;
  color: var(--color-ink);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

p {
  margin: 0;
}

a {
  color: inherit;
}

a:focus {
  outline: none;
}

a:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip:focus,
.skip:focus-visible {
  position: absolute;
  top: var(--space-sm);
  left: var(--page-gutter);
  z-index: calc(var(--z-sticky) + 1);
  width: auto;
  height: auto;
  clip-path: none;
  overflow: visible;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: var(--space-md);
  background: var(--color-accent);
  color: var(--color-accent-ink);
  text-decoration: none;
  border-radius: var(--radius-pill);
}

.nav {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  background: var(--color-paper-2);
  border-bottom: var(--rule-thick) solid var(--color-rule);
}

.nav__inner {
  width: min(100%, var(--page));
  margin-inline: auto;
  padding-inline: var(--page-gutter);
  min-height: var(--space-2xl);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  column-gap: var(--space-sm);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  justify-self: start;
  width: max-content;
  max-width: 100%;
  min-height: 44px;
  color: var(--color-ink);
  font-family: var(--font-wordmark);
  font-weight: 600;
  font-style: normal;
  font-size: 1.05rem;
  letter-spacing: -0.04em;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.wordmark svg {
  width: 28px;
  height: 20px;
  flex: none;
}

.nav__center {
  display: none;
}

.nav__center a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: var(--space-xs);
  color: var(--color-ink);
  font-size: var(--text-md);
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  border-radius: var(--radius-sm);
}

.nav__buy {
  justify-self: end;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: max-content;
  max-width: 100%;
  min-height: 44px;
  padding-inline: var(--space-md);
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--color-accent);
  color: var(--color-accent-ink);
  font-family: var(--font-body);
  font-size: var(--text-md);
  font-weight: 700;
  font-style: normal;
  line-height: 1;
  letter-spacing: -0.02em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color var(--dur-micro) var(--ease-out);
}

.btn:focus {
  outline: none;
}

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

.btn:active,
.nav__center a:active,
.foot__links a:active,
.wordmark:active {
  transform: translateY(1px);
}

.btn:disabled,
.btn[aria-disabled="true"] {
  background: var(--color-paper-3);
  color: var(--color-muted);
  cursor: not-allowed;
  transform: none;
}

.btn[data-state="loading"] {
  background: var(--color-paper-3);
  color: var(--color-ink-2);
}

.btn[data-state="error"] {
  background: var(--color-danger);
  color: var(--color-ink);
}

.btn[data-state="success"] {
  background: var(--color-paper-3);
  color: var(--color-ink);
}

main {
  width: min(100%, var(--page));
  margin-inline: auto;
  padding-inline: var(--page-gutter);
}

.open {
  padding-block: var(--space-lg) var(--space-xl);
}

.open__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-lg);
  align-items: center;
}

.open__copy {
  min-width: 0;
}

h1 {
  margin: 0 0 var(--space-sm);
  font-size: var(--text-display);
  max-width: 11em;
}

.open__copy p {
  max-width: var(--measure);
  margin-bottom: var(--space-lg);
}

.open__copy .offer,
.buy .offer {
  margin-top: var(--space-sm);
  margin-bottom: 0;
  color: var(--color-ink);
  font-weight: 700;
}

.buy .offer + p {
  margin-top: var(--space-xs);
}

.film {
  margin: 0;
  min-width: 0;
}

.film video {
  display: block;
  width: 100%;
  height: auto;
  background: var(--color-paper-3);
  border-radius: var(--radius-md);
}

.film figcaption {
  margin-top: var(--space-xs);
  max-width: var(--measure);
  color: var(--color-muted);
  font-size: var(--text-sm);
}

.meter {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-xs);
  margin-top: var(--space-lg);
  min-width: 0;
}

.meter__labels {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-xs) var(--space-md);
  color: var(--color-muted);
  font-size: var(--text-sm);
}

.meter__bars {
  display: flex;
  align-items: end;
  gap: var(--space-3xs);
  height: var(--space-xl);
  min-width: 0;
}

.meter__bars span {
  flex: 1 1 0;
  min-width: 0;
  height: var(--h);
  background: var(--color-ink-2);
}

.meter__bars .is-peak {
  background: var(--color-accent);
}

.pass {
  padding-bottom: var(--space-sm);
}

.pass ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

.pass li {
  min-width: 0;
  padding-block: var(--space-lg);
}

.pass li + li {
  border-top: var(--rule-thick) solid var(--color-rule);
}

.pass__n {
  margin: 0 0 var(--space-xs);
  color: var(--color-accent);
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  font-style: normal;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
  line-height: 1;
}

.pass h2,
.models h2,
.ask h2,
.buy h2 {
  margin: 0 0 var(--space-sm);
  font-size: var(--text-2xl);
  max-width: 16em;
}

.pass li > p:not(.pass__n),
.models__head p,
.ask p,
.buy > p {
  max-width: var(--measure);
}

.groups {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.groups div {
  min-width: 0;
  padding: var(--space-md);
  background: var(--color-paper-2);
  border-radius: var(--radius-md);
}

.groups dt {
  color: var(--color-ink);
  font-weight: 700;
}

.groups dd {
  margin: var(--space-xs) 0 0;
  color: var(--color-ink-2);
}

.models,
.ask {
  padding-block: var(--space-xl);
}

.models__head {
  max-width: var(--measure);
  margin-bottom: var(--space-lg);
}

.roster {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-md);
}

.roster article {
  min-width: 0;
  padding: var(--space-md);
  background: var(--color-paper-2);
  border-radius: var(--radius-md);
}

.roster h3 {
  margin: 0 0 var(--space-sm);
  font-size: var(--text-lg);
}

.roster ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.roster li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-3xs) var(--space-sm);
  min-width: 0;
  padding-block: var(--space-xs);
}

.roster li + li {
  margin-top: var(--space-3xs);
}

.roster__name {
  min-width: 0;
  color: var(--color-ink);
  font-weight: 700;
}

.roster__note {
  color: var(--color-muted);
}

.qa {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-lg);
}

.qa article {
  min-width: 0;
}

.qa h3 {
  margin: 0 0 var(--space-xs);
  font-size: var(--text-lg);
}

.buy {
  padding-block: var(--space-xl) var(--space-2xl);
}

.buy .btn {
  margin-block: var(--space-md) var(--space-lg);
}

.buy .close {
  max-width: 16em;
  color: var(--color-ink);
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  font-style: normal;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.foot {
  background: var(--color-paper-2);
  border-top: var(--rule-thick) solid var(--color-rule);
}

.foot__inner {
  width: min(100%, var(--page));
  margin-inline: auto;
  padding: var(--space-xl) var(--page-gutter) var(--space-lg);
}

.foot .wordmark {
  margin-bottom: var(--space-xs);
}

.foot__tag {
  max-width: var(--measure);
  margin-bottom: var(--space-sm);
  color: var(--color-muted);
}

.foot__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-xs) var(--space-md);
  margin-bottom: var(--space-sm);
}

.foot__links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--color-ink);
  font-size: var(--text-md);
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  border-radius: var(--radius-sm);
}

.foot__copy {
  color: var(--color-muted);
  font-size: var(--text-sm);
}

@media (min-width: 48rem) {
  .groups {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .qa {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 56rem) {
  .nav__inner {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  }

  .nav__center {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2xs);
  }
}

@media (min-width: 60rem) {
  .open__grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: var(--space-xl);
    align-items: center;
  }

  .roster {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 0.7fr) minmax(0, 1.15fr);
    align-items: start;
  }
}

@media (hover: hover) and (pointer: fine) {
  .btn:hover {
    background-color: var(--color-accent-hover);
  }

  .btn[data-state="error"]:hover {
    background-color: var(--color-danger-hover);
  }

  .btn:disabled:hover,
  .btn[aria-disabled="true"]:hover,
  .btn[data-state="loading"]:hover,
  .btn[data-state="success"]:hover {
    background-color: var(--color-paper-3);
  }

  .nav__center a:hover,
  .foot__links a:hover,
  .wordmark:hover {
    background-color: var(--color-paper-3);
  }
}

@media (prefers-reduced-motion: reduce) {
  .btn:active,
  .nav__center a:active,
  .foot__links a:active,
  .wordmark:active {
    transform: none;
  }
}
