@font-face {
  font-family: "Libre Franklin";
  src: url("libre-franklin-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("atkinson-hyperlegible-next-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #f3f3f2;
  --white: #fff;
  --ink: #1c1c1b;
  --pencil: #4a4a48;
  --rule: #c8c8c4;
  --green: #00ff01;
  --forest: #14352b;
  --display: "Libre Franklin", Arial, sans-serif;
  --reading: "Atkinson Hyperlegible Next", Verdana, sans-serif;
  font-family: var(--reading);
  font-synthesis: none;
  color: var(--ink);
  background: var(--paper);
}

* { box-sizing: border-box; }
body { margin: 0; font-size: 18px; line-height: 1.5; }
h1, h2, p { margin: 0; }
button, input, textarea { font: inherit; }
button, a, input, textarea { -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }

.page-shell {
  width: min(100%, 1296px);
  min-height: 100svh;
  margin: 0 auto;
  padding: 0 48px;
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 32px 0;
}

.wordmark { display: block; width: 184px; height: auto; }
.event-name { font-size: 16px; color: var(--pencil); }

.invitation-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  align-items: center;
  gap: 80px;
  padding: 24px 0 40px;
}

.invitation h1 {
  font-family: var(--display);
  font-size: clamp(40px, 4.7vw, 64px);
  font-weight: 900;
  line-height: 1.07;
  letter-spacing: -.025em;
}

.invitation-copy { margin-top: 24px; font-size: 20px; line-height: 1.5; }
.examples { margin-top: 40px; }
.examples-heading { font-size: 16px; color: var(--pencil); margin-bottom: 8px; }
.examples ul { list-style: none; margin: 0; padding: 0; }
.examples li { padding: 12px 0; border-bottom: 1px solid var(--rule); }
.examples li:last-child { border-bottom: 0; padding-bottom: 0; }
.example-title { display: block; font-weight: 700; font-size: 18px; }
.example-description { display: block; color: var(--pencil); font-size: 16px; }

.request-panel { background: var(--white); padding: 32px; border: 1px solid var(--rule); }
.request-panel { border-top: 4px solid var(--ink); }
.request-panel h2 { font-family: var(--display); font-size: 28px; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; }
.delivery-promise { font-size: 16px; margin: 8px 0 24px; color: var(--pencil); }
.identity-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { min-width: 0; }
.field label { display: block; margin-bottom: 8px; font-size: 16px; font-weight: 700; }
.field input, .field textarea {
  display: block;
  width: 100%;
  border: 1px solid var(--pencil);
  border-radius: 0;
  background: var(--white);
  color: var(--ink);
  padding: 12px;
  font-size: 18px;
  line-height: 1.35;
  min-height: 48px;
}
.field textarea { resize: vertical; min-height: 112px; }
.field textarea::placeholder { color: var(--pencil); opacity: 1; }
.field input:hover, .field textarea:hover { border-color: var(--ink); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 4px; }
.field input:focus-visible, .field textarea:focus-visible { outline-width: 2px; outline-offset: 2px; }
.message-field { margin-top: 24px; }
.field-help, .field-error { font-size: 16px; line-height: 1.35; margin-top: 8px; color: var(--pencil); }
.field-error { color: var(--ink); font-weight: 700; }
[aria-invalid="true"] { border-width: 2px !important; }

.primary-action {
  display: block;
  width: 100%;
  min-height: 52px;
  padding: 12px 20px;
  margin-top: 24px;
  border: 2px solid var(--green);
  border-radius: 0;
  background: var(--green);
  color: var(--ink);
  font-size: 18px;
  line-height: 1.35;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 120ms ease, color 120ms ease, border-color 120ms ease;
}
.primary-action:hover { background: var(--forest); color: var(--white); border-color: var(--forest); }
.primary-action:active { background: var(--ink); border-color: var(--ink); }
.primary-action:disabled { cursor: wait; background: var(--paper); color: var(--pencil); border-color: var(--rule); }
.privacy-note { margin-top: 16px; font-size: 16px; line-height: 1.35; color: var(--pencil); }
.privacy-note a { color: inherit; text-underline-offset: 3px; }
.privacy-note a:hover { color: var(--ink); }
.form-status { font-size: 16px; font-weight: 700; line-height: 1.35; margin-top: 16px; }
.request-success { padding: 40px 0; }
.success-symbol { display: block; font-size: 40px; line-height: 1; margin-bottom: 24px; }
.request-success p { margin-top: 16px; }
.success-delivery { font-weight: 700; }
.page-footer { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; padding: 24px 0 32px; border-top: 1px solid var(--rule); font-size: 16px; }
.page-footer p { font-weight: 700; }
.page-footer span { color: var(--pencil); }

@media (min-width: 768px) and (max-height: 800px) {
  .page-header { padding: 24px 0; }
  .invitation-layout { gap: 48px; padding: 16px 0 24px; }
  .invitation h1 { font-size: clamp(40px, 4.3vw, 56px); }
  .invitation-copy { margin-top: 16px; }
  .examples { margin-top: 24px; }
  .examples li { padding: 8px 0; }
  .page-footer { padding: 16px 0 24px; }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .page-shell { padding: 0 32px; }
  .invitation-layout { gap: 32px; grid-template-columns: 1fr 1fr; }
  .invitation h1 { font-size: 40px; }
  .invitation-copy { font-size: 18px; }
  .request-panel { padding: 24px; }
  .identity-fields { grid-template-columns: 1fr; gap: 16px; }
}

@media (max-width: 767px) {
  body { font-size: 16px; }
  .page-shell { width: 100%; padding: 0 24px; }
  .page-header { gap: 24px; padding: 24px 0; }
  .wordmark { width: 144px; }
  .event-name { font-size: 16px; line-height: 1.2; text-align: right; }
  .invitation-layout { display: flex; flex-direction: column; align-items: stretch; justify-content: center; gap: 24px; padding: 8px 0 24px; }
  .invitation h1 { font-size: 38px; line-height: 1.06; }
  .invitation-copy { margin-top: 12px; font-size: 17px; line-height: 1.4; }
  .examples { margin-top: 16px; }
  .examples-heading { margin-bottom: 4px; }
  .examples ul { display: flex; flex-wrap: wrap; column-gap: 12px; row-gap: 4px; }
  .examples li { border: 0; padding: 0; }
  .example-title { font-size: 16px; font-weight: 700; }
  .example-description { display: none; }
  .request-panel { padding: 16px 0 0; border: 0; border-top: 2px solid var(--ink); background: transparent; }
  #request-title { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
  .request-panel h2 { font-size: 24px; }
  .delivery-promise { margin: 0 0 16px; font-weight: 700; color: var(--ink); }
  .identity-fields { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 12px; }
  .field label { margin-bottom: 4px; }
  .field input, .field textarea { min-height: 44px; padding: 10px 12px; font-size: 16px; }
  .field textarea { min-height: 80px; height: 80px; }
  .field-help { margin-top: 4px; }
  .message-field { margin-top: 12px; }
  .primary-action { min-height: 48px; margin-top: 16px; font-size: 18px; }
  .privacy-note { margin-top: 12px; font-size: 16px; }
  .page-footer { padding: 12px 0 20px; }
  .page-footer span { display: none; }
  .request-success { padding: 24px 0; }
}

@media (max-width: 767px) and (max-height: 780px) {
  .page-shell { padding: 0 16px; }
  .page-header { padding: 20px 0; }
  .invitation-layout { padding-top: 4px; padding-bottom: 12px; gap: 12px; }
  .invitation h1 { font-size: 30px; }
  .invitation-copy { font-size: 16px; margin-top: 12px; }
  .examples { margin-top: 8px; }
  .examples ul { column-gap: 8px; }
  .examples-heading { margin-bottom: 2px; }
  .request-panel { padding-top: 12px; }
  .delivery-promise { margin: 0 0 8px; }
  .primary-action { margin-top: 12px; }
  .privacy-note { margin-top: 8px; font-size: 16px; }
  .page-footer { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
