/* Vindola for parents. The homepage's paper (site/DESIGN.md), made quieter for a page people read and act on. */
:root {
  --cobalt: #2457F5;
  --chalk: #F7F8FA;
  --carbon: #141619;
  --stone: #E4E7EE;
  --graphite: #515A66;
  --ochre: #C28C33;
  --red: #B3261E;
  --shadow: rgba(20, 22, 25, .3);
  --sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

@font-face {
  font-family: "Archivo";
  src: url("/fonts/archivo-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--stone); color: var(--carbon); font: 400 17px/1.5 var(--sans); }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--carbon); outline-offset: 3px; }

.wrap {
  max-width: 820px; margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}

h1, h2, h3 { margin: 0; line-height: 1.15; text-wrap: balance; font-weight: 800; letter-spacing: -0.02em; }
h1 { font-size: clamp(28px, 5vw, 40px); }
h2 { font-size: 21px; margin-top: 28px; }
h2:first-child { margin-top: 0; }
h3 { font-size: 18px; letter-spacing: -0.01em; }
p { margin: 12px 0 0; max-width: 66ch; }
a { color: var(--carbon); text-underline-offset: 3px; }

.top { padding-block: 18px; }
.top-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; text-decoration: none; }
.brand .for { font-weight: 400; color: var(--graphite); font-size: 16px; }
.mark { width: 22px; height: 22px; background: var(--ochre); box-shadow: 3px 3px 0 var(--carbon); }
.who { display: flex; align-items: center; gap: 12px; color: var(--graphite); font-size: 15px; min-width: 0; }
.who span { overflow-wrap: anywhere; }

main { padding-bottom: 48px; }
.view { display: flex; flex-direction: column; gap: 20px; }
.page-title { margin: 8px 0 4px; }

.sheet { background: var(--chalk); padding: clamp(20px, 4vw, 32px); box-shadow: 6px 6px 0 var(--shadow); min-width: 0; }
.sheet.lead { border-top: 6px solid var(--ochre); }
.quiet { color: var(--graphite); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 18px;
  border: 2px solid var(--carbon); border-radius: 2px; background: var(--carbon); color: var(--chalk);
  font: 600 16px/1.2 var(--sans); cursor: pointer; text-decoration: none; box-shadow: 3px 3px 0 var(--cobalt);
}
.btn:disabled { opacity: .55; cursor: default; }
.btn.quiet-btn { background: transparent; color: var(--carbon); box-shadow: none; }
.btn.danger { background: var(--red); border-color: var(--red); box-shadow: none; }
.link { border: 0; background: none; padding: 0; font: inherit; color: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }

.signin .row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; margin-top: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; flex: 1 1 240px; min-width: 0; font-size: 15px; color: var(--graphite); }
.field input {
  min-height: 44px; padding: 8px 12px; border: 2px solid var(--carbon); border-radius: 2px; background: #fff;
  font: 400 17px/1.3 var(--sans); color: var(--carbon); width: 100%;
}
.error { color: var(--red); font-weight: 600; }
.ok { color: var(--cobalt); font-weight: 600; }

.features-read { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 12px; }
.features-read li { border-left: 3px solid var(--stone); padding-left: 12px; }
.features-read b { display: block; }
.features-read span { color: var(--graphite); font-size: 15px; }

.child { display: flex; flex-direction: column; gap: 4px; }
.child-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; align-items: baseline; }
.child-head h2 { margin: 0; overflow-wrap: anywhere; }
.toggles { list-style: none; padding: 0; margin: 18px 0 0; border-top: 1px solid var(--stone); }
.toggle { display: flex; gap: 16px; align-items: flex-start; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid var(--stone); }
.toggle .text { min-width: 0; }
.toggle .text b { display: block; }
.toggle .text span { color: var(--graphite); font-size: 15px; display: block; margin-top: 2px; }
.switch {
  flex: none; position: relative; width: 52px; height: 30px; border-radius: 15px; border: 2px solid var(--carbon);
  background: var(--stone); cursor: pointer; padding: 0; margin-top: 2px;
}
.switch::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--carbon); transition: transform .15s ease;
}
.switch[aria-checked="true"] { background: var(--cobalt); }
.switch[aria-checked="true"]::after { transform: translateX(22px); background: var(--chalk); }
.switch:disabled { opacity: .5; cursor: default; }
.state { font-size: 14px; color: var(--graphite); min-height: 1.5em; }

.more { margin-top: 22px; }
.more summary { cursor: pointer; font-weight: 600; }
.more .inner { padding-top: 10px; }

.foot { padding-block: 24px 40px; color: var(--graphite); font-size: 15px; }
.copy { user-select: all; }

@media (prefers-reduced-motion: reduce) { .switch::after { transition: none; } }
.gap-top { margin-top: 24px; }
