:root {
  color-scheme: light;
  --paper: #f7f6ef;
  --ink: #1d2a22;
  --muted: #4b5b4e;
  --green: #294735;
  --line: #c9cec2;
  --accent: #725021;
  font-family: "Malgun Gothic", "Apple SD Gothic Neo", sans-serif;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
a { color: inherit; text-underline-offset: 0.22em; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
::selection { color: #15261b; background: #d5e2c8; }
p { margin: 0; }
h1, h2, h3 { margin: 0; line-height: 1.25; word-break: keep-all; }
img { display: block; max-width: 100%; }
.shell { width: min(1120px, calc(100% - 80px)); margin-inline: auto; }
.skip { position: fixed; z-index: 1; top: 12px; left: 12px; padding: 8px 14px; transform: translateY(-180%); background: var(--paper); }
.skip:focus { transform: none; }
.site-header { border-bottom: 1px solid var(--line); }
.header-inner, .footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 76px; }
.wordmark { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; font-weight: 800; font-size: 1.3rem; letter-spacing: -0.03em; white-space: nowrap; }
.mark { position: relative; width: 22px; height: 22px; border: 2px solid var(--green); }
.mark::after { position: absolute; inset: 3px; content: ""; background: var(--green); clip-path: polygon(0 100%, 0 58%, 58% 0, 100% 0, 100% 42%, 42% 100%); }
nav { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }
nav a { font-size: 0.92rem; font-weight: 600; text-decoration: none; }
nav a:hover, nav a[aria-current] { text-decoration: underline; }
.hero { display: grid; grid-template-columns: 1fr 1.09fr; gap: clamp(26px, 5vw, 78px); align-items: center; padding-block: clamp(44px, 7vw, 96px); }
.hero h1 { font-family: "Batang", "AppleMyungjo", serif; font-size: clamp(2.5rem, 4.4vw, 4.15rem); line-height: 1.13; font-weight: 700; letter-spacing: -0.04em; }
.hero p { max-width: 33ch; margin-top: 24px; color: var(--muted); font-size: 1.08rem; line-height: 1.8; word-break: keep-all; }
.primary { display: inline-block; margin-top: 26px; padding: 11px 19px; border: 1px solid var(--green); background: var(--green); color: #fff; font-weight: 700; text-decoration: none; }
.primary:hover { background: #375742; }
.hero figure { background: #303625; margin: 0; }
.hero img { width: 100%; height: auto; }
.library { padding-block: 32px 80px; border-top: 1px solid var(--line); scroll-margin-top: 16px; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 8px 24px; margin-bottom: 24px; }
.section-head h2 { font-size: clamp(1.55rem, 3vw, 2.25rem); letter-spacing: -0.035em; }
.section-head p, .guide-list p { color: var(--muted); }
.guide-list { padding: 0; margin: 0; list-style: none; border-bottom: 1px solid var(--line); }
.guide-list li { border-top: 1px solid var(--line); }
.guide-list a { display: grid; grid-template-columns: 112px minmax(0, 1fr) auto; align-items: baseline; gap: 18px; padding: 21px 12px; text-decoration: none; }
.guide-list a:hover { background: #edeee5; }
.guide-list a:hover h3, .guide-list a:focus-visible h3 { text-decoration: underline; }
.guide-list h3 { font-size: clamp(1.12rem, 2.3vw, 1.45rem); letter-spacing: -0.025em; }
.guide-list p { margin-top: 6px; word-break: keep-all; }
.category { font-size: 0.88rem; font-weight: 700; color: var(--accent); }
.read { font-size: 0.88rem; color: var(--green); text-decoration: underline; }
.reading { max-width: 760px; padding-block: clamp(45px, 7vw, 92px); }
.reading h1 { font-family: "Batang", "AppleMyungjo", serif; font-size: clamp(2rem, 5vw, 3.7rem); letter-spacing: -0.04em; }
.reading h2 { margin-block: 42px 12px; font-size: clamp(1.3rem, 3vw, 1.75rem); letter-spacing: -0.025em; }
.reading p { line-height: 1.85; overflow-wrap: anywhere; }
.reading p + p { margin-top: 14px; }
.reading .lede { margin: 16px 0 28px; color: var(--muted); font-size: 1.14rem; }
.reading .breadcrumb { margin-bottom: 16px; color: var(--muted); font-size: 0.9rem; }
.related { margin-top: 56px; }
.site-footer { background: #e8ede3; border-top: 1px solid var(--line); }
.footer-inner { min-height: 92px; padding-block: 14px; }

@media (max-width: 760px) {
  .shell { width: calc(100% - 40px); }
  .hero { grid-template-columns: 1fr; padding-block: 42px 36px; gap: 30px; }
  .hero h1 { font-size: clamp(2.5rem, 8.3vw, 4rem); }
  .guide-list a { grid-template-columns: minmax(0, 1fr) auto; gap: 7px 12px; padding-inline: 2px; }
  .category { grid-column: 1 / -1; }
  .library { padding-bottom: 48px; }
}

@media (max-width: 390px) {
  .shell { width: calc(100% - 30px); }
  .header-inner nav { gap: 11px; }
  .footer-inner { align-items: flex-start; flex-direction: column; }
}
