:root {
  --bg: #faf8f6;
  --surface: #ffffff;
  --text: #1a1614;
  --text-secondary: #4a433e;
  --muted: #7a726c;
  --border: #ebe6e1;
  --accent: #5c4033;
  --accent-soft: #f3ebe4;
  --max: 720px;
  --home-max: 880px;
  --pad: 20px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: "Pretendard", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

a:hover {
  opacity: 0.8;
}

.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 16px var(--pad);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
}

.header-inner--wide {
  max-width: var(--home-max);
}

.brand {
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--text);
}

.brand:hover {
  opacity: 1;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  font-size: 0.875rem;
}

.nav a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 500;
}

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

.nav a[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: 4px;
}

main {
  flex: 1;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 32px var(--pad) 64px;
}

.home-main {
  max-width: var(--home-max);
  padding-top: 40px;
  padding-bottom: 72px;
}

h1 {
  margin: 0 0 8px;
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.3;
}

.lead {
  margin: 0 0 32px;
  color: var(--text-secondary);
  font-size: 1rem;
}

h2 {
  margin: 40px 0 12px;
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

h3 {
  margin: 24px 0 8px;
  font-size: 1rem;
  font-weight: 600;
}

p,
ul,
ol {
  margin: 0 0 16px;
  color: var(--text-secondary);
}

ul,
ol {
  padding-left: 1.25rem;
}

li {
  margin-bottom: 6px;
}

li::marker {
  color: var(--muted);
}

.section {
  padding-top: 8px;
  border-top: 1px solid transparent;
}

.section + .section {
  margin-top: 8px;
  padding-top: 8px;
}

.note {
  margin: 24px 0;
  padding: 16px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 0.9375rem;
}

.placeholder {
  display: inline;
  background: #f0ebe6;
  color: var(--text);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.875em;
}

.todo {
  margin: 12px 0 16px;
  padding: 12px 14px;
  border-left: 3px solid #c4b8ae;
  background: var(--accent-soft);
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.todo strong {
  color: var(--text);
  font-weight: 600;
}

.steps {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  counter-reset: step;
}

.steps li {
  counter-increment: step;
  position: relative;
  padding: 12px 0 12px 40px;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 12px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* —— Home (organization site) —— */

.hero {
  margin: 0 0 48px;
  padding: 28px 0 36px;
  border-bottom: 1px solid var(--border);
}

.hero-eyebrow {
  margin: 0 0 12px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--accent);
  text-transform: uppercase;
}

.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.25;
  color: var(--text);
}

.hero-lead {
  margin: 0;
  max-width: 34em;
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--text-secondary);
}

.home-section {
  margin: 0 0 48px;
}

.home-section h2 {
  margin: 0 0 16px;
  font-size: 1.25rem;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.home-section > p {
  max-width: 42em;
}

.feature-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

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

.feature-card h3 {
  margin: 0 0 8px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}

.feature-card p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text-secondary);
}

.official-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.official-links a {
  font-weight: 500;
  text-decoration: none;
  color: var(--accent);
  border-bottom: 1px solid transparent;
}

.official-links a:hover {
  border-bottom-color: var(--accent);
  opacity: 1;
}

.ops {
  padding: 24px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.ops h2 {
  border-bottom: none;
  padding-bottom: 0;
}

.ops-list {
  margin: 0 0 16px;
}

.ops-row {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 8px 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  align-items: baseline;
}

.ops-row:last-child {
  border-bottom: none;
}

.ops-row dt {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
}

.ops-row dd {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text-secondary);
}

.ops-note {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--muted);
}

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 32px var(--pad) 40px;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
}

.footer-inner--wide {
  max-width: var(--home-max);
}

.footer-brand {
  font-weight: 700;
  margin: 0 0 4px;
  font-size: 1rem;
  color: var(--text);
}

.footer-tagline {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 0.875rem;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-bottom: 20px;
  font-size: 0.875rem;
}

.footer-nav a {
  text-decoration: none;
  color: var(--text-secondary);
}

.footer-nav a:hover {
  color: var(--text);
}

.footer-contact {
  margin: 0 0 12px;
  font-size: 0.8125rem;
  color: var(--muted);
}

.footer-copy {
  margin: 0;
  font-size: 0.75rem;
  color: var(--muted);
}

.updated {
  margin-top: 40px;
  font-size: 0.8125rem;
  color: var(--muted);
}

@media (min-width: 640px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .feature-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
}

@media (min-width: 768px) {
  :root {
    --pad: 24px;
  }

  h1 {
    font-size: 2rem;
  }

  main {
    padding-top: 48px;
  }

  .home-main {
    padding-top: 56px;
  }

  .hero {
    padding-top: 36px;
    margin-bottom: 56px;
  }

  .ops-row {
    grid-template-columns: 9rem 1fr;
  }
}

@media (min-width: 900px) {
  .feature-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .feature-card:last-child:nth-child(odd) {
    grid-column: auto;
  }
}
