:root {
  --bg: #F7F5F0;
  --surface: #FFFFFF;
  --sand: #EFEBE2;
  --line: #E6E1D6;
  --line-strong: #CFC9BB;
  --ink: #1C2A2E;
  --ink-2: #3E4B4E;
  --muted: #55625F;
  --accent: #1E7A2B;
  --accent-dark: #1E6B34;
  --accent-soft: #EEF6E4;
  --accent-tint: #F1F4EC;
  --warm: #FBEFDD;
  --warm-ink: #8A5414;
  --gold: #F2DA9E;
  --night: #1C2A2E;
  --night-muted: #9FB0B2;
  --serif: 'Gowun Batang', serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: 'Noto Sans KR', system-ui, sans-serif; font-size: 16px; line-height: 1.65; }
img { max-width: 100%; }
a { color: var(--accent); }
a:hover { color: #165C20; }
h1, h2, h3 { margin: 0; }
p { margin: 0; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: #fff; padding: 8px 12px; z-index: 10; }

/* header */
.site-header { border-bottom: 1px solid #DDD8CC; background: var(--bg); }
.header-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 16px; padding-bottom: 16px; }
.brand img { height: 64px; width: auto; display: block; }
.nav { display: flex; flex-wrap: wrap; gap: 4px 22px; font-size: 15px; font-weight: 500; }
.nav a { color: var(--ink); text-decoration: none; padding: 10px 0; }
.nav a[aria-current="page"] { color: var(--accent); font-weight: 700; }

/* common blocks */
.section { padding: 80px 0; }
.section-white { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stack { display: flex; flex-direction: column; gap: 32px; }
.eyebrow { font-size: 14px; font-weight: 700; color: var(--accent); }
.h1 { font-family: var(--serif); font-size: clamp(36px, 6vw, 52px); line-height: 1.25; font-weight: 700; }
.h2 { font-family: var(--serif); font-size: clamp(28px, 4vw, 36px); line-height: 1.3; font-weight: 700; }
.lead { font-size: 18px; color: var(--ink-2); max-width: 560px; }
.intro { display: flex; flex-direction: column; gap: 10px; max-width: 760px; }
.intro p { color: var(--ink-2); }
.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 28px; display: flex; flex-direction: column; gap: 8px; }
.card p { color: var(--ink-2); font-size: 15px; }
.card h3 { font-size: 19px; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-flex; align-items: center; gap: 6px; min-height: 48px; padding: 12px 24px; border-radius: 10px; font-weight: 700; text-decoration: none; border: 1px solid transparent; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #165C20; color: #fff; }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { color: var(--ink); background: var(--sand); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { color: #fff; }
.illu { border-radius: 20px; overflow: hidden; }
.illu svg { display: block; width: 100%; height: 100%; }

/* hero */
.hero { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; padding: 72px 0 80px; }
.hero-text { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.hero-illu { flex: 1 1 420px; min-width: 0; height: 400px; }

/* about */
.about-card { background: var(--bg); border-radius: 16px; padding: 28px; display: flex; flex-direction: column; gap: 8px; }
.about-card p { color: var(--ink-2); font-size: 15px; }
.facts { display: flex; flex-wrap: wrap; gap: 12px 40px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 15px; margin: 0; }
.facts div { display: flex; flex-direction: column; }
.facts dt { color: var(--muted); font-size: 13px; }
.facts dd { margin: 0; font-weight: 700; }

/* business */
.biz { padding: 0; overflow: hidden; }
.biz .biz-img { height: 150px; }
.biz .biz-img svg { display: block; width: 100%; height: 100%; }
.biz .biz-body { padding: 24px; display: flex; flex-direction: column; gap: 8px; }
.num { font-size: 13px; font-weight: 700; color: var(--accent); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { background: var(--bg); border-radius: 999px; padding: 8px 16px; font-size: 14px; }

/* history & notices */
.split { display: flex; flex-wrap: wrap; gap: 40px; }
.split > :first-child { flex: 1 1 320px; min-width: 0; }
.split > :last-child { flex: 2 1 480px; min-width: 0; }
.timeline { list-style: none; margin: 0; padding: 0 0 0 20px; border-left: 2px solid #DDD8CC; display: flex; flex-direction: column; gap: 18px; }
.timeline li { display: flex; flex-direction: column; }
.timeline strong { font-size: 15px; color: var(--accent); }
.list { list-style: none; margin: 0; padding: 0; }
.list li { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding: 16px 0; border-bottom: 1px solid #EEE9DF; }
.list a { color: var(--ink); text-decoration: none; }
.list a:hover { color: var(--accent); }
.date { color: var(--muted); font-size: 14px; }

/* contact */
.contact { display: flex; flex-wrap: wrap; gap: 32px; }
.contact > div { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.contact dl { margin: 0; display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 10px 16px; font-size: 15px; }
.contact dt { color: var(--muted); }
.contact dd { margin: 0; }
.map { height: 320px; border-radius: 20px; overflow: hidden; border: 1px solid var(--line); background: var(--sand); }
.map iframe, .map svg { display: block; width: 100%; height: 100%; border: 0; }
.map-links { display: flex; flex-wrap: wrap; gap: 10px; }
.map-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px; border-radius: 10px; background: #fff; border: 1px solid var(--line-strong); color: var(--ink); font-weight: 700; font-size: 14px; text-decoration: none; }

/* footer */
.site-footer { background: var(--night); color: #D5DCDD; font-size: 14px; }
.site-footer .wrap { padding-top: 48px; padding-bottom: 32px; display: flex; flex-direction: column; gap: 28px; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 28px; }
.footer-top img { height: 56px; width: auto; }
.footer-info { margin: 0; flex: 1 1 320px; min-width: 0; max-width: 720px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 10px 40px; }
.footer-info dt { display: inline-block; min-width: 76px; color: var(--night-muted); }
.footer-info dd { display: inline; margin: 0; }
.footer-info a { color: #fff; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 20px; border-top: 1px solid #34464A; color: var(--night-muted); }
.footer-bottom a { color: #D5DCDD; }

/* companion */
.band { background: var(--accent-dark); color: var(--accent-soft); }
.band .hero-text p { color: #CFE3C4; }
.band .eyebrow { color: #CFE3C4; }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { color: var(--ink); }
.btn-outline-light { color: var(--accent-soft); border-color: #7FB08C; }
.btn-outline-light:hover { color: #fff; }
.stat strong { font-family: var(--serif); font-size: 28px; }
.stat span:last-child { font-size: 14px; color: var(--ink-2); }
.value-head { background: var(--accent-dark); color: var(--accent-soft); border-radius: 16px; padding: 28px 32px; display: flex; flex-wrap: wrap; gap: 12px 32px; align-items: center; }
.value-head strong { font-family: var(--serif); font-size: 34px; }
.value-head span { flex: 1 1 420px; font-size: 17px; }
.pillar { background: var(--accent-tint); border-top: 5px solid var(--accent); padding: 24px; display: flex; flex-direction: column; gap: 6px; }
.pillar h3 { font-family: var(--serif); font-size: 22px; color: var(--accent-dark); }
.pillar p { font-size: 15px; color: var(--ink-2); }
.work ul { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; font-size: 15px; color: var(--ink-2); }
.work strong { color: var(--ink); }
.work h3 { font-family: var(--serif); font-size: 24px; color: var(--accent-dark); }
.note { margin-top: auto; background: var(--accent-soft); border-radius: 10px; padding: 14px 16px; font-size: 14px; }
.equation { background: var(--accent-soft); border-radius: 16px; padding: 28px 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; font-size: 17px; }
.equation .op { font-family: var(--serif); font-size: 26px; color: var(--accent-dark); }
.equation p { flex: 1 1 100%; font-size: 15px; color: var(--ink-2); }
.steps { list-style: none; margin: 0; padding: 0; }
.steps li { background: var(--accent-tint); border-radius: 16px; padding: 28px; display: flex; flex-direction: column; gap: 8px; }
.steps li.now { background: var(--accent-dark); color: var(--accent-soft); }
.steps .when { font-size: 13px; font-weight: 700; color: var(--accent); }
.steps li.now .when { color: #CFE3C4; }
.steps strong { font-family: var(--serif); font-size: 24px; }
.partner { background: var(--warm); border-radius: 20px; padding: 40px; display: flex; flex-direction: column; gap: 20px; }
.partner .eyebrow { color: var(--warm-ink); }
.partner .grid > div { background: #fff; border-radius: 14px; padding: 22px; display: flex; flex-direction: column; gap: 4px; }
.partner .grid span { font-size: 14px; color: var(--ink-2); }

/* notices */
.board-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; }
.search input { height: 44px; width: 260px; max-width: 100%; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: 10px; font: inherit; font-size: 15px; background: #fff; color: var(--ink); }
.cats { display: flex; flex-wrap: wrap; gap: 8px; }
.cats button { height: 40px; padding: 0 16px; border-radius: 999px; font: inherit; font-size: 14px; cursor: pointer; background: #fff; color: var(--ink); border: 1px solid var(--line-strong); }
.cats button[aria-pressed="true"] { background: var(--accent); color: #fff; border-color: var(--accent); font-weight: 700; }
.board { background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.board-row { display: grid; grid-template-columns: 64px 96px minmax(0, 1fr) 120px; gap: 12px; align-items: center; padding: 18px 24px; border-top: 1px solid #EEE9DF; color: var(--ink); text-decoration: none; }
.board-row:hover { background: var(--bg); color: var(--ink); }
.board-row.head { background: var(--sand); font-size: 14px; font-weight: 700; color: var(--ink-2); border-top: 0; }
.board-row .t { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.board-row .c { font-size: 13px; font-weight: 700; color: var(--accent); }
.board-row .n, .board-row .d { color: var(--muted); font-size: 14px; }
.board-row .d { text-align: right; }
.empty { padding: 40px 24px; text-align: center; color: var(--muted); border-top: 1px solid #EEE9DF; }
.post { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 40px; display: flex; flex-direction: column; gap: 20px; }
.post-head { display: flex; flex-direction: column; gap: 10px; padding-bottom: 20px; border-bottom: 1px solid #EEE9DF; }
.post-body { font-size: 17px; line-height: 1.85; }
.post-body p + p { margin-top: 1em; }
.post-body img { border-radius: 12px; }
.prose h2 { font-size: 20px; margin: 28px 0 8px; }
.prose p, .prose li { color: var(--ink-2); }

@media (max-width: 640px) {
  .section { padding: 56px 0; }
  .hero-illu { height: 280px; }
  .board-row { grid-template-columns: 72px minmax(0, 1fr); }
  .board-row .n, .board-row .d { display: none; }
  .post, .partner { padding: 24px; }
}

[hidden] { display: none !important; }
