:root { --slate: #2c4a3e; --slate-d: #213a30; --chalk: #f4f2ea; --paper: #fdfcf6; --rule: #cfe0ee; --margin: #f0a2a2; --ink: #23324a; --pencil: #5d6677; --yel: #f6c445; --h: 'Kalam', cursive; --f: 'Mulish', system-ui, sans-serif; }
* { box-sizing: border-box; margin: 0; padding: 0; }
body { background: #e9e4d6; color: var(--ink); font: 400 16px/1.6 var(--f); }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
.wrap { width: min(1160px, 100% - 48px); margin-inline: auto; }
.skip { position: absolute; left: -999px; } .skip:focus { left: 10px; top: 10px; z-index: 99; background: #fff; padding: 8px; }
:focus-visible { outline: 2px dashed var(--yel); outline-offset: 3px; }
.chalk { font-family: var(--h); color: var(--chalk); text-shadow: 0 0 1px rgba(255,255,255,.4); }

.board { background: radial-gradient(ellipse at 30% 20%, #36594a, var(--slate) 55%, var(--slate-d)); border: 16px solid #8a5a33; border-top-width: 0; border-bottom-width: 0; position: relative; padding-bottom: 50px; box-shadow: inset 0 0 80px rgba(0,0,0,.35); }
.board__top { display: flex; align-items: center; gap: 30px; padding: 16px 0; border-bottom: 2px dashed rgba(244,242,234,.25); }
.board__logo { background: var(--paper); border-radius: 12px; padding: 4px 10px; transform: rotate(-2deg); }
.board__logo img { height: 52px; }
.board__nav { display: flex; gap: 26px; font: 700 21px var(--h); color: var(--chalk); }
.board__nav a:hover { color: var(--yel); text-decoration: underline wavy; }
.board__acts { margin-left: auto; display: flex; gap: 16px; align-items: center; font: 700 20px var(--h); color: var(--chalk); }
.board__cart { border: 2px solid var(--chalk); border-radius: 10px; padding: 0 14px; }
.board__acts b { color: var(--yel); }
.board__menu { display: none; background: none; border: 0; color: var(--chalk); font-size: 24px; cursor: pointer; }
.board__hero { display: grid; grid-template-columns: 1.2fr 1fr; gap: 50px; align-items: center; padding: 50px 0 20px; }
.chalk--date { font-size: 22px; color: var(--yel); }
.board h1 { font-size: clamp(40px, 5vw, 66px); line-height: 1.12; font-weight: 700; margin: 6px 0 18px; }
.chalk--list { font-size: 24px; padding-left: 30px; margin-bottom: 28px; }
.chalk--list li { margin: 2px 0; }
.chalk-btn { display: inline-block; font: 700 22px var(--h); color: var(--slate-d); background: var(--chalk); padding: 6px 22px; border-radius: 10px; border: 0; cursor: pointer; box-shadow: 0 4px 0 rgba(0,0,0,.25); transition: transform .15s; }
.chalk-btn:hover { transform: translateY(-2px) rotate(-1deg); }
.chalk-btn--ink { background: var(--ink); color: #fff; font-size: 20px; }
.board__photo { position: relative; border: 3px dashed rgba(244,242,234,.55); padding: 10px; border-radius: 6px; transform: rotate(2deg); }
.board__photo img { aspect-ratio: 5/4; object-fit: cover; width: 100%; border-radius: 3px; }
.board__photo figcaption { position: absolute; right: -10px; bottom: -22px; font-size: 26px; color: var(--yel); transform: rotate(-6deg); }
.board__ledge { position: absolute; left: -16px; right: -16px; bottom: 0; height: 20px; background: #8a5a33; box-shadow: 0 4px 8px rgba(0,0,0,.25); }
.board__ledge span { position: absolute; bottom: 14px; height: 9px; width: 46px; border-radius: 4px; }
.c1 { left: 18%; background: #fff; } .c2 { left: 23%; background: var(--yel); width: 34px !important; } .c3 { left: 27%; background: #f5a3b6; width: 30px !important; }
.duster { right: 16%; width: 90px !important; height: 18px !important; background: linear-gradient(#e0d0b8 50%, #6b4b2e 50%) !important; }

.page { background: var(--paper) linear-gradient(90deg, transparent 72px, var(--margin) 72px 74px, transparent 74px), var(--paper); background-image: linear-gradient(90deg, transparent 72px, var(--margin) 72px, var(--margin) 74px, transparent 74px), repeating-linear-gradient(transparent 0 35px, var(--rule) 35px 36px); width: min(1260px, 100% - 32px); margin: 30px auto 0; padding: 30px 0 60px; box-shadow: 0 10px 40px rgba(0,0,0,.12); position: relative; border-radius: 4px; }
.page::before { content: ''; position: absolute; left: 22px; top: 40px; bottom: 40px; width: 18px; background: radial-gradient(circle, #e9e4d6 6px, transparent 7px) 0 0/18px 60px; }
.tabs-edge { position: absolute; right: -32px; top: 80px; display: flex; flex-direction: column; gap: 6px; }
.tabs-edge span { background: var(--c); writing-mode: vertical-rl; padding: 14px 6px; font: 700 12px var(--f); border-radius: 0 8px 8px 0; color: var(--ink); }
.page .wrap { padding-left: 50px; }

.sec { padding: 36px 0; }
.hd { font: 700 clamp(28px, 3.4vw, 40px)/1.2 var(--h); color: var(--ink); margin-bottom: 22px; }
.hd > span:first-child { color: #d04848; }
.hd small { font: 400 18px var(--h); color: var(--pencil); }

.register { border: 2px solid var(--ink); background: rgba(255,255,255,.7); }
.register__row { display: grid; grid-template-columns: 70px 1fr 160px 90px 130px; align-items: center; border-bottom: 1px solid var(--rule); }
.register__row > * { padding: 10px 14px; border-right: 1px solid var(--rule); }
.register__row > *:last-child { border-right: 0; }
.register__head { background: var(--ink); color: #fff; font-weight: 800; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; }
.register__head > * { border-color: rgba(255,255,255,.2); }
.reg { width: 100%; background: none; border: 0; border-bottom: 1px solid var(--rule); text-align: left; cursor: pointer; padding: 0; }
.reg:hover { background: #fff8d6; }
.reg.is-on { background: #fff1b3; }
.reg__name { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.reg__name img { width: 36px; height: 36px; border-radius: 6px; object-fit: cover; }
.reg__mark { font: 700 22px var(--h); color: #2f8a57; }
.reg__roll { font: 700 20px var(--h); color: #d04848; }

.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.fc { background: #fff; border: 1px solid #e3e3dc; border-top: 26px solid var(--c, #8fb3f0); box-shadow: 0 6px 16px rgba(0,0,0,.08); padding: 12px; position: relative; transition: transform .2s; }
.fc:nth-child(odd) { transform: rotate(-1deg); } .fc:nth-child(even) { transform: rotate(1deg); }
.fc:hover { transform: rotate(0) translateY(-4px); }
.fc::before { content: ''; position: absolute; top: -20px; left: 50%; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: #d04848; box-shadow: 0 2px 2px rgba(0,0,0,.3); }
.fc img { aspect-ratio: 1; object-fit: cover; width: 100%; }
.fc h3 { font: 700 21px/1.15 var(--h); margin-top: 10px; }
.fc small { color: var(--pencil); font-size: 12.5px; }
.fc__row { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; }
.fc__row b { font-size: 17px; } .fc__row s { color: var(--pencil); font-size: 12.5px; margin-left: 4px; }
.fc__acts { display: flex; gap: 6px; }
.fc__acts button { border: 1.5px solid var(--ink); background: #fff; border-radius: 8px; padding: 4px 10px; font-weight: 800; cursor: pointer; font-size: 13px; }
.fc__acts button[data-add] { background: var(--ink); color: #fff; }
.fc__acts button.is-on { background: #fde2e2; color: #d04848; border-color: #d04848; }

.subjects { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.subj { display: flex; align-items: center; gap: 12px; background: var(--c); border-radius: 4px 14px 14px 4px; padding: 10px; border-left: 10px solid rgba(0,0,0,.15); transition: transform .15s; }
.subj:hover { transform: translateX(4px); }
.subj img { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; border: 3px solid #fff; }
.subj b { font: 700 20px/1.1 var(--h); display: block; } .subj small { font-size: 12.5px; }

.homework { background: #fff8c9; border: 2px solid #e8d77a; padding: 26px 30px; max-width: 760px; transform: rotate(-.8deg); box-shadow: 0 8px 20px rgba(0,0,0,.08); position: relative; }
.homework::after { content: ''; position: absolute; top: -12px; left: 40px; width: 90px; height: 24px; background: rgba(143,179,240,.6); transform: rotate(-3deg); }
.hw__label { font: 700 16px var(--f); text-transform: uppercase; letter-spacing: .14em; color: #d04848; }
.hw__text { font: 700 clamp(26px, 3vw, 36px)/1.25 var(--h); margin: 6px 0; }
.hw__text b { background: #fff; border: 2px dashed var(--ink); padding: 0 8px; }
.hw__due { color: var(--pencil); font: 400 18px var(--h); }

.tt { display: grid; grid-template-columns: 120px repeat(3, 1fr); border: 2px solid var(--ink); background: #fff; }
.tt__col { display: grid; grid-template-rows: 48px 170px 76px 56px 64px; border-right: 1px solid var(--rule); }
.tt__col:last-child { border-right: 0; }
.tt__col > * { border-bottom: 1px solid var(--rule); padding: 10px 14px; display: flex; align-items: center; }
.tt__col > *:last-child { border-bottom: 0; }
.tt__h { background: var(--ink); color: #fff; font-weight: 800; font-size: 14px; }
.tt__label { font: 700 18px var(--h); color: #d04848; background: #fafaf4; }
.tt__col img { width: 100%; height: 100%; object-fit: cover; border-radius: 4px; }
.tt__inside { font-size: 13.5px; color: var(--pencil); line-height: 1.4; }
.tt__price b { font-size: 20px; } .tt__price s { color: var(--pencil); font-size: 13px; margin-left: 6px; }
.tt__btn { border: 0; background: var(--yel); font: 700 18px var(--h); padding: 4px 16px; border-radius: 8px; cursor: pointer; }

.marks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.marks div { display: flex; align-items: center; gap: 14px; background: #fff; border: 1.5px solid var(--rule); padding: 14px; border-radius: 10px; }
.marks b { font: 700 34px var(--h); color: #d04848; border: 3px solid #d04848; border-radius: 50%; width: 64px; height: 64px; display: grid; place-items: center; transform: rotate(-10deg); flex: none; }

.report { border: 2px solid var(--ink); background: #fff; }
.report__row { display: grid; grid-template-columns: 200px 1fr 90px; border-bottom: 1px solid var(--rule); }
.report__row:last-child { border-bottom: 0; }
.report__row > * { padding: 16px; }
.report__who { font-weight: 800; border-right: 1px solid var(--rule); } .report__who small { display: block; color: var(--pencil); font-weight: 400; }
.report__text { font: 400 20px/1.4 var(--h); color: #2a4f8f; }
.report__grade { font: 700 30px var(--h); color: #d04848; text-align: center; border-left: 1px solid var(--rule); }

.show { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.show figure { background: #fff; padding: 10px 10px 4px; box-shadow: 0 6px 16px rgba(0,0,0,.1); }
.show figure:nth-child(odd) { transform: rotate(-2deg); } .show figure:nth-child(even) { transform: rotate(2deg); }
.show img { aspect-ratio: 1; object-fit: cover; width: 100%; }
.show figcaption { font: 700 19px var(--h); text-align: center; padding: 6px 0; }
.show__cta { margin-top: 24px; font: 700 21px var(--h); } .show__cta a { color: #2a4f8f; text-decoration: underline; }

.slip { max-width: 640px; background: #fff; border: 2px dashed var(--ink); padding: 26px 30px; }
.slip__title { font: 700 30px var(--h); color: #d04848; }
.slip label { display: block; font-weight: 800; margin-top: 12px; }
.slip__row { display: flex; gap: 12px; align-items: flex-end; margin-top: 4px; }
.slip input { flex: 1; min-width: 0; border: 0; border-bottom: 2px solid var(--ink); background: none; font: 700 24px var(--h); padding: 4px 0; letter-spacing: .1em; }
.slip input:focus { outline: none; border-color: #2a4f8f; }
.slip small { display: block; color: var(--pencil); margin-top: 10px; }

.ftr { background: var(--slate-d); color: #cfdcd5; padding: 56px 0 24px; margin-top: 40px; font-size: 15px; }
.ftr__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; }
.ftr__grid img { height: 72px; background: var(--paper); border-radius: 12px; padding: 4px 8px; margin-bottom: 12px; }
.ftr__grid p { max-width: 260px; }
.ftr h3 { font: 700 24px var(--h); color: var(--chalk); margin-bottom: 6px; }
.ftr__grid a { display: block; padding: 2px 0; } .ftr__grid a:hover { color: #fff; }
.ftr__base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-top: 36px; padding-top: 18px; border-top: 1px dashed rgba(244,242,234,.25); font-size: 13px; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); background: var(--slate); color: var(--chalk); font: 700 20px var(--h); padding: 10px 24px; border: 4px solid #8a5a33; opacity: 0; pointer-events: none; transition: .25s; z-index: 50; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 1000px) {
  .board__nav { position: absolute; top: 80px; left: 0; right: 0; flex-direction: column; gap: 4px; background: var(--slate-d); padding: 14px 24px; display: none; z-index: 20; }
  .board__nav.is-open { display: flex; }
  .board { position: relative; }
  .board__menu { display: block; }
  .board__hero { grid-template-columns: 1fr; }
  .board__photo { max-width: 520px; }
  .tabs-edge { display: none; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .subjects, .marks { grid-template-columns: 1fr 1fr; }
  .tt { grid-template-columns: 1fr 1fr 1fr; } .tt__col--labels { display: none; }
  .show { grid-template-columns: 1fr 1fr; }
  .ftr__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .wrap { width: calc(100% - 28px); }
  .board { border-width: 0 8px; }
  .board__logo img { height: 42px; }
  .board__acts { gap: 10px; font-size: 18px; }
  .board__hero { padding-top: 30px; gap: 36px; }
  .chalk--list { font-size: 20px; }
  .page { width: calc(100% - 12px); background-image: linear-gradient(90deg, transparent 34px, var(--margin) 34px, var(--margin) 36px, transparent 36px), repeating-linear-gradient(transparent 0 35px, var(--rule) 35px 36px); }
  .page::before { display: none; }
  .page .wrap { padding-left: 30px; width: calc(100% - 16px); margin-left: 8px; }
  .register__row { grid-template-columns: 40px 1fr 70px; }
  .register__row > *:nth-child(3), .register__row > *:nth-child(4) { display: none; }
  .register__row > * { padding: 8px; }
  .reg__name { font-size: 14px; } .reg__name img { width: 30px; height: 30px; }
  .cards { gap: 18px 12px; } .fc { padding: 8px; } .fc h3 { font-size: 17px; } .fc__row { flex-direction: column; align-items: flex-start; gap: 6px; }
  .subjects, .marks { grid-template-columns: 1fr; }
  .tt { grid-template-columns: 1fr; }
  .tt__col { grid-template-rows: 44px 180px auto auto auto; border-right: 0; border-bottom: 2px solid var(--ink); }
  .report__row { grid-template-columns: 1fr 60px; } .report__who { grid-column: 1 / -1; border-right: 0; border-bottom: 1px dashed var(--rule); }
  .show { gap: 14px; }
  .slip { padding: 20px; } .slip__row { flex-direction: column; align-items: stretch; }
  .ftr__grid > div:first-child { grid-column: 1 / -1; }
}
.show figure, .cards > *, .subjects > * { min-width: 0; }
@media (max-width: 640px) { .board__ledge { left: -8px; right: -8px; } .page { overflow: hidden; } }
