@font-face {
  font-family: "Medeo Sans";
  src: url("fonts/MedeoSansVariable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "Medeo Mono";
  src: url("fonts/MedeoMonoVariable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --ink: #111110;
  --white: #f3f1ec;
  --muted: #aaa8a2;
  --line: #373632;
  --accent: #ff7940;
  --mono: "Medeo Mono", monospace;
  font-family: "Medeo Sans", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--ink); color: var(--white); }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
h1, h2, h3, p, figure { margin: 0; }
.shell { width: min(1312px, calc(100% - 56px)); margin-inline: auto; }
.top {
  min-height: 65px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.wordmark { display: flex; gap: 10px; align-items: baseline; font-size: 1.45rem; font-weight: 650; letter-spacing: -.075em; }
.store-label { font: .8125rem var(--mono); letter-spacing: -.03em; color: var(--muted); }
nav { display: flex; gap: 8px; }
nav a { border: 1px solid transparent; padding: 8px 11px; color: var(--muted); font-size: .875rem; }
nav a:hover { border-color: var(--line); color: var(--white); }

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  grid-template-columns: 1.02fr .98fr;
  min-height: 425px;
  overflow: hidden;
  color-scheme: light;
  color: var(--ink);
  background: #eeece5;
  background-image:
    linear-gradient(to right, #20160d09 1px, transparent 1px),
    linear-gradient(to bottom, #20160d09 1px, transparent 1px);
  background-size: 44px 44px;
  border: 1px solid #cecbc4;
}
.hero-copy { position: relative; z-index: 1; padding: 44px 10px 46px clamp(24px, 5vw, 72px); }
h1 { font-size: clamp(3rem, 7.55vw, 7.75rem); line-height: .88; letter-spacing: -.09em; font-weight: 600; }
.intro { max-width: 285px; margin: 23px 0; font-size: clamp(1rem, 2vw, 1.2rem); line-height: 1.42; }
.button {
  min-height: 44px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 9px 15px;
  border: 1px solid transparent;
  cursor: pointer;
  font-size: .9375rem;
  font-weight: 560;
  transition: background-color .16s ease, border-color .16s ease, color .16s ease;
}
.primary { background: var(--accent); color: #231007; }
.primary:hover { background: #ff9a69; }
.hero :focus-visible { outline-color: var(--ink); }
.hero-art {
  position: relative;
  width: min(87%, 415px);
  aspect-ratio: 1;
  margin: 27px auto;
}
.sheet {
  position: absolute;
  width: 51%;
  height: 69%;
  border: 1px solid #22211f;
}
.sheet-back {
  left: 36%;
  top: 12%;
  transform: rotate(18deg);
  background: #bdbbb4;
  box-shadow: 12px 18px 0 #14120d12;
}
.sheet-middle {
  left: 13%;
  top: 18%;
  transform: rotate(-15deg);
  background: var(--accent);
}
.sheet-front {
  left: 26%;
  top: 16%;
  display: grid;
  place-items: center;
  transform: rotate(-2deg);
  background: #f7f5f0;
  box-shadow: 6px 9px 0 #19181418;
}
.sheet-layout {
  display: block;
  width: 77%;
  height: 80%;
  border-block: 1px solid #494843;
  background:
    linear-gradient(#252421, #252421) 0 11% / 76% 6% no-repeat,
    linear-gradient(#252421, #252421) 0 22% / 52% 6% no-repeat,
    linear-gradient(135deg, transparent 49.6%, #66625d 49.6% 50.4%, transparent 50.4%) 0 51% / 100% 32% no-repeat,
    linear-gradient(45deg, transparent 49.6%, #66625d 49.6% 50.4%, transparent 50.4%) 0 51% / 100% 32% no-repeat,
    linear-gradient(#dfddd5, #dfddd5) 0 51% / 100% 32% no-repeat,
    repeating-linear-gradient(to bottom, #85817a 0 1px, transparent 1px 7px) 0 88% / 100% 14% no-repeat;
}

.catalog { padding-block: 44px 50px; scroll-margin-top: 15px; }
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin-bottom: 17px;
}
h2 { font-size: clamp(1.8rem, 4.3vw, 3.05rem); line-height: 1.04; font-weight: 560; letter-spacing: -.074em; }
.section-heading p, .category, .price, .eyebrow { font-family: var(--mono); }
.section-heading p, .category, .eyebrow { color: var(--muted); font-size: .8125rem; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-block: 1px solid var(--line); }
.card { display: flex; flex-direction: column; min-width: 0; padding: 21px clamp(14px, 2.3vw, 28px) 24px; }
.card + .card { border-left: 1px solid var(--line); }
.category { margin-bottom: 17px; }
.card-body { display: flex; flex: 1; flex-direction: column; }
.product-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 9px; }
h3 { font-size: clamp(1.12rem, 2.35vw, 1.65rem); font-weight: 570; letter-spacing: -.055em; }
.price { flex: none; color: var(--accent); font-size: clamp(1.06rem, 2vw, 1.35rem); }
.card-body p, .about p { color: var(--muted); line-height: 1.5; }
.card-body ul { list-style: none; padding: 0; margin: 15px 0 20px; font-size: .925rem; line-height: 1.45; }
.card-body li { padding-block: 6px; border-top: 1px solid var(--line); }
.product-button { align-self: flex-start; margin-top: auto; border-color: #55534d; background: transparent; color: var(--white); }
.product-button:hover { border-color: var(--accent); color: var(--accent); }
.about { display: grid; grid-template-columns: 1fr 1.4fr; gap: 12px 24px; align-items: baseline; padding-block: 24px 29px; border-top: 1px solid var(--line); }
.about h2 { font-size: 1.8rem; }
.footer { padding-block: 18px 29px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; color: var(--muted); font-size: .875rem; border-top: 1px solid var(--line); }
dialog { width: min(490px, calc(100% - 32px)); max-height: calc(100% - 32px); padding: 23px; border: 1px solid #66635b; background: #1a1917; color: var(--white); }
dialog::backdrop { background: #000b; }
.dialog-heading { display: flex; align-items: center; justify-content: space-between; }
.close { width: 40px; height: 40px; border: 1px solid #66635b; background: transparent; color: inherit; font-size: 1.45rem; cursor: pointer; }
.close:hover { color: var(--accent); border-color: var(--accent); }
dialog h2 { margin: 8px 0 11px; font-size: clamp(1.9rem, 6vw, 2.7rem); }
#kit-description { line-height: 1.5; }
.sample { margin: 16px 0; padding: 16px; border: 1px solid var(--line); background: var(--ink); }
.sample figcaption { font-weight: 640; }
.sample blockquote { margin: 8px 0 0; color: var(--muted); line-height: 1.45; white-space: pre-line; }
.checkout-note { margin: 12px 0 0; color: var(--muted); font-size: .875rem; }

@media (max-width: 680px) {
  .shell { width: calc(100% - 32px); }
  .hero { min-height: 0; grid-template-columns: 1fr; }
  .hero-copy { padding: 30px 22px 0; }
  .hero-art { width: min(68%, 245px); margin: -2px 7% 2px auto; }
  .intro { margin-block: 16px; }
  .catalog { padding-block: 35px 38px; }
  .grid { grid-template-columns: 1fr; }
  .card { padding: 18px 0 22px; }
  .card + .card { border-left: 0; border-top: 1px solid var(--line); }
  .category { margin-bottom: 9px; }
  h3 { font-size: 1.45rem; }
  .about { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button { transition: none; }
}
