:root {
  color-scheme: dark;
  --background: #0d0d0f;
  --surface: #151518;
  --text: #f2eee6;
  --muted: #a9a39a;
  --faint: #74706a;
  --line: #28272a;
  --gold: #d4af37;
  --gold-soft: #b99736;
  --content: 1120px;
  --reading: 760px;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--background);
  scroll-behavior: smooth;
}

body {
  min-width: 280px;
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: Inter, Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.75;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration-color: rgba(212, 175, 55, 0.52);
  text-underline-offset: 4px;
}

a:hover {
  color: var(--gold);
}

a:focus-visible {
  border-radius: 4px;
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}

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

.header-inner,
.site-footer,
.home-main {
  width: min(calc(100% - 48px), var(--content));
  margin-inline: auto;
}

.header-inner {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 16px;
  font-weight: 650;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand-mark {
  width: 15px;
  height: 15px;
  display: inline-block;
  border: 1px solid var(--gold-soft);
  border-radius: 50%;
  position: relative;
}

.brand-mark::after {
  content: "";
  width: 3px;
  height: 3px;
  border-radius: 50%;
  position: absolute;
  top: 5px;
  left: 5px;
  background: var(--gold);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

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

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

.hero {
  min-height: 440px;
  padding: 112px 0 96px;
  display: grid;
  align-content: center;
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--gold);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(38px, 6vw, 60px);
  font-weight: 620;
  line-height: 1.12;
  letter-spacing: -0.045em;
}

.hero-copy {
  max-width: 590px;
  margin: 26px 0 0;
  color: var(--muted);
  font-size: 16px;
}

.principles,
.features {
  padding: 72px 0;
  border-bottom: 1px solid var(--line);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(160px, 0.7fr) minmax(0, 1.5fr);
  gap: 56px;
}

.section-heading h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 580;
  letter-spacing: -0.025em;
}

.section-heading p {
  max-width: 650px;
  margin: 0;
  color: var(--muted);
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 44px;
  border-top: 1px solid var(--line);
}

.feature-item {
  min-height: 126px;
  padding: 22px 18px 20px 0;
  border-bottom: 1px solid var(--line);
}

.feature-item:nth-child(-n + 4) {
  border-bottom-color: var(--line);
}

.feature-item strong {
  display: block;
  margin-bottom: 5px;
  font-size: 14px;
  font-weight: 580;
}

.feature-item span {
  color: var(--muted);
  font-size: 13px;
}

.home-note {
  padding: 72px 0 88px;
}

.home-note p {
  max-width: 650px;
  margin: 0;
  color: var(--muted);
}

.site-footer {
  min-height: 132px;
  padding: 36px 0 44px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
  color: var(--faint);
  font-size: 12px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px 22px;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
}

.document-main {
  width: min(calc(100% - 48px), var(--reading));
  min-height: calc(100vh - 200px);
  margin-inline: auto;
  padding: 72px 0 100px;
}

.document-header {
  padding-bottom: 34px;
  border-bottom: 1px solid var(--line);
}

.document-header h1 {
  margin: 0;
  font-size: clamp(28px, 5vw, 36px);
  font-weight: 610;
  line-height: 1.3;
  letter-spacing: -0.035em;
}

.document-lead,
.document-meta {
  color: var(--muted);
}

.document-lead {
  margin: 18px 0 0;
  font-size: 15px;
}

.document-meta {
  margin: 12px 0 0;
  font-size: 12px;
}

.document-section {
  padding-top: 34px;
}

.document-section h2 {
  margin: 0 0 12px;
  color: var(--text);
  font-size: 16px;
  font-weight: 620;
  letter-spacing: -0.015em;
}

.document-section h3 {
  margin: 24px 0 8px;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
}

.document-section p,
.document-section li {
  color: #bbb5ac;
}

.document-section p {
  margin: 0 0 12px;
}

.document-section ul,
.document-section ol {
  margin: 10px 0 0;
  padding-left: 22px;
}

.document-section li + li {
  margin-top: 6px;
}

.notice {
  margin-top: 30px;
  padding: 16px 0 16px 18px;
  border-left: 2px solid var(--gold-soft);
  color: var(--muted);
}

.notice strong {
  color: var(--text);
}

.inline-link {
  color: var(--gold);
}

@media (max-width: 760px) {
  .header-inner,
  .site-footer,
  .home-main,
  .document-main {
    width: min(calc(100% - 36px), var(--content));
  }

  .header-inner {
    min-height: 62px;
    align-items: flex-start;
    padding: 19px 0 15px;
  }

  .site-nav {
    justify-content: flex-end;
    gap: 8px 15px;
    flex-wrap: wrap;
  }

  .site-nav a {
    font-size: 12px;
  }

  .hero {
    min-height: 390px;
    padding: 84px 0 72px;
  }

  .principles,
  .features {
    padding: 54px 0;
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .feature-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 0 18px;
    margin-top: 34px;
  }

  .feature-item {
    min-height: 116px;
  }

  .document-main {
    padding: 52px 0 78px;
  }

  .site-footer {
    min-height: 0;
    flex-direction: column;
    padding: 30px 0 38px;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 430px) {
  .header-inner {
    display: block;
  }

  .site-nav {
    justify-content: flex-start;
    margin-top: 13px;
  }

  .feature-list {
    grid-template-columns: 1fr;
  }

  .feature-item {
    min-height: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
