:root {
  --bg: #f4f1e9;
  --bg-strong: #ebe4d3;
  --surface: rgba(255, 255, 255, 0.8);
  --surface-solid: #ffffff;
  --ink: #17263f;
  --muted: #5b6b6b;
  --accent: #937214;
  --accent-soft: #c7a54a;
  --accent-contrast: #fffdf8;
  --line: rgba(147, 114, 20, 0.15);
  --shadow: 0 24px 80px rgba(23, 38, 63, 0.08);
  --code-bg: rgba(147, 114, 20, 0.1);
  --body-glow-a: rgba(199, 165, 74, 0.16);
  --body-glow-b: rgba(23, 38, 63, 0.08);
  --body-grad-start: #f7f3eb;
  --body-grad-mid: #f4f1e9;
  --body-grad-end: #efe7d6;
  --ambient-left: rgba(199, 165, 74, 0.35);
  --ambient-right: rgba(23, 38, 63, 0.18);
  --placeholder-top: rgba(199, 165, 74, 0.18);
  --placeholder-bottom: rgba(23, 38, 63, 0.08);
  --placeholder-surface-a: rgba(255, 255, 255, 0.92);
  --placeholder-surface-b: rgba(244, 241, 233, 0.9);
  --placeholder-dash: rgba(147, 114, 20, 0.35);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 16px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  color: var(--ink);
  overflow-x: hidden;
  background:
    radial-gradient(circle at top left, var(--body-glow-a), transparent 26%),
    radial-gradient(circle at right 20%, var(--body-glow-b), transparent 22%),
    linear-gradient(180deg, var(--body-grad-start) 0%, var(--body-grad-mid) 50%, var(--body-grad-end) 100%);
}

a {
  color: inherit;
}

code {
  padding: 0.15rem 0.35rem;
  border-radius: 999px;
  background: var(--code-bg);
  font-size: 0.92em;
}

.ambient {
  position: fixed;
  z-index: 0;
  width: 22rem;
  height: 22rem;
  border-radius: 999px;
  filter: blur(12px);
  opacity: 0.65;
  pointer-events: none;
}

.ambient-left {
  top: -6rem;
  left: -7rem;
  background: radial-gradient(circle, var(--ambient-left), transparent 70%);
}

.ambient-right {
  right: -6rem;
  bottom: 10%;
  background: radial-gradient(circle, var(--ambient-right), transparent 70%);
}

.page-shell {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0 40px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 4px 26px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  text-decoration: none;
}

.brand-badge {
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  width: 58px;
  height: 58px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--accent-soft), var(--accent));
  color: var(--accent-contrast);
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.brand-badge.small {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  font-size: 1.1rem;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.brand-copy strong,
.footer-brand strong {
  font-size: 1rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.brand-copy span,
.footer-brand p,
.nav a,
.hero-text,
.section-heading p,
.contact-card p {
  color: var(--muted);
}

.nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

.nav a,
.footer-meta a {
  text-decoration: none;
  font-weight: 600;
}

.nav a:hover,
.footer-meta a:hover,
.contact-mail:hover,
.button:hover {
  opacity: 0.85;
}

.card,
.contact-card {
  border: 1px solid var(--line);
  background: var(--surface);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}

.hero {
  display: grid;
  gap: 26px;
  padding: 32px;
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.hero-copy h1,
.section-heading h2 {
  margin: 0;
  font-family: "Iowan Old Style", "Palatino Linotype", serif;
  line-height: 1.02;
  text-wrap: balance;
}

.hero-copy h1 {
  max-width: 12ch;
  font-size: clamp(2.6rem, 6vw, 5.3rem);
}

.hero-text {
  max-width: 38rem;
  margin: 18px 0 0;
  font-size: 1.08rem;
  line-height: 1.75;
}

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

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 800;
}

.button-primary {
  background: var(--accent);
  color: var(--accent-contrast);
}

.button-secondary {
  border: 1px solid var(--line);
  background: var(--surface);
}

.inline-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 700;
}
.contact-card {
  border-radius: var(--radius-lg);
}

.section {
  margin-top: 22px;
  border-radius: var(--radius-xl);
  padding: 30px;
}

.section-heading {
  max-width: 48rem;
}

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

.section-heading p,
.contact-card p {
  font-size: 1rem;
  line-height: 1.8;
}

.policy-layout > * {
  min-width: 0;
}
.contact-card p {
  margin: 0;
}

.contact-section {
  display: grid;
  gap: 24px;
}

.contact-card {
  display: grid;
  gap: 10px;
  padding: 28px;
}

.contact-mail {
  width: fit-content;
  font-size: clamp(1.35rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--accent);
  text-decoration: none;
  word-break: break-word;
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 6px 8px;
}

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

.footer-brand p {
  margin: 4px 0 0;
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 14px;
}

.nav a.is-current {
  color: var(--accent);
}

.legal-hero {
  padding: 34px;
  border-radius: var(--radius-xl);
}

.legal-hero h1,
.policy-section h2 {
  margin: 0;
  font-family: "Iowan Old Style", "Palatino Linotype", serif;
  line-height: 1.08;
  text-wrap: balance;
}

.legal-hero h1 {
  max-width: 14ch;
  font-size: clamp(2.3rem, 5vw, 4.4rem);
}

.legal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 20px;
  margin-top: 24px;
  color: var(--muted);
  font-weight: 600;
}

.policy-layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 22px;
  margin-top: 22px;
}

.policy-toc,
.policy-article {
  padding: 28px;
  border-radius: var(--radius-xl);
}

.policy-toc {
  position: sticky;
  top: 20px;
  align-self: start;
  display: grid;
  gap: 12px;
}

.policy-toc a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  line-height: 1.5;
}

.policy-article {
  display: grid;
  gap: 28px;
}

.policy-section {
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.policy-section:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.policy-section h2 {
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  margin-bottom: 14px;
}

.policy-section p {
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.85;
}

.policy-list {
  margin: 0 0 14px;
  padding-left: 20px;
  color: var(--muted);
}

.policy-list li {
  margin-bottom: 10px;
  line-height: 1.75;
}

@media (max-width: 980px) {
  .hero,
  .policy-layout {
    grid-template-columns: 1fr;
  }

  .policy-toc {
    position: static;
  }
}

@media (max-width: 760px) {
  .page-shell {
    width: min(100% - 18px, 1180px);
    padding-top: 14px;
  }

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

  .nav,
  .footer-meta {
    justify-content: flex-start;
  }

  .hero,
  .section,
  .contact-card,
  .legal-hero,
  .policy-toc,
  .policy-article {
    padding: 22px;
  }
}

@media (max-width: 560px) {
  .brand {
    width: 100%;
  }

  .brand-badge {
    width: 50px;
    height: 50px;
    border-radius: 16px;
    font-size: 1.35rem;
  }

  .nav,
  .footer-meta {
    width: 100%;
    gap: 12px 16px;
  }

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

  .button {
    width: 100%;
  }

  .section-heading h2,
  .policy-section h2 {
    text-wrap: pretty;
  }
}
