*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; border-radius: 0; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-synthesis: none;
  overflow-wrap: anywhere;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 0.18em; }
button, input { font: inherit; color: inherit; }

/* Content column: 1248px max, 96px gutters (20px on mobile). Padding rather
   than width, so section borders and backgrounds can run full bleed. */
.wrap { padding-inline: max(var(--gutter), (100% - var(--content)) / 2); }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.on-ink :focus-visible { outline-color: var(--paper); }

.caps-label {
  font: 600 12px/16px var(--font-body);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--pencil);
}

/* Header and footer */
.site-header {
  display: flex; justify-content: space-between; align-items: center;
  padding-block: 28px;
  border-bottom: 1px solid var(--rule);
}
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.site-header .logo img { width: 27px; height: 36px; }
.logo-word { font: 900 36px/36px var(--font-display); letter-spacing: -0.03em; color: var(--ink); }

.site-footer {
  display: flex; align-items: center;
  padding-block: 32px;
  border-top: 1px solid var(--rule);
  font-size: 14px; line-height: 20px;
}
.site-footer .logo { gap: 8px; }
.site-footer .logo img { width: 15px; height: 20px; }
.site-footer .logo-word { font-size: 20px; line-height: 20px; letter-spacing: -0.02em; }
.site-footer p { margin-right: auto; padding-left: 20px; color: var(--pencil); }
.site-footer nav { display: flex; gap: 28px; }
.site-footer nav a { text-decoration: underline 1px; text-underline-position: from-font; }

/* Buttons */
.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 60px; padding: 0 32px;
  background: var(--stet-red); color: var(--paper);
  border: 0; font: 600 17px/24px var(--font-body); cursor: pointer;
  flex-shrink: 0;
}
.button:hover { background: #b81f18; }
.button:disabled { background: #a81b15; cursor: progress; }

/* Forms */
.field-label { display: block; font: 600 14px/20px var(--font-body); }
.text-input {
  width: 100%; height: 60px; padding: 0 20px;
  background: var(--paper); border: 1.5px solid var(--ink);
  font-size: 17px; line-height: 24px;
}
.text-input::placeholder { color: var(--pencil); opacity: 1; }
.text-input[aria-invalid='true'] { border: 2px solid var(--stet-red); }
.field-error { color: #b01e17; font: 500 14px/20px var(--font-body); }
.field-error:empty { display: none; }
.optin {
  display: flex; gap: 12px; align-items: flex-start; padding-top: 4px; cursor: pointer;
  font-size: 15px; line-height: 22px;
}
.optin input {
  appearance: none; -webkit-appearance: none;
  width: 20px; height: 20px; margin: 1px 0 0; flex-shrink: 0;
  background: var(--paper); border: 1.5px solid var(--ink); cursor: pointer;
}
.optin input:checked {
  background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M4.5 10.5l3.5 3.5 7.5-8' fill='none' stroke='%23fff' stroke-width='2.2'/%3E%3C/svg%3E") center / 16px 16px no-repeat;
}
.optin input[aria-invalid='true'] { border: 2px solid var(--stet-red); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

@media (max-width: 767px) {
  .site-header { padding-block: 12px 14px; }
  .site-header .logo { gap: 8px; }
  .site-header .logo img { width: 21px; height: 28px; }
  .site-header .logo-word { font-size: 28px; line-height: 28px; }
  .site-header .caps-label { font-size: 11px; letter-spacing: 0.14em; }

  .site-footer { flex-direction: column; align-items: flex-start; gap: 12px; padding-block: 28px 36px; border-top: 0; }
  .site-footer .logo { display: none; }
  .site-footer p { padding-left: 0; }
  .site-footer nav { gap: 24px; }

  .button { min-height: 54px; }
  .text-input { height: 54px; padding: 0 16px; }
}

@media (forced-colors: active) {
  .optin input:checked { background-color: Highlight; border-color: Highlight; }
}

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