:root {
  --paper: #f4efe3;
  --paper-deep: #e8dfcf;
  --ink: #25231f;
  --muted: #6d665b;
  --line: #cfc2ad;
  --accent: #b3262d;
  --accent-dark: #7f171d;
  --blue: #1f5c7a;
  --yellow: #b48a19;
  --shadow: 0 18px 40px rgba(37, 35, 31, .11);
  --serif: Georgia, "Times New Roman", "Yu Mincho", "Hiragino Mincho ProN", serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(rgba(37,35,31,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37,35,31,.018) 1px, transparent 1px),
    var(--paper);
  background-size: 32px 32px, 32px 32px, auto;
  font-family: var(--serif);
  line-height: 1.75;
}

a { color: inherit; }
img { max-width: 100%; display: block; }
button, input { font: inherit; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid var(--line);
  background: rgba(244, 239, 227, .92);
  backdrop-filter: blur(10px);
}
.brand {
  font-family: var(--mono);
  font-weight: 800;
  letter-spacing: 0;
  text-decoration: none;
}
nav { display: flex; gap: 18px; flex-wrap: wrap; font-family: var(--mono); font-size: 13px; }
nav a { text-decoration: none; color: var(--muted); }
nav a[aria-current="page"], nav a:hover { color: var(--accent-dark); }

.hero {
  min-height: calc(100vh - 74px);
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr);
  align-items: center;
  gap: clamp(28px, 5vw, 72px);
  padding: clamp(42px, 7vw, 94px) clamp(18px, 5vw, 72px);
  border-bottom: 1px solid var(--line);
}
.eyebrow, .section-head p, .q-kicker, .product-meta, .weather-card > p:first-child {
  margin: 0 0 10px;
  color: var(--accent-dark);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}
h1, h2, h3, p { overflow-wrap: anywhere; }
h1 {
  margin: 0;
  font-size: clamp(54px, 10vw, 132px);
  line-height: .88;
  letter-spacing: 0;
}
.lead {
  max-width: 680px;
  margin: 28px 0 0;
  font-size: clamp(18px, 2.1vw, 25px);
}
.hero-actions, .quiz-controls, .buy-links { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.button, .buy-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 17px;
  border: 1px solid var(--ink);
  text-decoration: none;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}
.button.primary, .buy-links a:first-child { background: var(--accent); color: #fff8ed; border-color: var(--accent); }
.button.ghost, .buy-links a:last-child { background: transparent; color: var(--ink); }
.button:disabled { opacity: .45; cursor: not-allowed; }

.weather-card {
  border: 1px solid var(--ink);
  padding: 22px;
  background: rgba(255, 251, 241, .56);
  box-shadow: var(--shadow);
}
.danger-strip {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 16px 0;
  border: 1px solid var(--ink);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}
.danger-strip span { padding: 12px 6px; border-right: 1px solid rgba(37, 35, 31, .32); }
.danger-strip span:nth-child(1) { background: #d9e8ee; }
.danger-strip span:nth-child(2) { background: #f1df9a; }
.danger-strip span:nth-child(3) { background: #e7a5a2; }
.danger-strip span:nth-child(4) { background: #b3262d; color: #fff8ed; border-right: 0; }
.danger-strip::after {
  content: "";
  position: absolute;
  bottom: -9px;
  width: 0;
  height: 0;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-bottom: 9px solid var(--ink);
}
.danger-strip[data-level="LV0"]::after { left: 12.5%; }
.danger-strip[data-level="LV1"]::after { left: 37.5%; }
.danger-strip[data-level="LV2"]::after { left: 62.5%; }
.danger-strip[data-level="LV3"]::after { left: 87.5%; }

.band, .catalog-shell, .text-page, .quiz-main, .result-hero {
  padding: clamp(38px, 6vw, 78px) clamp(18px, 5vw, 72px);
  border-bottom: 1px solid var(--line);
}
.band.muted { background: rgba(232, 223, 207, .55); }
.section-head { max-width: 760px; margin-bottom: 24px; }
.section-head h2, .text-page h1, .quiz-shell h1, .result-hero h1 {
  margin: 0;
  font-size: clamp(32px, 5vw, 62px);
  line-height: 1;
}
.overview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.overview-grid article {
  border-top: 3px solid var(--ink);
  padding-top: 14px;
}
.overview-grid span, .ledger span {
  font-family: var(--mono);
  color: var(--accent-dark);
  font-weight: 800;
}
.measure { max-width: 820px; font-size: 18px; }

.catalog-group { margin-top: 44px; }
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.product-card {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto 1fr;
  border: 1px solid var(--line);
  background: rgba(255, 251, 241, .46);
  min-width: 0;
}
.product-image {
  width: 100%;
  height: 190px;
  min-width: 0;
  min-height: 0;
  display: grid;
  place-items: center;
  background: repeating-linear-gradient(-8deg, rgba(37,35,31,.05), rgba(37,35,31,.05) 8px, transparent 8px, transparent 16px);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.product-image.is-missing::before {
  content: "IMAGE / PENDING";
  font-family: var(--mono);
  color: var(--muted);
  font-size: 12px;
}
.product-image img { width: 100%; height: 100%; min-width: 0; min-height: 0; object-fit: cover; display: block; }
.product-copy { padding: 18px; display: flex; flex-direction: column; }
.product-meta { display: flex; gap: 8px; flex-wrap: wrap; color: var(--muted); }
.product-meta span { border: 1px solid var(--line); padding: 2px 6px; background: var(--paper); }
.product-card h3 { margin: 4px 0 8px; font-size: 20px; line-height: 1.28; }
.product-card p { margin: 0; color: var(--muted); }
.buy-links { margin-top: auto; padding-top: 18px; }

.quiz-main { min-height: calc(100vh - 74px); display: grid; place-items: center; }
.quiz-shell { width: min(820px, 100%); padding: 0; border: 0; }
.progress-track { height: 6px; border: 1px solid var(--ink); margin: 20px 0; }
.progress-track span { display: block; width: 100%; height: 100%; background: var(--accent); transform-origin: left; transition: transform .2s ease; }
.question-card {
  border: 1px solid var(--ink);
  background: rgba(255, 251, 241, .62);
  padding: clamp(18px, 4vw, 34px);
  box-shadow: var(--shadow);
}
.question-card:focus { outline: 3px solid rgba(179, 38, 45, .32); outline-offset: 4px; }
fieldset { border: 0; padding: 0; margin: 0; }
legend { display: block; padding: 0; font-size: clamp(30px, 5vw, 54px); line-height: 1; font-weight: 800; }
.q-options { display: grid; gap: 12px; margin-top: 24px; }
.q-option {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 12px;
  align-items: start;
  width: 100%;
  text-align: left;
  border: 1px solid var(--line);
  background: var(--paper);
  padding: 16px;
  color: var(--ink);
  cursor: pointer;
}
.q-option:focus { outline: 3px solid rgba(31, 92, 122, .34); outline-offset: 2px; }
.q-option.is-selected { border-color: var(--accent); box-shadow: inset 4px 0 0 var(--accent); }
.option-mark { width: 18px; height: 18px; border: 1px solid var(--ink); margin-top: 4px; }
.q-option.is-selected .option-mark { background: var(--accent); }
.q-option strong { display: block; font-size: 18px; }
.q-option small { display: block; color: var(--muted); font-size: 14px; }
.q-helper { color: var(--muted); }

.result-hero { background: rgba(232, 223, 207, .55); }
.result-hero p { max-width: 760px; }
.shortlist { padding: clamp(38px, 6vw, 78px) clamp(18px, 5vw, 72px); }

.text-page { max-width: 900px; margin: 0 auto; border-bottom: 0; }
.text-page h2 { margin-top: 34px; font-size: 28px; }

.not-found { min-height: 100vh; display: grid; place-items: center; }
.almanac-404 {
  width: min(760px, calc(100% - 36px));
  border: 2px solid var(--ink);
  padding: clamp(24px, 5vw, 54px);
  background: var(--paper-deep);
  box-shadow: 12px 12px 0 var(--ink);
}
.almanac-404 h1 { font-size: clamp(50px, 12vw, 112px); }
.ledger {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 8px 18px;
  margin: 28px 0;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  padding: 16px 0;
}

.site-footer {
  padding: 26px clamp(18px, 5vw, 72px);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.og-body { width: 1200px; height: 630px; overflow: hidden; }
.og-frame {
  width: 1200px;
  height: 630px;
  padding: 64px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.og-frame h1 { font-size: 126px; }
.og-frame p { font-family: var(--mono); font-size: 26px; margin: 0 0 22px; }
.og-frame .danger-strip { width: 780px; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .overview-grid, .product-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 620px) {
  .site-header { align-items: flex-start; flex-direction: column; }
  .overview-grid, .product-grid { grid-template-columns: 1fr; }
  .ledger { grid-template-columns: 1fr; }
  .button, .buy-links a { width: 100%; }
}
