/* RE:BOM — warm cream + deep teal, serif display, AAA contrast.
   Contrast on #faf9f6: #1a1a1a 16.5:1, #4a4a45 8.5:1, #10534f 8.4:1.
   On tint #eef4f2: #10534f 8.0:1, #4a4a45 8.0:1.
   On dark #0c3936: #faf9f6 12.1:1, #cfe3de 9.5:1. White on #10534f 8.9:1. */

:root {
  --bg: #faf9f6;
  --tint: #eef4f2;
  --ink: #1a1a1a;
  --muted: #4a4a45;
  --accent: #10534f;
  --accent-hover: #0b3f3c;
  --dark: #0c3936;
  --dark-soft: #cfe3de;
  --line: #dde5e2;
  --serif: "Noto Serif KR", "Apple SD Gothic Neo", serif;
  --sans: "Apple SD Gothic Neo", "Pretendard", "Noto Sans KR", -apple-system, sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.7;
  word-break: keep-all;
}

h1, h2 {
  font-family: var(--serif);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -0.01em;
}

h3 {
  line-height: 1.4;
}

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

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

.section-dark a:focus-visible {
  outline-color: var(--bg);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: #fff;
  padding: 0.75rem 1.25rem;
  z-index: 100;
}

.skip-link:focus {
  left: 0;
}

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

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  max-width: 64rem;
  margin: 0 auto;
  padding: 0.9rem 1.25rem;
}

.brand {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--ink);
  text-decoration: none;
}

.brand-en {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  color: var(--accent);
  margin-left: 0.3rem;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: none;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.45rem 0.8rem;
  font-size: 0.9rem;
  color: var(--ink);
  cursor: pointer;
}

.nav-toggle-bar {
  display: inline-block;
  width: 1rem;
  height: 2px;
  background: var(--ink);
  box-shadow: 0 5px 0 var(--ink), 0 -5px 0 var(--ink);
}

.nav-menu {
  display: none;
  list-style: none;
  width: 100%;
  padding-top: 0.75rem;
}

.nav-menu.open {
  display: block;
}

.nav-menu a {
  display: block;
  padding: 0.7rem 0.25rem;
  color: var(--ink);
  text-decoration: none;
  border-top: 1px solid var(--line);
  font-size: 1rem;
}

.nav-menu a:hover {
  color: var(--accent);
}

.nav-parent {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
}

/* Hero */
.hero {
  max-width: 64rem;
  margin: 0 auto;
  padding: 4.5rem 1.25rem 4.5rem;
  text-align: center;
}

.eyebrow {
  font-size: 0.85rem;
  letter-spacing: 0.16em;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 1.1rem;
}

.hero h1 {
  font-size: clamp(2.2rem, 7.5vw, 3.6rem);
  margin-bottom: 0.9rem;
}

.hero-en {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.8rem;
  letter-spacing: 0.28em;
  color: var(--muted);
  margin-bottom: 1.75rem;
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 34rem;
  margin: 0 auto 2rem;
}

.badge-row {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 2.25rem;
}

.badge {
  border: 1px solid var(--accent);
  color: var(--accent);
  border-radius: 999px;
  padding: 0.45rem 1.1rem;
  font-size: 0.9rem;
  font-weight: 600;
  background: #fff;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.85rem 1.6rem;
  border-radius: 8px;
  font-size: 1rem;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background-color 0.15s ease, transform 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

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

.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-ghost {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-ghost:hover {
  background: var(--tint);
}

.btn-light {
  background: var(--bg);
  color: var(--accent);
  font-weight: 600;
}

.btn-light:hover {
  background: var(--tint);
}

/* Sections */
.section {
  padding: 4rem 1.25rem;
}

.section > * {
  max-width: 64rem;
  margin-left: auto;
  margin-right: auto;
}

.section .eyebrow,
.section h2 {
  text-align: center;
}

.section h2 {
  font-size: clamp(1.55rem, 5vw, 2.3rem);
  margin-bottom: 1.5rem;
}

.section-lead {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 38rem;
  text-align: center;
}

.section-tint {
  background: var(--tint);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-dark {
  background: var(--dark);
  color: var(--bg);
  text-align: center;
}

.section-dark .eyebrow {
  color: var(--dark-soft);
}

.section-dark .section-lead {
  color: var(--bg);
  margin-bottom: 2.5rem;
}

/* About prose + quote */
.prose {
  max-width: 38rem;
  text-align: center;
  color: var(--muted);
  font-size: 1.05rem;
}

.prose p + p {
  margin-top: 1rem;
}

.quote {
  margin-top: 3rem;
  text-align: center;
}

.quote p {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.35rem, 4.5vw, 1.9rem);
  line-height: 1.6;
  color: var(--accent);
}

.quote p::before {
  content: "“ ";
}

.quote p::after {
  content: " ”";
}

/* Cards */
.card-grid {
  list-style: none;
  display: grid;
  gap: 1rem;
  margin-top: 2.25rem;
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.75rem 1.5rem;
  box-shadow: 0 1px 3px rgba(12, 57, 54, 0.05);
}

.card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.6rem;
  color: var(--accent);
}

.card p {
  color: var(--muted);
  font-size: 0.97rem;
}

/* Promise list */
.promise-list {
  list-style: none;
  max-width: 44rem;
  margin-top: 2.25rem;
  display: grid;
  gap: 1.75rem;
}

.promise-list li {
  display: flex;
  gap: 1.15rem;
  align-items: flex-start;
}

.promise-num {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.5rem;
  line-height: 1.2;
  color: var(--accent);
  min-width: 2.4rem;
}

.promise-list h3 {
  font-size: 1.15rem;
  margin-bottom: 0.35rem;
}

.promise-list p {
  color: var(--muted);
  font-size: 0.98rem;
}

/* Verification steps */
.step-list {
  list-style: none;
  max-width: 22rem;
  margin-top: 0.5rem;
  display: grid;
  gap: 0;
  text-align: left;
}

.step-list li {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
  position: relative;
  padding-left: 1.5rem;
}

.step-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--dark-soft);
  transform: translateY(-50%);
}

.step-list li + li {
  border-top: 1px solid rgba(207, 227, 222, 0.25);
}

.step-tag {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  color: var(--dark-soft);
  min-width: 4.2rem;
}

.step-name {
  font-size: 1.05rem;
  font-weight: 600;
}

/* How grid */
.how-grid {
  list-style: none;
  max-width: 44rem;
  margin-top: 2.25rem;
  display: grid;
  gap: 1.5rem;
}

.how-item h3 {
  font-size: 1.1rem;
  margin: 0.5rem 0 0.35rem;
}

.how-item p {
  color: var(--muted);
  font-size: 0.97rem;
}

/* Footer */
.site-footer {
  background: var(--ink);
  color: #c9c5bc;
  padding: 3rem 1.25rem;
  text-align: center;
}

.footer-brand {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--bg);
  margin-bottom: 0.4rem;
}

.footer-en {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.7rem;
  letter-spacing: 0.24em;
  margin-bottom: 1.5rem;
}

.footer-links {
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.footer-links a {
  color: #c9c5bc;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--bg);
  text-decoration: underline;
}

.footer-links a:focus-visible {
  outline-color: var(--bg);
}

.footer-copy {
  font-size: 0.85rem;
}

/* Desktop */
@media (min-width: 48rem) {
  .nav-toggle {
    display: none;
  }

  .nav-menu {
    display: flex;
    width: auto;
    gap: 1.6rem;
    padding-top: 0;
    align-items: center;
  }

  .nav-menu a {
    border-top: none;
    padding: 0.25rem 0;
    font-size: 0.95rem;
  }

  .hero {
    padding: 7rem 1.5rem 6.5rem;
  }

  .section {
    padding: 5.5rem 1.5rem;
  }

  .card-grid.four {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }

  .promise-list {
    gap: 2rem;
  }

  .step-list {
    max-width: 46rem;
    grid-template-columns: repeat(5, 1fr);
    text-align: center;
    margin-top: 1.5rem;
  }

  .step-list li {
    flex-direction: column;
    gap: 0.5rem;
    padding: 0 0.75rem;
  }

  .step-list li::before {
    position: static;
    transform: none;
    margin-bottom: 0.4rem;
  }

  .step-list li + li {
    border-top: none;
    border-left: 1px solid rgba(207, 227, 222, 0.25);
  }

  .step-tag {
    min-width: 0;
  }

  .step-name {
    font-size: 1rem;
  }

  .how-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem 2.5rem;
    max-width: 52rem;
  }
}
