@font-face {
  font-family: Poppins;
  src: url("assets/poppins.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
:root {
  --ink: #3f3d3e;
  --red: #bf062f;
  --paper: #faf9f6;
  --line: #d8d5d2;
  --gutter: clamp(20px, 4.8vw, 82px);
  color: var(--ink);
  background: var(--paper);
  font: 1rem/1.5 Poppins, Arial, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0 auto; max-width: 1680px; padding: 0 var(--gutter); }
button, input, a { font: inherit; }
button, a { touch-action: manipulation; }
button { cursor: pointer; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 4px; }
.masthead, footer, .label-row, .help, nav, .location, .preview-label {
  display: flex;
  align-items: center;
}
.masthead, footer, .label-row { justify-content: space-between; }
.masthead { min-height: 100px; border-bottom: 1px solid var(--line); }
.wordmark { width: 135px; height: auto; display: block; }
.help, .text-link, .back { border: 0; background: none; padding: 0; }
.help { gap: 8px; min-height: 44px; font-size: .84rem; }
.help span {
  width: 18px; height: 18px; border: 1.4px solid; border-radius: 50%;
  display: grid; place-items: center; line-height: 1; font-size: .75rem;
}
main { margin: 24px 0; display: grid; grid-template-columns: 1.22fr 1fr; }
.hero { isolation: isolate; overflow: hidden; position: relative; min-height: clamp(480px, 63vh, 670px); background: #3c4435; border-radius: 8px; }
.photograph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 53% center; z-index: -2; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(0deg, rgba(14,23,17,.89), rgba(14,23,17,.28) 42%, transparent 77%);
}
.hero-copy { position: absolute; inset: auto 7.5% 8%; color: white; }
.location { gap: 9px; margin: 0 0 12px; font-size: .76rem; letter-spacing: .035em; }
.location i { width: 18px; height: 1px; background: currentColor; }
h1, h2, p { margin: 0; }
h1, h2 { font-weight: 400; }
h1 { max-width: 6ch; font-size: clamp(4.2rem, 6.4vw, 7.2rem); line-height: .98; letter-spacing: -.07em; }
h1 span { color: #ffb8c5; }
.account { padding: 40px clamp(32px, 5.1vw, 90px); align-self: center; min-width: 0; }
.intro, .controls { max-width: 400px; margin-inline: auto; }
.intro { margin-bottom: 28px; }
h2 { font-size: clamp(2rem, 3.1vw, 3.55rem); line-height: 1.16; letter-spacing: -.065em; }
.intro p, dialog p { margin-top: 12px; color: #605c5d; font-size: .94rem; max-width: 36ch; }
.controls { display: grid; }
label { font-size: .84rem; }
input {
  width: 100%; min-height: 48px; margin: 7px 0 19px; border: 1px solid #c8c3c4;
  border-radius: 6px; background: white; color: #595657; padding: 8px 14px; font-size: .92rem;
}
.text-link, .back { color: #a60529; text-decoration: underline; text-underline-offset: 3px; min-height: 32px; font-size: .8rem; }
.primary {
  min-height: 50px; border: 0; border-radius: 6px; color: white; background: var(--red);
  padding: 12px 18px; display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.primary span { font-family: Arial, sans-serif; font-size: 1.45rem; line-height: 1; }
.hint { text-align: center; color: #676364; font-size: .75rem; margin-top: 14px; }
.back { margin-top: 12px; justify-self: start; }
.sample-report { border-block: 1px solid var(--line); padding: 18px 0; display: grid; gap: 5px; }
.sample-report small { color: #766f70; }
.sample-report strong { font-size: 1.25rem; font-weight: 400; }
footer { border-top: 1px solid var(--line); gap: 12px; padding: 17px 0 22px; }
.preview-label { gap: 9px; font-size: .75rem; color: #625f60; }
.preview-label span { width: 8px; height: 8px; border-radius: 50%; background: var(--red); }
nav { background: #eeece9; border-radius: 100px; padding: 3px; }
nav a { text-decoration: none; color: var(--ink); border-radius: inherit; padding: 8px 17px; font-size: .78rem; }
nav a[aria-current] { background: var(--ink); color: white; }
dialog { width: min(420px, 90vw); border: 0; border-radius: 10px; padding: 30px; color: var(--ink); }
dialog h2 { font-size: 2rem; }
dialog p { margin-bottom: 22px; }
dialog::backdrop { background: rgb(35 30 31 / .5); }
[data-design="packhouse"] main { grid-template-columns: 1fr; }
[data-design="packhouse"] .hero { min-height: clamp(200px, 29vh, 315px); background: #423438; }
[data-design="packhouse"] .hero::after { background: linear-gradient(90deg,rgba(30,18,20,.87),rgba(30,18,20,.5) 47%,transparent); }
[data-design="packhouse"] .hero-copy { inset: auto 5% 18%; }
[data-design="packhouse"] h1 { max-width: none; font-size: clamp(3.2rem, 6.1vw, 6.5rem); }
[data-design="packhouse"] .account {
  display: grid; grid-template-columns: 1fr 1fr; gap: 36px; padding: 32px 5% 16px;
}
[data-design="packhouse"] .intro { margin: 0; }
[data-design="packhouse"] .controls { width: 100%; margin: 0 0 0 auto; }
@media (hover: hover) and (pointer: fine) {
  .primary:hover { background: #a60529; }
  .help:hover, .back:hover, .text-link:hover { color: var(--red); }
}
@media (prefers-reduced-motion: no-preference) {
  .primary { transition: transform 120ms cubic-bezier(.23,1,.32,1); }
  .primary:active:not(:focus-visible) { transform: scale(.98); }
}
@media (max-width: 720px) {
  .masthead { min-height: 76px; }
  .wordmark { width: 104px; }
  main { grid-template-columns: 1fr; margin: 15px 0 20px; }
  .hero { min-height: clamp(175px, 42vw, 270px); }
  .photograph { object-position: 50% 46%; }
  .hero-copy, [data-design="packhouse"] .hero-copy { inset: auto 20px 20px; }
  .location { margin-bottom: 7px; font-size: .7rem; }
  h1, [data-design="packhouse"] h1 { max-width: none; font-size: clamp(2.7rem,9vw,4rem); }
  .account, [data-design="packhouse"] .account { display: block; padding: 26px 0 6px; }
  .intro, .controls, [data-design="packhouse"] .intro, [data-design="packhouse"] .controls { max-width: 480px; margin-inline: auto; }
  .intro, [data-design="packhouse"] .intro { margin-bottom: 18px; }
  .intro p { margin-top: 6px; }
  [data-design="packhouse"] .hero { min-height: 125px; }
  footer { flex-wrap: wrap; }
}
