:root {
  color-scheme: light;
  --paper: #faf7ef;
  --white: #fffdf8;
  --ink: #172a22;
  --muted: #526056;
  --forest: #132f25;
  --forest-soft: #245341;
  --red: #782c39;
  --gold: #ecd39a;
  --line: #ddd9ce;
  --serif: Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.55 var(--sans); }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { opacity: .55; cursor: default; }
:focus-visible { outline: 3px solid #aa682b; outline-offset: 4px; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.08; overflow-wrap: anywhere; }
h1 { font-size: clamp(2.5rem, 6vw, 4.7rem); letter-spacing: -.06em; margin-bottom: .3em; }
h2 { font-size: clamp(1.65rem, 3.3vw, 2.75rem); letter-spacing: -.04em; margin-bottom: .35em; }
h3 { font-size: 1.52rem; letter-spacing: -.025em; margin-bottom: .35em; }
p { margin-bottom: 1rem; }
.shell { width: min(100% - 2rem, 1180px); margin-inline: auto; }
.section { padding-block: clamp(2.7rem, 6vw, 5rem); }
.skip { position: absolute; z-index: 5; background: var(--white); transform: translateY(-110%); }
.skip:focus { transform: translateY(0); }
.ribbon { background: var(--red); color: #fff5e6; text-align: center; font-size: .85rem; padding: .55rem .75rem; font-weight: 650; }
.ribbon span { margin-inline: .4rem; }
.site-header { background: var(--white); border-bottom: 1px solid var(--line); }
.header-inner, .footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .55rem 2rem; padding-block: .9rem; }
.brand { display: inline-flex; align-items: center; gap: .6rem; font: bold 1.25rem/1.12 var(--serif); text-decoration: none; }
.school-logo { width: 3.3rem; height: auto; flex: none; mix-blend-mode: multiply; }
.brand small { display: block; margin-top: .3rem; color: var(--muted); font: 650 .76rem/1.25 var(--sans); }
.brand-mark { display: inline-grid; place-items: center; border-radius: 50%; inline-size: 1.9rem; block-size: 1.9rem; color: var(--gold); background: var(--forest); flex: none; }
.site-header nav, .admin-nav { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem 1.25rem; }
.site-header nav a, .admin-nav a { text-decoration: none; font-size: .9rem; font-weight: 650; padding: .45rem 0; }
.site-header nav a:hover, .site-header nav a[aria-current], .admin-nav a:hover { text-decoration: underline; text-underline-offset: .25em; }
.site-header nav .wish-link { color: var(--red); }
.hero { background: var(--forest); color: var(--white); }
.hero-grid { display: grid; grid-template-columns: 1fr 1.03fr; min-height: 510px; }
.hero-copy { align-self: center; padding: clamp(2.4rem, 6vw, 5rem) clamp(1.1rem, 5vw, 4.3rem) clamp(2.4rem, 6vw, 5rem) 0; }
.hero h1 { font-size: clamp(3.05rem, 6.8vw, 6.15rem); }
.hero h1 em { color: var(--gold); font-weight: inherit; }
.label { margin-bottom: .65rem; color: var(--red); font-size: .79rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.hero .label { color: var(--gold); }
.intro { color: #e6e9dd; max-width: 28rem; font-size: 1.07rem; margin-bottom: 1.55rem; }
.hero-art { min-height: 260px; background: #284937 url('hero.jpg') center center / cover no-repeat; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem; }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 2.8rem; padding: .62rem 1rem; border: 1px solid transparent; border-radius: .34rem; background: var(--forest); color: #fffdf8; text-decoration: none; font-size: .92rem; font-weight: 700; text-align: center; }
.button:hover:enabled, a.button:hover { filter: brightness(1.14); }
.button.gold { color: var(--ink); background: var(--gold); }
.button.light-outline { background: transparent; border-color: #9daf9e; color: #fffdf8; }
.button.outline { background: var(--white); color: var(--forest); border-color: #9eada1; }
.button.danger { background: var(--red); }
.text-link { color: var(--forest-soft); font-size: .94rem; font-weight: 750; text-decoration: underline; text-underline-offset: .2em; }
button.text-link { border: 0; background: transparent; padding: .45rem 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; flex-wrap: wrap; gap: .65rem 1.2rem; margin-bottom: 1.15rem; }
.section-head h1, .section-head h2 { margin-bottom: 0; }
.products { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 1rem; }
.product-card { background: var(--white); border: 1px solid var(--line); border-radius: .48rem; overflow: hidden; min-width: 0; }
.product-card:focus-within, .product-card:hover { box-shadow: 0 4px 14px #23392a1a; }
.card-link { display: block; height: 100%; color: inherit; text-decoration: none; }
.card-link:focus-visible { outline-offset: -3px; }
.product-art { position: relative; display: grid; place-items: center; aspect-ratio: 1.2; background: #e8dfcd; overflow: hidden; }
.product-art.ornament { background: radial-gradient(ellipse at 40% 26%, #e8e7d7, #c6c8ad); color: #495a46; }
.product-art.mug { background: radial-gradient(ellipse at 40% 26%, #efdcd4, #d0afa7); color: #743b40; }
.product-art.book { background: radial-gradient(ellipse at 40% 26%, #f2e4c8, #dac39a); color: #705232; }
.product-art.gift { background: radial-gradient(ellipse at 40% 26%, #f0e9dc, #d8cdbb); color: #715743; }
.product-art img { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; }
.product-symbol { font: 4rem/1 var(--serif); }
.art-caption { position: absolute; bottom: .6rem; right: .55rem; border-radius: .2rem; background: #fffdf3ed; padding: .2rem .45rem; font-size: .75rem; font-weight: 650; color: var(--ink); }
.card-body { padding: .85rem; }
.card-meta { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .25rem .5rem; font-size: .77rem; color: var(--muted); margin-bottom: .6rem; }
.status { display: inline-flex; width: fit-content; align-items: center; border-radius: 1rem; padding: .2rem .55rem; font-size: .75rem; font-weight: 750; white-space: nowrap; }
.status.available { background: #e3efde; color: #274b31; }
.status.limited { background: #f4e5c5; color: #684715; }
.status.sold { background: #f1dfdf; color: #752e39; }
.price { display: flex; align-items: baseline; flex-wrap: wrap; gap: .25rem .5rem; color: var(--red); font-weight: 800; font-size: 1.32rem; }
.price.big { font-size: 2rem; margin-bottom: .45rem; }
.price small { color: var(--muted); font: 650 .8rem/1.4 var(--sans); }
.small, .demo-note { font-size: .875rem; color: var(--muted); }
.card-body .demo-note { margin: .35rem 0 0; }
.family-strip { background: #eee9dd; border-block: 1px solid var(--line); padding-block: 2.5rem; }
.family-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.25rem; }
.family-grid h2 { font-size: 1.8rem; }
.family-grid p { max-width: 34rem; }
.footer { background: var(--forest); color: #fffdf8; }
.footer-inner { min-height: 5rem; }
.footer-inner > a:last-child { font-size: .9rem; }
.page-head { margin-bottom: 1.5rem; }
.page-head p:not(.label) { max-width: 44rem; color: var(--muted); }
.filter-grid { display: grid; grid-template-columns: 1.45fr 1fr 1fr auto; align-items: end; gap: .7rem; padding: 1rem; background: var(--white); border: 1px solid var(--line); border-radius: .5rem; }
.schedule-filter { grid-template-columns: 1fr 1fr auto; }
label { display: grid; gap: .25rem; font-size: .9rem; font-weight: 700; min-width: 0; }
input:not([type=checkbox]), select, textarea { display: block; width: 100%; min-width: 0; min-height: 2.8rem; padding: .58rem .65rem; border-radius: .34rem; border: 1px solid #9aa99f; background: #fff; color: var(--ink); font-size: 1rem; font-weight: 400; }
select { appearance: none; padding-right: 1.8rem; background: linear-gradient(45deg,transparent 50%,var(--forest) 50%) right 15px center / 5px 5px no-repeat,linear-gradient(135deg,var(--forest) 50%,transparent 50%) right 10px center / 5px 5px no-repeat,#fff; }
textarea { resize: vertical; }
.results { color: var(--muted); margin-block: 1rem; }
.empty, .notice { background: #f1eadb; border: 1px solid #ded1b7; border-radius: .45rem; padding: .75rem 1rem; }
.products .empty { grid-column: 1/-1; }
.notice.error { background: #f4dfdf; color: #711e2d; }
.pagination { display: flex; gap: 1rem; align-items: center; margin-top: 1rem; }
.back { display: inline-block; margin-bottom: 1rem; }
.detail { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(1.25rem, 5vw, 4rem); align-items: start; }
.detail-copy { padding-top: .7rem; }
.detail-copy > p { margin-top: .7rem; white-space: pre-line; }
.detail .product-art { border-radius: .6rem; }
.detail .product-art img { object-fit: contain; }
.schedule-list { display: grid; gap: .6rem; margin-top: 1rem; }
.schedule-row { display: grid; grid-template-columns: 1fr minmax(12rem, 1fr) auto; gap: .75rem; align-items: center; background: var(--white); padding: 1rem; border: 1px solid var(--line); border-radius: .45rem; }
.schedule-row h2 { font-size: 1.45rem; }
.schedule-row h2, .schedule-row p { margin-bottom: 0; }
.prose { min-height: 52vh; }
.prose p { max-width: 45rem; white-space: pre-line; }
.prose .actions { margin-bottom: 2rem; }
.wish-list { padding-inline-start: 1.4rem; }
.wish-list li { padding-block: .5rem; }
.wish-list li button { margin-left: .75rem; }
.admin-shell { max-width: 980px; min-height: 62vh; }
.admin-nav { border-bottom: 1px solid var(--line); margin-bottom: 1.5rem; padding-bottom: .55rem; }
.admin-nav form { margin-left: auto; }
.login-panel { width: min(100%, 440px); margin-inline: auto; }
.login-panel h1 { font-size: 2.85rem; }
.stats { display: flex; flex-wrap: wrap; gap: .55rem; margin-bottom: 1rem; }
.stats span { padding: .6rem .8rem; border: 1px solid var(--line); background: var(--white); border-radius: .4rem; }
.stats strong { font-size: 1.2rem; }
.panel { padding: clamp(.85rem, 2.6vw, 1.4rem); background: var(--white); border: 1px solid var(--line); border-radius: .5rem; margin-bottom: 1rem; }
.panel h2 { font-size: 1.7rem; }
.panel h2, .panel h3 { margin-bottom: .35rem; }
.stack { display: grid; gap: .85rem; }
.stack > .button { justify-self: start; }
.dropzone { border: 2px dashed #9caa9f; border-radius: .4rem; padding: .95rem; background: #f4f5ed; }
.dropzone.active { background: #dfecdd; border-color: var(--forest); }
.camera { max-width: 30rem; }
.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .75rem; }
.bulk { margin: .9rem 0 0; display: grid; gap: .6rem; }
.bulk .form-grid { align-items: start; }
.price-buttons { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .4rem; }
.price-buttons button { min-width: 2.5rem; min-height: 2.5rem; background: #f5eee0; color: var(--ink); border: 1px solid #cec3aa; font-weight: 700; border-radius: .3rem; }
.check { display: flex; align-items: center; width: fit-content; gap: .45rem; }
.check input { accent-color: var(--forest); width: 1.15rem; height: 1.15rem; flex: none; }
.inventory { display: grid; gap: .4rem; }
.inventory-row { display: grid; grid-template-columns: auto 3.15rem 1fr minmax(5.5rem,auto) auto; align-items: center; gap: .65rem; background: var(--white); border: 1px solid var(--line); border-radius: .4rem; padding: .65rem; }
.inventory-row img, .mini-placeholder { width: 3.15rem; height: 3.15rem; object-fit: cover; display: grid; place-items: center; background: #e8dfcd; border-radius: .25rem; }
.inventory-name a { font-weight: 750; overflow-wrap: anywhere; }
.inventory-name span, .inventory-data span { display: block; color: var(--muted); font-size: .8rem; }
.edit-photo { width: 12rem; border-radius: .4rem; }
.details-fields { margin-top: 1rem; }
summary { cursor: pointer; font-weight: 700; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
[hidden] { display: none !important; }
@media (max-width: 900px) {
  .products { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .hero-grid { min-height: 440px; }
}
@media (max-width: 660px) {
  .shell { width: min(100% - 1.4rem, 1180px); }
  .header-inner { padding-block: .7rem .5rem; }
  .site-header nav { gap: .15rem .85rem; }
  .site-header nav a { font-size: .86rem; }
  .hero-grid, .family-grid, .detail { grid-template-columns: 1fr; }
  .hero-grid { min-height: auto; }
  .hero-art { min-height: 0; aspect-ratio: 1.65; }
  .hero-copy { padding: 2.4rem 0 1.55rem; }
  .hero h1 { font-size: clamp(3rem,12vw,4.5rem); }
  .products { grid-template-columns: repeat(2,minmax(0,1fr)); gap: .55rem; }
  .card-body { padding: .65rem; }
  .card-body h3 { font-size: 1.26rem; }
  .filter-grid, .schedule-filter { grid-template-columns: repeat(2,minmax(0,1fr)); padding: .7rem; }
  .filter-grid:not(.schedule-filter) label:first-child { grid-column: 1/-1; }
  .filter-grid .actions { grid-column: 1/-1; }
  .schedule-row { grid-template-columns: 1fr 1fr; align-items: start; }
  .inventory-row { grid-template-columns: auto 2.55rem 1fr auto; gap: .4rem; }
  .inventory-row img, .mini-placeholder { width: 2.55rem; height: 2.55rem; }
  .inventory-row > .status { grid-column: 3; }
}
@media (max-width: 365px) {
  .products { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
}
@media print {
  body { background: #fff; color: #000; }
  .site-header, .ribbon, .footer, .no-print, .wish-list button, .skip { display: none; }
  .section { padding: 0; }
}
