:root {
  color-scheme: light dark;
  --canvas: #fff8f0;
  --raised: #fffdf9;
  --ink: #071c2c;
  --accent: #e85d4a;
  --line: rgba(7, 28, 44, 0.16);
  --muted: #4c5a63;
}

* { box-sizing: border-box; }

html { font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  line-height: 1.6;
}

a { color: inherit; text-underline-offset: 0.2em; }
a:hover { color: var(--accent); }

.shell { width: min(100% - 40px, 860px); margin-inline: auto; }

header {
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--canvas) 92%, transparent);
}

nav {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 750; text-decoration: none; }
.brand img { width: 42px; height: 42px; border-radius: 10px; }
.links { display: flex; flex-wrap: wrap; gap: 18px; font-size: 0.94rem; font-weight: 650; }

main { padding-block: 72px 96px; }
.hero { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 42px; }
.hero img { width: clamp(150px, 26vw, 230px); border-radius: 24%; }
.eyebrow { margin: 0 0 10px; font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 800; }
h1, h2 { font-family: ui-serif, Georgia, serif; line-height: 1.08; letter-spacing: -0.025em; }
h1 { margin: 0; font-size: clamp(2.5rem, 7vw, 5.3rem); }
h2 { margin: 0 0 12px; font-size: clamp(1.6rem, 4vw, 2.45rem); }
.lede { max-width: 650px; margin: 22px 0 0; font-size: 1.14rem; color: var(--muted); }

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; padding: 10px 18px; border-radius: 14px; border: 1px solid var(--ink); font-weight: 750; text-decoration: none; }
.button.primary { background: var(--ink); color: var(--canvas); }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 64px; }
.card, .legal-section { padding: 24px; border: 1px solid var(--line); border-radius: 20px; background: var(--raised); }
.card h2 { font-family: inherit; font-size: 1.08rem; letter-spacing: 0; }
.card p, .legal-section p { margin: 8px 0 0; color: var(--muted); }

.document { max-width: 760px; }
.document > p { color: var(--muted); }
.legal-section { margin-top: 18px; }
.legal-section h2 { font-family: inherit; font-size: 1.18rem; letter-spacing: 0; }
.notice { margin-top: 42px; padding-left: 18px; border-left: 4px solid var(--accent); color: var(--muted); }

footer { padding-block: 32px 48px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.9rem; }

@media (max-width: 680px) {
  .links { gap: 12px; }
  .hero { grid-template-columns: 1fr; }
  .hero img { order: -1; width: 120px; }
  .grid { grid-template-columns: 1fr; }
  main { padding-block: 48px 72px; }
}

@media (prefers-color-scheme: dark) {
  :root {
    --canvas: #071c2c;
    --raised: #112b3c;
    --ink: #fff8f0;
    --accent: #e85d4a;
    --line: rgba(255, 248, 240, 0.18);
    --muted: #d9d5cf;
  }
}
