:root {
  --bg: #eef1ed;
  --paper: #fbfbf8;
  --paper-strong: #f5f6f1;
  --ink: #18201d;
  --muted: #5f675f;
  --line: #d8ddd3;
  --accent: #2e5f78;
  --accent-soft: #e6eef2;
  --accent-strong: #1e465c;
  --radius: 18px;
  --wrap: 1100px;
  --shadow: 0 16px 34px rgba(24, 32, 29, 0.07);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(46, 95, 120, 0.12), transparent 30%),
    linear-gradient(180deg, #f8faf6 0%, var(--bg) 100%);
  line-height: 1.65;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(12px);
  background: rgba(251, 251, 248, 0.9);
  border-bottom: 1px solid rgba(216, 221, 211, 0.92);
}

.header-row,
.footer-row,
.hero-grid,
.section-split {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.header-row {
  min-height: 76px;
}

.brand {
  max-width: 26rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.2;
}

.nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.nav a {
  color: var(--muted);
  font-size: 0.97rem;
}

.nav a[aria-current="page"],
.nav a:hover,
.text-link:hover {
  color: var(--accent-strong);
}

.hero,
.page {
  padding: 76px 0 58px;
}

.hero-grid {
  align-items: stretch;
}

.hero-copy,
.panel {
  flex: 1 1 0;
}

.eyebrow,
.meta {
  margin: 0 0 10px;
  color: var(--accent-strong);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0 0 14px;
  line-height: 1.12;
}

h1,
h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
}

h1 {
  max-width: 12ch;
  font-size: clamp(2.5rem, 5vw, 4.4rem);
}

h2 {
  font-size: clamp(1.55rem, 3vw, 2.35rem);
}

h3 {
  font-size: 1.2rem;
}

p,
li,
.section-note {
  color: var(--muted);
}

.lede {
  max-width: 62ch;
  font-size: 1.1rem;
}

.narrow {
  max-width: 48rem;
}

.hero-actions,
.page-nav {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.button,
.card,
.panel,
.feature-card {
  border-radius: var(--radius);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  background: var(--accent);
  color: #f9fbfc;
  font-weight: 700;
  box-shadow: var(--shadow);
}

.button-secondary {
  background: transparent;
  color: var(--accent-strong);
  border: 1px solid var(--line);
  box-shadow: none;
}

.panel,
.card,
.feature-card {
  background: rgba(251, 251, 248, 0.94);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.panel {
  padding: 28px;
  background:
    linear-gradient(180deg, rgba(230, 238, 242, 0.9), rgba(251, 251, 248, 0.96));
}

.panel-title {
  margin: 0 0 12px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.18rem;
  font-weight: 700;
}

.section {
  padding: 20px 0 42px;
}

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

.card-grid,
.page-grid,
.feature-grid {
  display: grid;
  gap: 18px;
}

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

.page-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 28px;
}

.feature-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card,
.feature-card {
  padding: 24px;
}

.plain-list {
  margin: 0;
  padding-left: 18px;
}

.text-link {
  display: inline-block;
  margin-top: 12px;
  color: var(--accent);
  font-weight: 700;
}

.site-footer {
  padding: 20px 0 34px;
  border-top: 1px solid rgba(216, 221, 211, 0.92);
}

.footer-row p {
  margin: 0;
  font-size: 0.92rem;
}

@media (max-width: 860px) {
  .header-row,
  .hero-grid,
  .section-split,
  .footer-row {
    flex-direction: column;
    align-items: flex-start;
  }

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

  h1 {
    max-width: none;
  }
}
