/* Skolmark website. Quiet and editorial: big type, hairline rules, square
   edges. Same tokens as the app (src/constants/theme.ts): ink for headlines,
   Campus Navy for actions, the wordmark and accent rules, amber for small
   highlights. In dark mode navy becomes the light campus blue.
   Light or dark follows the device unless someone picks one (theme.js). */

:root {
  color-scheme: light;
  --bg: #FAFAF8;
  --bg-2: #F0F0EC;
  --ink: #171717;
  --ink-2: #4A4A4A;
  --muted: #6E6E6B;
  --rule: #DEDED9;
  --on-ink: #FAFAF8;
  --primary: #102F59;
  --primary-pressed: #0B2445;
  --on-primary: #FFFFFF;
  --highlight: #A36A19;
  --accent: #102F59;
  --danger: #B83D3D;
  --success: #267348;
  --font: Geist, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --wrap: 1360px;
  --gutter: clamp(20px, 4vw, 48px);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0E1014;
  --bg-2: #171A1F;
  --ink: #F2F2F0;
  --ink-2: #CFCFCB;
  --muted: #9C9B97;
  --rule: #2A2E35;
  --on-ink: #0E1014;
  --primary: #7FA8E8;
  --primary-pressed: #6A93D6;
  --on-primary: #0B1A30;
  --highlight: #E0AE52;
  --accent: #7FA8E8;
  --danger: #E5736F;
  --success: #5CBF85;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0E1014;
    --bg-2: #171A1F;
    --ink: #F2F2F0;
    --ink-2: #CFCFCB;
    --muted: #9C9B97;
    --rule: #2A2E35;
    --on-ink: #0E1014;
    --primary: #7FA8E8;
    --primary-pressed: #6A93D6;
    --on-primary: #0B1A30;
    --highlight: #E0AE52;
    --accent: #7FA8E8;
    --danger: #E5736F;
    --success: #5CBF85;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; background: var(--bg); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 600; text-wrap: balance; }
p { margin: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 50; background: var(--ink); color: var(--on-ink); padding: 10px 14px; font-weight: 500; text-decoration: none; }
.skip:focus { top: 12px; }
:where(a, button, input, summary, label):focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* Wordmark: lowercase, tight, navy, with an amber full stop. */
.wordmark { font-weight: 700; font-size: 22px; letter-spacing: -0.05em; color: var(--primary); text-decoration: none; line-height: 1; }
.wordmark span, .footer-mark span { color: var(--highlight); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: var(--bg); border-bottom: 1px solid transparent; transition: border-color .2s ease; }
.site-header.scrolled { border-bottom-color: var(--rule); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }
.site-nav { display: flex; align-items: center; gap: 28px; }
.nav-link { font-size: 14px; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 6px; transition: text-decoration-color .15s ease; }
.nav-link:hover, .nav-link[aria-current="page"] { color: var(--primary); text-decoration-color: currentColor; }
.theme-toggle { display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 1px solid var(--rule); border-radius: 50%; background: transparent; color: var(--ink); cursor: pointer; touch-action: manipulation; transition: border-color .15s ease; }
.theme-toggle:hover { border-color: var(--primary); color: var(--primary); }
.theme-toggle svg { width: 16px; height: 16px; }
.theme-toggle .i-sun { display: none; }
[data-mode="dark"] .theme-toggle .i-sun { display: block; }
[data-mode="dark"] .theme-toggle .i-moon { display: none; }

/* Buttons: solid navy, or a navy hairline outline. Square. */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 50px; padding: 0 24px; border: 1px solid var(--primary); border-radius: 0; background: var(--primary); color: var(--on-primary); font: inherit; font-size: 15px; font-weight: 500; letter-spacing: -0.01em; text-decoration: none; cursor: pointer; white-space: nowrap; touch-action: manipulation; transition: opacity .15s ease, background-color .15s ease, color .15s ease; }
.btn:hover { background: var(--primary-pressed); border-color: var(--primary-pressed); }
.btn:disabled { opacity: .5; cursor: default; }
.btn-line { background: transparent; color: var(--primary); }
.btn-line:hover { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.btn-sm { height: 36px; padding: 0 14px; font-size: 14px; }

/* Type */
.display { font-size: clamp(46px, 9vw, 144px); font-weight: 600; letter-spacing: -0.058em; line-height: .92; }
.h2 { font-size: clamp(32px, 4.4vw, 60px); font-weight: 600; letter-spacing: -0.048em; line-height: 1; }
.lede { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.45; color: var(--ink-2); max-width: 30em; }
.small { font-size: 13px; color: var(--muted); }
.body-copy { color: var(--ink-2); max-width: 34em; }

/* Sections: separated by a rule, heading on the left, content on the right. */
.sec { border-top: 1px solid var(--rule); padding: clamp(64px, 9vw, 128px) 0; }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--gutter); align-items: start; }
.split > :first-child p { margin-top: 18px; }

/* One full-width Campus Navy band per page, for the closing call to action.
   Navy in both modes: on the dark page it reads as a deep blue block. */
.band { background: #102F59; color: #FFFFFF; border-top: 0; }
.band + .site-footer { border-top: 0; }
.band .lede, .band .small { color: rgba(255, 255, 255, 0.78); }
.band .small a { color: #FFFFFF; }
.band .btn { background: #FFFFFF; border-color: #FFFFFF; color: #102F59; }
.band .btn:hover { background: #E8EEF7; border-color: #E8EEF7; }
.band .btn-line { background: transparent; border-color: rgba(255, 255, 255, 0.6); color: #FFFFFF; }
.band .btn-line:hover { background: #FFFFFF; border-color: #FFFFFF; color: #102F59; }
.band :where(a, button):focus-visible { outline-color: #FFFFFF; }

/* Rows: a large title with a short note, between hairlines. */
.rows { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--rule); }
.rows li { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 24px; align-items: baseline; padding: 22px 0; border-top: 1px solid var(--rule); }
.rows b { font-size: clamp(28px, 3.4vw, 46px); font-weight: 600; letter-spacing: -0.045em; line-height: 1.05; }
.rows span { color: var(--muted); font-size: 15px; }

/* Facts: short statements in a ruled grid. */
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 40px var(--gutter); }
.facts > div { border-top: 2px solid var(--primary); padding-top: 18px; }
.facts h3 { font-size: 19px; letter-spacing: -0.025em; margin-bottom: 8px; }
.facts p { color: var(--ink-2); font-size: 15px; }

/* Questions */
.faq { border-bottom: 1px solid var(--rule); }
.faq details { border-top: 1px solid var(--rule); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0; font-size: 18px; font-weight: 500; letter-spacing: -0.02em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { flex: none; width: 18px; height: 18px; color: var(--muted); transition: transform .2s ease; }
.faq details[open] summary svg { transform: rotate(45deg); }
.faq details p { padding: 0 0 24px; color: var(--ink-2); max-width: 40em; }
.faq details a { color: var(--primary); text-underline-offset: 3px; }
.faq details[open] summary svg { color: var(--primary); }

/* Footer, ending on a very large wordmark. */
.site-footer { border-top: 1px solid var(--rule); padding: 48px 0 0; overflow-x: clip; }
.footer-top { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px var(--gutter); align-items: start; font-size: 14px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 10px 24px; }
.footer-nav a { text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 5px; transition: text-decoration-color .15s ease; }
.footer-nav a:hover { text-decoration-color: currentColor; }
.disc { grid-column: 1 / -1; max-width: 34em; color: var(--muted); font-size: 13px; }
.appearance { display: inline-flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; }
.appearance-set { display: inline-flex; border: 1px solid var(--rule); }
.appearance button { height: 30px; padding: 0 12px; border: 0; background: transparent; color: var(--ink-2); font: inherit; font-size: 13px; cursor: pointer; touch-action: manipulation; }
.appearance button + button { border-left: 1px solid var(--rule); }
.appearance button[aria-pressed="true"] { background: var(--primary); color: var(--on-primary); }
.footer-mark { display: block; margin: clamp(48px, 7vw, 96px) 0 0; font-size: clamp(76px, 20.5vw, 290px); font-weight: 700; letter-spacing: -0.07em; line-height: .8; padding-bottom: .06em; color: var(--primary); white-space: nowrap; user-select: none; transform: translateX(-0.04em); }

@media (max-width: 900px) {
  .split { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .site-nav { gap: 18px; }
  .site-nav .nav-link { display: none; }
}
@media (max-width: 600px) {
  .site-nav .btn-sm { display: none; }
  .facts { grid-template-columns: 1fr; gap: 28px; }
  .rows li { grid-template-columns: minmax(0, 1fr); gap: 4px; padding: 18px 0; }
  .footer-top { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
