@font-face { font-family: "Bricolage"; src: url("/assets/font.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
:root {
  --ground: #e6efe7; --ink: #0d2c1a; --soft: #4b6655; --brand: #13803b; --on-brand: #fff;
  --paper: #fbfdfb; --line: #bfd3c4; --call: #ffd24d; --on-call: #2a2300; --error: #a3261b;
}
@media (prefers-color-scheme: dark) {
  :root { --ground: #0d2418; --ink: #e4f1e7; --soft: #9ab8a4; --brand: #17964a; --paper: #13301f; --line: #2c5038; --error: #ff9c90; }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100dvh; display: flex; flex-direction: column; background: var(--ground); color: var(--ink);
  font: 400 1.0625rem/1.5 "Bricolage", system-ui, sans-serif; }
[hidden] { display: none !important; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.top { position: sticky; top: 0; z-index: 2; display: flex; align-items: baseline; gap: .75rem; padding: .75rem max(1rem, calc(50% - 20rem)); background: var(--ground); border-bottom: 2px solid var(--ink); }
.wordmark { font-weight: 700; font-size: 1.25rem; }
.wordmark b { color: var(--brand); font-weight: 800; }
.where { color: var(--soft); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.quiet { margin-left: auto; font: inherit; color: var(--ink); background: none; border: 0; padding: .25rem 0; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
main { flex: 1; width: 100%; max-width: 42rem; margin: 0 auto; padding: 1.25rem 1rem 1rem; }
.gate h1 { font-size: 2rem; line-height: 1.15; font-weight: 700; margin: 12vh 0 1.5rem; letter-spacing: -.01em; }
.gate label { display: block; margin-bottom: .25rem; }
.gate input { width: 100%; font: inherit; padding: .7rem .8rem; background: var(--paper); color: var(--ink); border: 2px solid var(--ink); border-radius: 0; }
.gate .send { margin-top: .5rem; }
/* application form */
.apply h1 { font-size: clamp(2.5rem, 9vw, 4.25rem); line-height: 1; font-weight: 800; letter-spacing: -.025em; margin: 1.5rem 0 .75rem; }
.apply .lede { font-size: 1.25rem; line-height: 1.35; max-width: 34ch; margin: 0 0 2.25rem; }
.apply label, .apply legend { display: block; font-weight: 600; margin-bottom: .25rem; padding: 0; }
.apply .hint { color: var(--soft); font-size: .9375rem; margin: 0 0 .35rem; }
.apply .field { margin-bottom: 1.25rem; }
.apply input[type=text], .apply input[type=email], .apply input[type=tel], .apply select, .apply textarea { width: 100%; font: inherit; padding: .65rem .75rem; background: var(--paper); color: var(--ink); border: 2px solid var(--ink); border-radius: 0; }
.apply input[type=file] { width: 100%; font: inherit; padding: .65rem .75rem; background: var(--paper); border: 2px dashed var(--ink); color: var(--ink); }
.apply .two { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.apply .consent { display: flex; gap: .6rem; align-items: flex-start; font-weight: 400; }
.apply .consent input { width: 1.25rem; height: 1.25rem; margin: .15rem 0 0; flex: none; accent-color: var(--brand); }
.apply .send { width: 100%; font-size: 1.25rem; padding: 1rem; }
.apply .trap { position: absolute; left: -100vw; }
@media (max-width: 520px) { .apply .two { grid-template-columns: 1fr; } }
.error { color: var(--error); min-height: 1.5em; margin: .4rem 0; }
.notice { color: var(--soft); margin: 0 0 1.25rem; max-width: 60ch; }
.banner { background: var(--call); color: var(--on-call); padding: .6rem .8rem; margin-bottom: 1rem; font-weight: 600; }
.log { display: flex; flex-direction: column; gap: 1.1rem; }
.msg { max-width: 62ch; white-space: pre-wrap; overflow-wrap: anywhere; }
.msg a { color: inherit; }
.them { align-self: flex-start; }
.me { align-self: flex-end; max-width: 80%; background: var(--brand); color: var(--on-brand); padding: .5rem .8rem; border-radius: 1rem 1rem .2rem 1rem; }
.answers { display: flex; flex-direction: column; margin-top: .75rem; border-top: 2px solid var(--ink); }
.answers button { font: 600 1.375rem/1.2 "Bricolage", system-ui, sans-serif; text-align: left; color: var(--ink); background: none; border: 0; border-bottom: 2px solid var(--ink); padding: .8rem .25rem; cursor: pointer; }
.answers button:hover, .answers button:active { background: var(--brand); color: var(--on-brand); padding-left: .75rem; }
.log + .answers:empty { display: none; }
#slots:not(:empty) { margin-top: 1.25rem; }
.working { color: var(--soft); margin-top: 1rem; }
.working::after { content: "..."; display: inline-block; animation: think 1.2s steps(4) infinite; overflow: hidden; vertical-align: bottom; width: 1.1em; }
@keyframes think { from { width: 0; } to { width: 1.1em; } }
.composer { position: sticky; bottom: 0; display: flex; gap: .5rem; align-items: flex-end; padding: .75rem max(1rem, calc(50% - 20rem)) calc(.75rem + env(safe-area-inset-bottom)); background: var(--ground); border-top: 2px solid var(--ink); }
.composer textarea { flex: 1; min-width: 0; resize: none; max-height: 40vh; font: inherit; padding: .6rem .7rem; color: var(--ink); background: var(--paper); border: 2px solid var(--ink); border-radius: 0; }
.send { font: 700 1rem/1 "Bricolage", system-ui, sans-serif; color: var(--on-brand); background: var(--brand); border: 2px solid var(--ink); padding: .85rem 1.1rem; cursor: pointer; }
.send:disabled { opacity: .55; cursor: default; }
:focus-visible { outline: 3px solid var(--call); outline-offset: 2px; }
::placeholder { color: var(--soft); opacity: 1; }
@media (prefers-reduced-motion: reduce) { .working::after { animation: none; } .answers button:hover { padding-left: .25rem; } }
