:root {
  color-scheme: light;
  --background: #fdfbf7;
  --surface: #ffffff;
  --surface-warm: #f0ead6;
  --surface-cool: #f4f7f9;
  --border: #e2e8f0;
  --primary: #4a7c96;
  --primary-dark: #3c667c;
  --primary-soft: #e8f0f4;
  --text: #2d3436;
  --muted: #66737a;
  --danger: #b64a4a;
  --shadow: 0 18px 45px rgba(45, 52, 54, 0.11);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 85% 8%, rgba(74, 124, 150, 0.13), transparent 30rem),
    var(--background);
  color: var(--text);
  font-family: "Avenir Next", "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

a {
  color: var(--primary-dark);
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--text);
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(74, 124, 150, 0.35);
  outline-offset: 4px;
  border-radius: 6px;
}

.site-header {
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
  background: rgba(253, 251, 247, 0.92);
}

.nav-shell {
  width: min(1120px, calc(100% - 40px));
  min-height: 80px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.18rem;
  font-weight: 700;
  text-decoration: none;
}

.brand img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 24px;
}

.nav-links a {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
}

.nav-links a[aria-current="page"],
.nav-links a:hover {
  color: var(--primary-dark);
}

main {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  align-items: center;
  gap: 64px;
  padding: 96px 0 72px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--primary-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin-top: 0;
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.16;
}

h1 {
  max-width: 760px;
  margin-bottom: 22px;
  font-size: clamp(2.6rem, 7vw, 5rem);
  letter-spacing: -0.045em;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(1.65rem, 4vw, 2.35rem);
  letter-spacing: -0.025em;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.22rem;
}

.lede {
  max-width: 690px;
  margin: 0 0 30px;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.22rem);
}

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

.button {
  min-height: 48px;
  padding: 12px 19px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--primary);
  border-radius: 12px;
  background: var(--primary);
  color: #ffffff;
  font-weight: 800;
  text-decoration: none;
}

.button:hover {
  background: var(--primary-dark);
  color: #ffffff;
}

.button.secondary {
  background: transparent;
  color: var(--primary-dark);
}

.button.secondary:hover {
  background: var(--primary-soft);
}

.hero-card {
  padding: 32px;
  border: 1px solid rgba(74, 124, 150, 0.2);
  border-radius: 24px;
  background: linear-gradient(145deg, var(--surface), var(--primary-soft));
  box-shadow: var(--shadow);
}

.hero-card img {
  width: min(180px, 60%);
  margin: 0 auto 24px;
  display: block;
}

.hero-card p:last-child {
  margin-bottom: 0;
}

.section {
  padding: 68px 0;
}

.section + .section {
  border-top: 1px solid var(--border);
}

.section-heading {
  max-width: 720px;
  margin-bottom: 30px;
}

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

.card {
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: 0 8px 24px rgba(45, 52, 54, 0.06);
}

.card p,
.card ul {
  margin-bottom: 0;
  color: var(--muted);
}

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

.page-heading {
  max-width: 780px;
  padding: 80px 0 42px;
}

.page-heading h1 {
  font-size: clamp(2.4rem, 6vw, 4.4rem);
}

.document {
  max-width: 820px;
  padding-bottom: 80px;
}

.document section {
  padding: 28px 0;
  border-top: 1px solid var(--border);
}

.document h2 {
  font-size: 1.55rem;
}

.document li + li {
  margin-top: 9px;
}

.note {
  padding: 20px 22px;
  border-left: 4px solid var(--primary);
  border-radius: 0 14px 14px 0;
  background: var(--primary-soft);
}

.support-panel {
  margin: 18px 0 34px;
  padding: 30px;
  border-radius: 20px;
  background: var(--surface-warm);
}

.support-email {
  font-size: clamp(1.05rem, 3vw, 1.35rem);
  font-weight: 800;
}

.meta {
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer {
  padding: 34px 0 46px;
  border-top: 1px solid var(--border);
}

.footer-shell {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  color: var(--muted);
  font-size: 0.88rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
}

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

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

  .nav-shell {
    padding: 18px 0;
  }

  .nav-links {
    justify-content: flex-start;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 34px;
    padding-top: 64px;
  }

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

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