/* Loiu92 Email MCP — navy/ivory, Swiss-grid inspired, zero dependencies */

:root {
  --navy-deep: #061221;
  --ink: #0b1d36;
  --ink-70: rgba(11, 29, 54, 0.72);
  --ink-45: rgba(11, 29, 54, 0.66);
  --ivory: #f7f3ea;
  --ivory-card: #fffdf8;
  --line: rgba(11, 29, 54, 0.14);
  --line-strong: rgba(11, 29, 54, 0.28);
  --ivory-on-navy: #f4efe4;
  --ivory-on-navy-70: rgba(244, 239, 228, 0.72);
  --ivory-on-navy-45: rgba(244, 239, 228, 0.62);
  --radius: 14px;
  --space: 8px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  font-family: system-ui, -apple-system, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
}

.container {
  width: 100%;
  max-width: 1064px;
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 40px);
}

/* ---------- accessibility ---------- */

.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 10;
  padding: 10px 16px;
  background: var(--ivory);
  color: var(--ink);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  transition: top 120ms ease;
}
.skip-link:focus { top: 12px; }

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  border-radius: 4px;
}
.site-footer :focus-visible,
.site-header :focus-visible { outline-color: var(--ivory-on-navy); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

/* ---------- header ---------- */

.site-header {
  background: var(--navy-deep);
  color: var(--ivory-on-navy);
  border-bottom: 1px solid rgba(244, 239, 228, 0.12);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-block: 14px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
  min-width: 0;
}
.brand img {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  display: block;
  flex: none;
}
.brand-name {
  font-size: 1rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.brand-tag {
  display: block;
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ivory-on-navy-45);
}

.site-nav ul {
  display: flex;
  gap: 4px;
  list-style: none;
}
.site-nav a {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 10px;
  color: var(--ivory-on-navy-70);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: background 120ms ease, color 120ms ease;
}
.site-nav a:hover { color: var(--ivory-on-navy); background: rgba(244, 239, 228, 0.08); }
.site-nav a[aria-current="page"] { color: var(--ivory-on-navy); background: rgba(244, 239, 228, 0.14); }

/* ---------- hero ---------- */

.hero { padding-block: clamp(48px, 9vw, 104px); }

.hero .container {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(32px, 6vw, 72px);
  align-items: center;
}

.kicker {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-45);
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(2.35rem, 5.5vw, 3.55rem);
  font-weight: 650;
  line-height: 1.08;
  letter-spacing: -0.025em;
  text-wrap: balance;
  margin-bottom: 20px;
}

.hero-lede {
  font-size: 1.16rem;
  color: var(--ink-70);
  max-width: 56ch;
  text-wrap: pretty;
}

.hero-art { display: grid; place-items: center; }
.hero-art img {
  width: min(100%, 380px);
  height: auto;
  border-radius: 26px;
  box-shadow: 0 24px 60px -24px rgba(6, 18, 33, 0.55), 0 4px 14px rgba(6, 18, 33, 0.18);
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}
.badge {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 7px 14px;
  background: var(--ivory-card);
}

/* ---------- sections ---------- */

.section { padding-block: clamp(40px, 7vw, 72px); }
.section + .section { padding-top: 0; }

.section > .container > h2 {
  font-size: clamp(1.5rem, 3vw, 1.9rem);
  font-weight: 650;
  letter-spacing: -0.02em;
  text-wrap: balance;
  margin-bottom: 10px;
}
.section > .container > .section-sub {
  color: var(--ink-70);
  max-width: 62ch;
  margin-bottom: 32px;
  text-wrap: pretty;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.card {
  background: var(--ivory-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
}
.card h3 {
  font-size: 1.05rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}
.card p {
  font-size: 0.95rem;
  color: var(--ink-70);
  text-wrap: pretty;
}

.card-link {
  color: inherit;
  text-decoration: none;
}

.callout {
  background: var(--ivory-card);
  border: 1px solid var(--line);
  border-left: 3px solid var(--navy-deep);
  border-radius: var(--radius);
  padding: 26px 28px;
  max-width: 76ch;
}
.callout h3 {
  font-size: 1.05rem;
  font-weight: 650;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.callout p { color: var(--ink-70); font-size: 0.97rem; }
.callout p + p { margin-top: 10px; }

/* ---------- legal pages ---------- */

.legal-hero { padding-block: clamp(44px, 8vw, 80px) 0; }
.legal-hero h1 {
  font-size: clamp(2rem, 4.5vw, 2.8rem);
  font-weight: 650;
  letter-spacing: -0.025em;
  line-height: 1.12;
  text-wrap: balance;
  margin-bottom: 12px;
}
.legal-hero .updated {
  font-size: 0.85rem;
  color: var(--ink-45);
  margin-bottom: 8px;
}
.legal-hero .legal-lede {
  color: var(--ink-70);
  max-width: 62ch;
  text-wrap: pretty;
}

.doc { padding-block: clamp(32px, 6vw, 56px) clamp(56px, 9vw, 96px); }
.doc article { max-width: 72ch; }
.doc h2 {
  font-size: 1.25rem;
  font-weight: 650;
  letter-spacing: -0.015em;
  margin-block: 36px 12px;
}
.doc h2:first-child { margin-top: 0; }
.doc p { color: var(--ink-70); text-wrap: pretty; }
.doc p + p { margin-top: 12px; }
.doc ul { margin: 12px 0 12px 22px; color: var(--ink-70); }
.doc li + li { margin-top: 6px; }
.doc strong { color: var(--ink); font-weight: 600; }
.doc a { color: var(--ink); font-weight: 500; text-underline-offset: 3px; }
.doc a:hover { text-decoration-thickness: 2px; }

.notice {
  background: var(--ivory-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-block: 20px;
}
.notice p { font-size: 0.95rem; }
.notice p + p { margin-top: 8px; }

/* ---------- footer ---------- */

.site-footer {
  background: var(--navy-deep);
  color: var(--ivory-on-navy);
  border-top: 1px solid rgba(244, 239, 228, 0.12);
  padding-block: 44px 36px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: clamp(24px, 5vw, 56px);
  margin-bottom: 36px;
}
.footer-grid h2 {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ivory-on-navy-45);
  margin-bottom: 14px;
}
.footer-grid p { color: var(--ivory-on-navy-70); font-size: 0.92rem; max-width: 40ch; }
.footer-grid ul { list-style: none; }
.footer-grid li + li { margin-top: 8px; }
.footer-grid a {
  color: var(--ivory-on-navy-70);
  text-decoration: none;
  font-size: 0.92rem;
}
.footer-grid a:hover { color: var(--ivory-on-navy); text-decoration: underline; text-underline-offset: 3px; }

.footer-note {
  border-top: 1px solid rgba(244, 239, 228, 0.1);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--ivory-on-navy-45);
  font-size: 0.82rem;
}

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  .card-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  .hero-art img { width: min(64%, 300px); }
  .card-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .site-header .container { justify-content: center; }
  .site-nav { width: 100%; }
  .site-nav ul { justify-content: center; flex-wrap: wrap; }
}
