@import url("/assets/fonts/fonts.css?v=20260912");
:root {
  --paper: #fff1f7;
  --card: #fffafd;
  --ink: #2d1d29;
  --muted: #735f6d;
  --pink: #ff4fa3;
  --hot-pink: #ff278c;
  --rose: #ffb8d7;
  --lilac: #d9b9ff;
  --sky: #b9e4ff;
  --mint: #bdebd4;
  --yellow: #ffe27a;
  --danger: #ff7b9e;
  --shadow: 4px 4px 0 var(--ink);
  --shadow-small: 2px 2px 0 var(--ink);
  font-family: "Inter", sans-serif;
  color: var(--ink);
  background: var(--paper);
}

* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background-color: var(--paper); background-image: radial-gradient(circle at 1px 1px, rgba(255,79,163,.18) 1px, transparent 1.25px); background-size: 18px 18px; }
a { color: inherit; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
.academy-shell { min-height: 100vh; display: grid; grid-template-columns: 260px minmax(0,1fr); }
.sidebar { position: sticky; top: 0; height: 100vh; padding: 24px 18px; background: rgba(255,250,253,.96); border-right: 2px solid var(--ink); box-shadow: 4px 0 0 var(--ink); display: flex; flex-direction: column; z-index: 2; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand small { display: block; color: var(--muted); text-transform: uppercase; letter-spacing: .12em; font: 700 10px ui-monospace, monospace; }
.brand strong { display: block; font-size: 18px; }
.brand-mark { width: 43px; height: 43px; display: grid; place-items: center; border: 2px solid var(--ink); border-radius: 13px; background: linear-gradient(135deg,var(--pink),var(--lilac)); box-shadow: 3px 3px 0 var(--ink); transform: rotate(-3deg); color: white; text-shadow: 1px 1px 0 var(--ink); }
.sidebar nav { margin-top: 36px; display: grid; gap: 8px; }
.sidebar nav a, .nav-button { display: block; width: 100%; padding: 11px 12px; border: 2px solid transparent; border-radius: 10px; background: transparent; text-align: left; text-decoration: none; font-weight: 800; color: var(--ink); }
.sidebar nav a:hover, .nav-button:hover { border-color: var(--ink); background: var(--rose); box-shadow: var(--shadow-small); transform: translate(-1px,-1px); }
.sidebar-note { margin-top: auto; padding: 14px; background: linear-gradient(145deg,var(--rose),#ffd8ea); border: 2px solid var(--ink); border-radius: 12px; box-shadow: var(--shadow-small); transform: rotate(-1deg); font-size: 13px; line-height: 1.45; }
.sidebar-logout { margin-top: 16px; }
.workspace { width: 100%; max-width: 1480px; margin: 0 auto; padding: 34px clamp(18px,4vw,54px) 70px; }
.page-heading { padding-bottom: 20px; margin-bottom: 24px; border-bottom: 2px solid var(--ink); }
.page-heading h1 { margin: 0; font-size: clamp(30px,4vw,52px); line-height: 1; letter-spacing: -.04em; }
.page-heading p { color: var(--muted); margin: 9px 0 0; }
.card { position: relative; padding: 22px; margin-bottom: 24px; background: var(--card); border: 2px solid var(--ink); border-radius: 15px; box-shadow: var(--shadow); }
.card::after { content: "✦"; position: absolute; right: 14px; top: 10px; color: var(--pink); opacity: .32; font-size: 18px; }
.sparkle-card::before { content: "✧  ✦  ✧"; position: absolute; right: 28px; top: 26px; color: var(--hot-pink); font-size: 24px; letter-spacing: 10px; transform: rotate(8deg); }
.metric-grid, .admin-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; }
.accent-pink, .accent-yellow { background: linear-gradient(145deg,#ffd0e5,var(--rose)); }
.accent-lilac, .accent-rose { background: linear-gradient(145deg,#f2dcff,var(--lilac)); }
.accent-sky { background: linear-gradient(145deg,#e3f5ff,var(--sky)); }
.card small, .kicker { color: var(--hot-pink); text-transform: uppercase; letter-spacing: .13em; font: 800 11px ui-monospace, monospace; }
.card h2 { margin: 8px 0; }
.field { display: grid; gap: 7px; margin-bottom: 14px; font-weight: 800; }
.field input, .field textarea, .field select, select, .inline-form input { width: 100%; padding: 11px 12px; color: var(--ink); background: white; border: 2px solid var(--ink); border-radius: 9px; outline: none; }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { box-shadow: 3px 3px 0 var(--pink); }
.field-error { color: #b0004f; }
.button, .mini-button { display: inline-flex; align-items: center; justify-content: center; padding: 11px 16px; color: var(--ink); background: linear-gradient(135deg,var(--pink),#ff87bd); border: 2px solid var(--ink); border-radius: 9px; box-shadow: 3px 3px 0 var(--ink); font-weight: 900; text-decoration: none; }
.button:hover, .mini-button:hover { transform: translate(-1px,-1px); box-shadow: 4px 4px 0 var(--ink); }
.button:active, .mini-button:active { transform: translate(2px,2px); box-shadow: none; }
.button.secondary { background: var(--sky); margin-left: 8px; }
.button.inline { width: fit-content; }
.mini-button { padding: 6px 9px; font-size: 12px; box-shadow: var(--shadow-small); }
.notice { padding: 12px 14px; margin: 0 0 18px; background: var(--mint); border: 2px solid var(--ink); border-radius: 9px; box-shadow: var(--shadow-small); overflow-wrap: anywhere; }
.notice.error { background: var(--danger); }
.status { display: inline-block; padding: 3px 8px; background: var(--rose); border: 1.5px solid var(--ink); border-radius: 7px; box-shadow: 1px 1px 0 var(--ink); font-size: 12px; font-weight: 800; }
.status.success { background: var(--mint); margin-left: 10px; }
.lesson-list, .admin-list { padding: 0; margin: 14px 0 0; list-style: none; display: grid; gap: 9px; }
.lesson-list li, .admin-list li { padding: 12px; border: 2px solid var(--ink); border-radius: 10px; display: flex; justify-content: space-between; gap: 14px; align-items: center; background: white; box-shadow: var(--shadow-small); }
.lesson-list .locked { color: var(--muted); background: #f7edf2; }
.lesson-list .open { background: #fff3f9; }
.curriculum h3 { margin-top: 22px; }
.video-card video, .video-card iframe { width: 100%; aspect-ratio: 16/9; display: block; margin-bottom: 16px; background: #130c12; border: 2px solid var(--ink); border-radius: 12px; }
.lesson-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; }
.prose { white-space: pre-wrap; line-height: 1.65; }
.messages { display: grid; gap: 10px; margin: 16px 0; }
.message { padding: 12px; border: 2px solid var(--ink); border-radius: 10px; background: white; }
.message.assistant { background: #ffe1ef; margin-left: 7%; }
.message.student { background: #e4f5ff; margin-right: 7%; }
.message p { margin: 6px 0; white-space: pre-wrap; }
.inline-form { display: flex; align-items: end; gap: 10px; flex-wrap: wrap; }
.inline-form .field { margin: 0; flex: 1 1 220px; }
.inline-form input[type=number] { width: 76px; padding: 6px; }
.wide-form { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px 18px; }
.wide-form .field { margin: 0; }
.wide-form .button { width: fit-content; }
.review-card { padding: 18px 0; border-bottom: 2px dashed rgba(45,29,41,.4); }
.login-card { max-width: 520px; margin: 5vh auto; padding: clamp(24px,5vw,38px); }
.login-brand { display: flex; align-items: center; gap: 16px; margin-bottom: 26px; }
.login-brand h1 { margin: 4px 0 0; }
.login-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.login-actions .button.secondary { margin-left: 0; background: var(--paper); }
.login-card details { margin-top: 22px; padding-top: 16px; border-top: 2px dashed var(--ink); }
.login-card summary { cursor: pointer; font-weight: 900; margin-bottom: 16px; }
.caption, .save-state { color: var(--muted); font-size: 13px; }
.landing { width: min(1180px,calc(100% - 32px)); margin: 0 auto; padding: 22px 0 70px; }
.landing-nav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 42px; }
.hero { padding: clamp(30px,7vw,78px); overflow: hidden; background: linear-gradient(145deg,#fffafd,#ffd5e8 55%,#ecd8ff); }
.hero h1 { max-width: 15ch; font-size: clamp(42px,7vw,82px); line-height: .94; letter-spacing: -.055em; margin: 18px 0 24px; }
.hero p { max-width: 64ch; line-height: 1.65; }
dt { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .1em; } dd { margin: 3px 0 16px; font-weight: 800; }
@media (max-width: 950px) { .academy-shell { display: block; } .sidebar { position: relative; height: auto; border-right: 0; border-bottom: 2px solid var(--ink); box-shadow: 0 4px 0 var(--ink); } .sidebar nav { margin-top: 18px; grid-template-columns: repeat(4,1fr); } .sidebar-note { display: none; } .metric-grid,.admin-grid,.lesson-grid { grid-template-columns: 1fr; } }
@media (max-width: 650px) { .workspace { padding-inline: 14px; } .sidebar nav { grid-template-columns: 1fr 1fr; } .wide-form { grid-template-columns: 1fr; } .lesson-list li,.admin-list li { align-items: flex-start; flex-direction: column; } .sparkle-card::before { display: none; } }
@media (prefers-reduced-motion: reduce) { *,*::before,*::after { scroll-behavior: auto !important; transition: none !important; } }

/* Typography 20260912: Inter body, Rubik headings, Playfair Display accents. */
h1, h2, h3, h4, h5, h6, .brand strong { font-family: "Rubik", sans-serif; }
.sidebar-note, blockquote, .font-accent { font-family: "Playfair Display", serif; }
.brand small, .card small { font-family: "Inter", sans-serif; }

/* Visible editorial accents on login and public pages. */
.login-brand small, .kicker {
  font-family: "Playfair Display", serif;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: .01em;
  text-transform: none;
}
