:root {
  color-scheme: light;
  --ink: #00090d;
  --white: #fff;
  --paper: #ede4de;
  --muted: #514b45;
  --line: #c9c0b8;
  --on-dark-muted: #ded7d1;
  --on-dark-line: #62666a;
  --serif: "Instrument Serif", "Times New Roman", serif;
  --sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--white); color: var(--ink); font: 1rem/1.55 var(--sans); }
h1, h2, p { margin: 0; }
h1, h2 { font: 400 1em/.94 var(--serif); letter-spacing: -.035em; }
a { color: inherit; }
img { display: block; max-width: 100%; }
.frame { width: min(100% - 96px, 1344px); margin-inline: auto; }
.wrap { width: min(100% - 56px, 840px); margin-inline: auto; }
.caps, button, .button { font: 700 .78rem/1.25 var(--sans); letter-spacing: .13em; text-transform: uppercase; }
.skip { position: fixed; top: 12px; left: 12px; transform: translateY(-180%); padding: 12px; background: var(--white); z-index: 2; }
.skip:focus { transform: none; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
.masthead { background: var(--ink); color: var(--white); }
.masthead-inner { display: flex; align-items: center; justify-content: space-between; min-height: 80px; gap: 24px; }
.wordmark { width: 257px; height: auto; filter: brightness(0) invert(1); }
.tagline { width: 146px; height: auto; filter: brightness(0) invert(1); }
.opener { display: grid; grid-template-columns: 1.17fr 1fr; margin-block: 28px 0; background: var(--paper); }
.hero-copy { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: clamp(32px, 4.6vw, 74px); }
.kicker { margin-bottom: 24px; }
.opener h1 { max-width: 10ch; font-size: clamp(3.6rem, 6.8vw, 7.4rem); }
.dek { max-width: 33em; font-size: 1.0625rem; margin-top: 22px; }
.note { max-width: 39em; font-size: .875rem; color: var(--muted); margin-top: 14px; }
button, .button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; padding: 13px 23px; background: var(--ink); color: var(--white); border: 1px solid var(--ink); text-decoration: none; cursor: pointer; }
.hero-copy .button { margin-top: 26px; }
button:hover:not(:disabled), .button:hover { background: #303332; }
button:disabled { color: var(--muted); background: var(--paper); border-color: var(--line); cursor: not-allowed; }
button:focus-visible, .button:focus-visible { outline-color: var(--ink); }
.hero-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; background: var(--white); border-left: 5px solid var(--white); min-height: 100%; }
.hero-photos img { width: 100%; height: 100%; min-height: 0; object-fit: cover; }
.assessment { padding-block: 60px 70px; }
.assessment-header { display: flex; align-items: end; justify-content: space-between; gap: 20px; border-bottom: 2px solid var(--ink); padding-bottom: 17px; }
.assessment-header h2 { font-size: clamp(2.65rem, 5vw, 4rem); }
.progress { display: grid; gap: 7px; width: min(30%, 180px); text-align: right; color: var(--muted); line-height: 1.2; font-size: .875rem; }
progress { width: 100%; height: 4px; appearance: none; border: 0; background: var(--paper); }
progress::-webkit-progress-bar { background: var(--paper); }
progress::-webkit-progress-value { background: var(--ink); }
progress::-moz-progress-bar { background: var(--ink); }
fieldset { border: 0; margin: 0; padding: 24px 0; min-width: 0; }
fieldset + fieldset { border-top: 1px solid var(--line); }
legend { float: left; width: 100%; padding: 0; display: flex; align-items: baseline; gap: 13px; margin-bottom: 14px; }
.num { flex: 0 0 31px; font-size: .82rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.q { display: block; font: 400 clamp(1.8rem, 4vw, 2.35rem)/1.03 var(--serif); }
.eg { display: block; margin-top: 4px; font-size: .875rem; color: var(--muted); }
.choices { clear: both; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-left: 44px; }
.choices label { position: relative; display: block; }
.choices input { position: absolute; inset: 0; opacity: 0; margin: 0; width: 100%; height: 100%; cursor: pointer; }
.choices span { display: flex; align-items: center; justify-content: center; text-align: center; min-height: 49px; height: 100%; padding: 6px; border: 1px solid var(--line); font-size: .875rem; font-weight: 500; line-height: 1.2; }
.choices label:hover span { border-color: var(--ink); background: var(--paper); }
.choices input:checked + span { background: var(--ink); color: var(--white); border-color: var(--ink); }
.choices input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.submit-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; padding-top: 24px; border-top: 2px solid var(--ink); }
#count { color: var(--muted); font-size: .875rem; }
#result { background: var(--ink); color: var(--white); padding: 66px 0; }
#result[hidden] { display: none; }
#result .wrap { display: grid; gap: 30px; }
#result .caps { color: var(--on-dark-muted); }
.match, .block, .step { display: grid; gap: 13px; }
.match h2 { font-size: clamp(3.45rem, 10vw, 6.5rem); }
.match p:not(.caps) { font-size: 1.125rem; max-width: 38em; }
.match .aside, .small, .diets dd, .fine ul { color: var(--on-dark-muted); }
.block { border-top: 1px solid var(--on-dark-line); padding-top: 20px; }
.bars, .diets { display: grid; gap: 12px; }
.bar { display: grid; grid-template-columns: minmax(105px, 140px) 1fr 44px; align-items: center; gap: 12px; font-size: .875rem; color: var(--on-dark-muted); }
.track { display: block; height: 8px; background: #393e40; }
.fill { display: block; height: 100%; background: #b7aba2; }
.bar.top { color: var(--white); font-weight: 700; }
.bar.top .fill { background: var(--white); }
.pct { text-align: right; font-variant-numeric: tabular-nums; }
.diets { margin: 0; }
.diets dt { font: 400 1.8rem/1.1 var(--serif); }
.diets dd { margin: 3px 0 0; }
.step { background: var(--paper); color: var(--ink); padding: 22px; }
#result .step .caps { color: var(--muted); }
.step p:not(.caps) { font: 400 1.9rem/1.1 var(--serif); }
.fine ul { margin: 0; padding-left: 20px; }
.fine li + li { margin-top: 6px; }
#again { border-color: var(--white); }
#again:focus-visible { outline-color: var(--white); }
footer { border-top: 1px solid var(--line); background: var(--paper); padding-block: 38px; font-size: .875rem; }
footer .wrap { display: grid; gap: 12px; }
footer ol { margin: 0; padding-left: 19px; }
footer li + li { margin-top: 5px; }
footer a { overflow-wrap: anywhere; text-underline-offset: 2px; }
.footer-brand { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); margin-top: 15px; padding-top: 20px; }
.footer-brand .wordmark { width: 165px; filter: brightness(0); }
@media (max-width: 1000px) {
  .frame { width: min(100% - 48px, 1344px); }
  .opener { grid-template-columns: 1.25fr 1fr; }
  .hero-copy { padding: 34px; }
}
@media (max-width: 700px) {
  .frame { width: calc(100% - 32px); }
  .wrap { width: calc(100% - 36px); }
  .masthead-inner { min-height: 62px; gap: 14px; }
  .wordmark { width: min(55%, 205px); }
  .tagline { width: min(32%, 116px); }
  .opener { grid-template-columns: 1fr; margin-top: 16px; }
  .hero-copy { padding: 30px 23px; }
  .opener h1 { font-size: clamp(3.45rem, 11vw, 5.5rem); }
  .hero-photos { height: clamp(130px, 40vw, 230px); border-left: 0; border-top: 5px solid var(--white); }
  .hero-photos img { height: 100%; }
  .assessment { padding-block: 39px 48px; }
  .choices { margin-left: 0; }
  .progress { min-width: 96px; }
  .num { flex-basis: 22px; }
  legend { gap: 8px; }
}
@media (max-width: 380px) {
  .assessment-header { align-items: start; flex-direction: column; gap: 10px; }
  .progress { text-align: left; }
  .choices { gap: 4px; }
}
