/* Hallmark · shape: app screen · genre: modern-minimal · theme: paper / ink blue · signature: school-specific workbook shelf · v2.0.0 */
/* Let the academy title and workbook covers establish the hierarchy without boxed decoration. */
@font-face { font-family: 'Wanted'; src: url('WantedSansVariable.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Maru'; src: url('MaruBuri-SemiBold.woff2') format('woff2'); font-weight: 600; font-display: swap; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { overflow-x: clip; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.55 var(--sans); word-break: keep-all; }
a { color: inherit; }
button, input, select { font: inherit; }
button { cursor: pointer; }
:is(a,button,select,input):focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
h1,h2,h3,p { margin: 0; }
h1,h2,h3 { line-height: 1.2; overflow-wrap: break-word; min-width: 0; }
h1,h2 { text-wrap: balance; }
.wrapper { width: min(1120px, calc(100% - 64px)); margin-inline: auto; }
.skip,.sr-only { position:absolute; width:1px; height:1px; padding:0; overflow:clip; clip-path:inset(50%); white-space:nowrap; }
.skip:focus { width:auto; height:auto; clip-path:none; inset:8px auto auto 8px; z-index:10; background:var(--white); padding:10px; }
.site-header { background: var(--white); border-bottom: 1px solid var(--line); }
.mast { display: flex; min-height: 73px; justify-content: space-between; align-items: center; gap: 14px 24px; }
.brand { font-weight: 850; text-decoration: none; display:flex; align-items:center; gap:11px; min-height:44px; font-size: 20px; }
.brand-mark { width:29px; height:24px; display:flex; gap:3px; align-items:center; }
.brand-mark i { width:13px; height:18px; border:2px solid var(--brand); border-radius:2px 4px 4px 2px; transform:skewY(12deg); }
.brand-mark i+i { transform:skewY(-12deg); border-radius:4px 2px 2px 4px; }
.academy-picker { display:flex; gap:4px; align-items:center; flex-wrap:wrap; }
.academy-picker a { text-decoration:none; padding:10px 14px; display:grid; place-items:center; min-height:44px; font-size:14px; border:1px solid transparent; border-radius:6px; }
.academy-picker a:hover,.button-outline:hover { background:var(--warm); }
.academy-picker a[aria-current] { color:var(--brand); font-weight:800; box-shadow:inset 0 -2px var(--ink); }
.page-head { padding:42px 0 27px; border-bottom:1px solid var(--line); margin-bottom:28px; display:flex; justify-content:space-between; align-items:end; gap:18px; }
.page-head h1 { font:600 48px/1.18 var(--serif); letter-spacing:-.055em; }
.page-head p { color:var(--muted); margin-top:11px; }
.order-layout { display:grid; grid-template-columns:minmax(0,1fr) minmax(270px, 322px); gap:32px; align-items:start; }
.section-title { font-size:22px; font-weight:800; letter-spacing:-.025em; }
.toolbar { display:flex; justify-content:space-between; align-items:center; gap:12px; margin:0 0 18px; }
.toolbar .count { color:var(--muted); font-size:14px; }
.filters { display:flex; flex-wrap:wrap; gap:7px; margin:0 0 19px; }
.filter,.button-outline { min-height:44px; border:1px solid var(--line); border-radius:6px; color:var(--ink); background:var(--white); padding:7px 13px; font-weight:680; text-decoration:none; display:inline-flex; align-items:center; justify-content:center; }
.filter[aria-pressed=true] { background:var(--midnight); color:var(--white); border-color:var(--midnight); }
.filter:hover:not([aria-pressed=true]) { background:var(--warm); }
.books { border-top:1px solid var(--line); }
.book-row { display:grid; grid-template-columns:84px minmax(0,1fr) auto; align-items:center; gap:18px; min-height:135px; padding:14px 0; border-bottom:1px solid var(--line); }
.cover { margin:0 4px; width:70px; height:100px; border-radius:2px 4px 4px 2px; box-shadow:3px 4px 8px var(--shadow); padding:10px 7px 9px 10px; display:grid; grid-template-rows:auto 1fr auto; overflow:clip; color:var(--cream); background:var(--midnight); position:relative; isolation:isolate; }
.cover::after { content:''; position:absolute; inset:39% -28% 2% 35%; z-index:-1; border:1px solid currentColor; border-radius:50%; transform:rotate(-22deg); opacity:.75; }
.cover::before { content:''; position:absolute; inset:0 auto 0 5px; border-left:1px solid currentColor; opacity:.35; }
.cover small { font-size:8px; letter-spacing:0; font-weight:700; }
.cover strong { align-self:center; font:600 13px/1.16 var(--serif); }
.cover b { font-size:9px; font-weight:700; }
.cover.sea { background:var(--cover-sea); }
.cover.apricot { background:var(--cover-apricot); color:var(--ink); }
.cover.plum { background:var(--cover-plum); }
.cover.scarlet { background:var(--cover-red); }
.cover.moss { background:var(--cover-moss); }
.cover.lavender { background:var(--cover-lavender); color:var(--ink); }
.book-copy h3 { font-size:20px; margin:4px 0; letter-spacing:-.025em; }
.book-copy p,.muted { color:var(--muted); }
.price { font-size:17px; font-weight:830; font-variant-numeric:tabular-nums; }
.book-actions { display:grid; justify-items:end; align-content:center; gap:6px; }
.button { display:inline-flex; justify-content:center; align-items:center; text-decoration:none; min-height:44px; padding:8px 14px; border:1px solid transparent; border-radius:6px; background:var(--brand); color:var(--white); font-weight:770; }
.button:hover { background:var(--brand-hover); }
.button:active,.button-outline:active,.filter:active { box-shadow:inset 0 0 0 2px var(--shadow); }
.button:disabled { cursor:default; color:var(--muted); background:var(--warm); }
.text-button { border:none; background:none; color:var(--muted); text-decoration:underline; text-underline-offset:3px; min-height:44px; padding:3px 8px; }
.summary,.panel { background:var(--white); border:1px solid var(--line); border-radius:var(--radius); padding:20px; }
.summary { position:sticky; top:16px; }
.summary .button { width:100%; margin-top:15px; }
.summary h2 { margin-bottom:13px; }
.summary-content:empty::before { content:'담은 교재가 여기에 표시됩니다.'; color:var(--muted); }
.cart-line { display:flex; justify-content:space-between; gap:10px; align-items:center; padding:10px 0; border-bottom:1px solid var(--line); }
.cart-line strong { display:block; font-size:14px; }
.cart-line small { color:var(--muted); }
.qty { display:flex; align-items:center; gap:3px; }
.qty button { background:var(--white); border:1px solid var(--line); border-radius:5px; min-width:44px; height:44px; }
.qty button:hover { background:var(--warm); }
.qty span { min-width:17px; text-align:center; font-size:14px; }
.total { border-top:1px solid var(--line); padding-top:13px; margin-top:13px; display:flex; align-items:baseline; justify-content:space-between; gap:10px; }
.total b { font-size:23px; color:var(--brand); font-variant-numeric:tabular-nums; }
.checkout-layout { display:grid; grid-template-columns:minmax(0, 1fr) minmax(240px, 310px); gap:24px; align-items:start; }
.checkout-layout .panel > p,.receipt p { margin:9px 0 16px; }
.form-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; margin:17px 0; }
.form-grid label { display:grid; gap:5px; font-weight:700; font-size:14px; }
.form-grid input { min-height:44px; padding:8px; border:1px solid var(--line); border-radius:5px; color:var(--ink); background:var(--paper); width:100%; }
.receipt { max-width:640px; margin:auto; }
.receipt .actions { display:flex; gap:9px; flex-wrap:wrap; margin-top:18px; }
.order-number { font-feature-settings:'tnum'; color:var(--brand); font-weight:800; }
.admin-summary { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); border-block:1px solid var(--line); margin:0 0 24px; }
.admin-summary > div { padding:17px 21px; }
.admin-summary > div+div { border-left:1px solid var(--line); }
.admin-summary span { color:var(--muted); display:block; font-size:14px; }
.admin-summary strong { display:block; font-size:26px; font-variant-numeric:tabular-nums; }
.admin-grid { display:grid; grid-template-columns:minmax(0, 1.6fr) minmax(230px, 1fr); gap:24px; align-items:start; }
.orders,.book-count { list-style:none; padding:0; margin:12px 0 0; }
.orders li,.book-count li { padding:12px 0; border-top:1px solid var(--line); }
.orders li { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:10px; align-items:start; }
.orders p,.orders small,.book-count small { color:var(--muted); }
.book-count li { display:flex; justify-content:space-between; gap:8px; }
.badge { display:inline-block; padding:4px 8px; border-radius:4px; background:var(--positive-pale); color:var(--positive); font-size:13px; font-weight:740; }
.orders aside { text-align:right; }
.orders select { margin-top:9px; display:block; max-width:110px; min-height:44px; border:1px solid var(--line); border-radius:6px; padding:4px; color:var(--ink); background:var(--white); font-size:14px; }
.empty { padding:20px 0; color:var(--muted); }
.footer { color:var(--muted); font-size:13px; margin-top:38px; padding:17px 0 30px; border-top:1px solid var(--line); }
dialog { color:var(--ink); background:var(--white); border:1px solid var(--line); border-radius:var(--radius); padding:23px; width:min(440px, calc(100% - 28px)); }
dialog::backdrop { background:var(--veil); }
dialog form { display:flex; justify-content:flex-end; }
dialog p { margin:9px 0 16px; }
.mobile-cart { display:none; }
.brand { font-size: 19px; letter-spacing: -.02em; }
.brand-mark { gap: 3px; width: 29px; align-items: end; padding-bottom: 2px; }
.brand-mark i,.brand-mark i+i { width: 6px; height: 18px; background: var(--brand); border: 0; border-radius: 1px; transform: none; }
.brand-mark i:nth-child(2) { height: 22px; }
.brand-mark i:last-child { height: 16px; transform: rotate(-13deg); transform-origin: bottom; }
.academy-picker { gap: 12px; }
.academy-options { display: flex; gap: 2px; }
.academy-picker a { border: 0; border-radius: 0; }
.academy-picker .admin-link { color: var(--muted); border-left: 1px solid var(--line); }
.shop-heading { margin: 32px 0 24px; display: grid; grid-template-areas: 'title' 'grades'; row-gap: 16px; padding-block: 14px 16px; border-bottom: 1px solid var(--line); }
.shop-heading.with-covers { grid-template-areas: 'title books' 'grades books'; grid-template-columns: minmax(0,1fr) minmax(216px,.52fr); column-gap: 20px; }
.shop-heading h1 { grid-area: title; align-self: center; font: 600 clamp(33px, 4.5vw, 54px)/1.12 var(--serif); letter-spacing: -.034em; }
.shop-heading h1 span { display: block; margin-top: 6px; color: var(--muted); font: 670 .56em/1.2 var(--sans); letter-spacing: -.02em; }
.grade-filters { grid-area: grades; align-self: end; margin: 0; gap: 4px; }
.book-spread { grid-area: books; display: grid; place-items: center; min-width: 0; min-height: 191px; padding: 4px 10px 16px; }
.spread-book { grid-area: 1 / 1; border-radius: 2px 5px 5px 2px; padding: 0 4px 2px 0; background: var(--white); box-shadow: 3px 6px 11px var(--shadow); }
.spread-book:first-child:not(:only-child) { transform: translate(-32%, -4%) rotate(-10deg); }
.spread-book + .spread-book { transform: translate(36%, 10%) rotate(8deg); }
.spread-book .cover { width: clamp(96px, 10vw, 126px); height: auto; aspect-ratio: .71; box-shadow: none; margin: 0; padding: 13px 10px 11px 15px; }
.spread-book .cover strong { font-size: clamp(15px, 1.7vw, 22px); }
.spread-book .cover :is(small, b) { font-size: 10px; }
.grade-filters .filter { color: var(--muted); background: transparent; border: 0; border-radius: 0; min-width: 52px; }
.grade-filters .filter[aria-pressed=true] { color: var(--ink); background: transparent; box-shadow: inset 0 -2px var(--ink); font-weight: 820; }
.grade-filters .filter:hover:not([aria-pressed=true]) { background: var(--warm); }
.order-layout { grid-template-columns: minmax(0,1fr) minmax(250px, 292px); gap: 24px; }
.toolbar { margin-bottom: 12px; }
.section-title { font-size: 23px; }
.books { border: 0; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); column-gap: 24px; }
.book-row { display: grid; grid-template-columns: minmax(0,1fr); padding: 0; min-height: 0; gap: 0; border: 0; border-bottom: 1px solid var(--line); }
.book-display { display: grid; align-items: end; justify-items: start; min-height: 156px; padding: 8px 0 12px; }
.book-display .cover { width: 95px; height: 136px; margin: 0; padding: 11px 9px 10px 13px; box-shadow: 4px 6px 10px var(--shadow); }
.cover strong { font-size: 17px; }
.cover small,.cover b { font-size: 9px; }
.cover.apricot::after { border-radius: 16%; transform: rotate(-36deg); }
.cover.scarlet::after { inset: 44% -22% -18% 22%; border: 3px double currentColor; }
.cover.lavender::after { border-radius: 0; inset: 57% -12% -5% 35%; transform: rotate(26deg); }
.book-copy { padding: 5px 0 6px; }
.book-copy h3 { margin: 0 0 4px; font-size: 20px; }
.book-title { min-height: 44px; padding: 0; color: inherit; background: transparent; border: 0; font: inherit; font-weight: 800; text-align: left; text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 5px; }
.book-title:hover { text-decoration-color: var(--ink); }
.book-copy p { font-size: 14px; }
.book-actions { display: flex; align-items: center; gap: 16px; padding: 4px 0 12px; flex-wrap: wrap; }
.add-book { color: var(--brand); background: transparent; border-color: var(--line); font-size: 14px; padding: 6px 12px; }
.summary { padding: 20px; margin-top: 39px; box-shadow: none; }
.summary h2 { padding-bottom: 12px; border-bottom: 1px solid var(--line); margin-bottom: 12px; }
.summary-content:empty::before { display: block; padding: 4px 0 14px; }
.checkout-layout .summary { margin-top: 0; }
.buyer-panel { padding: 24px; }
.receipt { border-top-width: 1px; }
.page-head h1 { letter-spacing: -.038em; }
.detail-content { display: grid; grid-template-columns: minmax(92px, .85fr) minmax(0, 1.5fr); gap: 16px; margin: 8px 0 20px; align-items: center; }
.detail-content .book-display { padding: 0; justify-items: center; min-height: 150px; }
.detail-content p { margin-bottom: 0; }
@media (max-width: 760px) {
  .wrapper { width:calc(100% - 32px); }
  .mast { padding:9px 0; gap:4px; align-items:flex-start; flex-direction:column; }
  .academy-picker { gap: 6px; }
  .academy-picker a { padding: 6px 9px; }
  .shop-heading { margin: 18px 0 16px; padding: 4px 0 0; gap: 8px; }
  .shop-heading.with-covers { grid-template-areas: 'title books' 'grades grades'; grid-template-columns: minmax(0,1fr) clamp(106px, 34vw, 154px); column-gap: 8px; }
  .shop-heading h1 { font-size: clamp(29px, 8vw, 40px); }
  .shop-heading h1 span { font-size: .59em; }
  .book-spread { min-height: 111px; padding: 4px 4px 10px; }
  .spread-book { padding: 0 2px 1px 0; }
  .spread-book .cover { width: clamp(55px,16vw,79px); padding: 8px 6px 7px 8px; }
  .spread-book .cover strong { font-size: clamp(10px, 3.25vw, 14px); }
  .spread-book .cover :is(small, b) { font-size: 8px; }
  .grade-filters .filter { padding: 6px 10px; }
  .page-head { padding:25px 0 18px; margin-bottom:20px; align-items:start; flex-direction:column; gap:9px; }
  .page-head h1 { font-size:35px; }
  .page-head p { margin-top:7px; }
  .order-layout,.checkout-layout,.admin-grid { grid-template-columns:minmax(0,1fr); gap:17px; }
  .summary { position: static; margin-top: 0; scroll-margin-block: 12px 84px; }
  .books { grid-template-columns: minmax(0,1fr); border-top: 1px solid var(--line); }
  .book-row { grid-template-columns: 68px minmax(0,1fr); column-gap: 16px; padding: 10px 0; }
  .book-row .book-display { grid-row: span 2; align-items: center; min-height: 0; padding: 0; }
  .book-display .cover { margin: 0; width: 69px; height: 96px; padding: 8px 6px 8px 9px; }
  .cover strong { font-size: 12px; }
  .cover small,.cover b { font-size: 8px; }
  .book-copy { padding: 0; }
  .book-copy h3 { font-size: 17px; }
  .book-copy p { font-size:13px; }
  .book-actions { padding: 0; gap: 12px; }
  .book-actions button { font-size: 13px; padding-inline: 10px; }
  .price { font-size:15px; }
  .mobile-cart { position: fixed; z-index: 2; inset: auto 0 0; min-height: 56px; display: flex; justify-content: space-between; align-items: center; color: var(--ink); background: var(--white); border-top: 1px solid var(--line); text-decoration: none; padding: 12px 20px calc(12px + env(safe-area-inset-bottom, 0px)); font-weight: 760; }
  .mobile-cart strong { color: var(--brand); }
  .mobile-cart:focus-visible { outline-offset: -4px; }
  .has-mobile-cart .footer { padding-bottom: calc(92px + env(safe-area-inset-bottom, 0px)); }
  .admin-summary > div { padding:11px 10px; }
  .admin-summary span { font-size:13px; }
  .admin-summary strong { font-size:18px; }
  .orders li { column-gap:5px; }
  .panel,.summary { padding:15px; }
}
@media (max-width: 350px) {
  .academy-picker a { padding-inline: 6px; }
  .book-row { column-gap: 12px; }
  .detail-content { grid-template-columns: minmax(0,1fr); }
}
