:root {
  --bg: #f6f1eb;
  --surface: #fffaf5;
  --ink: #2a211c;
  --muted: #6a5a50;
  --line: #e8dbce;
  --accent: #8d3d2f;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", "Noto Sans KR", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, #fff6ef 0, transparent 30%),
    linear-gradient(180deg, #f8f3ee 0%, var(--bg) 100%);
  line-height: 1.65;
}

.shell {
  width: min(960px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0 64px;
}

.hero {
  padding: 40px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: 0 12px 30px rgba(68, 41, 28, 0.06);
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.85rem;
}

h1 {
  margin: 0 0 16px;
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.1;
}

h2 {
  margin-top: 32px;
  margin-bottom: 12px;
  font-size: 1.25rem;
}

.lead {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
}

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

.button,
.button:visited {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--accent);
  color: white;
  text-decoration: none;
  font-weight: 700;
}

.button-secondary,
.button-secondary:visited {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}

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

.card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: 0 10px 24px rgba(68, 41, 28, 0.04);
}

.text-link,
.text-link:visited,
a {
  color: var(--accent);
}

.document {
  padding-top: 32px;
}

.document p,
.document li {
  max-width: 780px;
}

.back-link {
  display: inline-block;
  margin-bottom: 16px;
  text-decoration: none;
}

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

@media (max-width: 640px) {
  .shell {
    width: min(100% - 20px, 960px);
    padding: 24px 0 40px;
  }

  .hero,
  .card {
    padding: 22px;
  }
}
