:root {
  color-scheme: light;
  --ink: #111917;
  --ink-soft: #1f2b28;
  --paper: #f7f4ec;
  --paper-2: #ebe7dc;
  --line: #d6cfbe;
  --muted: #61706a;
  --white: #ffffff;
  --gold: #c6a15c;
  --gold-2: #d7b66f;
  --sage: #567260;
  --sage-soft: #dfe7df;
  --terracotta: #b87755;
  --shadow: rgba(15, 23, 21, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}

body,
button,
input {
  letter-spacing: 0;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

h1,
h2,
h3,
p {
  margin: 0;
}

.site-header {
  position: absolute;
  z-index: 5;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  width: min(1180px, calc(100% - 40px));
  min-height: 74px;
  margin: 0 auto;
  color: var(--white);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: var(--sage);
  object-fit: cover;
}

.brand span {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  line-height: 1;
  font-weight: 700;
  white-space: nowrap;
}

.site-header nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.nav-link,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.nav-link {
  color: rgba(255, 255, 255, 0.84);
}

.nav-link:hover,
.nav-link:focus-visible {
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--white);
  outline: none;
}

.button {
  gap: 10px;
  color: var(--ink);
  background: var(--gold);
  border-color: var(--gold);
  box-shadow: 0 16px 36px rgba(198, 161, 92, 0.2);
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
  background: var(--gold-2);
  border-color: var(--gold-2);
  outline: none;
}

.button.secondary {
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: none;
}

.button.secondary:hover,
.button.secondary:focus-visible {
  background: rgba(255, 255, 255, 0.14);
}

.detail-hero {
  position: relative;
  min-height: 82svh;
  color: var(--white);
  background: var(--ink);
  isolation: isolate;
}

.detail-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(17, 25, 23, 0.98) 0, rgba(17, 25, 23, 0.83) 36%, rgba(17, 25, 23, 0.24) 74%, rgba(17, 25, 23, 0.1) 100%),
    linear-gradient(180deg, rgba(17, 25, 23, 0.12) 0, rgba(17, 25, 23, 0.88) 100%),
    var(--hero) center right / cover no-repeat;
}

.hero-inner {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding-top: 145px;
  padding-bottom: 80px;
}

.back-link,
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--sage-soft);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.back-link {
  margin-bottom: 30px;
  text-decoration: none;
}

.back-link::before,
.kicker::before {
  content: "";
  width: 34px;
  height: 1px;
  background: var(--gold);
}

.detail-hero h1 {
  max-width: 720px;
  margin-top: 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 74px;
  line-height: 0.95;
  font-weight: 700;
}

.hero-copy {
  max-width: 560px;
  margin-top: 24px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 20px;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.section {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 76px 0;
}

.facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.fact {
  min-height: 118px;
  padding: 24px;
  background: var(--white);
}

.fact span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.fact strong {
  display: block;
  margin-top: 12px;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 26px;
  line-height: 1.1;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(260px, 0.55fr);
  gap: 48px;
  align-items: end;
  margin-bottom: 34px;
}

.eyebrow {
  margin-bottom: 14px;
  color: var(--sage);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

h2 {
  max-width: 760px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 48px;
  line-height: 1.05;
  font-weight: 700;
}

.section-heading p,
.intro-text {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
}

.media-grid,
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.media-tile,
.project-tile,
.pdf-tile {
  position: relative;
  display: block;
  min-height: 265px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--white);
  background: var(--ink-soft);
  text-decoration: none;
  box-shadow: 0 18px 54px rgba(15, 23, 21, 0.12);
}

.project-tile {
  min-height: 320px;
  background: var(--white);
}

.media-tile img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
}

.project-tile img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  padding: 12px;
  object-fit: contain;
  background: var(--white);
}

.media-tile span,
.project-tile span {
  position: absolute;
  left: 14px;
  bottom: 14px;
  max-width: calc(100% - 28px);
  padding: 9px 11px;
  border-radius: 8px;
  color: var(--white);
  background: rgba(15, 23, 21, 0.72);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.25;
}

.media-tile::after,
.project-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(17, 25, 23, 0) 44%, rgba(17, 25, 23, 0.64) 100%);
  pointer-events: none;
}

.tour-band {
  background: var(--ink-soft);
  color: var(--white);
}

.tour-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(300px, 0.9fr);
  gap: 48px;
  align-items: center;
}

.tour-layout .eyebrow,
.tour-layout .intro-text {
  color: rgba(255, 255, 255, 0.68);
}

.tour-layout h2 {
  color: var(--white);
}

.tour-layout .intro-text {
  margin-top: 18px;
}

.tour-layout .button {
  margin-top: 26px;
}

.tour-preview {
  display: block;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  min-height: 360px;
  background: rgba(255, 255, 255, 0.06);
}

.tour-preview img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
}

.pdf-tile {
  display: grid;
  align-content: end;
  min-height: 320px;
  padding: 26px;
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(86, 114, 96, 0.15), rgba(198, 161, 92, 0.18)),
    var(--white);
}

.pdf-mark {
  width: 72px;
  height: 92px;
  border: 2px solid var(--terracotta);
  border-radius: 8px;
  background:
    linear-gradient(90deg, transparent 0 18px, rgba(184, 119, 85, 0.26) 18px 20px, transparent 20px 100%),
    linear-gradient(180deg, transparent 0 24px, rgba(184, 119, 85, 0.22) 24px 26px, transparent 26px 100%);
}

.pdf-tile strong {
  display: block;
  margin-top: 22px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 26px;
  line-height: 1.05;
}

.pdf-tile span:last-child {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.unit-switch {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 86px;
}

.switch-link {
  flex: 1;
  min-height: 92px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  text-decoration: none;
}

.switch-link span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.switch-link strong {
  display: block;
  margin-top: 8px;
  color: var(--ink);
  font-size: 18px;
}

footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  background: var(--paper-2);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: min(1180px, calc(100% - 40px));
  min-height: 86px;
  margin: 0 auto;
  font-size: 14px;
}

.footer-inner a {
  color: var(--sage);
  font-weight: 900;
  text-decoration: none;
}

@media (max-width: 980px) {
  .detail-hero h1 {
    font-size: 60px;
  }

  h2 {
    font-size: 40px;
  }

  .facts,
  .media-grid,
  .project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tour-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .site-header {
    width: calc(100% - 28px);
    align-items: flex-start;
    padding-top: 14px;
  }

  .site-header nav {
    display: none;
  }

  .brand span {
    font-size: 20px;
  }

  .detail-hero {
    min-height: 78svh;
  }

  .detail-hero::after {
    background:
      linear-gradient(180deg, rgba(17, 25, 23, 0.92) 0, rgba(17, 25, 23, 0.66) 50%, rgba(17, 25, 23, 0.95) 100%),
      var(--hero) center / cover no-repeat;
  }

  .hero-inner {
    width: calc(100% - 28px);
    padding-top: 120px;
    padding-bottom: 52px;
  }

  .detail-hero h1 {
    font-size: 44px;
  }

  .hero-copy {
    max-width: 95%;
    font-size: 17px;
  }

  .hero-actions {
    align-items: stretch;
  }

  .button {
    width: 100%;
  }

  .section {
    width: calc(100% - 28px);
    padding: 56px 0;
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  h2 {
    font-size: 34px;
  }

  .facts,
  .media-grid,
  .project-grid,
  .unit-switch {
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .media-tile,
  .project-tile,
  .pdf-tile {
    min-height: 250px;
  }

  .tour-preview,
  .tour-preview img {
    min-height: 260px;
  }

  .footer-inner {
    width: calc(100% - 28px);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 20px 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
  }
}
