:root {
  --charcoal: #30332f;
  --sage: #a8b29a;
  --ivory: #f6f1e7;
  --paper: #fffdf8;
  --brass: #8c7339;
  --brass-light: #b99a55;
  --ink: #252724;
  --line: rgba(48, 51, 47, 0.17);
  --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--ivory); font-family: var(--sans); font-size: 16px; line-height: 1.7; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img { display: block; max-width: 100%; }

.skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 100; padding: 0.7rem 1rem; color: var(--ivory); background: var(--charcoal); border-radius: 0.25rem; }
.skip-link:focus { top: 1rem; }

.site-header { position: sticky; top: 0; z-index: 20; color: var(--ivory); background: rgba(48, 51, 47, 0.97); border-bottom: 1px solid rgba(246, 241, 231, 0.12); backdrop-filter: blur(12px); }
.header-inner { width: min(1080px, calc(100% - 2rem)); min-height: 72px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand { display: inline-flex; align-items: center; gap: 0.75rem; text-decoration: none; }
.brand img { width: 40px; height: 40px; border-radius: 50%; }
.brand strong { font-family: var(--serif); font-size: 1rem; font-weight: 500; }
.nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0.7rem 1.25rem; }
.nav a { color: rgba(246, 241, 231, 0.8); font-size: 0.9rem; font-weight: 700; text-decoration: none; }
.nav a[aria-current="page"] { color: var(--brass-light); }

.page-hero { color: var(--ivory); background: linear-gradient(135deg, #282b28, var(--charcoal)); }
.page-hero-inner { width: min(1080px, calc(100% - 2rem)); margin: 0 auto; padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.eyebrow { margin: 0 0 0.85rem; color: var(--brass-light); font-size: 0.76rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.12; }
h1 { max-width: 780px; margin: 0; font-size: clamp(2.9rem, 7vw, 5.6rem); letter-spacing: -0.035em; }
.page-hero p:last-child { max-width: 720px; margin: 1.3rem 0 0; color: rgba(246, 241, 231, 0.72); font-size: 1.05rem; }

.page-shell { width: min(1080px, calc(100% - 2rem)); margin: 0 auto; padding: clamp(3rem, 7vw, 6rem) 0; }
.product-nav { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem; margin-bottom: 2rem; }
.product-nav a { min-height: 62px; padding: 0.9rem 1rem; display: flex; align-items: center; border: 1px solid var(--line); background: var(--paper); font-weight: 800; text-decoration: none; }
.product-nav a:hover { border-color: rgba(140, 115, 57, 0.7); }

.document-section { scroll-margin-top: 92px; margin-top: 1.25rem; padding: clamp(1.4rem, 4vw, 3rem); border: 1px solid var(--line); background: var(--paper); }
.document-section + .document-section { margin-top: 1.5rem; }
.document-section h2 { margin: 0; font-size: clamp(2rem, 4vw, 3.15rem); }
.effective-date { margin: 0.5rem 0 1.8rem; color: rgba(37, 39, 36, 0.6); font-size: 0.9rem; }
.document-section h3 { margin: 2rem 0 0.6rem; color: var(--brass); font-size: 1.35rem; }
.document-section p { max-width: 850px; margin: 0.65rem 0 0; }
.app-store-link { min-height: 48px; margin-top: 0.65rem; padding: 0.72rem 1rem; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--charcoal); border-radius: 999px; color: var(--ivory); background: var(--charcoal); font-weight: 800; line-height: 1.25; text-align: center; text-decoration: none; }
.app-store-link:hover { color: var(--charcoal); background: var(--ivory); }
.document-section ul, .document-section ol { max-width: 820px; margin: 0.7rem 0 0; padding-left: 1.35rem; }
.document-section li + li { margin-top: 0.35rem; }
.notice { margin: 1.5rem 0 0; padding: 1rem 1.15rem; border-left: 3px solid var(--brass-light); background: rgba(168, 178, 154, 0.16); }
.contact-card { margin-top: 2rem; padding: 1.25rem; color: var(--ivory); background: var(--charcoal); }
.contact-card a { color: var(--brass-light); font-weight: 800; }
.site-footer { color: rgba(246, 241, 231, 0.72); background: #252825; }
.footer-inner { width: min(1080px, calc(100% - 2rem)); margin: 0 auto; padding: 2.5rem 0; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem 2rem; }
.footer-inner strong { color: var(--ivory); font-family: var(--serif); font-size: 1.2rem; font-weight: 500; }
.footer-links { display: flex; flex-wrap: wrap; gap: 0.7rem 1rem; }
.footer-links a { font-size: 0.86rem; text-underline-offset: 0.22rem; }
.preview-note { flex-basis: 100%; padding-top: 1rem; border-top: 1px solid rgba(246, 241, 231, 0.12); font-size: 0.78rem; }

a:focus-visible, summary:focus-visible { outline: 3px solid var(--brass-light); outline-offset: 4px; }

@media (max-width: 720px) {
  .header-inner { align-items: flex-start; padding: 0.85rem 0; }
  .brand strong { font-size: 0.9rem; }
  .nav { gap: 0.4rem 0.75rem; }
  .nav a { font-size: 0.82rem; }
  .product-nav { grid-template-columns: 1fr; }
  .page-hero-inner, .page-shell, .footer-inner, .header-inner { width: min(100% - 1.3rem, 1080px); }
  .document-section { padding: 1.25rem; }
}

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