/* =====================================================
   4458n10346w.com — the geographic center of the United States
   Landing gate, table of contents, one reading view per section.
   Serif body, restrained brass accent, generous air.
   ===================================================== */

:root {
  --bg: #fbfaf7;
  --bg-deep: #f2eee5;
  --ink: #14171b;
  --ink-soft: #3a3f47;
  --muted: #7c8189;
  --line: #cec8b8;
  --accent: #9a7c3f;
  --accent-deep: #6d5628;
  --max-page: 1200px;
  --reading: 660px;
  --serif: "Cormorant Garamond", "Garamond", "Sabon", "Iowan Old Style", "Georgia", Cambria, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

/* ===================== VIEW ROUTING ===================== */
.view { display: none !important; }
.view.active { display: block !important; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.75;
  font-feature-settings: "liga" on, "onum" on;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--accent-deep); }
img { max-width: 100%; height: auto; display: block; }
::selection { background: var(--accent); color: #fff; }

/* ===================== HERO / GATE ===================== */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 560px;
  overflow: hidden;
  background: #000;
}
.hero > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0) 35%, rgba(0,0,0,0) 55%, rgba(0,0,0,0.6) 100%);
  pointer-events: none;
}
/* Marks the exact point, which sits at the center of the aerial frame */
.hero-mark {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 34px;
  height: 34px;
  margin: -17px 0 0 -17px;
  border: 1px solid rgba(255,255,255,0.85);
  border-radius: 50%;
  z-index: 1;
  pointer-events: none;
}
.hero-mark::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 6px;
  height: 6px;
  margin: -3px 0 0 -3px;
  border-radius: 50%;
  background: #fff;
}
.hero-inner {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  color: #fff;
  padding: 0 1.5rem 2.5rem 12vw;
  text-shadow: 0 2px 30px rgba(0,0,0,0.6);
}
.hero-eyebrow {
  font-style: italic;
  font-size: clamp(1.35rem, 2.6vw, 1.9rem);
  letter-spacing: 0.05em;
  color: rgba(255,255,255,0.95);
  margin-bottom: 0.5rem;
  line-height: 1.15;
}
.wordmark {
  font-weight: 400;
  font-style: italic;
  font-size: clamp(1.9rem, 4.2vw, 3rem);
  line-height: 1.1;
  margin: 0 0 0.4rem 0;
}
.wordmark-sub {
  font-family: var(--sans);
  font-size: 0.82rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.9);
  margin-bottom: 1.25rem;
}
.hero-enter {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #fff;
  padding: 0.35rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.6);
  transition: border-color 0.2s ease, letter-spacing 0.25s ease;
}
.hero-enter:hover {
  color: #fff;
  border-bottom-color: #fff;
  letter-spacing: 0.34em;
}
.hero-credit {
  position: absolute;
  right: 1rem;
  bottom: 0.75rem;
  z-index: 2;
  font-family: var(--sans);
  font-size: 0.65rem;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.04em;
}

/* ===================== TOC VIEW ===================== */
.toc-view {
  min-height: 100vh;
  background: var(--bg);
  padding: 6rem 1.5rem 4rem 1.5rem;
}
.toc-wrap {
  max-width: 780px;
  margin: 0 auto;
}
.toc-brand {
  text-align: center;
  margin-bottom: 4rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--line);
}
.toc-brand-line {
  font-style: italic;
  font-size: clamp(1.6rem, 3.4vw, 2.4rem);
  line-height: 1.15;
}
.toc-brand-sub {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.75rem;
}
.toc-eyebrow, .eyebrow {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent-deep);
}
.toc-eyebrow { margin-bottom: 2rem; text-align: center; }
.eyebrow { margin-bottom: 1.75rem; }
.toc-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.toc-list li { border-bottom: 1px solid var(--line); }
.toc-list li:first-child { border-top: 1px solid var(--line); }
.toc-list a {
  display: grid;
  grid-template-columns: 3.5rem 1fr auto;
  align-items: baseline;
  gap: 1.5rem;
  padding: 1.6rem 0.5rem;
  transition: padding 0.2s ease;
}
.toc-list a:hover { padding-left: 1.5rem; }
.toc-num {
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.24em;
  color: var(--muted);
}
.toc-title {
  font-style: italic;
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  color: var(--ink);
  transition: color 0.2s ease;
}
.toc-list a:hover .toc-title { color: var(--accent-deep); }
.toc-hint {
  font-family: var(--sans);
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-align: right;
}
.toc-footer, .section-footer {
  text-align: center;
  font-family: var(--sans);
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.04em;
  font-style: italic;
}
.toc-footer {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}
.toc-footer a { color: var(--muted); border-bottom: 1px solid var(--line); }
.section-footer { margin-top: 2rem; }

/* ===================== READING VIEWS ===================== */
.section { padding: 8rem 1.5rem; }
.section-alt { background: var(--bg-deep); }
.reading {
  max-width: var(--reading);
  margin: 0 auto;
}
h1 { margin: 0; }
h2 {
  font-weight: 400;
  font-style: italic;
  font-size: clamp(1.9rem, 3.6vw, 2.9rem);
  line-height: 1.15;
  margin: 0 0 2rem 0;
}
h3 {
  font-weight: 400;
  font-style: italic;
  font-size: 1.45rem;
  margin: 2.5rem 0 0.75rem 0;
}
.opening {
  font-size: clamp(1.25rem, 2.2vw, 1.55rem);
  line-height: 1.6;
  color: var(--ink);
}
.section p {
  margin: 0 0 1.4rem 0;
  color: var(--ink-soft);
}
.section a:not([data-nav]) {
  color: var(--accent-deep);
  border-bottom: 1px solid var(--line);
}
.fine-print {
  font-size: 0.88rem;
  color: var(--muted);
  font-style: italic;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

/* Coordinate figures (II) */
.figures {
  list-style: none;
  margin: 2.5rem 0;
  padding: 0;
  border-top: 1px solid var(--line);
}
.figures li {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: 1.5rem;
  align-items: baseline;
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--line);
}
.figures .fig {
  font-size: 2.4rem;
  line-height: 1;
  color: var(--accent-deep);
}
.figures .fig-text { color: var(--ink-soft); line-height: 1.6; }
.figures .fig-text strong { color: var(--ink); font-weight: 600; }

/* Timeline (III) */
.timeline {
  list-style: none;
  margin: 2.5rem 0 0 0;
  padding: 0;
}
.timeline li {
  display: grid;
  grid-template-columns: 5rem 1fr;
  gap: 1.5rem;
  padding: 1.6rem 0;
  border-bottom: 1px solid var(--line);
}
.timeline li:first-child { border-top: 1px solid var(--line); }
.timeline .when {
  font-family: var(--sans);
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  color: var(--accent-deep);
  padding-top: 0.35rem;
}
.timeline .what { color: var(--ink-soft); line-height: 1.6; }
.timeline .what strong {
  display: block;
  font-style: italic;
  font-weight: 400;
  font-size: 1.3rem;
  color: var(--ink);
  margin-bottom: 0.3rem;
}

/* Fact panel and advisory */
.panel {
  margin: 2.5rem 0;
  padding: 2.25rem 2.5rem;
  background: #fff;
  border: 1px solid var(--line);
  position: relative;
}
.panel::before {
  content: "";
  position: absolute;
  top: -1px; left: -1px;
  width: 44px;
  height: 4px;
  background: var(--accent);
}
.panel-eyebrow {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin-bottom: 1rem;
}
.panel dl { margin: 0; }
.panel dt {
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 1rem;
}
.panel dt:first-child { margin-top: 0; }
.panel dd { margin: 0.15rem 0 0 0; color: var(--ink); }
.advisory {
  margin: 2.5rem 0;
  padding: 1.75rem 2rem;
  background: #fff;
  border-left: 3px solid var(--accent);
  border-top: 1px solid var(--line);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.advisory-head {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin-bottom: 1rem;
}
.advisory p:last-child { margin-bottom: 0; }

/* Directions (VI) */
ol.route {
  list-style: none;
  counter-reset: step;
  margin: 2rem 0 3rem 0;
  padding: 0;
}
ol.route li {
  counter-increment: step;
  position: relative;
  padding: 0 0 1.4rem 3.4rem;
  margin: 0 0 1.4rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 1.05rem;
  line-height: 1.55;
}
ol.route li:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
ol.route li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0.05em;
  width: 2.1rem;
  height: 2.1rem;
  line-height: 1.95rem;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-family: var(--sans);
  font-size: 0.85rem;
  color: var(--muted);
  background: var(--bg);
}
.map-link {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  padding: 0.5rem 0;
}

/* Photography (VIII) */
.photo-wide { margin: 3rem 0 0 0; }
.photo-wide img { width: 100%; border: 1px solid var(--line); }
.photo-wide figcaption {
  margin-top: 0.85rem;
  font-family: var(--sans);
  font-size: 0.8rem;
  color: var(--muted);
  font-style: italic;
  text-align: center;
}

/* ===================== FORM (IX) ===================== */
.inquire-form {
  margin-top: 2.5rem;
  padding: 2.75rem 2.5rem;
  background: #fff;
  border: 1px solid var(--line);
  position: relative;
}
.inquire-form::before {
  content: "";
  position: absolute;
  top: -1px; left: -1px;
  width: 44px;
  height: 4px;
  background: var(--accent);
}
.inquire-form .row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
.botcheck { display: none; }
.field { margin-bottom: 1.25rem; }
.field label {
  display: block;
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.45rem;
}
.field input, .field textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 0;
  outline: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.field input:focus, .field textarea:focus { border-color: var(--accent); background: #fff; }
.field textarea { resize: vertical; min-height: 6rem; }
.submit {
  display: inline-block;
  padding: 0.85rem 2.4rem;
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #fff;
  background: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 0;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.submit:hover { background: var(--accent-deep); border-color: var(--accent-deep); }
.submit:disabled { opacity: 0.6; cursor: default; }
.form-note {
  margin-top: 1.25rem;
  font-size: 0.95rem;
  color: var(--muted);
  font-style: italic;
}
.form-note.ok { color: #2a7a3f; }
.form-note.err { color: #a04040; }

/* ===================== BACK TO TOC ===================== */
.back-to-toc {
  margin-top: 5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--line);
  text-align: center;
}
.back-to-toc a {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  padding: 0.3rem 0;
  border-bottom: 1px solid var(--line);
  transition: border-color 0.2s ease, letter-spacing 0.25s ease;
}
.back-to-toc a:hover {
  border-bottom-color: var(--accent-deep);
  letter-spacing: 0.32em;
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 640px) {
  body { font-size: 18px; }
  .section { padding: 5rem 1.25rem; }
  .toc-view { padding: 4rem 1.25rem 3rem 1.25rem; }
  .hero-inner { padding: 0 1.25rem 3rem 1.25rem; }
  .toc-list a { grid-template-columns: 2.5rem 1fr; gap: 1rem; padding: 1.2rem 0.25rem; }
  .toc-hint { display: none; }
  .figures li { grid-template-columns: 5rem 1fr; gap: 1rem; }
  .figures .fig { font-size: 1.9rem; }
  .timeline li { grid-template-columns: 1fr; gap: 0.25rem; }
  .panel, .inquire-form { padding: 1.75rem 1.25rem; }
  .inquire-form .row { grid-template-columns: 1fr; gap: 0; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
