:root {
  color-scheme: light;
  --bg: #2a0f33;
  --paper: #fff8ea;
  --text: #24152b;
  --muted: #725f78;
  --line: rgba(36, 21, 43, 0.14);
  --accent: #55f0c3;
  --accent-strong: #8b245b;
  font-family:
    ui-rounded, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  background:
    radial-gradient(circle at top left, rgba(85, 240, 195, 0.2), transparent 28rem),
    linear-gradient(180deg, #2a0f33 0%, #461b4c 52%, #fff2d6 100%);
  color: var(--text);
  margin: 0;
}

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

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

.site-header {
  align-items: center;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  padding-bottom: 32px;
  padding-top: 28px;
}

.brand {
  align-items: center;
  display: inline-flex;
  gap: 10px;
  font-weight: 800;
  text-decoration: none;
}

.brand-mark {
  align-items: center;
  background: var(--accent);
  border-radius: 14px;
  color: #2a0f33;
  display: inline-flex;
  font-family: Georgia, "Times New Roman", serif;
  height: 34px;
  justify-content: center;
  width: 34px;
}

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

nav a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.paper {
  background: rgba(255, 248, 234, 0.95);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 24px 70px rgba(47, 41, 38, 0.10);
  padding: 34px;
}

.eyebrow {
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  margin: 0 0 12px;
  text-transform: uppercase;
}

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

h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 44px;
  margin: 0 0 16px;
}

h2 {
  font-size: 24px;
  margin: 36px 0 12px;
}

h3 {
  font-size: 18px;
  margin: 24px 0 8px;
}

p,
li {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
}

ul,
ol {
  padding-left: 22px;
}

.notice {
  background: #fffdf8;
  border: 1px solid rgba(139, 36, 91, 0.22);
  border-radius: 16px;
  color: #60403e;
  font-size: 15px;
  margin: 22px 0;
  padding: 14px 16px;
}

.card-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-top: 24px;
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
  text-decoration: none;
}

.card strong {
  color: var(--text);
  display: block;
  margin-bottom: 6px;
}

.site-footer {
  color: var(--muted);
  font-size: 14px;
  padding-bottom: 34px;
  padding-top: 28px;
}

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

  nav {
    justify-content: flex-start;
  }

  .paper {
    padding: 24px;
  }

  h1 {
    font-size: 34px;
  }
}
