/* Load only the font resource, not a remote stylesheet that can block the entire page. */
@font-face {
  font-family: "Wanted Sans Variable";
  font-style: normal;
  font-weight: 400 1000;
  font-display: swap;
  src: url("https://cdn.jsdelivr.net/gh/wanteddev/wanted-sans@v1.0.3/packages/wanted-sans/fonts/webfonts/variable/complete/woff2/WantedSansVariable.woff2") format("woff2");
}
:root {
  color-scheme: light dark;
  --bg: #f8f9fc;
  --surface: #ffffff;
  --surface-soft: #f0f3f8;
  --text: #191e29;
  --muted: #717b8b;
  --border: #e4e9f0;
  --accent: #295fd5;
  --accent-text: #ffffff;
  --shadow: 0 10px 30px rgba(21, 38, 66, .035);
  font-family: "Wanted Sans Variable", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", "Segoe UI", sans-serif;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111317;
    --surface: #1a1d23;
    --surface-soft: #242933;
    --text: #f1f3f8;
    --muted: #a0a9b8;
    --border: #343a45;
    --accent: #77a2ff;
    --accent-text: #121c32;
    --shadow: 0 10px 30px rgba(0, 0, 0, .14);
  }
}
* { box-sizing: border-box; }
html { min-width: 320px; }
body { margin: 0; background: var(--bg); color: var(--text); }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.site-shell { min-height: 100vh; display: flex; flex-direction: column; }
.site-header { width: min(1120px, calc(100% - 48px)); min-height: 83px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 14px; border-bottom: 1px solid var(--border); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 750; letter-spacing: -.045em; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--text); color: var(--bg); }
.brand-mark svg { width: 20px; height: 20px; }
.year-label, .eyebrow { font-size: 11px; font-weight: 720; letter-spacing: .09em; color: var(--muted); }
.home-main { flex: 1; width: min(1000px, calc(100% - 48px)); margin: auto; padding: 90px 0 112px; }
h1, h2, p { margin: 0; }
.home-main h1 { margin-top: 17px; font-size: clamp(30px, 4.1vw, 48px); font-weight: 780; letter-spacing: -.065em; line-height: 1.38; word-break: keep-all; }
.lead { margin-top: 13px; color: var(--muted); font-size: 15px; line-height: 1.8; word-break: keep-all; }
.choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 45px; }
.choice-card { position: relative; display: flex; flex-direction: column; align-items: flex-start; min-height: 240px; padding: 29px; background: var(--surface); border: 1px solid var(--border); border-radius: 20px; box-shadow: var(--shadow); transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease; }
.choice-card:hover { transform: translateY(-3px); border-color: var(--accent); box-shadow: 0 12px 35px rgba(30,60,100,.10); }
.choice-icon { width: 47px; height: 47px; display: grid; place-items: center; border-radius: 13px; background: var(--surface-soft); color: var(--accent); margin-bottom: 22px; }
.choice-icon svg { width: 25px; height: 25px; }
.choice-title { font-size: 20px; font-weight: 760; letter-spacing: -.04em; }
.choice-desc { font-size: 13px; color: var(--muted); margin-top: 10px; line-height: 1.7; padding-right: 20px; word-break: keep-all; }
.choice-arrow { position: absolute; right: 27px; top: 31px; font-size: 20px; color: var(--muted); }
.site-footer { width: min(1120px, calc(100% - 48px)); margin: 0 auto; padding: 27px 0 33px; border-top: 1px solid var(--border); color: var(--muted); font-size: 11px; text-align: center; line-height: 1.7; }
.library-main { flex: 1; width: min(1120px, calc(100% - 48px)); margin: 0 auto; padding: 37px 0 105px; }
.back-link { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; font-weight: 600; padding: 8px 0; }
.back-link:hover { color: var(--text); }
.back-link span { font-size: 17px; }
.library-heading { margin-top: 40px; }
.library-heading h1 { margin-top: 12px; font-size: clamp(34px, 5vw, 52px); font-weight: 790; line-height: 1.2; letter-spacing: -.04em; }
.books-section { margin-top: 59px; }
.section-top { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding-bottom: 19px; border-bottom: 1px solid var(--border); margin-bottom: 28px; }
.section-top h2 { font-size: 20px; letter-spacing: -.04em; }
.book-count { font-size: 12px; color: var(--muted); }
.book-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 42px 28px; }
.book-card { display: flex; flex-direction: column; min-width: 0; border-radius: 10px; }
.cover-frame { display: flex; align-items: center; justify-content: center; width: 100%; aspect-ratio: 3 / 4; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; background: var(--surface); box-shadow: 0 5px 15px rgba(0,0,0,.055); transition: transform .2s ease, box-shadow .2s ease; }
.cover-frame img { display: block; width: 100%; height: 100%; object-fit: contain; }
.book-card:hover .cover-frame { transform: translateY(-4px); box-shadow: 0 13px 25px rgba(0,0,0,.12); }
.book-card:focus-visible { outline-offset: 8px; }
.book-info { display: flex; flex-direction: column; gap: 5px; padding-top: 15px; }
.book-title { font-size: 17px; letter-spacing: -.04em; }
.book-author { font-size: 13px; color: var(--text); }
.book-publisher { font-size: 12px; color: var(--muted); }
.device-dialog { width: min(390px, calc(100% - 36px)); max-width: none; padding: 0; border: 1px solid var(--border); border-radius: 22px; background: var(--surface); color: var(--text); box-shadow: 0 25px 80px rgba(0,0,0,.22); }
.device-dialog::backdrop { background: rgba(7, 12, 23, .54); backdrop-filter: blur(4px); }
.dialog-content { padding: 28px; display: flex; flex-direction: column; align-items: stretch; }
.dialog-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; color: var(--accent); background: var(--surface-soft); margin-bottom: 22px; }
.dialog-icon svg { width: 26px; height: 26px; }
.dialog-content h2 { font-size: 20px; line-height: 1.5; letter-spacing: -.05em; word-break: keep-all; }
.dialog-content p { margin-top: 12px; margin-bottom: 27px; font-size: 14px; line-height: 1.8; color: var(--muted); word-break: keep-all; }
.dialog-primary { display: grid; place-items: center; width: 100%; min-height: 48px; border-radius: 11px; color: var(--accent-text); background: var(--accent); font-size: 14px; font-weight: 750; }
.dialog-primary:hover { filter: brightness(.95); }
.dialog-dismiss { background: transparent; border: 0; padding: 15px 12px 2px; margin-top: 3px; color: var(--muted); font-size: 13px; cursor: pointer; }
.dialog-dismiss:hover { color: var(--text); }
@media (max-width: 790px) {
  .home-main { padding: 85px 0 105px; }
  .book-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 34px 20px; }
}
@media (max-width: 610px) {
  .site-header { width: calc(100% - 36px); min-height: 70px; }
  .brand { font-size: 13px; }
  .brand-mark { width: 31px; height: 31px; }
  .year-label { font-size: 10px; letter-spacing: 0; }
  .home-main { width: calc(100% - 36px); padding: 80px 0 85px; }
  .home-main h1 { font-size: clamp(29px, 8vw, 38px); }
  .choice-grid { grid-template-columns: 1fr; gap: 14px; margin-top: 37px; }
  .choice-card { min-height: 185px; padding: 23px; border-radius: 18px; }
  .choice-icon { width: 42px; height: 42px; margin-bottom: 17px; }
  .choice-title { font-size: 18px; }
  .choice-arrow { right: 23px; top: 25px; }
  .site-footer { width: calc(100% - 36px); padding: 23px 0 27px; }
  .library-main { width: calc(100% - 36px); padding: 23px 0 90px; }
  .library-heading { margin-top: 34px; }
  .books-section { margin-top: 45px; }
  .section-top { margin-bottom: 21px; }
  .book-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 33px 16px; }
  .book-info { padding-top: 12px; gap: 5px; }
  .book-title { font-size: 16px; }
  .book-author { font-size: 12px; }
  .book-publisher { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; } }
