/* 글꼴은 페이지에 나오는 글자만 담은 부분 글꼴 (scripts/fonts.mjs로 다시 만든다). SIL OFL 1.1 — licenses/ */
@font-face { font-family: "Jua"; src: url("./fonts/jua-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Gowun Dodum"; src: url("./fonts/gowun-dodum-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }

:root {
  --paper: #fffaf0;
  --card: #ffffff;
  --text: #3a3330;
  --muted: #7a6f66;
  --line: #eadfcd;
  --f-display: "Jua", "Gowun Dodum", "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  --f-body: "Gowun Dodum", "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--f-body);
  line-height: 1.6;
  word-break: keep-all;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.top { text-align: center; padding: 56px 16px 28px; }
.kicker { margin: 0 0 6px; font-family: var(--f-display); color: var(--muted); font-size: 1.05rem; letter-spacing: 0.04em; }
h1 { margin: 0; font-family: var(--f-display); font-weight: 400; font-size: clamp(2.2rem, 7vw, 3.4rem); line-height: 1.15; }
.lead { margin: 14px auto 0; max-width: 34em; color: var(--muted); font-size: 1.02rem; }

main { flex: 1; width: 100%; max-width: 1080px; margin: 0 auto; padding: 8px 16px 40px; }
.units {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 22px;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.unit { background: var(--card); border: 2px solid var(--line); border-radius: 20px; overflow: hidden; display: flex; flex-direction: column; }
.unit > a { color: inherit; text-decoration: none; display: flex; flex-direction: column; height: 100%; }
.unit:has(> a) { transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease; }
.unit:has(> a):hover, .unit:has(> a:focus-visible) { transform: translateY(-4px); border-color: var(--ink); box-shadow: 0 10px 0 -2px color-mix(in srgb, var(--ink) 22%, transparent); }
.unit > a:focus-visible { outline: none; }

.thumb { background: var(--tint); aspect-ratio: 16 / 10; display: grid; place-items: center; }
.thumb svg { width: 100%; height: 100%; display: block; }
.thumb.empty span { font-family: var(--f-display); font-size: 5rem; color: color-mix(in srgb, var(--ink) 35%, transparent); }

.info { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.no { margin: 0; font-family: var(--f-display); color: var(--ink); font-size: 0.98rem; }
.info h2 { margin: 0; font-family: var(--f-display); font-weight: 400; font-size: 1.45rem; line-height: 1.3; }
.desc { margin: 2px 0 10px; color: var(--muted); font-size: 0.95rem; }
.chip {
  align-self: flex-start; margin-top: auto;
  font-family: var(--f-display); font-size: 0.9rem;
  padding: 3px 12px; border-radius: 999px;
  background: var(--tint); color: var(--ink);
}
.unit.soon .thumb { filter: saturate(0.85); }

.foot { text-align: center; color: var(--muted); font-size: 0.88rem; padding: 18px 16px 32px; border-top: 1px dashed var(--line); }
.foot p { margin: 2px 0; }
.foot a { color: inherit; }

@media (max-width: 420px) {
  .top { padding-top: 40px; }
  .units { gap: 16px; }
}
.thumb img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; display: block; }
