/* Blinky's public pages. Colours and type come from Sources/Blinky/Style in the app
   (Palette.swift, BlinkyFonts.swift). Fonts are served from this server only. */
@font-face { font-family: "Fredoka"; src: url("/fonts/Fredoka.ttf") format("truetype"); font-weight: 300 700; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("/fonts/Nunito.ttf") format("truetype"); font-weight: 200 1000; font-display: swap; }

:root {
  --ink: #221B3A; --accent: #5B4BDB; --lavender: #F1F0FF; --body: #4A4360; --muted: #6B6585;
  --line: #E4E2EE; --border: #D9D6E8; --danger: #B03A2E; --danger-tint: #FDECEA;
  --success: #155A35; --success-tint: #E6F7EE; --white: #FFFFFF;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--lavender); color: var(--ink); font-family: "Nunito", system-ui, sans-serif; padding-bottom: 56px; }
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 18px 48px; background: var(--white); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-family: "Fredoka", sans-serif; font-weight: 600; font-size: 24px; min-height: 44px; }
.brand svg { width: 36px; height: 36px; flex: none; }
.nav { display: flex; gap: 24px; flex-wrap: wrap; }
.nav a { color: var(--ink); font-weight: 800; font-size: 15px; min-height: 44px; display: flex; align-items: center; text-decoration: none; }
.nav a[aria-current="page"] { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }
.nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.card { max-width: 760px; margin: 40px auto 0; padding: 48px; background: var(--white); border-radius: 22px; }
.draft { margin: 0 0 20px; padding: 10px 14px; border-radius: 12px; background: var(--danger-tint); color: var(--danger); font-weight: 800; font-size: 14px; }
h1 { margin: 0; font-family: "Fredoka", sans-serif; font-weight: 600; font-size: 44px; line-height: 1.1; color: var(--ink); }
.meta { margin: 10px 0 0; color: var(--muted); font-size: 14px; font-weight: 600; }
h2 { margin: 32px 0 8px; font-family: "Fredoka", sans-serif; font-weight: 600; font-size: 24px; line-height: 1.2; color: var(--ink); }
h3 { margin: 0 0 6px; font-size: 16px; font-weight: 800; }
p, li { font-size: 17px; line-height: 1.6; font-weight: 500; color: var(--body); }
p { margin: 0 0 10px; }
.lead { margin-top: 16px; }
ul, ol { margin: 0; padding-left: 22px; }
li { margin-bottom: 4px; }
.gap { color: var(--danger); font-weight: 800; }
a.mail, .card a { color: var(--accent); font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.split > div { padding: 18px; border-radius: 16px; }
.split .deleted { background: var(--danger-tint); }
.split .deleted h3 { color: var(--danger); }
.split .kept { background: var(--success-tint); }
.split .kept h3 { color: var(--success); }
.split p { margin: 0; }
.timeline { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.timeline li { display: flex; gap: 14px; align-items: flex-start; margin: 0; }
.timeline .when { flex: none; min-width: 96px; padding: 4px 10px; border-radius: 10px; background: var(--ink); color: var(--white); font-size: 14px; font-weight: 800; text-align: center; line-height: 1.6; }
form { display: flex; flex-direction: column; gap: 10px; margin: 0; }
label { display: flex; flex-direction: column; gap: 6px; font-size: 15px; font-weight: 700; color: var(--ink); }
input[type="email"] { height: 44px; padding: 0 14px; border-radius: 10px; border: 2px solid var(--border); font: 600 16px "Nunito", sans-serif; color: var(--ink); background: var(--white); width: 100%; max-width: 420px; }
input[type="email"][aria-invalid="true"] { border-color: var(--danger); }
.btn { align-self: flex-start; min-height: 44px; padding: 0 22px; border: 2px solid var(--ink); border-radius: 22px; background: var(--ink); color: var(--white); font: 800 15px "Nunito", sans-serif; cursor: pointer; display: inline-flex; align-items: center; text-decoration: none; }
.card a.btn, .card a.btn:visited { color: var(--white); text-decoration: none; }
.btn.outline, .card a.btn.outline { background: var(--white); color: var(--ink); }
.note { display: flex; gap: 10px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; font-size: 16px; font-weight: 700; line-height: 1.5; margin: 0 0 12px; }
.note svg { width: 20px; height: 20px; flex: none; margin-top: 2px; }
.note.ok { background: var(--success-tint); color: var(--success); }
.note.bad { background: var(--danger-tint); color: var(--danger); }
.small { font-size: 15px; }
.foot { max-width: 760px; margin: 24px auto 0; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; color: var(--body); font-size: 14px; font-weight: 600; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
@media (max-width: 600px) {
  .top { padding: 12px 16px; }
  .nav { gap: 16px; }
  .card { margin: 16px 16px 0; padding: 24px 20px; }
  h1 { font-size: 32px; }
  h2 { font-size: 21px; }
  p, li { font-size: 16px; }
  .foot { margin: 20px 16px 0; }
}
