:root {
  --bg: #fbfaf7;
  --surface: #ffffff;
  --text: #1f2328;
  --muted: #5b6470;
  --line: #e6e2da;
  --accent: #d9481f;
  --accent-soft: #fff1ea;
  --radius: 14px;
  --max: 760px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #15171a;
    --surface: #1d2024;
    --text: #e9e6e1;
    --muted: #a3a9b2;
    --line: #2c3036;
    --accent: #ff7a4d;
    --accent-soft: #2a1e19;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Segoe UI", Roboto, "Noto Sans KR", sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

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

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 16px;
}

header.site {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

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

.brand {
  font-weight: 700;
  font-size: 18px;
  color: var(--text);
  text-decoration: none;
}

nav.site a {
  margin-left: 16px;
  color: var(--muted);
  text-decoration: none;
  font-size: 15px;
}

nav.site a:first-child { margin-left: 0; }
nav.site a[aria-current="page"] { color: var(--text); font-weight: 600; }

main { padding: 32px 0 48px; }

h1 { font-size: 28px; line-height: 1.3; margin: 0 0 8px; }
h2 { font-size: 20px; margin: 36px 0 8px; }
h3 { font-size: 17px; margin: 24px 0 4px; }

.lead { color: var(--muted); margin: 0 0 24px; }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  margin: 16px 0;
}

.contact {
  background: var(--accent-soft);
  border-color: transparent;
}

.contact .email {
  font-size: 20px;
  font-weight: 700;
  word-break: break-all;
}

ul, ol { padding-left: 22px; }
li { margin: 4px 0; }

.links { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }

.button {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
}

.button.primary { background: var(--accent); border-color: var(--accent); color: #fff; }

.meta { color: var(--muted); font-size: 14px; }

footer.site {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

footer.site .wrap {
  padding-top: 20px;
  padding-bottom: 32px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
