:root {
  --bg: #f4efe6;
  --paper: rgba(255, 251, 245, 0.76);
  --ink: #1d1b19;
  --muted: #5f5952;
  --line: rgba(29, 27, 25, 0.12);
  --accent: #0d7c66;
  --accent-2: #d86f45;
  --shadow: 0 18px 48px rgba(34, 25, 11, 0.09);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(216, 111, 69, 0.16), transparent 34%),
    radial-gradient(circle at top right, rgba(13, 124, 102, 0.16), transparent 28%),
    linear-gradient(180deg, #f7f2ea 0%, var(--bg) 100%);
  font-family: Georgia, "Times New Roman", serif;
}

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

.site-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 48px;
}

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

.topbar {
  position: sticky;
  top: 16px;
  z-index: 10;
  margin-bottom: 28px;
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 249, 241, 0.78);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.brand,
.footer-brand {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.nav,
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.nav a,
.footer-links a {
  color: var(--muted);
}

.hero,
.section,
.doc {
  border: 1px solid var(--line);
  border-radius: 30px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.8fr);
  gap: 24px;
  padding: 72px clamp(24px, 6vw, 72px);
  overflow: hidden;
}

.hero h1,
.section h2,
.doc h1 {
  margin: 0;
  font-size: clamp(2.8rem, 8vw, 5.8rem);
  line-height: 0.94;
  letter-spacing: -0.05em;
  max-width: 11ch;
}

.section h2,
.doc h1 {
  font-size: clamp(2rem, 5vw, 3.6rem);
  max-width: 18ch;
}

.eyebrow,
.card-label,
.doc-meta {
  margin: 0 0 14px;
  color: var(--accent);
  font-family: Arial, sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.lede,
.doc p,
.doc li {
  max-width: 62ch;
  font-size: 1.08rem;
  line-height: 1.75;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.hero-panel {
  align-self: end;
  border: 1px solid rgba(29, 27, 25, 0.08);
  border-radius: 26px;
  padding: 24px;
  background:
    radial-gradient(circle at top right, rgba(216, 111, 69, 0.15), transparent 40%),
    rgba(255, 255, 255, 0.64);
}

.hero-panel h2 {
  margin: 0 0 10px;
  font-size: 2rem;
  letter-spacing: -0.04em;
}

.hero-panel-title-link,
.card-title-link {
  transition: color 0.2s ease;
}

.hero-panel-title-link:hover,
.card-title-link:hover {
  color: var(--accent);
}

.hero-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.panel-kicker {
  margin: 0 0 12px;
  color: var(--accent-2);
  font-family: Arial, sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  font-family: Arial, sans-serif;
  font-size: 0.95rem;
  transition: transform 0.2s ease, background 0.2s ease;
}

.button:hover,
.legal-link:hover {
  transform: translateY(-2px);
}

.button.primary {
  background: var(--ink);
  color: #fffaf4;
}

.button.secondary {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.5);
}

.section,
.doc {
  margin-top: 22px;
  padding: clamp(24px, 5vw, 48px);
}

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

.card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.card,
.legal-link {
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.54);
}

.card h3,
.legal-link span:first-child {
  margin: 0 0 8px;
  font-size: 1.5rem;
  letter-spacing: -0.03em;
}

.card-title-link {
  display: inline-flex;
}

.card p,
.legal-link span:last-child,
.footer p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.card-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 14px;
}

.card-links a {
  color: var(--accent);
  font-family: Arial, sans-serif;
  font-size: 0.95rem;
}

.legal-section {
  background:
    linear-gradient(135deg, rgba(13, 124, 102, 0.1), transparent 38%),
    rgba(255, 251, 245, 0.76);
}

.legal-list {
  display: grid;
  gap: 14px;
}

.legal-link {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.legal-link:hover {
  border-color: rgba(13, 124, 102, 0.35);
}

.footer {
  margin-top: 22px;
  padding: 10px 4px 0;
}

.doc ul {
  padding-left: 20px;
}

.doc h2 {
  margin-top: 32px;
  margin-bottom: 12px;
  font-size: 1.55rem;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.doc h3 {
  margin-top: 24px;
  margin-bottom: 8px;
  font-size: 1.1rem;
}

@media (max-width: 760px) {
  .topbar,
  .footer,
  .legal-link {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero {
    grid-template-columns: 1fr;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    max-width: none;
  }
}
