:root {
  color-scheme: light;
  --paper: #faf8f5;
  --ink: #25201f;
  --muted: #665d58;
  --line: #dcd4cd;
  --red: #812637;
  --wash: #f5eeeb;
  font-family: "Noto Sans KR", "Malgun Gothic", "Apple SD Gothic Neo", sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; }
a { color: inherit; }
a:hover { color: var(--red); }
:focus-visible { outline: 2px solid var(--red); outline-offset: 4px; }
p, h1, h2 { margin: 0; }
.frame { width: min(56rem, calc(100% - 3rem)); margin-inline: auto; }
.skip-link { position: absolute; top: .5rem; left: .5rem; padding: .65rem 1rem; background: var(--paper); z-index: 1; }
.skip-link:not(:focus) { clip-path: inset(50%); }

.site-header { border-bottom: 1px solid var(--line); }
.header-inner { min-height: 4.5rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand, nav a { min-height: 44px; display: inline-flex; align-items: center; text-decoration: none; }
.brand { gap: .55rem; font-weight: 700; }
nav a { color: var(--red); font-size: .9rem; font-weight: 700; white-space: nowrap; }
nav a:hover, nav [aria-current] { text-decoration: underline; text-underline-offset: .4em; }
main { flex: 1; padding-block: clamp(3.75rem, 9vw, 7.5rem) clamp(4rem, 8vw, 6rem); }

.hero { position: relative; padding-block: 1.1rem clamp(3.25rem, 7vw, 5.5rem); }
.hero::before { content: ""; position: absolute; inset: 0 auto auto 0; width: 2.25rem; height: 2px; background: var(--red); }
h1 { font-size: clamp(2.55rem, 7vw, 5rem); font-weight: 700; letter-spacing: -.075em; line-height: 1.13; overflow-wrap: anywhere; }
.hero .company-prefix { display: block; font-size: clamp(.95rem, 2vw, 1.15rem); color: var(--muted); letter-spacing: -.02em; margin-bottom: .65rem; }
.lead { color: var(--muted); margin-top: 1rem; }
.action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.4rem 1.6rem;
  background: var(--wash);
  border: 1px solid var(--line);
  text-decoration: none;
}
.action:hover { border-color: var(--red); }
.action strong { display: block; font-size: 1.2rem; }
.action small { display: block; color: var(--muted); margin-top: .15rem; font-size: .9rem; }
.arrow { color: var(--red); font-size: 1.35rem; flex: none; }

.listing { margin-top: clamp(2.75rem, 7vw, 4.5rem); }
.list-heading { font-size: .95rem; font-weight: 700; padding-bottom: .75rem; border-bottom: 2px solid var(--ink); }
.empty { color: var(--muted); text-align: center; padding: 3rem 1rem; border-bottom: 1px solid var(--line); }
.notice-list { list-style: none; margin: 0; padding: 0; }
.notice-list a { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 1rem; align-items: center; border-bottom: 1px solid var(--line); padding: 1.15rem 0; text-decoration: none; }
.notice-list a:hover strong { text-decoration: underline; text-underline-offset: .2em; }
.notice-list strong { overflow-wrap: anywhere; }
time { color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.back { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; margin-top: -.65rem; margin-bottom: 1.5rem; color: var(--red); text-underline-offset: .25em; }
.detail h1 { font-size: clamp(2rem, 5vw, 3.6rem); }
.detail dl { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.5rem 0 2rem; padding-block: .9rem; border-block: 1px solid var(--line); }
.detail dd { margin: 0; }
.detail .action { max-width: 28rem; }
.site-footer { border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; }
.footer-inner { padding-block: 1.4rem; }

@media (max-width: 34rem) {
  .frame { width: calc(100% - 2rem); }
  .header-inner { min-height: 4rem; }
  .action { padding: 1.1rem; }
  .notice-list a { grid-template-columns: minmax(0, 1fr) auto; gap: .2rem .75rem; }
  .notice-list .arrow { grid-area: 1 / 2 / 3 / 3; }
  .notice-list time { grid-area: 2 / 1; font-size: .875rem; }
}
