@font-face {
  font-family: Bricolage;
  src: url("./assets/bricolage.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
}

@font-face {
  font-family: Inter;
  src: url("./assets/inter.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: light;
  --night: #121018;
  --line-dark: #332d3b;
  --cream: #fff9f0;
  --muted-light: #c5bdcb;
  --gold: #ecb185;
  --gold-hover: #f5c69f;
  --gold-on-paper: #795221;
  --paper: #f7f1e8;
  --panel: #fffcf7;
  --ink: #211c24;
  --muted-dark: #675f66;
  --line-light: #dfd5cf;
  --body: Inter, Arial, sans-serif;
  --display: Bricolage, Inter, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--cream);
  background: var(--night);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.55;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
:focus-visible { outline: 3px solid #bc80df; outline-offset: 4px; }

.wrap {
  width: min(1200px, calc(100% - 112px));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 2;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  color: var(--ink);
  background: var(--cream);
  transform: translateY(calc(-100% - 20px));
}

.skip-link:focus { transform: translateY(0); }
.masthead { border-bottom: 1px solid var(--line-dark); }
.masthead-inner, .footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.masthead-inner { min-height: 76px; }
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-family: var(--display);
  font-size: 28px;
  font-weight: 780;
  letter-spacing: -.045em;
  line-height: 1;
}

.brand img {
  border: 1px solid #38313e;
  border-radius: 50%;
}

.channel-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding-block: 10px;
  color: var(--muted-light);
  font-size: 13px;
  font-weight: 650;
}

.channel-link:hover, .footer-inner > a:last-child:hover { color: var(--gold); }
.external { margin-left: 2px; }
.youtube-mark {
  display: grid;
  place-items: center;
  width: 19px;
  height: 13px;
  border: 1px solid currentColor;
  border-radius: 4px;
}

.youtube-mark::before, .frame-play::before {
  width: 0;
  height: 0;
  border-top: 3px solid transparent;
  border-bottom: 3px solid transparent;
  border-left: 5px solid currentColor;
  content: "";
}

.hero, .receipt {
  display: grid;
  grid-template-columns: minmax(0, .83fr) minmax(0, 1.17fr);
  align-items: center;
  gap: clamp(36px, 5.4vw, 82px);
  padding-block: 66px 60px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 16px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: .135em;
  line-height: 1.5;
  text-transform: uppercase;
}

.spark { font-size: 17px; line-height: 1; }
h1, h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 780;
  letter-spacing: -.073em;
  line-height: .94;
}

h1 { font-size: clamp(60px, 7.05vw, 106px); }
h1 em { color: var(--gold); font-style: normal; }
.hero-description {
  max-width: 35ch;
  margin: 24px 0 25px;
  color: var(--muted-light);
  font-size: clamp(15px, 1.4vw, 18px);
  line-height: 1.62;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: fit-content;
  min-height: 48px;
  padding: 11px 16px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 760;
  cursor: pointer;
  transition: background-color .18s, border-color .18s;
}

.button span { font-size: 18px; line-height: 1; }
.hero-button { color: var(--ink); background: var(--gold); }
.hero-button:hover { background: var(--gold-hover); }

.feature { min-width: 0; margin: 0; }
.frame-link {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid #4c3a50;
  border-radius: 9px;
  background: #674754;
}

.frame-link img, .receipt-frame {
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.frame-play {
  position: absolute;
  right: 15px;
  bottom: 15px;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid #fff5e885;
  border-radius: 50%;
  color: var(--cream);
  background: #1b1228d9;
  transition: background-color .18s, color .18s;
}

.frame-play::before {
  margin-left: 3px;
  border-top-width: 6px;
  border-bottom-width: 6px;
  border-left-width: 10px;
}

.frame-link:hover .frame-play { color: var(--ink); background: var(--gold); }
figcaption {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  align-items: baseline;
  padding-top: 12px;
  color: var(--muted-light);
  font-size: 12px;
}

figcaption span {
  color: var(--gold);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .1em;
  text-transform: uppercase;
}

figcaption cite { font-style: normal; }
.report-section {
  padding-block: 68px 78px;
  color: var(--ink);
  background: var(--paper);
  scroll-margin-top: 0;
}

.report-layout {
  display: grid;
  grid-template-columns: minmax(220px, .72fr) minmax(0, 1.28fr);
  gap: clamp(36px, 7vw, 110px);
  align-items: start;
}

.report-intro { padding-block: 14px; }
.report-intro .eyebrow { color: var(--gold-on-paper); }
h2 { font-size: clamp(58px, 6vw, 84px); }
.report-intro > p:not(.eyebrow), .report-tip p {
  margin: 20px 0 0;
  max-width: 34ch;
  color: var(--muted-dark);
}

.report-tip {
  max-width: 315px;
  margin-top: 41px;
  padding-top: 18px;
  border-top: 1px solid #cabdb7;
}

.report-tip h3 { margin: 0; font-size: 14px; }
.report-tip p { margin-top: 6px; font-size: 14px; }

.report-form {
  display: grid;
  gap: 22px;
  padding: clamp(24px, 3.3vw, 42px);
  border: 1px solid var(--line-light);
  border-radius: 12px;
  background: var(--panel);
  box-shadow: 0 5px 16px #47252107;
}

.form-row { display: grid; gap: 18px; }
.video-row { grid-template-columns: minmax(0, 1fr) minmax(112px, .4fr); }
.field { display: grid; align-content: start; gap: 6px; min-width: 0; }
label { font-size: 14px; font-weight: 720; }
.optional {
  margin-left: 5px;
  color: var(--muted-dark);
  font-size: 11px;
  font-weight: 520;
}

.field input, .field textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid #c6bab6;
  border-radius: 5px;
  color: var(--ink);
  background: #fffeff;
  font-size: 16px;
  line-height: 1.5;
}

.field textarea { resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #756c75; opacity: 1; }
.field small { color: var(--muted-dark); font-size: 12px; }
.timestamp-example { white-space: nowrap; }
.submit-button { color: var(--cream); background: var(--night); }
.submit-button:hover { background: #38263d; }
.form-status {
  margin: 0;
  padding: 10px 12px;
  border-left: 3px solid var(--gold-on-paper);
  background: var(--paper);
  font-size: 13px;
}

.site-footer { padding-block: 22px; }
.footer-brand { font-size: 19px; }
.footer-inner > a:last-child {
  padding-block: 10px;
  color: var(--muted-light);
  font-size: 13px;
  font-weight: 650;
}

.receipt-page { min-height: 100vh; }
.receipt { min-height: min(660px, calc(100vh - 77px)); }
.receipt-frame { height: auto; border: 1px solid #4c3a50; border-radius: 9px; }

@media (max-width: 1050px) {
  .wrap { width: calc(100% - 80px); }
  .hero, .receipt { gap: 35px; }
  .report-layout { gap: 40px; }
}

@media (max-width: 800px) {
  .wrap { width: calc(100% - 44px); }
  .hero, .report-layout, .receipt { grid-template-columns: minmax(0, 1fr); }
  .hero, .receipt { padding-block: 42px 35px; }
  .hero h1, .receipt h1 { font-size: clamp(57px, 12vw, 90px); }
  .hero-description { margin-block: 16px 20px; }
  .report-section { padding-block: 44px 54px; }
  .report-intro { padding: 0; }
  .report-intro h2 br { display: none; }
  .report-tip { max-width: 420px; margin-top: 22px; padding-top: 13px; }
  .report-tip p { max-width: 52ch; }
  .report-layout { gap: 26px; }
}

@media (max-width: 470px) {
  .wrap { width: calc(100% - 36px); }
  .masthead-inner { min-height: 65px; }
  .brand { gap: 8px; font-size: 24px; }
  .masthead .brand img { width: 36px; height: 36px; }
  .channel-link { gap: 6px; font-size: 12px; }
  .hero { gap: 28px; }
  .report-form { padding: 18px; gap: 19px; }
  .video-row { grid-template-columns: minmax(0, 1fr); gap: 17px; }
  .report-intro h2 { font-size: clamp(45px, 12vw, 58px); }
  .frame-play { width: 40px; height: 40px; right: 10px; bottom: 10px; }
  .footer-brand { font-size: 17px; }
  .footer-inner > a:last-child { font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
