/* Schema Software — one stylesheet for the whole site.
 *
 * The palette is the app's, lifted from src/ui/plain.ts so the site and the
 * product look like the same thing: warm cream paper, warm near-black ink, and
 * the seven "Watercolor garden" hues for the movement verbs.
 *
 * Alan Sans is self-hosted, subset to Latin. Nothing here loads from a third
 * party — no font CDN, no analytics, no embeds. A site that hosts a privacy
 * policy promising nothing leaves your phone should not itself phone anyone.
 */

@font-face {
  font-family: 'Alan Sans';
  src: url('/fonts/alan-sans-400Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Alan Sans';
  src: url('/fonts/alan-sans-500Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Alan Sans';
  src: url('/fonts/alan-sans-700Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light dark;

  --bg: #fef9f3;
  --surface: #ffffff;
  --text: #4a443c;
  --subtle: #6b6459;
  --quiet: #756e66;
  --line: #e4ddd1;
  --fill: #38332d;
  --on-fill: #fef9f3;
  --fill-soft: #f0e9df;

  /* Verb hues, darkened for contrast on cream (VERB_LABEL_COLOR in the app). */
  --push: #986854;
  --pull: #8e6d39;
  --bend: #687757;
  --twist: #517b6b;
  --squat: #5c7686;
  --lunge: #7a6d8a;
  --carry: #986479;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #24211d;
    --surface: #2c2925;
    --text: #e8e2d8;
    --subtle: #b3aa9c;
    --quiet: #b3aa9c;
    --line: #3d3831;
    --fill: #e8e2d8;
    --on-fill: #24211d;
    --fill-soft: #332f2a;

    /* The undarkened wedge fills read correctly against dark ink. */
    --push: #c8896f;
    --pull: #d1a054;
    --bend: #8fa377;
    --twist: #6fa893;
    --squat: #6e8ca0;
    --lunge: #9585a8;
    --carry: #b97a93;
  }
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Alan Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI',
    system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 42rem;
  margin: 0 auto;
  padding: 0 24px;
}

/* ————— Header ————— */

.site-header {
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 28px;
  padding-top: 22px;
  padding-bottom: 22px;
}

.wordmark {
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.01em;
  color: var(--text);
  text-decoration: none;
  margin-right: auto;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 0.95rem;
}

.site-nav a {
  color: var(--subtle);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
}

.site-nav a:hover,
.site-nav a[aria-current='page'] {
  color: var(--text);
  border-bottom-color: var(--line);
}

/* ————— Type ————— */

main {
  padding: 56px 0 88px;
}

h1 {
  font-size: clamp(1.9rem, 1.4rem + 2vw, 2.6rem);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin: 0 0 0.4rem;
}

h2 {
  font-size: 1.25rem;
  line-height: 1.3;
  font-weight: 700;
  margin: 3rem 0 0.6rem;
}

h3 {
  font-size: 1.03rem;
  font-weight: 700;
  margin: 1.9rem 0 0.35rem;
}

p {
  margin: 0 0 1.05rem;
}

.lede {
  font-size: 1.2rem;
  line-height: 1.55;
  color: var(--text);
  margin-bottom: 1.6rem;
}

.standfirst {
  font-size: 1.05rem;
  color: var(--subtle);
  margin: 0 0 2rem;
}

.date {
  color: var(--quiet);
  font-size: 0.95rem;
  margin: 0 0 2.2rem;
}

.eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--quiet);
  margin: 0 0 0.7rem;
}

ul,
ol {
  padding-left: 1.2rem;
  margin: 0 0 1.05rem;
}

li {
  margin: 0.35rem 0;
}

a {
  color: var(--text);
  text-decoration-color: var(--quiet);
  text-underline-offset: 3px;
}

a:hover {
  text-decoration-color: var(--text);
}

strong {
  font-weight: 700;
}

hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 3rem 0;
}

/* ————— Hero ————— */

.hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 32px;
  margin: 0 0 2.4rem;
}

.hero img {
  width: 148px;
  height: 148px;
  border-radius: 22.4%;
  border: 1px solid var(--line);
  flex: none;
}

.hero-text {
  flex: 1 1 16rem;
  min-width: 0;
}

.hero-text h1 {
  margin-bottom: 0.15rem;
}

.hero-text .subtitle {
  color: var(--subtle);
  font-size: 1.1rem;
  margin: 0;
}

/* ————— The seven verbs ————— */

.verbs {
  list-style: none;
  padding: 0;
  margin: 1.6rem 0 1.2rem;
  border-top: 1px solid var(--line);
}

.verbs li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 16px;
  margin: 0;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.verbs .verb {
  flex: none;
  width: 5.2rem;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
}

.verbs .gloss {
  flex: 1 1 14rem;
  color: var(--subtle);
  min-width: 0;
}

.verbs .push { color: var(--push); }
.verbs .pull { color: var(--pull); }
.verbs .bend { color: var(--bend); }
.verbs .twist { color: var(--twist); }
.verbs .squat { color: var(--squat); }
.verbs .lunge { color: var(--lunge); }
.verbs .carry { color: var(--carry); }

/* ————— Notes and callouts ————— */

.note {
  background: var(--fill-soft);
  border: 1px solid var(--line);
  padding: 18px 20px;
  margin: 2rem 0;
}

.note > :last-child {
  margin-bottom: 0;
}

.note h2,
.note h3 {
  margin-top: 0;
}

/* ————— Buttons and next links ————— */

.more {
  display: inline-block;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid var(--quiet);
  padding-bottom: 2px;
  margin-top: 0.4rem;
}

.more:hover {
  border-bottom-color: var(--text);
}

/* ————— Contact block ————— */

.contact {
  margin: 1.2rem 0 0;
}

.contact dt {
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--quiet);
  margin-top: 1.1rem;
}

.contact dd {
  margin: 0.15rem 0 0;
}

/* ————— Footer ————— */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 56px;
  color: var(--quiet);
  font-size: 0.92rem;
}

.site-footer p {
  margin: 0 0 0.5rem;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 0.9rem;
}

.site-footer a {
  color: var(--subtle);
}

/* ————— Small screens ————— */

@media (max-width: 32rem) {
  main {
    padding: 40px 0 64px;
  }

  .hero img {
    width: 108px;
    height: 108px;
  }

  .verbs .verb {
    width: auto;
  }
}
