/*
 * SPDX-License-Identifier: LGPL-2.1-or-later
 * SPDX-FileCopyrightText: Copyright 2026 Yun Chan
 */

:root {
  --ink: #101827;
  --ink-soft: #263249;
  --paper: #f1f3ef;
  --ivory: #fff9ed;
  --jade: #55d6a6;
  --jade-dark: #157f61;
  --line: #c9d0ca;
  --muted: #657064;
  --measure: 74ch;
  color-scheme: light;
  font-family: Pretendard, SUIT, "Noto Sans KR", "Apple SD Gothic Neo", system-ui, sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.7;
  word-break: keep-all;
}

a { color: inherit; text-underline-offset: 0.22em; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, summary:focus-visible {
  outline: 3px solid var(--jade-dark);
  outline-offset: 4px;
}

.shell { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }

.site-header {
  position: relative;
  z-index: 10;
  border-bottom: 1px solid rgb(255 249 237 / 18%);
  color: var(--ivory);
  background: var(--ink);
}

.nav {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 760;
  letter-spacing: -0.03em;
}

.brand img { width: 38px; height: 38px; border-radius: 9px; }
.brand small { color: var(--jade); font: 600 10px/1.2 Consolas, monospace; letter-spacing: 0.12em; }

.nav-links { display: flex; align-items: center; gap: clamp(16px, 3vw, 34px); }
.nav-links a { text-decoration: none; font-size: 14px; color: rgb(255 249 237 / 76%); }
.nav-links a[aria-current="page"], .nav-links a:hover { color: var(--jade); }

.hero {
  color: var(--ivory);
  background: var(--ink);
  border-bottom: 1px solid #23324c;
}

.hero-grid {
  min-height: 650px;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.65fr);
  gap: clamp(50px, 8vw, 120px);
  align-items: center;
  padding-block: 92px 104px;
}

.eyebrow {
  margin: 0 0 28px;
  color: var(--jade);
  font: 700 12px/1.4 Consolas, "SFMono-Regular", monospace;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1, h2, h3 { margin-top: 0; text-wrap: balance; }

h1, .display {
  max-width: 860px;
  margin-bottom: 30px;
  font-family: "Iowan Old Style", "Noto Serif KR", Batang, serif;
  font-size: clamp(50px, 7.7vw, 112px);
  font-weight: 600;
  line-height: 0.99;
  letter-spacing: -0.065em;
}

.hero-copy { max-width: 590px; margin: 0; color: rgb(255 249 237 / 72%); font-size: clamp(17px, 2vw, 21px); }

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 38px; }
.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 11px 19px;
  border: 1px solid rgb(255 249 237 / 35%);
  text-decoration: none;
  font-weight: 720;
}
.button.primary { border-color: var(--jade); color: var(--ink); background: var(--jade); }
.button:hover { border-color: var(--jade); }

.identity-card {
  position: relative;
  padding: 10px 0 10px 34px;
  border-left: 8px solid var(--jade);
}
.identity-card::before {
  content: "";
  position: absolute;
  top: -15px;
  left: -8px;
  width: 8px;
  height: 15px;
  background: var(--ivory);
  animation: cursor 1.1s steps(1, end) infinite;
}
.identity-card dl { margin: 0; }
.identity-card div { padding: 16px 0; border-bottom: 1px solid rgb(255 249 237 / 16%); }
.identity-card dt { color: rgb(255 249 237 / 48%); font: 600 10px/1.4 Consolas, monospace; letter-spacing: 0.12em; text-transform: uppercase; }
.identity-card dd { margin: 5px 0 0; font-weight: 680; overflow-wrap: anywhere; }

@keyframes cursor { 50% { opacity: 0; } }

main section { padding-block: clamp(72px, 9vw, 128px); border-bottom: 1px solid var(--line); }

.section-grid {
  display: grid;
  grid-template-columns: minmax(180px, 0.38fr) minmax(0, 1fr);
  gap: clamp(38px, 8vw, 118px);
}

.section-label { color: var(--jade-dark); font: 700 12px/1.4 Consolas, monospace; letter-spacing: 0.1em; text-transform: uppercase; }
.section-body { max-width: 820px; }
.section-body > :last-child { margin-bottom: 0; }

h2 { font-family: "Iowan Old Style", "Noto Serif KR", Batang, serif; font-size: clamp(34px, 4.6vw, 64px); line-height: 1.12; letter-spacing: -0.045em; }
h3 { margin-bottom: 8px; font-size: 19px; letter-spacing: -0.02em; }
p { margin-block: 0 1.2em; }
.lede { max-width: var(--measure); color: var(--ink-soft); font-size: clamp(18px, 2vw, 22px); }

.feature-list { margin: 46px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--ink); }
.feature-list li { display: grid; grid-template-columns: minmax(140px, 0.35fr) 1fr; gap: 28px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.feature-list strong { letter-spacing: -0.02em; }
.feature-list span { color: var(--ink-soft); }

.notice { color: var(--ivory); background: var(--ink); }
.notice .section-label { color: var(--jade); }
.notice .lede, .notice p { color: rgb(255 249 237 / 74%); }
.notice strong { color: var(--ivory); }

.page-intro { padding-block: 90px 80px; color: var(--ivory); background: var(--ink); }
.page-intro h1 { max-width: 980px; font-size: clamp(46px, 7vw, 92px); }
.page-intro .lede { color: rgb(255 249 237 / 70%); }

.document { display: grid; grid-template-columns: 220px minmax(0, 760px); gap: clamp(42px, 8vw, 110px); align-items: start; }
.toc { position: sticky; top: 28px; margin: 0; padding: 0; list-style: none; font-size: 14px; }
.toc li { border-bottom: 1px solid var(--line); }
.toc a { display: block; padding: 10px 0; text-decoration: none; }
.toc a:hover { color: var(--jade-dark); }
.prose h2 { margin-top: 2.2em; font-size: clamp(28px, 3.7vw, 44px); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 2em; }
.prose ul { padding-left: 1.25em; }
.prose li + li { margin-top: 0.55em; }
.prose code, .code {
  font-family: Consolas, "SFMono-Regular", monospace;
  font-size: 0.9em;
  overflow-wrap: anywhere;
}
.policy-box { margin: 30px 0; padding: 22px 24px; border-left: 6px solid var(--jade-dark); background: #e4ebe5; }
.policy-box > :last-child { margin-bottom: 0; }

details { border-top: 1px solid var(--ink); }
details:last-child { border-bottom: 1px solid var(--ink); }
summary { padding: 24px 36px 24px 0; cursor: pointer; font-weight: 740; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; float: right; margin-right: -28px; color: var(--jade-dark); font: 22px/1 monospace; }
details[open] summary::after { content: "−"; }
details > div { max-width: var(--measure); padding: 0 0 26px; color: var(--ink-soft); }

.site-footer { padding-block: 54px; color: rgb(255 249 237 / 62%); background: var(--ink); font-size: 13px; }
.footer-grid { display: flex; justify-content: space-between; gap: 34px; }
.site-footer a { color: var(--ivory); }

@media (max-width: 760px) {
  .shell { width: min(100% - 28px, 1180px); }
  .nav { align-items: flex-start; padding-block: 16px; }
  .nav-links { flex-wrap: wrap; justify-content: flex-end; gap: 8px 16px; }
  .nav-links a { font-size: 13px; }
  .hero-grid, .section-grid, .document { grid-template-columns: 1fr; }
  .hero-grid { min-height: 0; padding-block: 70px 80px; }
  .identity-card { margin-top: 10px; }
  .section-grid { gap: 26px; }
  .feature-list li { grid-template-columns: 1fr; gap: 8px; }
  .toc { position: static; columns: 2; }
  .footer-grid { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .identity-card::before { animation: none; }
}
