:root {
  --surface: rgba(250, 245, 237, 0.86);
  --surface-strong: #fbf7f1;
  --text: #2d1f1a;
  --muted: #6f5d55;
  --line: rgba(45, 31, 26, 0.14);
  --accent: #8d4f35;
  --olive: #66745d;
  --shadow: 0 22px 48px rgba(56, 36, 26, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  background: #fbfaf7;
}

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

code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.95em;
}

.shell {
  width: min(1040px, calc(100% - 32px));
  margin: 0 auto;
}

.page-stack {
  padding: 18px 0 40px;
}

.site-header {
  width: 100%;
  background: #fff;
  border-bottom: 1px dotted rgba(80, 80, 80, 0.34);
}

.site-header__inner {
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  gap: 12px;
  width: 100%;
  margin: 0;
  padding: 14px clamp(16px, 4vw, 40px) 12px;
}

.site-brand {
  display: block;
  width: min(760px, 100%);
}

.site-brand__logo {
  display: block;
  width: 100%;
  height: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 3vw, 44px);
  flex-wrap: wrap;
  width: 100%;
}

.site-nav a,
.micro-links a {
  padding: 2px 0;
  border-radius: 0;
  color: #676767;
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  font-size: clamp(1rem, 1.8vw, 1.1rem);
  font-weight: 600;
  transition: color 180ms ease, opacity 180ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.micro-links a:hover,
.micro-links a:focus-visible,
.button-link:hover,
.button-link:focus-visible {
  background: transparent;
  color: #333;
  opacity: 0.9;
}

.site-header__cta,
.button-link {
  display: inline-flex;
  padding: 11px 18px;
  border-radius: 999px;
  background: var(--text);
  color: #fff;
  font-weight: 700;
}

.hero,
.section-block,
.tile,
.content-card,
.content-panel,
.site-note {
  background: var(--surface);
  backdrop-filter: blur(12px);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.hero,
.section-block,
.site-note {
  border-radius: 28px;
}

.hero {
  display: grid;
  gap: 20px;
  grid-template-columns: minmax(0, 1.7fr) minmax(280px, 0.8fr);
  padding: 30px;
}

.hero__copy {
  min-width: 0;
}

.hero--wide {
  margin-bottom: 24px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 700;
}

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

h1 {
  margin-bottom: 0;
  font-size: clamp(2.7rem, 6vw, 5.2rem);
  line-height: 0.95;
}

.legacy-hero {
  margin: 14px 0 26px;
  padding: 18px 0 0;
}

.legacy-hero h1 {
  margin: 0;
  text-align: center;
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  font-size: clamp(2.2rem, 5vw, 3.3rem);
  line-height: 1.13;
  color: #4a4a4a;
  font-weight: 700;
}

.legacy-divider {
  position: relative;
  margin: 24px auto 0;
  height: 24px;
  width: min(860px, 96%);
}

.legacy-divider::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  border-top: 1px dotted rgba(112, 112, 112, 0.35);
  transform: translateY(-50%);
}

.legacy-divider span {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: inline-flex;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  background: #fbfaf7;
  color: #b3b3b3;
  font-size: 1rem;
}

h2 {
  font-size: clamp(1.9rem, 4vw, 3rem);
  margin-bottom: 18px;
}

h3 {
  font-size: 1.3rem;
  line-height: 1.2;
}

.hero__lede,
.hero__note,
.seo-scroll p,
.hero__panel-text,
.tile p,
.content-card p,
.content-panel p,
.site-note p,
.footer__inner {
  color: var(--muted);
  line-height: 1.75;
}

.hero__lede {
  margin-top: 18px;
  font-size: 1.08rem;
}

.hero__note {
  margin-bottom: 0;
}

.seo-scroll {
  position: relative;
  height: 218px;
  overflow-y: auto;
  margin-top: 18px;
  padding: 18px 18px 18px 0;
  scroll-behavior: smooth;
  mask-image: linear-gradient(180deg, transparent 0%, #000 10%, #000 90%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 10%, #000 90%, transparent 100%);
}

.seo-scroll::-webkit-scrollbar {
  display: none;
}

.seo-scroll {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.seo-scroll p:last-child {
  margin-bottom: 0;
}

.hero__panel {
  align-self: start;
  padding: 24px;
  border-radius: 24px;
  background:
    linear-gradient(145deg, rgba(255, 249, 242, 0.92), rgba(247, 241, 233, 0.78)),
    linear-gradient(135deg, rgba(141, 79, 53, 0.08), rgba(102, 116, 93, 0.1));
}

.hero__panel--media img {
  display: block;
  width: 100%;
  height: auto;
  margin-bottom: 18px;
  border-radius: 18px;
}

.hero__panel-label {
  margin: 0;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
}

.hero__panel-value {
  margin: 12px 0 10px;
  font-size: 2rem;
}

.breadcrumbs {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 0.92rem;
}

.breadcrumbs a {
  color: var(--accent);
}

.section-block,
.site-note {
  padding: 28px;
  margin-bottom: 24px;
}

.tile-grid,
.content-grid,
.photo-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tile-grid--dense {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tile,
.content-card,
.content-panel,
.photo-card {
  border-radius: 24px;
  padding: 22px 24px 24px;
}

.photo-grid {
  grid-template-columns: 1.25fr 0.8fr 1.05fr;
}

.photo-card {
  margin: 0;
  background: rgba(255, 250, 244, 0.74);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.photo-card img {
  display: block;
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: 16px;
}

.photo-card figcaption {
  margin-top: 14px;
  color: var(--muted);
  line-height: 1.65;
}

.article-flow {
  max-width: 88ch;
}

.article-flow h2,
.article-flow h3 {
  margin-top: 26px;
  margin-bottom: 12px;
}

.article-flow p {
  color: var(--muted);
  line-height: 1.9;
  margin-bottom: 14px;
}

.article-flow a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.micro-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 0;
}

.content-split {
  display: grid;
  gap: 20px;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.8fr);
  margin-bottom: 24px;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.footer {
  border-top: 1px solid rgba(45, 31, 26, 0.08);
  background: rgba(255, 248, 241, 0.58);
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 18px 0 28px;
  font-size: 0.95rem;
}

.footer__inner p {
  margin: 0;
}

@media (max-width: 920px) {
  .hero,
  .content-split,
  .tile-grid,
  .tile-grid--dense,
  .content-grid,
  .photo-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .site-header__inner {
    gap: 10px;
  }

  .site-nav {
    justify-content: center;
    white-space: normal;
    gap: 12px 26px;
  }
}

@media (max-width: 560px) {
  .site-header__inner {
    padding: 12px 16px;
  }

  .site-brand {
    width: 100%;
  }

  .site-nav {
    gap: 10px 18px;
  }

  .site-nav a {
    font-size: 0.95rem;
  }

  .hero,
  .section-block,
  .site-note,
  .tile,
  .content-card,
  .content-panel {
    border-radius: 22px;
  }
}
