:root {
  --sun: #ffd77a;
  --ink: #25283a;
  --paper: #fff9f0;
  --line: #d9cdbd;
  --muted: #6a626a;
  --green: #38695d;
  --pixel: "Press Start 2P", monospace;
}
* { box-sizing: border-box; letter-spacing: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 28px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 500 15px/1.7 "Plus Jakarta Sans", system-ui, sans-serif; }
button, input, textarea { font: inherit; }
a { color: inherit; text-underline-offset: 4px; }
[hidden] { display: none !important; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-weight: 800; line-height: 1.2; }
button, summary { cursor: pointer; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--green); outline-offset: 5px; }
.honeypot { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 100; padding: 10px; background: var(--sun); transform: translateY(-160%); }
.skip-link:focus { transform: none; }
.section-shell { width: min(1160px, calc(100% - 48px)); margin-inline: auto; }
.pixel-kicker { color: var(--green); font: 8px/1.9 var(--pixel); margin-bottom: 18px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 13px 18px; border: 2px solid var(--ink); border-radius: 2px; color: var(--ink); font: 9px/1.8 var(--pixel); text-decoration: none; text-align: center; box-shadow: 4px 4px 0 var(--ink); transition: transform .15s, box-shadow .15s; }
.button:hover { transform: translate(-1px,-1px); box-shadow: 5px 5px 0 var(--ink); }
.button:active { transform: translate(3px,3px); box-shadow: 1px 1px 0 var(--ink); }
.button:disabled { opacity: .6; cursor: wait; }
.button-primary { background: var(--sun); }
.presence-section { padding-block: 42px 54px; background: #f6e6db; border-block: 1px solid #d8c5a8; }
.presence-layout { display: grid; grid-template-columns: minmax(0,.85fr) minmax(0,1.15fr); gap: 64px; align-items: start; }
.presence-copy h1 { font-size: 52px; }
.presence-copy h1 span { color: #a63f2d; text-decoration: underline; text-decoration-color: var(--sun); text-decoration-thickness: 6px; text-underline-offset: 5px; }
.presence-copy p { margin-top: 24px; color: #534c4d; font-size: 16px; line-height: 1.8; }
.presence-reasons { margin: 12px 0 0; padding-left: 22px; color: #534c4d; font-size: 16px; line-height: 1.8; }
.presence-reasons li + li { margin-top: 6px; }
.presence-reasons li::marker { color: #633e55; }
.presence-illustration { display: block; width: min(100%, 440px); height: auto; margin: 24px 0 0; image-rendering: pixelated; }
.presence-form { position: relative; border: 3px solid var(--ink); box-shadow: 10px 10px 0 #633e55; background: var(--paper); }
.presence-form::before { content: ""; display: block; height: 25px; border-bottom: 3px solid var(--ink); background: #633e55; }
.presence-form::after { content: ""; position: absolute; top: 8px; left: 12px; width: 8px; height: 8px; background: var(--sun); box-shadow: 14px 0 0 #ed795f, 28px 0 0 var(--paper); }
.presence-form-body { padding: 26px; }
.intent-fieldset { padding: 0; border: 0; margin: 0 0 20px; min-width: 0; container-type: inline-size; }
.intent-fieldset legend { padding: 10px 12px; margin-bottom: 14px; background: var(--ink); color: var(--sun); box-shadow: 3px 3px 0 var(--green); font: 8px/1.6 var(--pixel); }
.intent-switch { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); border: 2px solid var(--ink); }
.intent-switch label { position: relative; min-width: 0; }
.intent-switch label + label { border-left: 2px solid var(--ink); }
.intent-switch input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.intent-switch span { display: grid; min-height: 56px; height: 100%; place-items: center; padding: 7px; font-size: 11px; line-height: 1.3; font-weight: 800; text-align: center; cursor: pointer; }
.intent-switch input:checked + span { background: #633e55; color: var(--paper); box-shadow: inset 0 -5px 0 var(--sun); }
.intent-switch input:focus-visible + span { outline: 3px solid var(--green); outline-offset: -4px; }
@container (max-width: 400px) {
  .intent-switch { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .intent-switch label:nth-child(3) { border-left: 0; }
  .intent-switch label:nth-child(n+3) { border-top: 2px solid var(--ink); }
}
.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.presence-form .form-grid .field { display: flex; flex-direction: column; justify-content: flex-end; }
.field { min-width: 0; }
.field label { display: block; font-size: 11px; font-weight: 800; margin-bottom: 6px; }
.field label span { font-weight: 500; color: var(--muted); }
.field input, .field textarea { width: 100%; max-width: 100%; padding: 10px; border: 1px solid #b8a997; border-radius: 0; background: #fffdfa; color: var(--ink); font-size: 13px; }
.field input { min-height: 40px; }
.field textarea { display: block; min-height: 84px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: 2px solid var(--green); outline-offset: 2px; }
.field input::placeholder, .field textarea::placeholder { color: #746874; opacity: 1; }
.presence-form .field label { margin-bottom: 5px; color: var(--ink); font: 8px/1.65 var(--pixel); }
.presence-form .field label span { font: 600 10px/1.5 "Plus Jakarta Sans", system-ui, sans-serif; }
.presence-form .field input, .presence-form .field textarea { border: 2px solid var(--ink); box-shadow: 4px 4px 0 #bcaabb; }
.presence-form .field input { min-height: 44px; }
.presence-form .field input:focus, .presence-form .field textarea:focus { box-shadow: 4px 4px 0 var(--green); }
.comments-field { margin-top: 16px; }
.form-submit-row { display: grid; place-items: center; width: 100%; padding-top: 22px; margin-top: 24px; border-top: 2px dashed #bcaabb; }
.presence-submit { width: min(220px, 100%); min-height: 54px; background: var(--green); color: #fffdfa; font-size: 10px; }
.form-status { font-size: 12px; margin-top: 16px; color: var(--green); }
.form-status.is-error { color: #a53232; }
@media (max-width: 980px) {
  .presence-layout { gap: 40px; }
  .presence-copy h1 { font-size: 44px; }
}
@media (max-width: 760px) {
  .section-shell { width: calc(100% - 36px); }
  .presence-section { padding-block: 40px 46px; }
  .presence-layout { grid-template-columns: minmax(0,1fr); gap: 30px; }
  .presence-copy h1 { font-size: 38px; }
  .presence-copy p { font-size: 15px; margin-top: 16px; }
  .presence-reasons { font-size: 15px; }
  .presence-illustration { width: min(100%, 320px); margin-top: 20px; }
}
@media (max-width: 400px) {
  .presence-copy h1 { font-size: 34px; }
  .presence-form-body { padding: 16px; }
  .form-grid { grid-template-columns: minmax(0,1fr); gap: 10px; }
  .intent-switch span { font-size: 10px; padding: 5px; }
  .button { padding-inline: 12px; font-size: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button, .intent-switch span { transition: none; }
}
