:root {
  --bg: #fff8f4;
  --surface: rgba(255, 255, 255, 0.92);
  --surface-soft: #fff1ec;
  --border: #ecd7d0;
  --text: #241816;
  --muted: #6f5c58;
  --brand: #b53b2f;
  --brand-dark: #8d2e24;
  --shadow: 0 22px 52px rgba(103, 44, 32, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Montserrat", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(181, 59, 47, 0.11), transparent 34%),
    radial-gradient(circle at right 12%, rgba(242, 204, 187, 0.32), transparent 24%),
    linear-gradient(180deg, #fffdfc 0%, var(--bg) 100%);
}

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

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

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
}

.shell {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.site-top {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(217, 181, 171, 0.7);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 74px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  font-size: 1rem;
  font-weight: 700;
}

.brand img {
  height: 40px;
  width: auto;
}

.topnav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.topnav a {
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.95rem;
  transition: background-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.topnav a:hover,
.topnav a.is-active {
  color: var(--brand-dark);
  background: var(--surface-soft);
  transform: translateY(-1px);
}

.page-main {
  padding: 2.6rem 0 4rem;
}

.hero-grid,
.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(280px, 0.95fr);
  gap: 1.5rem;
}

.hero-card,
.meta-card,
.section-card {
  border: 1px solid rgba(217, 181, 171, 0.82);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.hero-card {
  padding: 2rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 0.9rem;
  color: var(--brand-dark);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 999px;
  background: var(--brand);
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 3vw + 1rem, 3.35rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.lead {
  margin: 1.15rem 0 0;
  color: var(--muted);
  font-size: 1.07rem;
  line-height: 1.82;
}

.meta-card {
  padding: 1.5rem;
}

.meta-card h2,
.footer-card h2 {
  margin: 0 0 1rem;
  font-size: 1rem;
}

.meta-list,
.footer-links,
.block-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.meta-list li,
.footer-links li {
  border-top: 1px solid rgba(236, 215, 208, 0.8);
  padding-top: 0.85rem;
  margin-top: 0.85rem;
}

.meta-list li:first-child,
.footer-links li:first-child {
  border-top: 0;
  padding-top: 0;
  margin-top: 0;
}

.meta-label {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.meta-value {
  font-size: 0.98rem;
  line-height: 1.6;
}

.summary-list {
  margin: 1.2rem 0 0;
  padding-left: 1.1rem;
  color: var(--muted);
}

.summary-list li + li {
  margin-top: 0.6rem;
}

.content-grid {
  margin-top: 1.5rem;
  align-items: start;
}

.content-stack {
  display: grid;
  gap: 1.25rem;
}

.section-card {
  padding: 1.6rem;
}

.section-card h2 {
  margin: 0 0 0.95rem;
  font-size: 1.28rem;
}

.section-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.82;
}

.section-card p + p,
.section-card p + .block-list,
.section-card p + .note,
.block-list + p,
.note + p,
.block-list + .note,
.note + .block-list {
  margin-top: 1rem;
}

.block-list li {
  position: relative;
  padding-left: 1.15rem;
  color: var(--muted);
  line-height: 1.78;
}

.block-list li + li {
  margin-top: 0.7rem;
}

.block-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72rem;
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 999px;
  background: var(--brand);
}

.note {
  border-left: 4px solid var(--brand);
  border-radius: 16px;
  padding: 1rem 1rem 1rem 1.1rem;
  background: var(--surface-soft);
  color: #5f403c;
  line-height: 1.72;
}

.site-footer {
  margin-top: 1rem;
  padding: 1.75rem 0 3rem;
}

.footer-card {
  border: 1px solid rgba(217, 181, 171, 0.82);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow);
  padding: 1.8rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.35rem;
}

.footer-links {
  margin-top: 1rem;
}

.footer-links a,
.meta-card a {
  color: var(--brand-dark);
}

.footer-links a:hover,
.meta-card a:hover {
  color: var(--brand);
}

.footer-copy {
  margin-top: 1.5rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(217, 181, 171, 0.65);
  color: var(--muted);
  font-size: 0.92rem;
}

@media (max-width: 940px) {
  .hero-grid,
  .content-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .topbar {
    align-items: flex-start;
    padding: 1rem 0;
    flex-direction: column;
  }

  .topnav {
    justify-content: flex-start;
  }

  .page-main {
    padding-top: 2rem;
  }
}

@media (max-width: 640px) {
  .shell {
    width: min(1120px, calc(100% - 1rem));
  }

  .hero-card,
  .meta-card,
  .section-card,
  .footer-card {
    padding: 1.25rem;
    border-radius: 20px;
  }

  h1 {
    font-size: 2rem;
  }
}
