:root {
  --red: #FF2A1F;
  --paper: #F4F3EF;
  --gutter: 32px;
  color: var(--paper);
  background: var(--red);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  min-height: 100vh;
  margin: 0;
  display: flex;
  flex-direction: column;
}

header, main, footer { padding-inline: var(--gutter); }

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 60px;
  gap: 16px;
  font-size: 17px;
  font-weight: 500;
}

header a, .email a, button, #receipt a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: .22em; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }

main {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  column-gap: clamp(24px, 6vw, 96px);
  row-gap: clamp(36px, 6vh, 72px);
  align-content: start;
  padding-top: 60px;
  padding-bottom: 56px;
}

h1, #receipt h2 {
  margin: 0;
  font-weight: 700;
  line-height: .84;
  letter-spacing: -.065em;
}

h1 {
  grid-column: 1 / -1;
  font-size: clamp(64px, 12vw, 240px);
}

main > section {
  min-width: 0;
  border-top: 2px solid currentColor;
  padding-top: 14px;
}

p { margin: 0; line-height: 1.35; }
.intro { max-width: 34ch; font-size: 19px; font-weight: 500; }

.email {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 20px;
  margin-top: 12px;
  font-size: 17px;
  font-weight: 500;
}

form { width: 100%; max-width: 660px; }

fieldset { min-width: 0; border: 0; padding: 0; margin: 0 0 18px; }

legend, .field, .status, #copied, noscript {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.35;
}

legend, .field { display: block; padding: 0; margin-bottom: 6px; }

.choices {
  display: flex;
  flex-wrap: wrap;
  gap: 0 24px;
}

.choices label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-size: 19px;
  font-weight: 500;
  cursor: pointer;
}

.choices input {
  appearance: none;
  -webkit-appearance: none;
  flex: none;
  width: 15px;
  height: 15px;
  margin: 0;
  border: 1px solid currentColor;
  border-radius: 50%;
  color: inherit;
}

.choices input:checked {
  background: radial-gradient(circle, currentColor 0 3px, transparent 4px);
}

input[type="email"], textarea {
  display: block;
  width: 100%;
  min-height: 44px;
  margin: 0 0 22px;
  padding: 7px 0 10px;
  border: 0;
  border-bottom: 1px solid currentColor;
  border-radius: 0;
  color: inherit;
  background: transparent;
  caret-color: currentColor;
  font: inherit;
  font-size: 19px;
  font-weight: 500;
}

textarea { min-height: 112px; resize: vertical; }

button {
  padding: 0;
  border: 0;
  border-radius: 0;
  color: inherit;
  background: transparent;
  font: inherit;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: .25em;
  cursor: pointer;
}

.submit { font-size: 19px; }
.submit:disabled { opacity: .7; cursor: default; }

.status { margin-top: 10px; }
.status:empty, #copied:empty { display: none; }
#receipt h2 { font-size: clamp(32px, 5vw, 64px); margin-bottom: 20px; }
#receipt p { font-size: 19px; }
#receipt a { margin-top: 8px; text-decoration: underline; text-underline-offset: .22em; }

footer { padding-top: 16px; padding-bottom: 20px; font-size: 15px; }
body [hidden] { display: none; }

@media (max-width: 699px) {
  :root { --gutter: 24px; }
  main { grid-template-columns: minmax(0, 1fr); row-gap: 28px; padding-top: 40px; }
  h1 { font-size: clamp(42px, 12vw, 64px); }
}

@media (forced-colors: active) {
  .choices input:checked { background: CanvasText; }
}
