:root {
  color-scheme: dark;
  --bg: #100d11;
  --ink: #f2e9eb;
  --muted: #c5b8c0;
  --accent: #d39a90;
  --line: #382930;
  --sans: system-ui, "Noto Sans CJK KR", "Apple SD Gothic Neo", "Hiragino Sans", "Malgun Gothic", sans-serif;
  --serif: "Noto Serif CJK KR", "AppleMyungjo", Georgia, serif;
}

:root:lang(ja) {
  --sans: system-ui, "Hiragino Sans", "Noto Sans CJK JP", "Yu Gothic", sans-serif;
  --serif: "Hiragino Mincho ProN", "Noto Serif CJK JP", "Yu Mincho", serif;
}

:root:lang(en), :root:lang(fr) { --serif: Georgia, serif; }

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.78 var(--sans);
  overflow-wrap: break-word;
}

:root:lang(ko) body { word-break: keep-all; }
a { color: var(--accent); text-underline-offset: .25em; }
a:hover { color: var(--ink); }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; }

.bar, .wrap { width: min(calc(100% - 40px), 900px); margin-inline: auto; }
header.bar {
  min-height: 70px;
  padding-block: 12px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 5px 28px;
  border-bottom: 1px solid var(--line);
}

.brand { font-size: 16px; color: var(--ink); text-decoration: none; }
.languages {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 14px;
}

.languages a { color: var(--muted); text-decoration: none; }
.languages a:hover, .languages [aria-current] { color: var(--ink); text-decoration: underline; }

.intro {
  min-height: 280px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(110px, 185px);
  align-items: center;
  gap: 28px;
  padding-block: clamp(34px, 7vw, 75px);
}

h1, h2, p { margin: 0; }
h1, h2 { font-family: var(--serif); font-weight: 400; line-height: 1.35; text-wrap: balance; }
h1 { font-size: clamp(34px, 5.4vw, 57px); letter-spacing: -.035em; }
h2 { font-size: clamp(24px, 3vw, 32px); }
p { color: var(--muted); }
.lead { max-width: 44ch; margin-top: 15px; text-wrap: pretty; }

.intro img {
  display: block;
  max-width: 100%;
  height: auto;
  background: radial-gradient(ellipse at center, #c47e772f 0%, transparent 69%);
}

article > section {
  max-width: 680px;
  padding-block: clamp(25px, 4vw, 35px);
  border-top: 1px solid var(--line);
}

article > section p { margin-top: .6em; }
strong { color: var(--ink); font-weight: 650; }
.button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 17px;
  border: 1px solid #996d68;
  border-radius: 8px;
  padding: 8px 14px;
  text-decoration: none;
}

.references ul { margin: .55em 0 0; padding-inline-start: 1.25em; }
.references li { padding-block: .15em; }
footer.bar { border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; padding-block: 20px 26px; }

@media (max-width: 570px) {
  header.bar { justify-content: center; text-align: center; }
  .languages { justify-content: center; }
  .intro { grid-template-columns: 1fr; gap: 12px; }
  .intro img { justify-self: center; width: 124px; }
}
