:root {
  --bg: #f7f3ea;
  --panel: #fffdf8;
  --ink: #2a2620;
  --ink-dim: #6b6256;
  --line: #e2d9c8;
  --deep: #1d2a24;
  --accent: #b5532a;
  --accent-ink: #fff;
  --gold: #c9a14a;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #161e1a;
    --panel: #1f2a25;
    --ink: #efe9dc;
    --ink-dim: #b0a898;
    --line: #34423b;
    --accent: #d9713f;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.75 system-ui, -apple-system, "Segoe UI", "Noto Sans", "Noto Sans KR", "Noto Sans JP", "Noto Sans Thai", sans-serif; }
img { display: block; width: 100%; height: auto; }
a { color: var(--accent); }
h1, h2, h3 { line-height: 1.3; }
h1 { font-size: clamp(28px, 6vw, 40px); margin: 0 0 12px; }
h2 { font-size: 24px; margin: 40px 0 10px; }
h3 { font-size: 19px; margin: 28px 0 6px; }

.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; background: var(--deep); }
.brand { color: #f6efe0; font-weight: 700; font-size: 20px; text-decoration: none; }
.top nav { display: flex; align-items: center; gap: 14px; }
.top nav a:not(.button) { color: #e6dfd0; text-decoration: none; font-size: 15px; }

.button { display: inline-block; background: var(--accent); color: var(--accent-ink); padding: 12px 24px; border-radius: 999px; text-decoration: none; font-weight: 600; min-height: 44px; }
.button:hover { filter: brightness(1.08); }
.button.small { padding: 6px 14px; min-height: 0; font-size: 14px; white-space: nowrap; }

.wrap { max-width: 760px; margin: 0 auto; padding: 24px 16px; }
.lead { color: var(--ink-dim); }
.meta { color: var(--ink-dim); font-size: 14px; margin: 0 0 16px; }
.crumbs { font-size: 14px; color: var(--ink-dim); margin-bottom: 12px; }
.article img { border-radius: 12px; margin-bottom: 20px; }

/* The home page is one screen: the courtyard, and the way in. */
.home { display: flex; flex-direction: column; min-height: 100vh; min-height: 100svh; background: var(--deep); color: #f6efe0; }
.home .top { position: relative; z-index: 2; background: none; text-shadow: 0 1px 6px rgba(0, 0, 0, .7); }
.home .top .button { display: none; }
.door { flex: 1; display: flex; align-items: center; justify-content: center; padding: 16px; text-align: center; }
.door img { position: fixed; inset: 0; height: 100%; object-fit: cover; }
.door::before { content: ""; position: fixed; inset: 0; z-index: 1; background: linear-gradient(rgba(15, 22, 18, .72), rgba(15, 22, 18, .42) 40%, rgba(15, 22, 18, .82)); }
.door-text { position: relative; z-index: 2; width: 100%; max-width: 620px; }
.door h1 { font-size: clamp(24px, 5vw, 38px); margin-bottom: 10px; text-shadow: 0 1px 12px rgba(0, 0, 0, .6); }
.door p { margin: 0 auto 24px; font-size: 16px; line-height: 1.6; text-shadow: 0 1px 8px rgba(0, 0, 0, .7); }
.door .note { margin: 14px auto 0; font-size: 14px; color: #e6dfd0; }
.enter-now { display: block; width: 100%; max-width: 440px; margin: 0 auto; padding: 22px 24px; background: #e9b454; color: #241c10; font-size: clamp(24px, 6vw, 30px); font-weight: 800; line-height: 1.25; box-shadow: 0 0 44px rgba(233, 180, 84, .55), 0 8px 24px rgba(0, 0, 0, .45); }
.home footer { position: relative; z-index: 2; border-top: 0; padding: 8px 16px 16px; color: #cfc7b6; font-size: 12px; line-height: 1.5; }
.home .languages { font-size: 14px; }
.home .languages a { color: #f6efe0; }
.home .languages a[aria-current] { color: #ffe2a8; }

.enter { background: var(--deep); color: #f6efe0; border-radius: 14px; padding: 20px; margin: 28px 0; }
.enter p { margin: 0 0 12px; font-size: 15px; color: #cfc7b6; }
.enter .enter-title { font-size: 20px; font-weight: 700; color: #ffe2a8; margin-bottom: 4px; }

.features, .cards { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 10px; }
@media (min-width: 640px) { .features, .cards { grid-template-columns: 1fr 1fr; } }
.features li, .cards a { display: block; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.features strong, .cards strong { display: block; line-height: 1.4; margin-bottom: 4px; }
.features span, .cards span { display: block; font-size: 15px; line-height: 1.55; color: var(--ink-dim); }
.cards a { height: 100%; text-decoration: none; color: inherit; }
.cards a:hover { border-color: var(--gold); }

footer { border-top: 1px solid var(--line); padding: 20px 16px 32px; font-size: 14px; color: var(--ink-dim); text-align: center; }
.languages { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 14px; }
.languages a { padding: 6px 2px; }
.languages a[aria-current] { font-weight: 700; color: var(--ink); text-decoration: none; }
footer p { max-width: 640px; margin: 0 auto 8px; }

html[lang="ko"] { word-break: keep-all; }
