:root {
  color-scheme: light; --navy: #172f44; --text: #223843; --muted: #526776;
  --accent-dark: #12585c; --border: #d5e2e2; --surface: #fff;
  font: 16px/1.5 "Segoe UI", "Noto Sans KR", "Malgun Gothic", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: #f7faf9; color: var(--text); }
[hidden] { display: none !important; }
button { font: inherit; }
.sitebar { border-bottom: 1px solid var(--border); background: white; }
.sitebar-inner {
  width: min(100% - 32px, 1200px); min-height: 67px; margin: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.site-brand {
  display: flex; align-items: center; gap: 10px; color: var(--navy);
  font-weight: 740; font-size: 14px; text-decoration: none;
}
.site-brand img { width: 34px; height: 34px; object-fit: contain; }
.language-switch { display: flex; flex-shrink: 0; gap: 3px; }
.language-switch a {
  display: grid; place-items: center; min-height: 44px; min-width: 42px;
  padding-inline: 5px; font-size: 13px; color: var(--accent-dark); text-decoration: none; border-radius: 8px;
}
.language-switch a[aria-current] { background: #e8f1ee; font-weight: 750; }
.sitebar a:focus-visible { outline: 3px solid #a45716; outline-offset: 2px; }
.readerStage > .readerMessage[role="alert"] { position: static; }
.pageImage.zoom-100 { width: min(100%, 740px); }
.pageImage.zoom-125 { width: min(125%, 925px); }
.pageImage.zoom-150 { width: min(150%, 1110px); }
.pageImage.zoom-175 { width: min(175%, 1295px); }
.pageImage.zoom-200 { width: min(200%, 1480px); }
.pageImage { margin-inline: auto; }
@media (max-width: 360px) {
  .readerBar { gap: 3px; }
  .readerBar input { width: 46px; }
  .readerBar button, .readerBar input { min-width: 40px; }
}


.shell {
  width: min(100% - 48px, 1200px);
  margin: 0 auto;
  padding: clamp(22px, 4vw, 48px) 0 clamp(48px, 6vw, 84px);
  color: var(--text);
}
.crumb {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
  margin: 0 0 16px; color: var(--muted); font-size: 14px;
}
.crumb a { color: var(--accent-dark); text-decoration: none; }
.crumb a:hover { text-decoration: underline; }
.hero {
  display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(270px, .8fr);
  align-items: center; gap: clamp(24px, 6vw, 76px);
  padding: clamp(28px, 6vw, 74px);
  background: radial-gradient(ellipse at 85% 25%, #286465, transparent 67%), #173a4d;
  color: #fff; border-radius: 22px;
}
.hero h1, .detail h1 {
  margin: 0; line-height: 1.14; letter-spacing: -.045em; text-wrap: balance;
  font-size: clamp(36px, 5.5vw, 67px);
}
.school { margin: 0 0 12px; font-weight: 700; letter-spacing: -.01em; color: #15656a; }
.hero .school { color: #c4e3dc; }
.intro {
  max-width: 32rem; margin: 16px 0 24px; color: #e0eeef;
  font-size: clamp(15px, 2vw, 18px); line-height: 1.7; word-break: keep-all;
}
.actions { display: flex; gap: 10px; flex-wrap: wrap; }
.primary, .secondary {
  min-height: 46px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 15px;
  border: 1px solid #cbdadf; border-radius: 10px; font-size: 15px; text-decoration: none; font-weight: 700;
  color: var(--navy); background: #fff; transition: background .18s, border-color .18s, color .18s;
}
.primary { background: #0d575b; border-color: #0d575b; color: #fff; }
.primary:hover { background: #16464c; border-color: #16464c; }
.secondary:hover { background: #edf7f5; border-color: #82a8a5; }
.hero .primary { background: #fff; color: #173f47; border-color: #fff; }
.hero .primary:hover { background: #dff3eb; }
.hero .secondary { color: #fff; background: transparent; border-color: #7aa5a8; }
.hero .secondary:hover { background: #235362; }
.shell a:focus-visible { outline: 3px solid #a45716; outline-offset: 4px; }
.hero a:focus-visible { outline-color: #f6cb91; }
.feature {
  display: grid; grid-template-columns: 110px minmax(0, 1fr); align-items: center; gap: 18px;
  padding: 18px; background: #f4f9f6; border-radius: 15px; color: var(--text); text-decoration: none;
}
.feature:hover { background: #e2f3ed; }
.feature > span { font-size: 13px; color: #16686a; font-weight: 700; min-width: 0; }
.feature strong, .feature small { display: block; margin-top: 5px; }
.feature strong { color: var(--navy); font-size: 19px; line-height: 1.3; }
.feature small { color: var(--muted); font-weight: 500; font-size: 13px; }
.cover { display: block; height: auto; width: 100%; aspect-ratio: 238 / 336; object-fit: contain; background: #fff; }
.feature .cover, .card .cover, .detailArt .cover { border-radius: 3px; box-shadow: 0 6px 18px #102c5426; }
.earlier { margin: clamp(32px, 5vw, 62px) 0 0; scroll-margin-top: 120px; }
.earlier h2 { margin: 0 0 16px; line-height: 1.2; font-size: clamp(24px, 3vw, 32px); letter-spacing: -.035em; }
.list { margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); list-style: none; gap: 16px; }
.card { display: flex; flex-direction: column; height: 100%; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; color: var(--text); background: var(--surface); text-decoration: none; transition: box-shadow .18s, border-color .18s; }
.card:hover { border-color: #80a8a6; box-shadow: 0 9px 26px #15364d14; }
.cardArt { display: grid; place-items: center; min-height: 230px; padding: 22px; background: #edf4f2; }
.cardArt .cover { max-width: 138px; }
.cardText { display: grid; gap: 7px; padding: 16px; }
.cardText > span { font-size: 14px; color: var(--muted); }
.cardText > strong { font-size: clamp(16px, 1.7vw, 19px); line-height: 1.35; }
.cardText .cardAction { color: #145d62; font-weight: 700; }
.detail { display: grid; grid-template-columns: minmax(220px, .65fr) minmax(0, 1.35fr); border: 1px solid var(--border); border-radius: 20px; overflow: hidden; background: var(--surface); }
.detailArt { display: grid; min-width: 0; place-items: center; padding: clamp(24px, 5vw, 60px); background: #eaf4ef; }
.detailArt .cover { max-width: 242px; }
.detailCopy { align-self: center; padding: clamp(24px, 5vw, 66px); }
.detail h1 { font-size: clamp(30px, 4vw, 54px); }
.meta { display: flex; flex-wrap: wrap; gap: 16px 26px; margin: 22px 0; }
.meta div { min-width: 70px; }
.meta dt { font-size: 13px; color: var(--muted); }
.meta dd { margin: 3px 0 0; color: var(--navy); font-weight: 700; }
.note { margin: 14px 0 0; max-width: 37ch; font-size: 14px; color: var(--muted); line-height: 1.55; word-break: keep-all; }
@media (max-width: 850px) {
  .shell { width: min(100% - 32px, 1200px); }
  .hero { grid-template-columns: 1fr; }
  .feature { grid-template-columns: 74px minmax(0, 1fr); padding: 13px; max-width: 400px; }
  .list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail { grid-template-columns: minmax(155px, .7fr) 1.3fr; }
}
@media (max-width: 560px) {
  .hero { padding: 24px 20px; gap: 20px; }
  .hero h1 { font-size: 37px; }
  .intro { margin: 11px 0 16px; }
  .list { gap: 11px; }
  .cardArt { min-height: 0; padding: 14px; }
  .cardArt .cover { max-width: 105px; }
  .cardText { padding: 12px; }
  .cardText > span { font-size: 13px; }
  .detail { grid-template-columns: 1fr; }
  .detailArt { padding: 20px; }
  .detailArt .cover { max-width: 128px; }
  .detailCopy { padding: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .shell a { transition: none; }
}

.zoomCover{display:grid;justify-items:center;gap:12px;border:0;border-radius:8px;background:transparent;color:var(--accent-dark);font:inherit;font-weight:750;cursor:pointer;padding:0;max-width:100%;}
.zoomCover>span{display:flex;align-items:center;gap:5px;min-height:44px;}
.zoomCover:hover>span{text-decoration:underline;}
.zoomCover:focus-visible,.readerActions button:focus-visible,.reader button:focus-visible,.reader input:focus-visible{outline:3px solid #a45716;outline-offset:3px;}
.coverDialog{max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);border:1px solid var(--border);border-radius:16px;padding:12px;background:var(--surface);color:var(--text);}
.coverDialog::backdrop{background:#102634bb;}
.coverDialog div{display:grid;justify-items:end;gap:10px;}
.coverDialog img{width:min(72vw,calc((100dvh - 102px)*.707),580px);height:auto;max-width:none;display:block;}
.readerActions{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin:18px 0 0;}
.readerActions button,.reader button{font-family:inherit;cursor:pointer;}
.reader{scroll-margin-top:104px;margin-top:22px;border:1px solid var(--border);border-radius:16px;overflow:hidden;background:var(--surface);}
.readerHead{padding:12px 16px;display:flex;align-items:center;justify-content:space-between;gap:8px;}
.readerHead h2{font-size:20px;margin:0;color:var(--navy);}
.readerBar{display:flex;justify-content:center;align-items:center;gap:5px;min-height:54px;padding:6px;background:#edf4f2;color:var(--navy);border-block:1px solid var(--border);}
.readerBar button,.readerBar input{min-width:44px;height:44px;border:1px solid #b9c8ce;border-radius:7px;background:var(--surface);color:var(--navy);font-weight:700;}
.readerBar button{font-size:23px;line-height:1;}
.readerBar button:disabled{opacity:.48;cursor:default;}
.readerBar form{display:flex;gap:6px;align-items:center;}
.readerBar input{width:54px;text-align:center;font-size:16px;appearance:textfield;}
.readerBar input::-webkit-inner-spin-button,.readerBar input::-webkit-outer-spin-button{appearance:none;margin:0;}
.barDivider{height:25px;width:1px;background:#b9c8ce;margin:0 5px;}
.readerStage{min-height:260px;overflow:auto;background:#dfe8e6;overscroll-behavior-inline:contain;}
.pageImage{display:block;height:auto;max-width:none;margin:0 auto;background:#fff;}
.readerStage[aria-busy=true]{position:relative;}
.readerStage[aria-busy=true] .readerMessage{position:absolute;inset:0 auto auto 0;width:100%;}
.readerMessage{padding:20px;color:var(--navy);text-align:center;}
@media(max-width:560px){.reader{margin-inline:-1px;scroll-margin-top:82px}.readerHead{padding:7px 11px}.readerHead h2{font-size:18px}.readerBar{gap:4px}.barDivider{margin:0 3px}.readerActions{gap:8px}}
