:root {
  --white: #fff;
  --ink: #11120f;
  --ink-mute: #555850;
  --line: #dce0d6;
  --lime: #dbff3a;
  --lime-soft: #efffb1;
  --coral-soft: #fff0e9;
  --sage-faint: #eef6eb;
  --f-display: 'Antonio', sans-serif;
  --f-body: 'Inter Tight', sans-serif;
  --f-serif: 'Instrument Serif', serif;
  --f-mono: 'JetBrains Mono', monospace;
}

* { box-sizing: border-box; letter-spacing: 0; }
body { margin: 0; background: var(--white); color: var(--ink); font-family: var(--f-body); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, p, figure { margin: 0; }
[hidden], .is-hidden { display: none !important; }
button, input, textarea, summary { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--ink); outline-offset: 5px; }
.wrap { width: 100%; max-width: 1180px; padding-inline: 40px; margin-inline: auto; }

header { position: sticky; top: 0; z-index: 10; background: var(--white); border-bottom: 3px solid var(--ink); }
.topbar { position: relative; max-width: 1240px; min-height: 80px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: center; min-height: 44px; padding-left: 84px; text-decoration: none; flex: none; }
.brand-mascot { position: absolute; left: 40px; bottom: -4px; width: auto; height: 74px; max-width: none; pointer-events: none; user-select: none; }
.brand-name { font-family: var(--f-display); font-weight: 700; font-size: 26px; line-height: 1; padding-bottom: .06em; }
.toplinks { display: flex; align-items: center; gap: 24px; }
.nav-link { display: inline-flex; align-items: center; min-height: 44px; border-bottom: 2px solid transparent; font-size: 12px; font-weight: 800; text-transform: uppercase; text-decoration: none; }
.nav-link:hover { border-bottom-color: var(--ink); }

main { min-height: calc(100vh - 168px); }
.layout { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 56px; align-items: start; padding-block: 56px 64px; }
.intro { position: sticky; top: 124px; min-width: 0; text-align: center; }
.eyebrow { display: block; margin-bottom: 20px; font-family: var(--f-mono); font-size: 11px; font-weight: 500; text-transform: uppercase; color: var(--ink-mute); }
h1 { font-family: var(--f-display); font-size: 72px; line-height: 1.06; font-weight: 700; padding-bottom: .12em; }
h1 em { display: block; font-family: var(--f-serif); font-weight: 400; }
.mascot-figure { width: 100%; max-width: 460px; margin: 28px auto 0; }
.mascot { width: 100%; height: auto; aspect-ratio: 1038 / 1003; object-fit: contain; }
.panel { min-width: 0; padding-left: 44px; border-left: 1px solid var(--line); scroll-margin-top: 108px; }
.panel-head { padding-bottom: 24px; margin-bottom: 24px; border-bottom: 2px solid var(--ink); }
.panel h2 { font-family: var(--f-display); font-size: 34px; line-height: 1.14; font-weight: 700; padding-bottom: .12em; }

form { display: grid; gap: 22px; }
.field-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px 16px; }
.field { display: grid; gap: 8px; min-width: 0; align-content: start; }
.field.full { grid-column: 1 / -1; }
label { font-size: 13px; line-height: 1.3; font-weight: 600; }
input, textarea { width: 100%; min-width: 0; min-height: 48px; border: 1.5px solid #777d70; border-radius: 4px; background: var(--white); color: var(--ink); padding: 12px; font: 500 16px var(--f-body); }
textarea { min-height: 96px; resize: vertical; line-height: 1.4; }
input:focus, textarea:focus { outline: 2px solid var(--ink); outline-offset: 2px; border-color: var(--ink); }
input::placeholder, textarea::placeholder { color: #777d70; font-weight: 400; }
input[readonly], textarea[readonly] { background: #f3f5ef; }
.form-section { display: flex; align-items: center; gap: 14px; margin-top: 4px; }
.form-section span { flex: none; font-family: var(--f-mono); font-size: 11px; font-weight: 600; text-transform: uppercase; }
.form-section::after { content: ''; height: 1px; flex: 1; background: var(--line); }
.optional-fields { border-block: 1px solid var(--line); padding-block: 2px; }
.optional-fields summary { min-height: 48px; padding-block: 14px; font-size: 13px; font-weight: 600; cursor: pointer; }
.optional-fields summary span { float: right; margin-left: 12px; color: var(--ink-mute); font-size: 12px; font-weight: 400; }
.optional-fields[open] summary { margin-bottom: 12px; }
.optional-fields[open] { padding-bottom: 20px; }

.btn { width: 100%; min-height: 52px; padding: 12px 18px; border: 2px solid var(--ink); border-radius: 4px; background: var(--lime); color: var(--ink); box-shadow: 3px 3px 0 var(--ink); font: 700 15px var(--f-body); cursor: pointer; transition: background-color .12s, transform .12s, box-shadow .12s; }
.btn:hover:not(:disabled) { background: var(--lime-soft); }
.btn:active:not(:disabled) { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.btn:disabled { background: #e8eddd; cursor: default; }
.status { display: none; padding: 14px 16px; border-left: 3px solid var(--ink); font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.status.ok { display: block; background: var(--sage-faint); }
.status.err { display: block; background: var(--coral-soft); }
.fine-print { font-size: 13px; line-height: 1.6; color: var(--ink-mute); }
.inline-action { display: inline; min-height: 44px; border: 0; background: transparent; color: var(--ink); padding: 6px 0; font: 600 13px var(--f-body); line-height: 1.5; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.inline-action:hover:not(:disabled) { text-decoration-thickness: 2px; }
.inline-action:disabled { color: var(--ink-mute); cursor: default; }
.aux-actions { display: flex; align-items: center; gap: 8px 24px; flex-wrap: wrap; }
.panel > .aux-actions { margin-top: 16px; }
.site-footer { border-top: 1px solid var(--line); }
.footer-row { min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; padding-block: 16px; }
.footer-row p, .footer-row a { color: var(--ink-mute); font-size: 12px; line-height: 1.5; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; text-underline-offset: 3px; }

@media (max-width: 1100px) {
  .layout { gap: 36px; }
  .panel { padding-left: 32px; }
  h1 { font-size: 62px; }
}
@media (max-width: 900px) {
  .layout { max-width: 680px; grid-template-columns: minmax(0, 1fr); gap: 32px; padding-block: 36px 48px; }
  .intro { position: static; }
  .eyebrow { margin-bottom: 12px; }
  h1 { font-size: 48px; }
  .mascot-figure { max-width: 300px; margin-top: 24px; }
  .panel { padding: 28px 0 0; border-left: 0; border-top: 1px solid var(--line); }
}
@media (max-width: 620px) {
  .wrap { padding-inline: 20px; }
  .topbar { min-height: 72px; gap: 12px; }
  .brand { padding-left: 54px; }
  .brand-mascot { height: 56px; left: 20px; }
  .brand-name { display: none; }
  .toplinks { gap: 16px; }
  .nav-link { font-size: 10px; }
  .layout { gap: 24px; padding-top: 28px; }
  h1 { font-size: 36px; }
  .eyebrow { font-size: 10px; }
  .mascot-figure { max-width: 220px; margin-top: 20px; }
  .panel { padding-top: 24px; }
  .panel-head { margin-bottom: 20px; padding-bottom: 18px; }
  .panel h2 { font-size: 28px; }
  .field-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-row { align-items: flex-start; flex-direction: column; gap: 4px; }
  .footer-links { gap: 8px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .btn { transition: none; }
}
