:root {
  --paper: #f3efe6;
  --paper-deep: #e7e0d0;
  --ink: #14171c;
  --muted: #5a5f6b;
  --navy: #122033;
  --navy-soft: #1c334d;
  --gold: #c3922e;
  --gold-deep: #9a7018;
  --cream: #fffaf1;
  --line: rgba(18, 32, 51, 0.1);
  --shadow: 0 18px 48px rgba(18, 32, 51, 0.08);
  --radius: 22px;
  --font-sans: "Segoe UI", system-ui, sans-serif;
  --font-serif: Georgia, "Iowan Old Style", "Times New Roman", serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% -10%, rgba(195, 146, 46, 0.16), transparent 34%),
    radial-gradient(circle at 92% 8%, rgba(18, 32, 51, 0.08), transparent 28%),
    var(--paper);
  font-family: var(--font-sans);
  line-height: 1.6;
}

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

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

a.text-link {
  color: var(--navy-soft);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 20;
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--navy);
  color: #fff;
}

.skip-link:focus {
  top: 16px;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid transparent;
  background: rgba(243, 239, 230, 0.86);
  backdrop-filter: blur(16px);
}

.site-header.is-stuck {
  border-bottom-color: var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 84px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 12px;
  box-shadow: 0 8px 18px rgba(18, 32, 51, 0.16);
}

.brand-name {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.brand-sub {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-nav a {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--navy);
  font-size: 15px;
  font-weight: 500;
}

.site-nav a[aria-current="page"],
.site-nav a:hover {
  background: rgba(255, 250, 241, 0.88);
}

.header-cta {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}

.nav-toggle {
  display: none;
  margin: 0;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--cream);
  color: var(--ink);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--gold-deep);
  outline-offset: 3px;
}

.btn,
.ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 16px;
  font-weight: 600;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.btn {
  background: linear-gradient(135deg, var(--gold) 0%, #d8ae55 100%);
  color: #1a1408;
  box-shadow: 0 12px 24px rgba(195, 146, 46, 0.22);
}

.ghost-btn {
  border: 1px solid var(--line);
  background: rgba(255, 250, 241, 0.72);
}

.btn:hover,
.ghost-btn:hover,
.header-cta:hover {
  transform: translateY(-1px);
}

.hero {
  padding: 56px 0 28px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 36px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--gold-deep);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
.section-title {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

h1 {
  max-width: 11em;
  font-size: clamp(42px, 7vw, 72px);
}

.lead,
.card p,
.legal p {
  color: var(--muted);
}

.lead {
  max-width: 620px;
  margin: 20px 0 0;
  font-size: 18px;
  line-height: 1.75;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.toolbar-card {
  position: relative;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--navy);
  box-shadow: var(--shadow);
  color: #efe8d8;
}

.toolbar-chrome {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 250, 241, 0.22);
}

.dot:nth-child(1) { background: #e07a5f; }
.dot:nth-child(2) { background: #c3922e; }
.dot:nth-child(3) { background: #6a9b7a; }

.toolbar-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 250, 241, 0.08);
}

.toolbar-bar span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 8px;
  background: rgba(255, 250, 241, 0.08);
  font-size: 13px;
}

.toolbar-bar .search {
  flex: 1;
  background: rgba(195, 146, 46, 0.18);
  color: #f4dfaa;
}

.toolbar-list {
  display: grid;
  gap: 12px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.toolbar-list li {
  padding: 16px 18px;
  border-radius: 16px;
  background: rgba(255, 250, 241, 0.06);
}

.toolbar-list strong {
  display: block;
  margin-bottom: 4px;
}

.facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 36px 0 8px;
}

.facts article,
.card,
.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 250, 241, 0.78);
  box-shadow: var(--shadow);
}

.facts article {
  padding: 22px;
}

.facts strong,
.card h3,
.panel h2 {
  display: block;
  margin: 0;
}

.facts strong {
  font-family: var(--font-serif);
  font-size: 28px;
}

.facts span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
}

.section {
  padding: 72px 0 0;
}

.section-head {
  max-width: 720px;
}

.section-title {
  font-size: clamp(30px, 4vw, 48px);
}

.section-head p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 17px;
}

.grid-2,
.grid-3 {
  display: grid;
  gap: 16px;
  margin-top: 28px;
}

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

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

.card,
.panel {
  padding: 28px;
}

.card-tag {
  display: inline-flex;
  margin: 0 0 16px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(195, 146, 46, 0.14);
  color: var(--gold-deep);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.card h3 {
  font-size: 24px;
}

.card p,
.panel p {
  margin: 12px 0 0;
  line-height: 1.75;
}

.featured {
  background:
    radial-gradient(circle at top right, rgba(195, 146, 46, 0.16), transparent 42%),
    var(--navy);
  color: #f6efe1;
}

.featured p,
.featured .card-tag {
  color: #d8c9a4;
}

.cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 72px;
  padding: 32px;
  border-radius: 28px;
  background: var(--navy);
  color: #f6efe1;
}

.cta-band h2 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(28px, 4vw, 40px);
}

.cta-band p {
  margin: 10px 0 0;
  color: #d8c9a4;
}

.site-footer {
  margin-top: 80px;
  padding: 36px 0 48px;
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 28px;
}

.site-footer h2,
.site-footer p,
.footer-links {
  margin: 0;
}

.site-footer h2 {
  font-size: 16px;
}

.site-footer p,
.footer-links a,
.legal-meta {
  color: var(--muted);
}

.footer-links {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.legal-meta {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 13px;
}

.legal-meta a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal {
  max-width: 760px;
  padding: 28px 0 8px;
}

.legal h1 {
  max-width: none;
  font-size: clamp(36px, 6vw, 56px);
}

.legal h2 {
  margin: 32px 0 10px;
  font-size: 22px;
}

.legal p,
.legal li {
  line-height: 1.8;
}

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

.contact-box {
  display: grid;
  gap: 8px;
}

.contact-box > a {
  font-size: 22px;
  font-weight: 700;
}

.contact-box address {
  margin: 8px 0 0;
  font-style: normal;
  line-height: 1.7;
  color: var(--muted);
}

.page-hero {
  padding: 48px 0 8px;
}

.not-found {
  min-height: 52vh;
  padding: 80px 0;
}

@media (max-width: 900px) {
  .hero-grid,
  .grid-2,
  .grid-3,
  .facts,
  .footer-grid,
  .cta-band {
    grid-template-columns: 1fr;
  }

  .cta-band {
    display: grid;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav,
  .header-cta {
    display: none;
  }

  .site-nav.is-open {
    position: absolute;
    left: 18px;
    right: 18px;
    top: 84px;
    display: grid;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--cream);
    box-shadow: var(--shadow);
  }

  h1 {
    max-width: none;
  }
}

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

  .btn,
  .ghost-btn,
  .header-cta {
    transition: none;
  }
}
