:root {
  --paper: #fff8ee;
  --ink: #352c25;
  --accent: #76483a;
  --soft: #f6e4d7;
  --font: "Pretendard", "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --serif: "Noto Serif KR", "AppleMyungjo", Batang, serif;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  line-height: 1.65;
  word-break: keep-all;
  overflow-wrap: anywhere;
  scroll-behavior: smooth;
}

*, *::before, *::after { box-sizing: border-box; }
body {
  --line: color-mix(in srgb, var(--accent) 22%, var(--paper));
  --muted: color-mix(in srgb, var(--ink) 78%, var(--paper));
  margin: 0;
  background: var(--paper);
  color: var(--ink);
}
a { color: inherit; text-underline-offset: .25em; }
a:hover { color: var(--accent); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
img { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
h1, h2, h3 { line-height: 1.25; letter-spacing: -.04em; }
.wrap { max-width: 1220px; width: calc(100% - 96px); margin-inline: auto; }
.skip { position: absolute; z-index: 10; top: 8px; left: 8px; padding: 8px 14px; transform: translateY(-180%); background: var(--paper); }
.skip:focus { transform: translateY(0); }
.site-header { border-bottom: 1px solid var(--line); }
.header-inner { display: flex; min-height: 90px; gap: 22px; align-items: center; justify-content: space-between; }
.wordmark { display: inline-flex; gap: 12px; align-items: center; font-size: 1.13rem; font-weight: 800; text-decoration: none; letter-spacing: -.045em; }
.wordmark small { display: block; color: var(--muted); font-size: .7rem; font-weight: 600; letter-spacing: .01em; }
.header-inner nav, .footer-inner nav { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(12px, 3vw, 32px); }
.header-inner nav a { font-size: .91rem; font-weight: 700; text-decoration: none; }
.header-inner nav a:hover { text-decoration: underline; }

.hero { display: grid; grid-template-columns: minmax(0, .98fr) minmax(0, 1.02fr); gap: clamp(30px, 6vw, 92px); align-items: center; padding-block: clamp(44px, 8vw, 104px); }
.hero-copy { max-width: 670px; }
.kicker { display: flex; gap: 9px; align-items: center; color: var(--accent); font-size: .79rem; font-weight: 800; letter-spacing: .07em; }
.kicker > span { width: 9px; height: 9px; flex: 0 0 9px; border-radius: 50%; background: var(--accent); }
.hero h1, .guide h1, .directory h1 { margin-block: 17px 22px; font-size: clamp(2.35rem, 4.7vw, 4.55rem); line-height: 1.13; }
.hero-intro, .guide-intro { max-width: 51ch; color: var(--muted); font-size: clamp(1rem, 1.6vw, 1.14rem); line-height: 1.8; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 26px; }
.button { display: inline-flex; min-height: 50px; gap: 11px; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 999px; padding: 10px 19px; font-size: .93rem; font-weight: 800; text-align: center; text-decoration: none; }
.primary { border-color: var(--accent); background: var(--accent); color: #fff; }
.primary:hover { border-color: var(--ink); background: var(--ink); color: #fff; }
.secondary { background: var(--paper); }
.secondary:hover { background: var(--soft); }
.affiliation { margin-top: 18px; color: var(--muted); font-size: .8rem; }
.hero-image { position: relative; min-width: 0; }
.hero-image > img { width: 100%; height: auto; aspect-ratio: 1.14; object-fit: cover; }
.hero-image figcaption { display: flex; align-items: center; gap: 6px; justify-content: flex-end; padding: 8px 4px; color: var(--muted); font-size: .73rem; }

.editorial .hero h1 { font-family: var(--serif); font-weight: 800; }
.editorial .hero-image > img { border-radius: 48% 48% 22px 22px; aspect-ratio: 1.13; }
.editorial .hero-image::before { position: absolute; z-index: -1; inset: 12px -14px 46px 14px; border-radius: 48% 48% 22px 22px; background: var(--soft); content: ''; }
.editorial .hero-image { isolation: isolate; }
.editorial .hero-image::before { inset-block-start: 16px; inset-block-end: 14px; }
.journal .hero { grid-template-columns: 1fr; gap: 30px; padding-block: clamp(46px, 7vw, 88px) clamp(32px, 6vw, 70px); }
.journal .hero-copy { justify-self: center; max-width: 760px; text-align: center; }
.journal .hero-copy > * { justify-content: center; margin-inline: auto; }
.journal .hero h1 { font-family: var(--serif); font-weight: 800; }
.journal .hero-intro { max-width: 55ch; }
.journal .hero-image > img { aspect-ratio: 2.45; object-position: 50% 55%; border-radius: 24px; }
.cards .hero { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(26px, 5vw, 70px); }
.cards .hero-image { order: -1; border: 1px solid var(--line); border-radius: 27px; padding: 12px; background: var(--soft); }
.cards .hero-image > img { border-radius: 17px; }
.cards .hero-image figcaption { justify-content: flex-start; padding: 10px 4px 0; }
.cards .hero h1 { font-weight: 900; }

.section { padding-block: clamp(38px, 6vw, 76px); }
.section h2, .sources h2 { margin-block: 8px 12px; font-size: clamp(1.75rem, 3vw, 2.6rem); }
.section-intro > p:not(.kicker), .sources p:not(.kicker), .check-list p, .faq-list p, .guide-steps p, .guide-note p { color: var(--muted); line-height: 1.75; }
.check-list { display: grid; gap: 13px; margin-top: 28px; padding: 0; list-style: none; }
.check-list li { display: flex; gap: 18px; min-width: 0; padding: clamp(19px, 3vw, 28px); border: 1px solid var(--line); border-radius: 19px; }
.check-list h3 { margin-bottom: 8px; font-size: 1.15rem; }
.check-list p { font-size: .93rem; }
.number { display: grid; width: 38px; height: 38px; flex: 0 0 38px; place-items: center; border-radius: 50%; background: var(--soft); color: var(--accent); font-size: .79rem; font-weight: 800; }
.editorial .prepare { display: grid; grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); align-items: start; gap: clamp(26px, 5vw, 78px); border-top: 1px solid var(--line); }
.editorial .check-list { margin: 0; }
.journal .check-list, .cards .check-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.journal .check-list li { border: 0; border-top: 1px solid var(--line); border-radius: 0; padding-inline: 4px; }
.cards .check-list li { display: block; background: var(--soft); }
.cards .check-list .number { margin-bottom: 15px; background: var(--paper); }

.sources { background: var(--soft); padding-block: clamp(39px, 6vw, 72px); }
.sources-inner { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(27px, 6vw, 80px); align-items: center; }
.source-links, .nearby-grid, .directory-grid { margin: 0; padding: 0; list-style: none; }
.source-links { display: grid; gap: 8px; }
.source-links a { display: flex; min-height: 60px; gap: 15px; align-items: center; justify-content: space-between; border: 1px solid var(--line); border-radius: 13px; padding: 11px 17px; background: var(--paper); font-weight: 800; text-decoration: none; }
.source-links a:hover { border-color: var(--accent); }
.source-links small, .nearby-grid small, .directory-grid small { display: block; color: var(--muted); font-size: .77rem; font-weight: 500; }
.questions { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: clamp(25px, 5vw, 70px); border-bottom: 1px solid var(--line); }
.faq-list details { padding: 14px 0; border-bottom: 1px solid var(--line); }
.faq-list summary { min-height: 34px; cursor: pointer; color: var(--ink); font-size: .99rem; font-weight: 800; }
.faq-list details p { margin: 3px 0 6px; font-size: .91rem; }
.text-link { display: inline-block; margin-top: 14px; color: var(--accent); font-weight: 800; }
.nearby-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 225px), 1fr)); gap: 12px; margin-top: 20px; }
.nearby-grid a { display: block; height: 100%; padding: 18px; border: 1px solid var(--line); border-radius: 16px; text-decoration: none; }
.nearby-grid a:hover { background: var(--soft); }
.nearby-grid strong { display: flex; gap: 12px; justify-content: space-between; margin: 3px 0 5px; font-size: 1rem; }
.nearby-brand { color: var(--accent); font-size: .75rem; font-weight: 800; }
.site-footer { margin-top: 18px; border-top: 1px solid var(--line); padding-block: 30px; background: var(--soft); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 15px; color: var(--muted); font-size: .84rem; }
.footer-inner > div { max-width: 68ch; }
.footer-brand { color: var(--ink); font-size: 1rem; font-weight: 800; }

.guide { max-width: 830px; padding-block: clamp(35px, 7vw, 90px); }
.guide > .text-link { margin: 0 0 22px; }
.guide h1 { margin-block: 13px; }
.guide-steps { display: grid; gap: 13px; margin-top: 35px; padding: 0; list-style: none; counter-reset: step; }
.guide-steps li { padding: 23px; border: 1px solid var(--line); border-radius: 16px; counter-increment: step; }
.guide-steps li::before { content: '0' counter(step); color: var(--accent); font-size: .79rem; font-weight: 800; }
.guide-steps h2, .guide-note h2 { margin-block: 3px 8px; font-size: 1.3rem; }
.guide-note { margin-top: 24px; padding: 23px; border-radius: 16px; background: var(--soft); }
.directory-main { padding-block: clamp(38px, 7vw, 90px); }
.directory-main > p:not(.kicker) { color: var(--muted); }
.directory-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 12px; margin-top: 32px; }
.directory-grid a { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; min-height: 76px; border: 1px solid var(--line); border-radius: 15px; padding: 12px; text-decoration: none; }
.directory-grid a:hover { background: var(--soft); }

@media (max-width: 860px) {
  .wrap { width: calc(100% - 48px); }
  .hero { gap: 25px; }
  .hero h1 { font-size: clamp(2.05rem, 5.6vw, 3.35rem); }
  .journal .check-list, .cards .check-list { grid-template-columns: 1fr; }
  .cards .check-list li { display: flex; }
  .cards .check-list .number { margin-bottom: 0; }
}

@media (max-width: 640px) {
  .wrap { width: calc(100% - 36px); }
  .header-inner { min-height: auto; flex-wrap: wrap; gap: 10px 15px; padding-block: 14px; }
  .header-inner nav { gap: 14px; }
  .header-inner nav a { font-size: .82rem; }
  .hero, .cards .hero, .editorial .prepare, .sources-inner, .questions { grid-template-columns: 1fr; }
  .hero { padding-block: 32px; }
  .cards .hero-image { order: 0; }
  .hero h1 { font-size: clamp(2.08rem, 9vw, 3.4rem); }
  .hero-intro { font-size: .98rem; }
  .hero-image > img, .editorial .hero-image > img { aspect-ratio: 1.4; }
  .journal .hero-image > img { aspect-ratio: 1.55; }
  .editorial .hero-image::before { inset-inline: 10px -5px; }
  .button { padding-inline: 15px; font-size: .85rem; }
  .nearby-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
}
