:root {
  --bg: #f4efe7;
  --bg-strong: #e7dccd;
  --surface: rgba(255, 252, 247, 0.86);
  --surface-strong: #fffaf2;
  --border: rgba(72, 52, 32, 0.16);
  --text: #1f1a17;
  --muted: #5f544b;
  --accent: #a14b24;
  --accent-deep: #6d2f16;
  --shadow: 0 24px 60px rgba(54, 38, 20, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(161, 75, 36, 0.18), transparent 30%),
    radial-gradient(circle at top right, rgba(125, 90, 62, 0.14), transparent 28%),
    linear-gradient(180deg, #f8f3ec 0%, var(--bg) 100%);
  font-family: "Avenir Next", "Segoe UI", sans-serif;
}

a {
  color: inherit;
}

code {
  font-family: "SFMono-Regular", "Menlo", monospace;
  font-size: 0.95em;
}

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

.hero,
.page-header {
  position: relative;
  overflow: hidden;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 32px;
  background:
    linear-gradient(135deg, rgba(255, 249, 242, 0.96), rgba(240, 229, 214, 0.86)),
    var(--surface);
  box-shadow: var(--shadow);
}

.hero {
  min-height: 68vh;
}

.page-header {
  min-height: 320px;
}

.hero::after,
.page-header::after {
  content: "";
  position: absolute;
  inset: auto -120px -120px auto;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: rgba(161, 75, 36, 0.09);
  filter: blur(8px);
}

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

.hero-body {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.8fr);
  gap: 28px;
  align-items: end;
  margin-top: 44px;
}

.brand {
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", serif;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
}

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

.nav-links a {
  color: var(--muted);
  text-decoration: none;
}

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

.hero-copy,
.page-hero {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.hero-copy {
  padding-top: 12px;
}

.hero-panel {
  align-self: end;
}

.eyebrow,
.section-label,
.panel-label,
.contact-label {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  color: var(--muted);
}

h1,
h2,
h3 {
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", serif;
  margin: 0;
  line-height: 1.02;
}

h1 {
  margin-top: 14px;
  font-size: clamp(3rem, 7vw, 5.9rem);
  max-width: 12ch;
}

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

h3 {
  font-size: 1.35rem;
}

p {
  line-height: 1.65;
  color: var(--muted);
}

.lede {
  max-width: 58ch;
  font-size: 1.08rem;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  text-decoration: none;
  transition: transform 180ms ease, background-color 180ms ease, color 180ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  color: #fffaf6;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
}

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

.hero-panel,
.card,
.standard-card,
.contact-card,
.legal-card {
  position: relative;
  z-index: 1;
  border: 1px solid var(--border);
  background: var(--surface);
  backdrop-filter: blur(10px);
  box-shadow: 0 18px 40px rgba(52, 36, 18, 0.06);
}

.hero-panel {
  padding: 24px;
  border-radius: 24px;
}

.snapshot {
  display: grid;
  gap: 16px;
  margin: 18px 0 0;
}

.snapshot dt {
  margin-bottom: 6px;
  font-size: 0.82rem;
  color: var(--muted);
}

.snapshot dd {
  margin: 0;
  font-weight: 600;
  color: var(--text);
}

.section {
  padding: 28px 0 0;
}

.intro-grid,
.support-grid,
.standards-grid,
.legal-layout {
  display: grid;
  gap: 20px;
}

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

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

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

.card,
.standard-card,
.legal-card {
  padding: 28px;
  border-radius: 28px;
}

.section-heading {
  max-width: 700px;
  margin-bottom: 20px;
}

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

.company-card {
  padding: 26px;
  border-radius: 28px;
  border: 1px solid var(--border);
  background: var(--surface-strong);
  box-shadow: 0 16px 38px rgba(61, 43, 23, 0.07);
}

.company-meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
}

.company-type {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 0.8rem;
  color: var(--accent-deep);
  background: rgba(161, 75, 36, 0.1);
}

.company-card p {
  margin-bottom: 0;
}

.company-card a {
  color: var(--accent-deep);
}

.contact-card {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border-radius: 28px;
}

.contact-block {
  padding: 24px;
  background: rgba(255, 251, 245, 0.9);
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 28px;
  padding: 24px;
  border-radius: 24px;
}

.brand-footer {
  display: inline-block;
  margin-bottom: 8px;
}

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

.page-shell .section:first-of-type {
  padding-top: 36px;
}

.notice-banner {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(161, 75, 36, 0.22);
  background: rgba(161, 75, 36, 0.08);
  color: var(--accent-deep);
}

@media (max-width: 940px) {
  .hero-body,
  .intro-grid,
  .support-grid,
  .standards-grid,
  .legal-layout,
  .company-grid,
  .contact-card {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

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

@media (max-width: 640px) {
  .site-shell {
    width: min(100% - 20px, 1180px);
    padding-top: 10px;
  }

  .hero,
  .page-header,
  .card,
  .standard-card,
  .legal-card,
  .company-card,
  .contact-block,
  .footer {
    border-radius: 22px;
  }

  .hero,
  .page-header {
    padding: 18px;
  }

  h1 {
    max-width: 10ch;
  }
}
