:root {
  --bg: #ffffff;
  --fg: #111111;
  --muted: #666666;
  --border: #e5e5e5;
  --card-hover: #f7f7f7;
  --nav-bg: rgba(255, 255, 255, 0.85);
  --accent: #1a1a1a;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111111;
    --fg: #f2f2f2;
    --muted: #999999;
    --border: #2a2a2a;
    --card-hover: #1c1c1c;
    --nav-bg: rgba(17, 17, 17, 0.85);
    --accent: #f2f2f2;
  }
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

/* ---------- Top navigation ---------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 14px 24px;
  background: var(--nav-bg);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-brand {
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  letter-spacing: -0.01em;
  margin-right: auto;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

.nav-links a,
.nav-links .dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease;
}

.nav-links a:hover,
.nav-links .dropdown-toggle:hover {
  background: var(--card-hover);
}

.nav-links a.active,
.nav-links .dropdown-toggle.active {
  background: var(--card-hover);
  font-weight: 600;
}

.caret {
  font-size: 0.7rem;
  color: var(--muted);
  transition: transform 0.15s ease;
}

/* ---------- Dropdown ---------- */
.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 220px;
  list-style: none;
  margin: 0;
  padding: 6px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
}

.dropdown.open .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown.open .caret {
  transform: rotate(180deg);
}

.dropdown-menu a {
  display: block;
  width: 100%;
  padding: 9px 12px;
  border-radius: 6px;
  font-weight: 500;
}

.dropdown-menu .menu-note {
  display: block;
  padding: 4px 12px 8px;
  color: var(--muted);
  font-size: 0.78rem;
}

/* ---------- Page layout ---------- */
.wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 56px 24px 96px;
}

.page-header { margin-bottom: 36px; }

/* Hero image */
.hero {
  margin: 0 0 28px;
}

/* Wide hero breaks out ~25% past the text column on each side,
   stays centered in the viewport, and never overflows it. */
.hero-wide {
  width: min(1080px, 100vw - 32px);
  position: relative;
  left: 50%;
  transform: translateX(-50%);
}

.hero img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
  border: 1px solid var(--border);
}

/* Links within body prose (e.g. the contact email) */
.prose a,
.tagline a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.prose a:hover,
.tagline a:hover {
  text-decoration-thickness: 2px;
}

h1 {
  font-size: 2rem;
  font-weight: 700;
  margin: 0 0 8px;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 1.3rem;
  font-weight: 600;
  margin: 40px 0 12px;
  letter-spacing: -0.01em;
}

.tagline {
  color: var(--muted);
  font-size: 1.05rem;
  margin: 0;
}

/* ---------- Cards / links ---------- */
.cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 8px;
}

a.card {
  display: block;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 22px;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

a.card:hover {
  background: var(--card-hover);
  border-color: var(--muted);
  transform: translateY(-1px);
}

.card-title {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0 0 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-desc {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0;
}

.card-desc strong {
  color: var(--fg);
}

.arrow {
  margin-left: auto;
  color: var(--muted);
  font-weight: 400;
}

/* Document cards with multiple options */
.doc-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 22px;
  scroll-margin-top: 90px;
}

.options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

a.option {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 9px 14px;
  font-size: 0.95rem;
  font-weight: 500;
  transition: background 0.15s ease, border-color 0.15s ease;
}

a.option:hover {
  background: var(--card-hover);
  border-color: var(--muted);
}

a.option .opt-note {
  color: var(--muted);
  font-weight: 400;
  font-size: 0.82rem;
}

.disclaimer {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.5;
}

/* Placeholder / coming-soon block */
.placeholder {
  border: 1px dashed var(--border);
  border-radius: 12px;
  padding: 36px 24px;
  text-align: center;
  color: var(--muted);
}

.placeholder .tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px 10px;
  margin-bottom: 14px;
}

/* ---------- Footer ---------- */
footer {
  max-width: 720px;
  margin: 0 auto;
  padding: 24px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.85rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 560px) {
  .site-nav { gap: 10px; padding: 12px 16px; }
  .nav-links { gap: 2px; }
  .nav-links a,
  .nav-links .dropdown-toggle { padding: 7px 10px; font-size: 0.9rem; }
  .dropdown-menu { left: auto; right: 0; }
}
