:root {
  color-scheme: light dark;
  --background: #fff7e9;
  --surface: #fffdf8;
  --raised: #f7eadb;
  --ink: #211b17;
  --muted: #6c5d53;
  --accent: #e86140;
  --border: #d9bcaa;
  --shadow: rgba(45, 30, 20, 0.10);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  font-synthesis: none;
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #13110f;
    --surface: #211d1a;
    --raised: #2e2925;
    --ink: #faf3e8;
    --muted: #b9aca1;
    --accent: #ff805c;
    --border: #5a4e46;
    --shadow: rgba(0, 0, 0, 0.32);
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--background);
  color: var(--ink);
  line-height: 1.58;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); }

.site-header,
main,
footer {
  width: min(1080px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  font-size: 1.08rem;
  font-weight: 750;
  text-decoration: none;
}

.brand img {
  border-radius: 11px;
  border: 1px solid var(--border);
}

nav { display: flex; gap: 8px; }

nav a {
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.93rem;
  font-weight: 650;
  text-decoration: none;
}

nav a:hover,
nav a[aria-current="page"] {
  background: var(--raised);
  color: var(--ink);
}

.hero {
  padding: clamp(64px, 11vw, 124px) 0 80px;
  max-width: 820px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

h1,
h2,
h3 {
  margin-top: 0;
  line-height: 1.12;
  letter-spacing: -0.025em;
}

h1 {
  margin-bottom: 18px;
  font-size: clamp(3rem, 8vw, 5.7rem);
  letter-spacing: -0.055em;
}

h2 { font-size: clamp(1.8rem, 4vw, 2.7rem); }
h3 { margin-bottom: 8px; font-size: 1.18rem; }

.lede {
  margin: 0;
  max-width: 740px;
  color: var(--muted);
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: 0 21px;
  border: 1px solid var(--border);
  border-radius: 14px;
  font-weight: 750;
  text-decoration: none;
  transition: transform 120ms ease, opacity 120ms ease;
}

.button:hover { transform: translateY(-1px); }
.button.primary { background: var(--accent); border-color: var(--accent); color: white; }
.button.secondary { background: var(--surface); color: var(--ink); }

.section { padding: 54px 0; }
.section-heading { margin-bottom: 24px; }
.section-heading h2 { margin-bottom: 0; }

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

.card,
.notice,
.contact-panel {
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: 0 16px 40px var(--shadow);
}

.card {
  padding: 25px;
  border-radius: 20px;
}

.card p { margin: 0; color: var(--muted); }

.contact-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  margin-block: 64px 80px;
  padding: clamp(26px, 5vw, 44px);
  border-radius: 26px;
}

.contact-panel h2 { margin-bottom: 10px; }
.contact-panel p { max-width: 660px; margin: 0; color: var(--muted); }
.contact-panel .button { flex: 0 0 auto; }

.document {
  max-width: 820px;
  padding: 72px 0 96px;
}

.document h1 { font-size: clamp(2.8rem, 7vw, 4.8rem); }
.document section { padding-top: 34px; }
.document section h2 { margin-bottom: 12px; font-size: 1.55rem; }
.document section h3 { margin-top: 24px; }
.document section p,
.document section li { color: var(--muted); }
.document ul { padding-left: 1.35rem; }
.document code { color: var(--ink); }

.notice {
  margin: 34px 0 12px;
  padding: 22px 24px;
  border-radius: 18px;
  color: var(--muted);
}

.notice strong { color: var(--ink); }

footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 28px 0 42px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.9rem;
}

footer a { color: var(--muted); }

@media (max-width: 680px) {
  .site-header {
    align-items: flex-start;
    padding-block: 18px;
  }

  nav { gap: 2px; }
  nav a { padding: 7px 8px; font-size: 0.83rem; }
  .brand span { display: none; }
  .hero { padding-top: 52px; }
  .card-grid { grid-template-columns: 1fr; }
  .contact-panel { align-items: stretch; flex-direction: column; }
  footer { flex-direction: column; }
}

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