:root {
  --stone: #EDE4D6;
  --stone-deep: #D9CCB8;
  --basalt: #2A231C;
  --basalt-soft: #3D342A;
  --terra: #C45C26;
  --clay: #A87848;
  --sand: #F7F1E8;
  --muted: #7A6E60;
  --line: rgba(42, 35, 28, 0.18);
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Nunito Sans", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--stone);
  color: var(--basalt);
  line-height: 1.55;
  background-image:
    radial-gradient(ellipse 80% 50% at 100% 0%, rgba(196, 92, 38, 0.08), transparent 50%),
    linear-gradient(180deg, var(--sand), var(--stone));
}

a { color: var(--terra); text-decoration: none; }
a:hover { color: var(--basalt); text-decoration: underline; }

.wrap { width: min(1000px, 92vw); margin: 0 auto; }

/* Instrument chrome — centered brand, not masthead/newspaper */
.instrument-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}
.logo-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--basalt);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.2rem;
  text-decoration: none;
}
.logo-link img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2px solid var(--terra);
}
.site-nav { display: flex; gap: 1.1rem; align-items: center; flex-wrap: wrap; }
.site-nav a {
  color: var(--muted);
  font-weight: 700;
  font-size: 0.88rem;
  text-decoration: none;
}
.site-nav a:hover { color: var(--terra); }
.nav-cta {
  background: var(--terra);
  color: #fff !important;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  font-weight: 700 !important;
}
.menu-btn {
  display: none;
  background: transparent;
  border: 1px solid var(--basalt);
  color: var(--basalt);
  padding: 0.35rem 0.55rem;
  border-radius: 999px;
}

/* Hero = stacked dial instrument */
.dial-hero {
  padding: 3.5rem 0 3rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
  border-bottom: 1px solid var(--line);
}
.kicker {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--terra);
  margin: 0 0 0.75rem;
  font-weight: 700;
}
.dial-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 4vw, 3.1rem);
  line-height: 1.12;
  margin: 0 0 1rem;
  font-weight: 600;
  max-width: 12ch;
}
.dial-hero h1 em {
  font-style: italic;
  color: var(--terra);
  font-weight: 500;
}
.lede { color: var(--muted); font-size: 1.05rem; margin: 0 0 1.5rem; max-width: 32rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.btn {
  display: inline-flex;
  align-items: center;
  font-weight: 750;
  font-size: 0.9rem;
  padding: 0.7rem 1.2rem;
  border-radius: 999px;
  border: 1.5px solid var(--basalt);
  text-decoration: none;
  color: var(--basalt);
}
.btn-solid { background: var(--terra); border-color: var(--terra); color: #fff !important; }
.btn-solid:hover { filter: brightness(1.05); text-decoration: none; }
.btn-ghost:hover { background: var(--stone-deep); text-decoration: none; }

/* Risk dial — primary visual */
.instrument {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}
.dial {
  width: min(280px, 70vw);
  height: min(280px, 70vw);
  border-radius: 50%;
  position: relative;
  background:
    conic-gradient(
      from 200deg,
      #3D5C3A 0deg 70deg,
      #C4A35A 70deg 130deg,
      var(--terra) 130deg 200deg,
      var(--stone-deep) 200deg 360deg
    );
  box-shadow:
    inset 0 0 0 14px var(--sand),
    0 12px 40px rgba(42, 35, 28, 0.18);
  display: grid;
  place-items: center;
}
.dial-core {
  width: 58%;
  height: 58%;
  border-radius: 50%;
  background: var(--sand);
  border: 2px solid var(--line);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  z-index: 2;
}
.dial-core .score {
  font-family: var(--font-display);
  font-size: 3rem;
  line-height: 1;
  color: var(--terra);
  font-weight: 600;
}
.dial-core .label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.35rem;
}
.dial-needle {
  position: absolute;
  width: 4px;
  height: 38%;
  background: var(--basalt);
  top: 14%;
  left: 50%;
  transform: translateX(-50%) rotate(42deg);
  transform-origin: bottom center;
  border-radius: 2px;
  z-index: 1;
  box-shadow: 0 0 0 2px var(--sand);
}
.gauge-row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
}
.gauge-chip {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 0.4rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--sand);
  color: var(--basalt-soft);
}
.gauge-chip strong { color: var(--terra); }

.block {
  padding: 3.25rem 0;
  border-bottom: 1px solid var(--line);
}
.block-head { margin-bottom: 1.75rem; max-width: 36rem; }
.block-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.6vw, 1.95rem);
  margin: 0 0 0.45rem;
  font-weight: 600;
}
.block-head p { margin: 0; color: var(--muted); }

/* Stacked risk cards — offset stack, not equal grid */
.risk-stack {
  display: grid;
  gap: 0;
  max-width: 36rem;
  margin: 0 auto;
}
.risk-card {
  background: var(--sand);
  border: 1.5px solid var(--basalt);
  padding: 1.35rem 1.5rem;
  margin-top: -0.65rem;
  transform: rotate(calc(var(--tilt, 0) * 1deg));
  box-shadow: 4px 6px 0 rgba(42, 35, 28, 0.06);
}
.risk-card:first-child { margin-top: 0; }
.risk-card:nth-child(1) { --tilt: -1.2; z-index: 3; }
.risk-card:nth-child(2) { --tilt: 0.8; z-index: 2; margin-left: 1.25rem; }
.risk-card:nth-child(3) { --tilt: -0.5; z-index: 1; margin-left: 0.5rem; }
.risk-card h3 {
  font-family: var(--font-display);
  margin: 0 0 0.35rem;
  font-size: 1.15rem;
  font-weight: 600;
}
.risk-card p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.risk-card .tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--terra);
  margin-bottom: 0.4rem;
  display: block;
}

/* About — vertical plaque */
.origin-plaque {
  border-top: 3px solid var(--terra);
  border-bottom: 3px solid var(--terra);
  padding: 1.75rem 0;
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 2rem;
}
.origin-plaque strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}
.origin-plaque .meta {
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.7;
}
.origin-plaque p { margin: 0 0 0.9rem; color: var(--basalt-soft); }
.origin-plaque p:last-child { margin-bottom: 0; }

/* Contact — roundel */
.roundel {
  text-align: center;
  padding: 2.5rem 1.5rem;
  background: var(--basalt);
  color: var(--sand);
  border-radius: 1.5rem;
}
.roundel h2 {
  font-family: var(--font-display);
  margin: 0 0 0.5rem;
  font-size: 1.7rem;
  font-weight: 600;
  color: #fff;
}
.roundel .hint { margin: 0 0 1.25rem; color: var(--stone-deep); font-size: 0.92rem; }
.roundel .contact-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.roundel .btn-ghost {
  border-color: var(--stone-deep);
  color: var(--sand) !important;
}
.roundel .btn-solid { color: #fff !important; }

.site-footer {
  padding: 2rem 0 1.35rem;
  font-size: 0.88rem;
  color: var(--muted);
}
.footer-row {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 0.85rem;
}
.footer-brand {
  display: flex;
  gap: 0.75rem;
  max-width: 28rem;
  align-items: flex-start;
}
.footer-brand img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1.5px solid var(--terra);
}
.footer-brand strong {
  color: var(--basalt);
  font-family: var(--font-display);
  display: block;
}
.footer-nav { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }
.footer-nav a { color: var(--basalt-soft); font-weight: 700; text-decoration: none; }
.footer-nav a:hover { color: var(--terra); }
.footer-x {
  border: 1px solid var(--terra);
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  color: var(--terra) !important;
}
.footer-copy { margin: 0; }

.legal-page { padding: 2.75rem 0 4rem; max-width: 40rem; }
.legal-page h1 {
  font-family: var(--font-display);
  font-size: 2rem;
  margin: 0 0 0.5rem;
}
.legal-page h2 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin: 1.75rem 0 0.5rem;
}
.legal-page p, .legal-page li { color: var(--muted); }

@media (max-width: 860px) {
  .dial-hero, .origin-plaque { grid-template-columns: 1fr; }
  .risk-card:nth-child(2) { margin-left: 0.5rem; }
  .menu-btn { display: block; }
  .site-nav { display: none; width: 100%; flex-direction: column; align-items: flex-start; }
  .site-nav.open { display: flex; }
  .instrument-bar { flex-wrap: wrap; }
}
