:root {
  --paper: #f7f4ec;
  --ink: #1f1d1a;
  --muted: #6b675f;
  --rule: #ddd6c6;
  --green: #2ba179;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "AppleMyungjo", "Noto Serif KR", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Pretendard", "Noto Sans KR", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  word-break: keep-all;
}

a { color: inherit; text-underline-offset: 3px; }
a:hover { color: var(--green); }

.wrap { max-width: 1000px; margin: 0 auto; padding: 0 24px; }

/* language switch: only the active language is shown */
html[data-lang="en"] [lang="ko"]:not(html),
html[data-lang="ko"] [lang="en"]:not(html) { display: none !important; }

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0;
  border-bottom: 1px solid var(--rule);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; text-decoration: none; }
.brand img { width: 28px; height: 28px; border-radius: 7px; }

.langs button {
  font: inherit;
  font-size: 14px;
  color: var(--muted);
  background: none;
  border: 0;
  padding: 4px 6px;
  cursor: pointer;
}
.langs button[aria-pressed="true"] { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }

h1, h2 { font-family: var(--serif); font-weight: 600; letter-spacing: -0.01em; line-height: 1.25; }
h1 { font-size: clamp(32px, 5vw, 50px); margin: 0 0 20px; }
h2 { font-size: 26px; margin: 0 0 14px; }

.lead { font-size: 19px; color: #3a3732; max-width: 34em; }
.muted { color: var(--muted); }
.small { font-size: 14px; }

section { padding: 56px 0; border-bottom: 1px solid var(--rule); }
section:last-of-type { border-bottom: 0; }

footer { padding: 32px 0 48px; color: var(--muted); font-size: 14px; border-top: 1px solid var(--rule); }
footer a { margin-right: 16px; }
