/* kr.handa.app — statutory notice board for 주식회사 한다테그.
   handa's product palette (dark ground, green accent, Inter) with
   Noto Sans KR for Hangul. One accent, links only. No JS. */

:root {
  --bg: #0f0f0f;
  --surface: #1a1a1a;
  --fg: #ededed;
  --muted: #8c8c8c;
  --rule: #2a2a2a;
  --rule-dim: #1f1f1f;
  --accent: #3ecf8e;
  --accent-dim: #3ecf8e22;
  --accent-ink: #0f0f0f;
  --radius: 8px;
  --max: 720px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; color-scheme: dark; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  /* Inter carries the Latin; it has no Hangul, so Korean falls through to
     Noto Sans KR, then to the Korean faces every mac / Windows ships with. */
  font-family: "Inter", "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic",
               "Nanum Gothic", system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  word-break: keep-all;       /* Korean: never break inside a word */
  overflow-wrap: anywhere;    /* but a long URL or email still wraps */
}

a { color: var(--accent); text-decoration-color: var(--accent-dim); }
a:hover { text-decoration-color: var(--accent); }

/* Korean first, English second — the gloss is visibly secondary. */
[lang="en"] { color: var(--muted); }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ---- header ---- */
.site-header {
  border-bottom: 1px solid var(--rule);
  padding: 1.5rem 0;
}
.site-header .wrap {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
}
.brand { display: flex; flex-direction: column; line-height: 1.4; gap: 0.6rem; }
.brand .logo { display: block; height: 30px; width: auto; }
.name-ko {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--fg);
  text-decoration: none;
}
.name-en { font-size: 0.9rem; }

/* The load-bearing link: 공고 must be obvious from the front page. */
.nav-notices {
  display: inline-block;
  border: 1.5px solid var(--accent);
  border-radius: var(--radius);
  padding: 0.45rem 1.1rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  color: var(--accent);
}
.nav-notices:hover {
  background: var(--accent);
  color: var(--accent-ink);
}
.nav-notices [lang="en"] { color: inherit; opacity: 0.7; }

/* ---- main ---- */
main { padding: 2.5rem 0 3rem; }

h1 {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0 0 1.25rem;
}
h1 [lang="en"] { font-weight: 400; }

h2 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 2.5rem 0 1rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--rule);
}
h2 [lang="en"] { font-weight: 400; }

p { margin: 0 0 1rem; }
.lead { margin-bottom: 1.5rem; }
.muted { color: var(--muted); }

/* 회사 소개 */
.about p { margin-bottom: 0.75rem; }
.about p[lang="en"] { font-size: 0.95rem; }

/* company facts */
dl.facts {
  margin: 0 0 2rem;
  display: grid;
  grid-template-columns: 11rem 1fr;
  gap: 0.85rem 1.5rem;
}
dl.facts dt { color: var(--muted); font-weight: 500; line-height: 1.5; }
dl.facts dt [lang="en"] { display: block; font-size: 0.85rem; font-weight: 400; }
dl.facts dd { margin: 0; }
dl.facts dd [lang="en"] { display: block; font-size: 0.95rem; }

/* the on-page pointer to the notices page */
.notices-callout {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin: 0 0 1rem;
}
.notices-callout p { margin: 0; }

/* ---- notices ---- */
.notice {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--rule);
}
.notice:last-child { border-bottom: 0; }
.notice-title { font-size: 1.1rem; font-weight: 600; margin: 0 0 0.75rem; }
.notice-meta {
  display: grid;
  grid-template-columns: 8rem 1fr;
  gap: 0.15rem 1rem;
  margin: 0 0 1rem;
  font-size: 0.95rem;
}
.notice-meta dt { color: var(--muted); }
.notice-meta dt [lang="en"] { display: none; }   /* labels are standard; keep the meta block tight */
.notice-meta dd { margin: 0; }
.notice-body p { margin: 0 0 0.9rem; }
.notice-body ol, .notice-body ul { margin: 0 0 0.9rem; padding-left: 1.5rem; }
.empty { color: var(--muted); margin: 0; }

/* ---- footer ---- */
.site-footer {
  border-top: 1px solid var(--rule);
  padding: 1.5rem 0 2.5rem;
  color: var(--muted);
  font-size: 0.9rem;
}
.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}

/* ---- small screens ---- */
@media (max-width: 560px) {
  dl.facts { grid-template-columns: 1fr; gap: 0.1rem; }
  dl.facts dd { margin-bottom: 1rem; }
  .notice-meta { grid-template-columns: 1fr; gap: 0; }
  .notice-meta dd { margin-bottom: 0.5rem; }
}

/* ---- print: the PDF evidence copy is black on white ---- */
@media print {
  :root {
    --bg: #ffffff; --surface: #ffffff; --fg: #111111; --muted: #555555;
    --rule: #cccccc; --accent: #111111; --accent-dim: transparent;
  }
  body { font-size: 11pt; line-height: 1.5; }
  a { color: inherit; text-decoration: none; }
  .brand .logo { filter: invert(1); }
  .nav-notices { border: 0; padding: 0; }
  .notices-callout { border-left-width: 3px; }
  .notice { break-inside: avoid; }
}
