:root {
  --paper: #fdfdfc;
  --ink: #111110;
  --ink-soft: #55554f;
  --ink-mute: #8a8a85;
  --rule: #e4e4df;
  --accent: #1c7a24;
  --accent-alt: #ef6e16;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--paper); }
body { font-family: Geist, Helvetica, Arial, sans-serif; color: var(--ink); }
a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--accent); }

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 40px clamp(24px, 6vw, 80px) 48px;
}

.mono {
  font-family: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

.topbar { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; flex-wrap: wrap; }

.main { flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 56px; padding: 72px 0; }

.hero { display: flex; flex-direction: column; align-items: center; gap: 28px; max-width: 720px; text-align: center; }
.hero img { width: clamp(220px, 34vw, 380px); height: auto; display: block; mix-blend-mode: multiply; }
.tagline { margin: 0; font-weight: 400; font-size: clamp(22px, 3.4vw, 38px); letter-spacing: -0.02em; line-height: 1.15; }
.tagline sup { font-size: 0.42em; letter-spacing: 0.06em; vertical-align: super; margin-left: 0.1em; }
.dot { color: var(--accent); }

.tabs { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.tab {
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 12px 20px;
  border-radius: 999px;
  border: 1px solid var(--rule);
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
}
.tab:hover { border-color: var(--ink); }
.tab[aria-selected="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.panel-wrap { width: 100%; max-width: 700px; min-height: 220px; display: flex; }
.panel { display: none; flex-direction: column; gap: 20px; width: 100%; }
.panel[data-active="true"] { display: flex; }
.panel--menu { gap: 24px; }

.lead { margin: 0; font-size: clamp(17px, 1.7vw, 20px); line-height: 1.55; letter-spacing: -0.01em; text-wrap: pretty; }
.body { margin: 0; font-size: 15px; line-height: 1.7; color: var(--ink-soft); text-wrap: pretty; }

.bar-group { display: flex; flex-direction: column; gap: 10px; }
.bar { display: flex; height: 14px; width: 100%; gap: 2px; }
.bar > span { display: block; }
.bar .s1 { flex: 0 0 auto; width: 1.2%; min-width: 5px; background: var(--accent); }
.bar .s2 { flex: 0 0 auto; width: 26.2%; background: #3f9147; }
.bar .s3 { flex: 0 0 auto; width: 64.5%; background: #a9cdac; }
.bar .s4 { flex: 1 1 auto; background: repeating-linear-gradient(135deg, #d8d8d2 0 4px, #edece7 4px 8px); }
.bar-total { display: flex; justify-content: space-between; letter-spacing: 0.14em; }

.legend { display: flex; flex-direction: column; border-top: 1px solid var(--rule); }
.legend-row { display: flex; align-items: baseline; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.swatch { flex: 0 0 auto; width: 10px; height: 10px; border-radius: 2px; }
.legend-label { flex: 1; font-size: 15px; letter-spacing: -0.01em; text-wrap: pretty; }
.legend-label--hot { color: var(--accent-alt); font-style: italic; }
.legend-value { flex: 0 0 auto; font-family: "Geist Mono", ui-monospace, monospace; font-size: 15px; letter-spacing: -0.01em; }

.rule { width: 100%; height: 1px; border: 0; background: var(--rule); margin: 8px 0 0; }
.spec-title { margin: 0; font-size: clamp(17px, 1.7vw, 20px); font-weight: 500; letter-spacing: -0.02em; }
.specs { display: grid; grid-template-columns: minmax(120px, max-content) 1fr; gap: 0 24px; }
.specs > * { line-height: 22px; padding: 12px 0; border-top: 1px solid var(--rule); }
.specs > *:nth-last-child(-n + 2) { border-bottom: 1px solid var(--rule); }
.specs dt, .specs .k {
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin: 0;
}
.specs dd, .specs .v { font-size: 15px; margin: 0; text-wrap: pretty; }

.email {
  font-size: clamp(20px, 3vw, 32px);
  letter-spacing: -0.02em;
  border-bottom: 1px solid #d8d8d2;
  padding-bottom: 6px;
  align-self: flex-start;
}
.email:hover { border-color: var(--accent); }

.footer {
  border-top: 1px solid var(--rule);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  letter-spacing: 0.14em;
}

/* Prevent the long spec value / email from ever forcing horizontal scroll */
.email, .legend-label, .legend-value, .specs dd, .specs .v { overflow-wrap: anywhere; }

/* Phones: tighten vertical rhythm and let the specs grid stack when cramped */
@media (max-width: 640px) {
  .page { padding: 28px clamp(20px, 6vw, 40px) 36px; }
  .main { gap: 40px; padding: 40px 0; }
  .hero { gap: 22px; }
  .panel-wrap { min-height: 0; }
  .tabs { gap: 6px; }
  .tab { padding: 12px 18px; }

  /* +20% type & graphics on mobile (min values are what apply at phone widths) */
  .mono { font-size: 13px; }
  .tagline { font-size: clamp(26px, 7vw, 32px); }
  .hero img { width: clamp(240px, 70vw, 300px); }
  .lead { font-size: 20px; }
  .body { font-size: 18px; }
  .tab { font-size: 13px; }
  .spec-title { font-size: 20px; }
  .email { font-size: 24px; }
  .legend-label, .legend-value { font-size: 18px; }
  .specs dt, .specs .k { font-size: 13px; }
  .specs dd, .specs .v { font-size: 18px; }
  .bar { height: 17px; }
  .swatch { width: 12px; height: 12px; }
}

@media (max-width: 400px) {
  /* Stack each spec as label-over-value instead of a 2-col grid */
  .specs { grid-template-columns: 1fr; gap: 0; }
  .specs > * { padding: 6px 0; border-top: 0; }
  .specs dt, .specs .k { padding-top: 12px; }
  .specs dd, .specs .v { padding-bottom: 12px; border-bottom: 1px solid var(--rule); }
  .specs > *:nth-last-child(-n + 2) { border-bottom: 0; }
  .specs dd:last-child, .specs .v:last-child { border-bottom: 1px solid var(--rule); }
}
