/* Placeholder for the retired pupil application at app.gradeaid.ai.
   Colours and typefaces follow the teacher app (gradeaid-teacher/src/index.css).
   Fonts are self-hosted so the page makes no request to another host. */

@font-face {
  font-family: "Space Grotesk";
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/space-grotesk-latin-700-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Space Grotesk";
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/space-grotesk-latin-ext-700-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "DM Sans";
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/dm-sans-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "DM Sans";
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/dm-sans-latin-ext-400-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "DM Sans";
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/dm-sans-latin-500-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "DM Sans";
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/dm-sans-latin-ext-500-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --paper: #fafafc;
  --ink: #1f1b4d;
  --ink-soft: #57517f;
  --violet: #7c3aed;
  --violet-deep: #5b21b6;
  --on-violet: #ffffff;
  --rule: #ddd9ee;
  --focus: #ff6b00;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #15132b;
    --ink: #f4f2fb;
    --ink-soft: #b9b3d9;
    /* --violet stays #7c3aed: white text on the teachers panel keeps 5.7:1. */
    --rule: #34305a;
    color-scheme: dark;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font-family: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
}

.page {
  max-width: 40rem;
  margin: 0 auto;
  padding: 1.5rem 1rem 3rem;
}

@media (min-width: 40rem) {
  .page {
    padding: 2.5rem 1.5rem 4rem;
  }
}

.top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  margin-bottom: 4rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  color: var(--ink);
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  text-decoration: none;
}

.brand img {
  width: 2rem;
  height: 2rem;
}

.languages {
  display: flex;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.9375rem;
}

.languages a {
  color: var(--ink-soft);
  text-decoration: none;
  border-bottom: 2px solid transparent;
}

.languages a:hover {
  color: var(--ink);
}

.languages a[aria-current="page"] {
  color: var(--ink);
  font-weight: 500;
  border-bottom-color: var(--violet);
}

h1 {
  margin: 0 0 1.25rem;
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: clamp(2.25rem, 7vw, 3.5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.lead {
  margin: 0 0 2.5rem;
  max-width: 34rem;
  color: var(--ink-soft);
  font-size: 1.1875rem;
}

h2 {
  margin: 0 0 0.5rem;
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: 1.375rem;
  font-weight: 700;
  line-height: 1.25;
}

.teachers {
  margin: 0 0 2.5rem;
  padding: 1.75rem 1.5rem;
  border-radius: 0.625rem;
  background: var(--violet);
  color: var(--on-violet);
}

@media (min-width: 40rem) {
  .teachers {
    padding: 2rem;
  }
}

.teachers p {
  margin: 0 0 1.5rem;
}

.button {
  display: inline-block;
  max-width: 100%;
  padding: 0.75rem 1.25rem;
  border-radius: 0.625rem;
  background: var(--on-violet);
  color: var(--violet-deep);
  font-weight: 500;
  text-decoration: none;
}

.button:hover {
  background: #f3eeff;
}

.pupils {
  margin: 0 0 3rem;
}

.pupils p {
  margin: 0 0 0.75rem;
}

.pupils a,
.foot a {
  color: inherit;
  text-decoration-color: var(--violet);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.2em;
}

.foot {
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
  color: var(--ink-soft);
  font-size: 0.875rem;
}

.foot p {
  margin: 0;
}

a:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 2px;
}
