/* Briefly — the same near-unstyled skeleton as wordspring.net (one centered
   column, no cards or shadows), in a cooler, sans-serif voice so the two
   sites don't read as the same page with different words. */

:root {
  --paper: #fcfcfd;
  --ink: #17181c;
  --muted: #6a6d78;
  --rule: #e3e4ea;
  --accent: #4b56c9;
  --field: #ffffff;
  --measure: 38rem;  /* reading width */
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #101116;
    --ink: #e8e9ef;
    --muted: #9a9dab;
    --rule: #2a2c36;
    --accent: #8f97ff;
    --field: #17181f;
  }
}

* { box-sizing: border-box; }

/* Reserve the scrollbar gutter so layout doesn't shift when page height
   crosses the viewport (e.g. the editor swapping expanded shortcodes for
   raw text, or images loading in). */
html { scrollbar-gutter: stable; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 1.0625rem/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Inter,
    Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* One centered column governs the whole page — header, content, footer all
   share the same measure, so nothing needs its own frame. */
.site-header,
main,
.site-footer {
  width: 100%;
  max-width: var(--measure);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  padding-top: 2.5rem;
  padding-bottom: 1.25rem;
}
.brand {
  font-weight: 650;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: inherit;
}
.site-header nav {
  display: flex;
  gap: 1.25rem;
  font-size: 0.95rem;
}
.site-header nav a {
  text-decoration: none;
  color: var(--muted);
}
.site-header nav a:hover { color: var(--ink); }

main { padding-top: 1rem; padding-bottom: 2rem; }
section { margin: 3rem 0; }
section:first-child { margin-top: 1.5rem; }

h1, h2, h3 {
  font-weight: 650;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
}
h1 { font-size: clamp(1.9rem, 1.4rem + 2.2vw, 2.75rem); }
h2 { font-size: 1.4rem; margin-top: 2.5rem; }

p { margin: 0 0 1rem; }
a { color: var(--accent); text-underline-offset: 0.15em; }

.hero h1 { max-width: 14em; }
.hero-sub {
  font-size: 1.22rem;
  color: var(--muted);
  max-width: 30em;
}
.hero-sub p:last-child { margin-bottom: 0; }

/* The three points read as a plain sequence of paragraphs, each opening with
   its own lead phrase in <strong> — no grid, no boxes. */
.features > div + div { margin-top: 1.5rem; }
.features strong { font-weight: 650; }

/* Call to action. The link inside carries no class of its own — only href
   survives the allowlist — so the styling hangs off the region wrapper. */
.cta { margin-top: 1.75rem; }
.cta a {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  background: var(--accent);
  color: var(--paper);
  font-weight: 600;
  text-decoration: none;
}
.cta a:hover { filter: brightness(1.08); }

/* Form page. Questions are editable regions above their inputs, so the label
   slot has to survive holding a <p> rather than plain text. */
.q-form { display: flex; flex-direction: column; gap: 1.75rem; margin: 2.5rem 0; }
.field { display: flex; flex-direction: column; gap: 0.5rem; }
.field-q {
  font-weight: 600;
  font-size: 1.02rem;
}
.field-q p { margin: 0; }
.field-q p + p { margin-top: 0.25rem; }
.q-form input, .q-form textarea {
  font: inherit;
  color: inherit;
  background: var(--field);
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 0.6rem 0.7rem;
  width: 100%;
}
.q-form textarea { resize: vertical; }
.q-form input:focus-visible, .q-form textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: transparent;
}
.q-form button {
  align-self: start;
  font: inherit;
  font-weight: 600;
  color: var(--paper);
  background: var(--accent);
  border: 0;
  border-radius: 6px;
  padding: 0.6rem 1.2rem;
  cursor: pointer;
}
.q-form button:hover:not(:disabled) { filter: brightness(1.08); }
.q-form button:disabled { background: var(--muted); cursor: default; }
/* Honeypot: off-screen rather than display:none, which some bots skip. */
.q-form .hp { position: absolute; left: -9999px; }
.form-status { min-height: 1.5em; color: var(--muted); margin: 0; }

/* Media shortcodes still render — kept minimal, no frame. */
.ws-video { position: relative; aspect-ratio: 16 / 9; margin: 1.5rem 0; }
.ws-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
img { max-width: 100%; height: auto; }
figure.ws-img { margin: 1.5rem 0; }
figure.ws-img figcaption { font-size: 0.9rem; color: var(--muted); margin-top: 0.4rem; }

.site-footer {
  margin-top: 4rem;
  padding-top: 1.5rem;
  padding-bottom: 3rem;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.9rem;
}
.site-footer p { margin: 0; }
.site-footer a, .site-footer .admin-link { color: inherit; }
