@font-face { font-family: "Public Sans"; src: url("/fonts/public-sans.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Serif 4"; src: url("/fonts/source-serif-4-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Space Grotesk"; src: url("/fonts/space-grotesk-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  --paper: #F7F5EF;
  --paper-2: #EDEAE1;
  --card: #FFFDF8;
  --ink: #1F2A2E;
  --muted: #4A5459;
  --rule: #DED9CC;
  --teal: #2F6F5E;
  --teal-dark: #24584A;
  --gold-light-bg: #C8962E;
  --gold-dark-bg: #E0B062;
  --on-dark: #F7F5EF;
  --on-dark-muted: #C9D1CF;
  --dark-rule: #3A474C;
  --error: #9A3412;
  --serif: "Source Serif 4", Georgia, serif;
  --sans: "Public Sans", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
}
a { color: var(--teal); text-underline-offset: 3px; }
a:hover { color: var(--teal-dark); }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 2px; }
.dark :focus-visible { outline-color: var(--gold-dark-bg); }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--card); padding: 10px 14px; z-index: 10; }

/* Placeholders the team still has to fill: impossible to miss on purpose. */
mark.ph {
  background: #FFF1C2; color: #5C4300; padding: 1px 6px; border-radius: 3px;
  font-family: var(--sans); font-style: normal; font-weight: 600; font-size: 0.9em;
  border: 1px dashed #C8962E;
}

/* Header and footer */
header.site { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 20px; padding-bottom: 20px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); min-height: 44px; }
.brand svg { width: 40px; height: 40px; flex: none; }
.wordmark { font-family: "Space Grotesk", var(--sans); font-weight: 700; font-size: 23px; letter-spacing: -0.5px; line-height: 1; }
.wordmark span { color: var(--teal); }
header.site nav { display: flex; gap: 20px; align-items: center; }
header.site nav a { font-size: 15px; font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
header.site nav a:hover { text-decoration: underline; }
header.site .nav-sgo { display: none; }

footer.site { border-top: 1px solid var(--rule); padding: 32px 0 40px; font-size: 15px; color: var(--muted); }
footer.site .wrap { display: flex; flex-direction: column; gap: 16px; }
footer.site .brand svg { width: 32px; height: 32px; }
footer.site .wordmark { font-size: 19px; }
footer.site ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 20px; }
footer.site ul a { display: inline-flex; min-height: 44px; align-items: center; }

/* Type */
h1, h2, h3 { font-family: var(--serif); font-weight: 600; color: var(--ink); }
h1 { font-size: 36px; line-height: 1.1; letter-spacing: -0.3px; margin: 0 0 20px; }
h2 { font-size: 29px; line-height: 1.18; margin: 0 0 18px; }
h3 { font-size: 21px; line-height: 1.3; margin: 0 0 6px; }
.kicker { font-size: 13px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: var(--teal); margin: 0 0 14px; }
.muted { color: var(--muted); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px;
  padding: 10px 22px; border-radius: 6px; border: 2px solid var(--teal);
  background: var(--teal); color: var(--on-dark); font: 600 17px/1.2 var(--sans);
  text-decoration: none; cursor: pointer;
}
.btn:hover { background: var(--teal-dark); border-color: var(--teal-dark); color: var(--on-dark); }
.btn[disabled] { opacity: 0.7; cursor: progress; }
.btn-quiet { background: transparent; color: var(--teal); }
.btn-quiet:hover { background: var(--paper-2); color: var(--teal-dark); }
.dark .btn { background: var(--gold-dark-bg); border-color: var(--gold-dark-bg); color: var(--ink); }
.dark .btn:hover { background: #EAC27F; border-color: #EAC27F; color: var(--ink); }

/* Hero */
.intro { display: grid; gap: 40px; padding-top: 24px; padding-bottom: 64px; }
.lede { font-size: 19px; color: var(--muted); margin: 0 0 28px; max-width: 34em; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.actions .text-link { font-weight: 600; display: inline-flex; align-items: center; min-height: 44px; }

.note {
  background: var(--card); border: 1px solid var(--rule); border-radius: 6px;
  padding: 22px 20px; font-size: 16px; line-height: 1.55;
  box-shadow: 0 1px 0 var(--rule), 0 12px 28px -18px rgba(31, 42, 46, 0.35);
}
.note-label { font-size: 12px; font-weight: 600; letter-spacing: 1.2px; text-transform: uppercase; color: var(--muted); margin: 0 0 14px; }
.note-head { font-family: var(--serif); font-size: 21px; font-weight: 600; margin: 0 0 2px; }
.note-sub { color: var(--muted); margin: 0 0 16px; font-size: 15px; }
.note dl { margin: 0; display: grid; gap: 2px; }
.note dt { color: var(--muted); font-size: 14px; }
.note dd { margin: 0 0 10px; }
.note .math { font-family: var(--serif); font-style: italic; white-space: nowrap; }
.note-foot { margin: 8px 0 0; padding-top: 12px; border-top: 1px dashed var(--rule); font-size: 14px; color: var(--muted); }

/* Sections */
section.block { padding: 64px 0; border-top: 1px solid var(--rule); }
.two { display: grid; gap: 36px; }
.two > :first-child p { color: var(--muted); }

ol.plan { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; gap: 24px; }
ol.plan li { counter-increment: step; display: grid; grid-template-columns: 40px 1fr; gap: 4px 14px; }
ol.plan li::before {
  content: counter(step); grid-row: span 2;
  font-family: var(--serif); font-size: 28px; font-weight: 600; color: var(--teal); line-height: 1.1;
}
ol.plan p { margin: 0; color: var(--muted); }

.courses { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 0; padding: 0; list-style: none; }
.courses li { background: var(--paper-2); border-radius: 4px; padding: 6px 12px; font-size: 15px; font-weight: 500; }

.cards { display: grid; gap: 16px; margin: 8px 0 0; padding: 0; list-style: none; }
.cards li { background: var(--card); border: 1px solid var(--rule); border-top: 3px solid var(--gold-light-bg); border-radius: 6px; padding: 22px 22px 20px; }
.cards p { margin: 0; color: var(--muted); }

ol.steps { margin: 0 0 20px; padding-left: 1.4em; display: grid; gap: 10px; }
ol.steps li::marker { font-weight: 600; color: var(--teal); }

ul.checks { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
ul.checks li { padding-left: 30px; position: relative; }
ul.checks li::before {
  content: ""; position: absolute; left: 2px; top: 8px; width: 14px; height: 8px;
  border-left: 2.5px solid var(--teal); border-bottom: 2.5px solid var(--teal); transform: rotate(-45deg);
}

.price { font-family: var(--serif); font-size: 24px; font-weight: 600; margin: 0 0 8px; }

/* Dark band: scholarship organizations */
.dark { background: var(--ink); color: var(--on-dark); padding: 64px 0; }
.dark h2, .dark h3 { color: var(--on-dark); }
.dark .two > :first-child p, .dark p { color: var(--on-dark-muted); }
.dark .kicker { color: var(--gold-dark-bg); }
.dark a { color: var(--gold-dark-bg); }
.records { width: 100%; border-collapse: collapse; font-size: 16px; }
.records th, .records td { text-align: left; vertical-align: top; }
.records tr { display: block; border-bottom: 1px solid var(--dark-rule); padding: 14px 0; }
.records th { display: block; font-weight: 600; color: var(--on-dark); }
.records td { display: block; color: var(--on-dark-muted); }

details.packet { margin-top: 28px; }
details.packet > summary { list-style: none; display: inline-flex; }
details.packet > summary::-webkit-details-marker { display: none; }
details.packet[open] > summary { margin-bottom: 20px; }
.dark .form-card { background: #26343A; border: 1px solid var(--dark-rule); }

/* FAQ */
.faq details { border-bottom: 1px solid var(--rule); }
.faq details:first-of-type { border-top: 1px solid var(--rule); }
.faq summary {
  cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  min-height: 56px; padding: 12px 0; font-weight: 600; font-size: 18px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 26px/1 var(--sans); color: var(--teal); flex: none; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 18px; }

/* Forms */
.form-card { background: var(--card); border: 1px solid var(--rule); border-radius: 8px; padding: 22px 18px; }
.fields { display: grid; gap: 18px; }
.field label { display: block; font-weight: 600; font-size: 15px; margin-bottom: 6px; }
.field .opt { font-weight: 400; color: var(--muted); }
.dark .field .opt { color: var(--on-dark-muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 10px 12px; font: 400 17px/1.4 var(--sans);
  color: var(--ink); background: #FFFFFF; border: 1.5px solid #8A9296; border-radius: 6px;
}
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline-offset: 1px; }
.field [aria-invalid="true"] { border-color: var(--error); }
.field .error { color: var(--error); font-size: 14px; margin: 6px 0 0; }
.dark .field .error { color: #FDBA8C; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.consent { font-size: 14px; color: var(--muted); margin: 12px 0 0; }
.form-status { margin: 16px 0 0; font-weight: 600; }
.form-status.ok { color: var(--teal); background: #E6EFEA; border-radius: 6px; padding: 14px 16px; font-weight: 500; }
.dark .form-status.ok { color: var(--ink); background: #E6EFEA; }
.form-status.bad { color: var(--error); }
.dark .form-status.bad { color: #FDBA8C; }
.fallback { margin-top: 20px; color: var(--muted); }

/* Tutor application: grouped fields */
fieldset.fields { border: 0; margin: 0 0 26px; padding: 0; min-width: 0; }
fieldset.fields legend { font-family: var(--serif); font-weight: 600; font-size: 20px; padding: 0; margin-bottom: 12px; }
.hint { margin: -6px 0 10px; color: var(--muted); font-size: 15px; }
.check { display: flex; align-items: flex-start; gap: 10px; min-height: 44px; padding: 10px 0; font-size: 16px; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; accent-color: var(--teal); }
.check-grid { display: grid; gap: 0 20px; }
fieldset[aria-invalid="true"] .check-grid { outline: 1.5px solid var(--error); outline-offset: 4px; border-radius: 4px; }
.field input[type="file"] { padding: 10px; background: var(--paper); }
.page .lede { font-size: 19px; color: var(--muted); }
.page ul.checks, .page ol.steps { margin-bottom: 8px; }

/* Plain text pages (privacy, terms, thanks, 404) */
.page { max-width: 760px; padding-top: 24px; padding-bottom: 72px; }
.page h2 { font-size: 24px; margin-top: 36px; }
.page .draft { background: #FFF8E1; border: 1px solid #E8D3A0; border-radius: 6px; padding: 14px 16px; }

@media (min-width: 860px) {
  body { font-size: 18px; }
  .wrap { padding: 0 24px; }
  header.site { padding-top: 28px; padding-bottom: 28px; }
  header.site .nav-sgo { display: inline-flex; }
  h1 { font-size: 52px; letter-spacing: -0.5px; margin-bottom: 24px; }
  h2 { font-size: 36px; }
  .intro { grid-template-columns: 1.15fr 1fr; gap: 64px; align-items: start; padding-top: 48px; padding-bottom: 88px; }
  .lede { font-size: 20px; }
  .note { padding: 28px 30px 26px; transform: rotate(0.6deg); }
  .note dl { grid-template-columns: 9.5em 1fr; gap: 10px 14px; }
  .note dd { margin: 0; }
  section.block, .dark { padding: 88px 0; }
  .two { grid-template-columns: 1fr 1.6fr; gap: 64px; }
  .cards { grid-template-columns: 1fr 1fr; gap: 20px; }
  .records { display: table; }
  .records tr { display: table-row; padding: 0; }
  .records th, .records td { display: table-cell; padding: 14px 0; border-bottom: 1px solid var(--dark-rule); }
  .records th { width: 36%; padding-right: 20px; }
  .form-card { padding: 32px; }
  .fields.cols { grid-template-columns: 1fr 1fr; }
  .fields .wide { grid-column: 1 / -1; }
  .check-grid { grid-template-columns: 1fr 1fr; }
  footer.site .wrap { flex-direction: row; justify-content: space-between; align-items: center; }
}
