:root {
  --bg: #efe8df;
  --panel: #f6f1ea;
  --panel-2: #fbf8f4;
  --text: #2f1b14;
  --muted: #6b554a;
  --line: #dccfc3;
  --accent: #8b4d31;
  --dark: #2d180f;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Georgia", "Times New Roman", serif;
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

.page-shell {
  width: min(1440px, calc(100% - 48px));
  margin: 24px auto 40px;
}

/* HEADER */

.site-header {
  background: linear-gradient(180deg, rgba(255,255,255,0.3), rgba(255,255,255,0.08));
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 26px 22px;
  display: grid;
  grid-template-columns: 1.1fr 1.4fr;
  gap: 28px;
  align-items: start;
  margin-bottom: 20px;
}

.brand-block {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px solid var(--accent);
  position: relative;
  margin-top: 2px;
}

.brand-mark::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  position: absolute;
  top: 9px;
  left: 9px;
}

.brand-name {
  margin: 0;
  font-size: 2rem;
  font-weight: 500;
}

.brand-meta {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.main-nav a {
  background: rgba(255,255,255,0.55);
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 12px 18px;
  font-family: Arial, sans-serif;
  font-size: 0.98rem;
  font-weight: 600;
  color: #5b463a;
}

.main-nav a.active,
.main-nav a:hover {
  border-color: #d8b8a6;
  background: #f8eee8;
  color: var(--accent);
}

/* HOMEPAGE HERO */

.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.95fr;
  gap: 28px;
  align-items: start;
  padding: 34px 0 52px;
}

.hero-copy {
  padding: 24px 10px 24px 8px;
}

.eyebrow {
  font-family: Arial, sans-serif;
  color: var(--accent);
  font-size: 0.88rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin: 0 0 18px;
  font-weight: 700;
}

.hero h2 {
  font-size: clamp(4rem, 7vw, 7rem);
  line-height: 0.92;
  margin: 0 0 22px;
  font-weight: 500;
}

.hero-subtitle {
  font-size: 1.22rem;
  line-height: 1.45;
  max-width: 760px;
  margin: 0 0 18px;
}

.hero-text {
  max-width: 700px;
  margin-bottom: 28px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 16px 24px;
  border-radius: 0;
  font-family: Arial, sans-serif;
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid var(--text);
}

.btn-dark {
  background: var(--dark);
  color: #fff4ea;
  border-color: var(--dark);
}

.btn-light {
  background: transparent;
  color: var(--text);
  border-color: var(--line);
}

/* HOMEPAGE MAP PANEL */

.hero-panel {
  background: var(--panel-2);
  border: 1px solid var(--line);
  padding: 28px;
}

.panel-stack {
  display: grid;
  gap: 16px;
}

.panel-box {
  border: 1px solid var(--line);
  padding: 20px;
  background: white;
}

.panel-box h3 {
  margin: 0 0 6px;
  font-size: 1.2rem;
}

.panel-box p {
  margin: 0 0 8px;
  font-size: 1rem;
  font-weight: 600;
}

.panel-box span {
  font-family: Arial, sans-serif;
  color: var(--muted);
  font-size: 0.95rem;
}

/* CHAPTER PAGES */

.chapter-hero {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 44px;
  align-items: start;
  padding: 54px 0 70px;
  border-bottom: 1px solid var(--line);
}

.chapter-hero h2 {
  font-size: clamp(4.6rem, 8vw, 8rem);
  line-height: 0.9;
  margin: 0;
  font-weight: 500;
}

.chapter-hero p {
  max-width: 620px;
  font-size: 1.08rem;
  line-height: 1.85;
  margin-top: 14px;
  font-family: Arial, sans-serif;
  color: var(--muted);
}

/* SHARED TEXT */

.hero-text,
.two-col p,
.section-note,
.entry-card p,
.idea-card p,
.note-box p,
.footer-text,
.site-footer li,
.site-footer a {
  font-family: Arial, sans-serif;
  color: var(--muted);
  line-height: 1.75;
  margin: 0;
}

/* SECTIONS */

.premise-section,
.wings-section,
.timeline-section,
.featured-section,
.closing-panel,
.chapter-section,
.next-panel {
  border-top: 1px solid var(--line);
  padding: 42px 0 0;
  margin-top: 26px;
}

.two-col {
  display: grid;
  grid-template-columns: 0.95fr 1.15fr;
  gap: 34px;
  align-items: start;
}

.two-col h3,
.timeline-section h3,
.featured-section h3,
.next-panel h3 {
  font-size: clamp(2.2rem, 4vw, 4rem);
  line-height: 1.05;
  margin: 0;
  font-weight: 500;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 22px;
  align-items: end;
  margin-bottom: 26px;
}

.section-note {
  max-width: 420px;
}

/* CARDS */

.wing-grid,
.idea-grid,
.entry-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.wing-card,
.idea-card,
.entry-card,
.note-box {
  background: var(--panel-2);
  border: 1px solid var(--line);
  padding: 28px;
}

.wing-label,
.footer-title {
  margin: 0 0 12px;
  font-family: Arial, sans-serif;
  font-size: 0.88rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
}

.wing-card h4,
.idea-card h4,
.entry-card h3 {
  margin: 0 0 12px;
  font-size: 1.75rem;
  line-height: 1.05;
  font-weight: 500;
}

.wing-card p {
  margin: 0 0 18px;
  font-family: Arial, sans-serif;
  color: var(--muted);
  line-height: 1.7;
}

.wing-card a,
.entry-card a {
  font-family: Arial, sans-serif;
  font-weight: 700;
  color: var(--accent);
}

/* TIMELINE */

.timeline-list {
  margin-top: 22px;
  border-left: 2px solid #d8b49e;
  padding-left: 28px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 22px;
  padding: 16px 0 18px;
  position: relative;
}

.timeline-item::before {
  content: "";
  width: 12px;
  height: 12px;
  background: #c06d3f;
  border-radius: 50%;
  position: absolute;
  left: -35px;
  top: 22px;
}

.timeline-year {
  font-family: Arial, sans-serif;
  color: var(--accent);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.timeline-text {
  font-size: 1.35rem;
  line-height: 1.35;
}

/* NOTES AND END SECTIONS */

.note-box p {
  font-size: 1.08rem;
}

.next-panel {
  padding-bottom: 20px;
}

.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 34px;
  padding: 28px 0 12px;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 20px;
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* RESPONSIVE */

@media (max-width: 1100px) {
  .site-header,
  .hero,
  .chapter-hero,
  .two-col,
  .wing-grid,
  .idea-grid,
  .entry-grid,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .section-heading {
    flex-direction: column;
    align-items: flex-start;
  }

  .main-nav {
    justify-content: flex-start;
  }

  .chapter-hero {
    gap: 24px;
  }

  .chapter-hero p {
    max-width: 760px;
  }
}

@media (max-width: 720px) {
  .page-shell {
    width: min(100% - 24px, 1440px);
    margin-top: 12px;
  }

  .site-header {
    padding: 20px 16px;
  }

  .hero h2,
  .chapter-hero h2 {
    font-size: 3.4rem;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
    text-align: center;
  }
}

.chapter-hero {
  display: block;
  padding: 70px 0 90px;
  border-bottom: 1px solid var(--line);
}

.chapter-hero .eyebrow {
  margin-bottom: 28px;
}

.chapter-hero h2 {
  max-width: 900px;
  margin: 0 0 28px;
  font-size: clamp(4.5rem, 8vw, 7.5rem);
  line-height: 0.9;
  font-weight: 500;
}

.chapter-hero p {
  max-width: 760px;
  width: 100%;
  font-family: Arial, sans-serif;
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--muted);
  margin: 0;
}

.chapter-hero {
  grid-template-columns: 0.9fr 1.6fr;
  align-items: start;
}

.chapter-hero h2 {
  max-width: 720px;
}

.chapter-hero p {
  max-width: 520px;
  min-width: 420px;
  font-size: 1.08rem;
  line-height: 1.8;
  text-align: left;
}

@media (max-width: 1100px) {
  .chapter-hero {
    grid-template-columns: 1fr;
  }

  .chapter-hero p {
    max-width: 760px;
    min-width: 0;
  }
}

.chapter-intro {
  max-width: 520px !important;
  min-width: 420px !important;
  width: 520px !important;
  font-size: 1.08rem !important;
  line-height: 1.8 !important;
  text-align: left !important;
  display: block !important;
}

@media (max-width: 900px) {
  .chapter-intro {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }
}

.artifact-card {
  display: grid;
  grid-template-columns: 0.9fr 1.3fr;
  gap: 32px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  padding: 34px;
}

.artifact-card h3 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.05;
  font-weight: 500;
}

.artifact-card p {
  font-family: Arial, sans-serif;
  color: var(--muted);
  line-height: 1.8;
  margin: 0;
}

@media (max-width: 900px) {
  .artifact-card {
    grid-template-columns: 1fr;
  }
}