:root {
  --navy: #1B2A4A;
  --navy-deep: #101A2E;
  --gold: #9C7A3C;
  --slate: #3D4759;
  --rust: #8A3E2E;
  --paper: #F7F8FA;
  --paper-card: #FFFFFF;
  --ink: #1A1F2B;
  --ink-muted: #5B6474;
  --hairline: #DEE2E9;

  --band-excellent: #0F6E56;
  --band-veryhigh: #1D9E75;
  --band-high: #639922;
  --band-moderate: #BA7517;
  --band-limited: #D85A30;
  --band-unavailable: #A32D2D;

  --serif: "Source Serif 4", Georgia, serif;
  --sans: "IBM Plex Sans", -apple-system, sans-serif;
  --mono: "IBM Plex Mono", monospace;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.6;
}

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 2rem;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  color: var(--navy);
  margin: 0;
}

.site-header {
  border-bottom: 1px solid var(--hairline);
  background: var(--paper-card);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 2rem;
}

.wordmark { display: flex; flex-direction: column; line-height: 1.15; }
.wordmark-eyebrow {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
  margin-bottom: 2px;
}
.wordmark-name {
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 600;
  letter-spacing: 0.015em;
  color: var(--navy);
  position: relative;
  padding-bottom: 6px;
}
.wordmark-name::after {
  content: "";
  position: absolute;
  left: 1px;
  bottom: 0;
  width: 42px;
  height: 2px;
  background: var(--gold);
}
.reg { font-size: 13px; vertical-align: top; }

.site-nav { display: flex; gap: 1.75rem; }
.site-nav a {
  font-size: 14px;
  color: var(--slate);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
}
.site-nav a:hover { border-bottom-color: var(--gold); color: var(--navy); }

.hero { padding: 3.5rem 0 3rem; }

.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--ink-muted);
  margin: 0 0 0.75rem;
}

.destination-picker {
  margin-bottom: 0.4rem;
}
.destination-picker .eyebrow {
  display: block;
  margin-bottom: 0.35rem;
}
.destination-select {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
  color: var(--navy);
  background: var(--paper-card);
  border: 1px solid var(--hairline);
  border-radius: 8px;
  padding: 0.4rem 0.7rem;
  cursor: pointer;
  max-width: 100%;
}
.destination-select:hover { border-color: var(--gold); }

.hero h1 {
  font-size: 34px;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.hero-sub {
  font-size: 16px;
  color: var(--ink-muted);
  max-width: 46ch;
}

.reading-card {
  background: var(--paper-card);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  padding: 1.5rem 1.5rem 1.25rem;
}

.reading-head {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}
.reading-label {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  font-weight: 500;
}
.reading-date {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-muted);
}

.reading-figure {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 1.25rem;
}
.reading-number {
  font-family: var(--serif);
  font-size: 48px;
  font-weight: 600;
  color: var(--navy);
  font-variant-numeric: tabular-nums lining-nums;
}
.reading-band {
  font-size: 15px;
  font-weight: 500;
  color: var(--slate);
}

.hp-strip {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 4px;
  margin-bottom: 0.5rem;
}
.hp-block {
  height: 36px;
  border-radius: 5px;
}
.hp-caption {
  font-size: 11px;
  color: var(--ink-muted);
  margin: 0;
}

.section { padding: 3rem 0; }
.section.alt { background: var(--paper-card); border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }

.section h2 { font-size: 24px; margin-bottom: 0.4rem; }
.section-sub { color: var(--ink-muted); font-size: 14px; margin: 0 0 1.75rem; }

.search-row {
  display: flex;
  gap: 10px;
  margin-bottom: 1.5rem;
}
.search-input {
  font-family: var(--mono);
  font-size: 14px;
  padding: 0.6rem 0.85rem;
  border: 1px solid var(--hairline);
  border-radius: 8px;
  background: var(--paper-card);
  color: var(--ink);
}
.search-btn {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  padding: 0.6rem 1.4rem;
  border: none;
  border-radius: 8px;
  background: var(--navy);
  color: #fff;
  cursor: pointer;
}
.search-btn:hover { background: var(--navy-deep); }
.search-btn:disabled { opacity: 0.5; cursor: default; }

.search-result {
  background: var(--paper-card);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  padding: 1.5rem 1.5rem 1.25rem;
  max-width: 480px;
}

.search-empty {
  font-size: 14px;
  color: var(--ink-muted);
  background: var(--paper-card);
  border: 1px dashed var(--hairline);
  border-radius: 10px;
  padding: 1rem 1.25rem;
  max-width: 480px;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 2rem;
}
.stat {
  background: var(--paper-card);
  padding: 1rem 1.25rem;
}
.stat-value {
  display: block;
  font-family: var(--mono);
  font-size: 22px;
  font-weight: 500;
  color: var(--navy);
}
.stat-label {
  font-size: 12px;
  color: var(--ink-muted);
}

.chart-wrap {
  position: relative;
  height: 220px;
  margin-bottom: 2rem;
  background: var(--paper-card);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
}

.band-title { font-size: 15px; margin-bottom: 0.75rem; }

.band-bar {
  display: flex;
  width: 100%;
  height: 14px;
  border-radius: 7px;
  overflow: hidden;
  margin-bottom: 0.75rem;
}

.band-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 12px;
  color: var(--ink-muted);
}
.band-legend .swatch {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.band-legend .dot {
  width: 8px; height: 8px; border-radius: 2px;
}

.method-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 1.75rem;
}
.method-card {
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: 10px;
  padding: 1.25rem;
}
.method-step {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--gold);
  font-weight: 500;
}
.method-card h3 { font-size: 16px; margin: 0.4rem 0 0.5rem; }
.method-card p { font-size: 13px; color: var(--ink-muted); margin: 0; line-height: 1.55; }

.method-note {
  font-size: 13px;
  color: var(--slate);
  background: #FAEEDA;
  border-left: 3px solid var(--gold);
  border-radius: 0;
  padding: 0.85rem 1rem;
  max-width: 70ch;
}

.site-footer {
  border-top: 1px solid var(--hairline);
  padding: 1.75rem 0;
}
.footer-inner p {
  margin: 0 0 4px;
  font-size: 13px;
  color: var(--ink-muted);
}
.footer-muted { font-family: var(--mono); font-size: 11px; }

@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
  .method-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 26px; }
}
