:root {
  color-scheme: light dark;
  --accent: #8f4f78;
  --background: #fffafc;
  --card: #ffffff;
  --foreground: #241c22;
  --muted: #6f626b;
  --border: #eadde5;
  --link: #7b315e;
  --accent-text: #8f4f78;
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #171216;
    --card: #211a1f;
    --foreground: #f8edf4;
    --muted: #c8b8c2;
    --border: #493740;
    --link: #f0a8d2;
    --accent-text: #f0a8d2;
  }
}

* {
  box-sizing: border-box;
}

html {
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic",
    sans-serif;
  line-height: 1.75;
}

body {
  background: var(--background);
  color: var(--foreground);
  margin: 0;
}

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

header,
main,
footer {
  margin: 0 auto;
  max-width: 880px;
  padding: 24px;
}

header {
  align-items: center;
  display: flex;
  gap: 20px;
  justify-content: space-between;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

h1,
h2,
h3 {
  line-height: 1.35;
}

h1 {
  font-size: clamp(2rem, 8vw, 4rem);
  letter-spacing: -0.04em;
  margin-bottom: 8px;
}

h2 {
  margin-top: 2.5rem;
}

.eyebrow {
  color: var(--accent-text);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lead {
  color: var(--muted);
  font-size: 1.15rem;
}

.card,
.notice {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  margin: 24px 0;
  padding: 20px;
}

.grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.button {
  background: var(--accent);
  border-radius: 999px;
  color: white;
  display: inline-block;
  font-weight: 700;
  padding: 10px 18px;
  text-decoration: none;
}

dt {
  font-weight: 700;
  margin-top: 12px;
}

dd {
  margin-left: 0;
}

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

code {
  overflow-wrap: anywhere;
}

@media (max-width: 620px) {
  header {
    align-items: flex-start;
    flex-direction: column;
  }
}
