:root {
  --bg: #f5efe4;
  --paper: rgba(255, 250, 243, 0.82);
  --paper-strong: #fffaf2;
  --ink: #18261f;
  --muted: #5d6b63;
  --accent: #c55c3b;
  --accent-soft: #efc6a6;
  --line: rgba(24, 38, 31, 0.12);
  --shadow: 0 24px 60px rgba(56, 42, 19, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(197, 92, 59, 0.18), transparent 28%),
    radial-gradient(circle at top right, rgba(59, 125, 100, 0.16), transparent 26%),
    linear-gradient(180deg, #f2eadb 0%, var(--bg) 42%, #efe5d2 100%);
  font-family: "Manrope", sans-serif;
  min-height: 100vh;
}

a {
  color: inherit;
}

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

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

.hero,
.section,
.document {
  backdrop-filter: blur(12px);
}

.topbar,
.document-header,
.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.topbar,
.document-header {
  padding: 24px 0 10px;
}

.brand {
  font-weight: 800;
  text-decoration: none;
  font-size: 1.02rem;
}

.top-links,
.footer-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.top-links a,
.footer-links a,
.back-link {
  color: var(--muted);
  text-decoration: none;
}

.hero {
  padding: 18px 0 34px;
}

.hero-grid {
  display: block;
  padding: 26px 0 0;
}

.hero-copy h1,
.document h1,
.section-heading h2 {
  font-family: "Source Serif 4", serif;
  line-height: 0.95;
  margin: 0;
}

.hero-copy h1 {
  font-size: clamp(3rem, 7vw, 5.7rem);
  max-width: 14ch;
}

.lede {
  max-width: 62ch;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
  margin: 20px 0 0;
}

.eyebrow,
.contact-label,
.document-meta {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.78rem;
}

.eyebrow,
.contact-label {
  color: var(--accent);
  font-weight: 800;
}

.contact-card,
.section,
.document {
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.contact-card {
  background: var(--paper);
  border-radius: 24px;
}

.contact-card {
  margin-top: 28px;
  padding: 22px 22px 20px;
  max-width: 420px;
}

.contact-card a {
  display: inline-block;
  margin-top: 6px;
  font-size: 1.25rem;
  font-weight: 700;
  text-decoration: none;
}

.contact-note {
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 0;
}

.section {
  background: var(--paper);
  border-radius: 28px;
  margin: 18px 0 24px;
  padding: 28px;
}

.section-heading {
  margin-bottom: 20px;
}

.section-heading h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
}

.carousel {
  display: grid;
  grid-template-columns: 56px 1fr 56px;
  gap: 16px;
  align-items: center;
}

.carousel-viewport {
  overflow: hidden;
}

.carousel-track {
  display: flex;
  transition: transform 320ms ease;
}

.slide {
  min-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.slide img {
  width: min(100%, 420px);
  height: min(72vh, 760px);
  object-fit: contain;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 12px;
}

.slide figcaption {
  color: var(--muted);
  margin-top: 12px;
  text-align: center;
}

.carousel-control,
.dot {
  border: 0;
  cursor: pointer;
}

.carousel-control {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #fff7ec;
  color: var(--ink);
  font-size: 1.3rem;
  box-shadow: 0 10px 24px rgba(56, 42, 19, 0.1);
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(24, 38, 31, 0.2);
}

.dot.is-active {
  background: var(--accent);
  transform: scale(1.15);
}

.footer {
  padding: 10px 0 36px;
  color: var(--muted);
}

.document {
  background: rgba(255, 250, 243, 0.93);
  border-radius: 28px;
  padding: 32px;
  margin: 20px 0 36px;
}

.document h1 {
  font-size: clamp(2.4rem, 5vw, 4.4rem);
}

.document h2 {
  margin-top: 34px;
  font-size: 1.25rem;
}

.document p,
.document li {
  color: #31423a;
  line-height: 1.75;
}

@media (max-width: 860px) {
  .carousel {
    grid-template-columns: 1fr;
  }

  .carousel-control {
    display: none;
  }
}

@media (max-width: 640px) {
  .page-shell,
  .document-shell {
    width: min(100% - 20px, 1120px);
  }

  .topbar,
  .document-header,
  .footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .section,
  .document {
    padding: 22px;
  }
}
