/* Soirée. The rules down to the comment "Public pages" serve every page and are the whole look of the admin pages: black, white, yellow, in Helvetica, bold for titles, regular for text. The block after that comment gives the public pages the look of the 2024 phone screens. */
:root { --black: #000000; --white: #FFFFFF; --yellow: #FFF033; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--white); color: var(--black);
  font-family: Helvetica, "Helvetica Neue", Arial, sans-serif; font-weight: 400;
  font-size: 18px; line-height: 1.45;
}
header, main, footer { max-width: 34rem; margin: 0 auto; padding: 1rem 1.25rem; }
header { padding-top: 1.5rem; }
.brand { font-weight: 700; font-size: 1.6rem; color: var(--black); text-decoration: none; }
h1 { font-weight: 700; font-size: 1.9rem; line-height: 1.15; margin: 1rem 0 0.5rem; }
h2 { font-weight: 700; font-size: 1.2rem; margin: 2rem 0 0.5rem; }
p { margin: 0.5rem 0 1rem; }
a { color: var(--black); }
label { display: block; font-weight: 700; margin: 1rem 0 0.3rem; }
.help { font-weight: 400; font-size: 0.9rem; margin: 0.2rem 0 0; }
input[type=text], input[type=email], input[type=date], input[type=number], input[type=password],
select, textarea {
  width: 100%; padding: 0.8rem; font: inherit; color: var(--black); background: var(--white);
  border: 2px solid var(--black); border-radius: 0; -webkit-appearance: none; appearance: none;
}
textarea { min-height: 7rem; resize: vertical; }
input:focus, select:focus, textarea:focus, button:focus { outline: 4px solid var(--yellow); outline-offset: 1px; }
button, .button {
  display: inline-block; width: 100%; margin-top: 1.25rem; padding: 0.95rem 1rem; font: inherit;
  font-weight: 700; color: var(--black); background: var(--yellow); border: 2px solid var(--black);
  border-radius: 0; cursor: pointer; text-align: center; text-decoration: none;
}
.card { border: 2px solid var(--black); background: var(--yellow); padding: 1rem; margin: 1rem 0; font-weight: 700; }
.notice { border-left: 6px solid var(--yellow); padding: 0.4rem 0.8rem; margin: 1rem 0; }
.error { border: 2px solid var(--black); padding: 0.6rem 0.8rem; margin: 1rem 0; font-weight: 700; }
.banner { background: var(--black); color: var(--white); padding: 0.5rem 1.25rem; font-size: 0.9rem; text-align: center; }
.check { display: flex; gap: 0.7rem; align-items: flex-start; margin: 1.25rem 0 0; font-weight: 400; }
.check input { width: 1.5rem; height: 1.5rem; flex: none; margin-top: 0.15rem; accent-color: var(--black); }
.row { display: flex; gap: 0.75rem; } .row > div { flex: 1; }
.quiet { font-size: 0.9rem; }
/* A field people never see. Only an automated form filler completes it. */
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
footer { font-size: 0.8rem; padding-bottom: 2.5rem; margin-top: 2rem; border-top: 2px solid var(--black); }

/* Admin */
body.admin header, body.admin main, body.admin footer { max-width: 62rem; }
body.admin { font-size: 16px; }
nav a { margin-right: 1rem; font-weight: 700; }
nav form { display: inline; } nav button { width: auto; margin: 0; padding: 0.2rem 0.6rem; font-size: 0.9rem; }
table { border-collapse: collapse; width: 100%; margin: 0.5rem 0 1rem; font-size: 0.9rem; }
th, td { border: 1px solid var(--black); padding: 0.35rem 0.5rem; text-align: left; vertical-align: top; }
th { background: var(--yellow); }
.big { font-size: 2.2rem; font-weight: 700; line-height: 1.1; }
.tiles { display: flex; flex-wrap: wrap; gap: 1rem; }
.tile { border: 2px solid var(--black); padding: 0.8rem 1rem; min-width: 13rem; flex: 1; }
.pass { background: var(--yellow); } .fail { background: var(--white); }
code { font-size: 0.8rem; word-break: break-word; }
.setting { border-top: 2px solid var(--black); padding: 0.5rem 0 1rem; }
.setting button, .inline button { width: auto; margin-top: 0.6rem; padding: 0.5rem 1rem; }
.inline { display: inline; }
body.admin textarea { min-height: 5rem; font-size: 0.95rem; }

/* ------------------------------------------------------------------------
   Public pages: the look of the 2024 phone screens. Second version,
   November 29, 2026, after his screens and the first render were measured
   side by side: lighter type, a darker plum ground on every page but the
   start, cards without an outline, and confetti in his gold and green.
   Admin pages keep the plain look above: every rule in this block starts
   with body:not(.admin). Nothing here loads a file.
   ------------------------------------------------------------------------ */
body:not(.admin) {
  --ink: #FFFFFF; --soft: rgba(255, 255, 255, 0.88); --quiet: rgba(255, 255, 255, 0.8);
  --panel: rgba(12, 8, 14, 0.5); --line: rgba(255, 255, 255, 0.4); --hair: rgba(255, 255, 255, 0.16);
  color-scheme: dark; min-height: 100vh; display: flex; flex-direction: column;
  color: var(--ink); background: #19162b;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 17px;
}
/* The ground of phone screens two and three: dark plum, turning brown at the foot.
   It stays put while the page scrolls, so a long page looks like a short one. */
body:not(.admin)::before {
  content: ""; position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: -1;
  background-image:
    radial-gradient(95% 55% at 0% 100%, #482424 0%, rgba(72, 36, 36, 0) 72%),
    radial-gradient(95% 55% at 100% 100%, #341b2e 0%, rgba(52, 27, 46, 0) 72%),
    linear-gradient(180deg, #19162b 0%, #24182a 38%, #2f1e27 70%, #382124 100%);
}
/* The start page takes the ground of phone screen one: navy, turning rust at the foot.
   A browser that does not know :has() shows the plum ground there instead. */
body:not(.admin):has(.start)::before {
  background-image:
    radial-gradient(95% 55% at 0% 100%, #80382a 0%, rgba(128, 56, 42, 0) 72%),
    radial-gradient(95% 55% at 100% 100%, #602139 0%, rgba(96, 33, 57, 0) 72%),
    linear-gradient(180deg, #151b2a 0%, #24182a 32%, #4a1c2b 62%, #6a2a2e 100%);
}
body:not(.admin) header, body:not(.admin) main, body:not(.admin) footer {
  width: 100%; max-width: 30rem; padding-left: 1.5rem; padding-right: 1.5rem;
}
/* Short pages keep the footer at the foot of the screen. */
body:not(.admin) main { flex: 1 0 auto; }
body:not(.admin) .brand { color: var(--ink); font-weight: 700; font-size: 1.3rem; letter-spacing: -0.01em; }
body:not(.admin) h1 { font-weight: 600; font-size: 2rem; line-height: 1.14; letter-spacing: -0.02em; margin: 0.5rem 0 0.9rem; text-wrap: balance; }
body:not(.admin) h2 { font-weight: 600; font-size: 1.2rem; letter-spacing: -0.01em; margin: 2.2rem 0 0.5rem; }
body:not(.admin) p, body:not(.admin) li { color: var(--soft); }
body:not(.admin) a { color: var(--ink); }
body:not(.admin) label { color: var(--ink); font-weight: 600; font-size: 0.85rem; margin: 1.1rem 0 0.4rem; }
body:not(.admin) .help, body:not(.admin) .quiet { color: var(--quiet); font-size: 0.8rem; }
body:not(.admin) input[type=text], body:not(.admin) input[type=email], body:not(.admin) input[type=date],
body:not(.admin) input[type=number], body:not(.admin) select, body:not(.admin) textarea {
  color: var(--ink); background: var(--panel); border: 1px solid var(--line); border-radius: 14px;
  padding: 0.85rem 1rem; min-height: 3.25rem; min-width: 0;
}
/* Two date boxes side by side must fit a phone: let them shrink, with less padding. */
body:not(.admin) .row > div { min-width: 0; }
body:not(.admin) input[type=date] { padding-left: 0.7rem; padding-right: 0.6rem; font-size: 0.95rem; }
body:not(.admin) textarea { min-height: 7rem; border-radius: 18px; padding: 1.1rem; resize: none; }
body:not(.admin) ::placeholder { color: rgba(255, 255, 255, 0.72); opacity: 1; }
/* The arrow on the one dropdown, drawn with two gradients so no file is loaded. */
body:not(.admin) select {
  padding-right: 2.6rem; background-repeat: no-repeat;
  background-image: linear-gradient(45deg, transparent 50%, #FFFFFF 50%), linear-gradient(135deg, #FFFFFF 50%, transparent 50%);
  background-size: 7px 7px, 7px 7px;
  background-position: calc(100% - 1.45rem) 50%, calc(100% - 1.05rem) 50%;
}
body:not(.admin) input:focus, body:not(.admin) select:focus, body:not(.admin) textarea:focus,
body:not(.admin) button:focus, body:not(.admin) a:focus-visible {
  outline: 3px solid var(--yellow); outline-offset: 2px;
}
body:not(.admin) button, body:not(.admin) .button {
  margin-top: 1.5rem; padding: 1.05rem 1rem; font-weight: 700; color: #111111; background: var(--yellow);
  border: 0; border-radius: 999px;
}
/* What Soirée heard: white words in a dark card with no outline, as on phone screen one. */
body:not(.admin) .card {
  border: 0; border-radius: 16px; background: var(--panel); color: var(--ink);
  font-weight: 500; font-size: 1.3rem; line-height: 1.3; padding: 1.1rem 1.2rem;
}
/* The consent line shown on the privacy page is a long sentence: smaller. */
body:not(.admin) h2 + p + .card { font-size: 1rem; line-height: 1.45; }
body:not(.admin) .notice {
  border: 1px solid var(--hair); border-radius: 14px; background: rgba(255, 255, 255, 0.08);
  color: var(--ink); padding: 0.7rem 0.9rem;
}
body:not(.admin) .error {
  border: 1px solid #EA3223; border-radius: 14px; background: rgba(234, 50, 35, 0.2);
  color: var(--ink); font-weight: 600; padding: 0.7rem 0.9rem;
}
body:not(.admin) .banner { background: var(--yellow); color: #111111; font-weight: 600; }
body:not(.admin) .check { color: var(--soft); font-weight: 400; font-size: 0.82rem; line-height: 1.45; }
body:not(.admin) .check input { accent-color: var(--yellow); min-height: 0; }
body:not(.admin) footer { border-top: 1px solid var(--hair); text-align: center; margin-top: 1.25rem; padding-bottom: 2rem; }
body:not(.admin) footer p { color: var(--quiet); }
body:not(.admin) th, body:not(.admin) td { border-color: rgba(255, 255, 255, 0.3); color: var(--soft); }
body:not(.admin) th { background: transparent; color: var(--ink); }

/* Start page: phone screen one. Everything centered, the sentence in a dark card. */
body:not(.admin) .start { text-align: center; }
body:not(.admin) .start p { text-wrap: balance; }
body:not(.admin) .start textarea { text-align: center; font-size: 1.35rem; font-weight: 500; line-height: 1.3; }
body:not(.admin) .mic {
  display: flex; align-items: center; justify-content: center; width: 6rem; height: 6rem;
  margin: 0.5rem auto 1.1rem; border-radius: 50%; color: var(--ink); cursor: pointer;
  background: radial-gradient(circle at 55% 35%, #6a3c86 0%, #4f2c5f 100%);
}

/* Thank-you page when others want the same thing: phone screen three.
   The count line is the big line of the page, with its first words in yellow,
   everything is centered, and confetti sits behind. */
body:not(.admin) main:has(.count) { text-align: center; }
body:not(.admin) main:has(.count) h1 { font-size: 1.05rem; font-weight: 600; letter-spacing: 0; color: var(--soft); margin: 1.4rem 0 0.7rem; }
body:not(.admin) main:has(.count) .card { display: inline-block; font-size: 1rem; padding: 0.6rem 1rem; border-radius: 12px; margin: 0; }
body:not(.admin) .count {
  color: var(--ink); font-weight: 500; font-size: 2.15rem; line-height: 1.22; letter-spacing: -0.015em;
  text-align: center; text-wrap: balance; margin: 1.7rem 0 1.7rem;
}
body:not(.admin) .count .hl { color: var(--yellow); }
body:not(.admin) .confetti {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none;
}
