:root {
  --bg: #F5F4EF;
  --bg-alt: #FBFAF7;
  --hover: #ECEAE2;
  --hover-row: #F1EFE8;
  --ink: #1A1E1B;
  --ink-2: #3D433F;
  --ink-3: #4A504C;
  --muted: #6B716D;
  --line: #D9D7CE;
  --green: #1F3D2F;
  --green-dark: #0F241A;
  --serif: 'Noto Serif KR', serif;
  --sans: 'IBM Plex Sans KR', sans-serif;
  --mono: 'IBM Plex Mono', monospace;
}

html, body { margin: 0; padding: 0; background: var(--bg); }
* { box-sizing: border-box; }
[id] { scroll-margin-top: 72px; }
a { color: var(--green); text-decoration: none; }
a:hover { color: var(--green-dark); text-decoration: underline; }

body {
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.65;
}

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 32px; }
.eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; color: var(--green); }
.mono { font-family: var(--mono); font-size: 13px; color: var(--muted); }
.section-title { margin: 0; font-family: var(--serif); font-weight: 600; font-size: 32px; letter-spacing: -0.02em; }
.section-head { display: flex; flex-direction: column; gap: 8px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(245, 244, 239, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { font-family: var(--serif); font-weight: 600; font-size: 17px; color: var(--ink); letter-spacing: -0.01em; white-space: nowrap; }
.site-nav { display: flex; gap: 28px; flex-wrap: wrap; justify-content: flex-end; font-size: 14px; }
.site-nav a { color: var(--ink-2); }

/* Hero */
.hero {
  padding-top: 96px; padding-bottom: 80px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: 64px; align-items: end;
}
.hero-intro { display: flex; flex-direction: column; gap: 28px; }
.hero-intro .eyebrow { text-transform: uppercase; }
.hero h1 {
  margin: 0; font-family: var(--serif); font-weight: 600;
  font-size: clamp(40px, 6vw, 64px); line-height: 1.2; letter-spacing: -0.025em; text-wrap: balance;
}
.hero-intro p { margin: 0; max-width: 480px; color: var(--ink-3); font-size: 16px; text-wrap: pretty; }
.latest { border-top: 2px solid var(--ink); display: flex; flex-direction: column; }
.latest-head { display: flex; justify-content: space-between; align-items: baseline; padding: 16px 0 12px; }
.latest-head strong { font-weight: 600; font-size: 14px; }
.latest-head a { font-size: 13px; white-space: nowrap; }
.latest-item {
  display: grid; grid-template-columns: 96px 1fr; gap: 16px;
  padding: 14px 0; border-top: 1px solid var(--line); color: var(--ink);
}
.latest-item:hover { background: var(--hover); color: var(--ink); text-decoration: none; }
.latest-item .title { font-size: 15px; }
.empty { padding: 14px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }

/* Notices */
.notice-section { border-top: 1px solid var(--line); background: var(--bg-alt); }
.notice-section > .wrap { padding-top: 80px; padding-bottom: 80px; display: flex; flex-direction: column; gap: 32px; }
.notice-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.tabs { display: flex; gap: 4px; flex-wrap: wrap; }
.tab {
  font-size: 13px; padding: 8px 14px; border: 1px solid var(--line);
  background: transparent; color: var(--ink-2); border-radius: 999px;
}
.tab:hover { text-decoration: none; color: var(--ink); border-color: var(--ink-2); }
.tab[aria-current="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }

.board { display: flex; flex-direction: column; border-top: 2px solid var(--ink); }
.board-cols { display: grid; grid-template-columns: 72px 120px 1fr 112px; gap: 16px; }
.board-head { padding: 12px 0; font-size: 12px; color: var(--muted); border-bottom: 1px solid var(--line); }
.board-head span:last-child, .row-date { text-align: right; }
.row { display: flex; flex-direction: column; border-bottom: 1px solid var(--line); }
.row-toggle {
  all: unset; cursor: pointer;
  display: grid; grid-template-columns: 72px 120px 1fr 112px; gap: 16px;
  padding: 18px 0; align-items: baseline;
}
.row-toggle:hover { background: var(--hover-row); }
.row-toggle:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.row-cat { font-size: 13px; color: var(--green); }
.row-title { font-size: 15px; font-weight: 400; }
.row.is-open .row-title { font-weight: 600; }
.row-body { padding: 0 0 28px; }
.row.row .row-body[hidden] { display: none; }
.row-content { grid-column: 3; display: flex; flex-direction: column; gap: 16px; max-width: 640px; }
.row-content p { margin: 0; color: var(--ink-2); white-space: pre-line; text-wrap: pretty; }
.row-meta { display: flex; gap: 16px; font-size: 13px; color: var(--muted); }
.board-empty { padding: 32px 0; color: var(--muted); border-bottom: 1px solid var(--line); }

.pager { display: flex; gap: 4px; justify-content: center; font-family: var(--mono); font-size: 13px; }
.pager a, .pager span { min-width: 32px; padding: 4px 8px; text-align: center; }
.pager span[aria-current] { background: var(--ink); color: var(--bg); border-radius: 999px; }
.legal-note { margin: 0; font-size: 13px; color: var(--muted); max-width: 720px; text-wrap: pretty; }

/* Business */
.business-section { border-top: 1px solid var(--line); }
.business-section > .wrap { padding-top: 80px; padding-bottom: 80px; display: flex; flex-direction: column; gap: 40px; }
.biz-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 1px; background: var(--line); border: 1px solid var(--line);
}
.biz-card {
  background: var(--green); color: var(--bg); padding: 40px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 48px; min-height: 280px;
}
.biz-card-head { display: flex; flex-direction: column; gap: 12px; }
.biz-card .eyebrow { color: #A9C2B3; }
.biz-name { font-family: var(--serif); font-size: 40px; font-weight: 600; letter-spacing: -0.02em; }
.biz-tagline { font-size: 16px; color: #D6E2DA; }
.biz-link { color: var(--bg); font-size: 14px; align-self: flex-start; border-bottom: 1px solid #A9C2B3; padding-bottom: 2px; }
.biz-link:hover { color: #fff; text-decoration: none; }
.biz-detail { background: var(--bg-alt); padding: 40px; display: flex; flex-direction: column; gap: 24px; }
.biz-detail p { margin: 0; font-size: 16px; color: var(--ink-2); text-wrap: pretty; }
.biz-detail dl { margin: 0; display: grid; grid-template-columns: 96px 1fr; gap: 12px 16px; font-size: 14px; }
.biz-detail dt { color: var(--muted); }
.biz-detail dd { margin: 0; }

/* Footer */
.site-footer { background: var(--ink); color: #C9CCC8; }
.site-footer .wrap { padding-top: 64px; padding-bottom: 40px; display: flex; flex-direction: column; gap: 48px; }
.footer-brand { display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.footer-brand strong { font-family: var(--serif); font-size: 18px; font-weight: 600; color: var(--bg); }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding-top: 24px; border-top: 1px solid #33392F; font-size: 12px; color: #8A8F8B;
}

@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .hero { padding-top: 64px; padding-bottom: 56px; gap: 48px; }
  .notice-section > .wrap, .business-section > .wrap { padding-top: 56px; padding-bottom: 56px; }
  .biz-card, .biz-detail { padding: 28px; }
  .board-head { display: none; }
  .row-toggle.board-cols {
    grid-template-columns: auto 1fr auto;
    grid-template-areas: "no cat date" "title title title";
    gap: 4px 12px;
  }
  .row-no { grid-area: no; }
  .row-cat { grid-area: cat; }
  .row-date { grid-area: date; }
  .row-title { grid-area: title; }
  .row-body.board-cols { display: block; }
}
