@font-face {
  font-family: 'Gigory Display';
  src: url('/assets/fonts/headline.woff2') format('woff2');
  font-weight: 900;
  font-display: swap;
}
@font-face {
  font-family: 'DM Sans';
  src: url('/assets/fonts/body.woff2') format('woff2');
  font-weight: 400 700;
  font-display: swap;
}
:root {
  --ink: #241d30;
  --paper: #f6f2e9;
  --pear: #d8ee86;
  --coral: #ef816d;
  color: var(--ink);
  background: var(--paper) url('/assets/paper.webp') repeat;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
}
* { box-sizing: border-box; }
body, h1, h2, p, ul { margin: 0; }
body { min-width: 16rem; }
.page {
  width: min(100%, 104rem);
  margin-inline: auto;
  padding: clamp(1rem, 2.2vw, 2.4rem) clamp(1.25rem, 4vw, 4.25rem) 1rem;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}
.masthead, .announcement, footer, footer ul, footer li { display: flex; align-items: center; }
.masthead { gap: clamp(1rem, 2.8vw, 3rem); }
.wordmark { width: clamp(7.2rem, 12.3vw, 13rem); height: auto; }
.rule { height: 1px; background: currentColor; flex: 1; }
.announcement { font-weight: 700; font-size: clamp(.875rem, 1.5vw, 1.5rem); letter-spacing: -.045em; gap: .45em; }
.dot, footer li + li::before { width: .55em; height: .55em; border-radius: 50%; background: var(--pear); }
main { flex: 1; display: grid; align-items: center; }
.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  column-gap: 2%;
  padding-block: clamp(.9rem, 1.2vw, 1.4rem);
}
.intro { align-self: end; padding-top: .5rem; z-index: 1; }
.kicker { font-weight: 700; font-size: clamp(.8rem, 1.35vw, 1.45rem); text-transform: uppercase; letter-spacing: .18em; }
h1, h2 { font-family: 'Gigory Display', 'Arial Black', sans-serif; font-weight: 900; }
h1 {
  margin: .15em 0 .18em;
  font-size: clamp(5rem, min(9.55vw, 14.4svh), 10rem);
  line-height: .87;
  letter-spacing: -.05em;
}
h1 span { display: table; }
h1 span:not(.marked) { position: relative; z-index: 1; }
.marked { position: relative; isolation: isolate; white-space: nowrap; }
.marked::before {
  content: ''; position: absolute; z-index: -1;
  inset: 9% -3.5% -5% -2.5%;
  background: var(--pear) url('/assets/grain.png') repeat; transform: rotate(-.7deg);
  clip-path: polygon(1% 9%, 4% 5%, 29% 3%, 45% 4%, 68% 1%, 95% 4%, 98% 8%, 97.5% 13%, 99% 17%, 98.5% 23%, 99.7% 31%, 99% 36%, 100% 48%, 99.4% 54%, 100% 66%, 99% 72%, 99.5% 83%, 98% 91%, 99% 96%, 95% 98%, 79% 96%, 65% 99%, 46% 97%, 22% 99%, 4% 96%, 1% 91%, 1.5% 82%, 0 74%, .7% 66%, 0 57%, 1% 49%, .3% 41%, 1% 36%, .5% 31%, 1.4% 24%, .6% 17%);
}
.description { max-width: 36em; font-size: clamp(1.05rem, 1.77vw, 1.85rem); font-weight: 500; line-height: 1.28; letter-spacing: -.035em; }
.art { position: relative; grid-row: 1 / 3; grid-column: 2; align-self: center; }
.art::before {
  content: ''; position: absolute; z-index: -1;
  inset: 5% -4vw 1% -20%;
  background: var(--coral) url('/assets/grain.png') repeat;
  clip-path: polygon(99% 1%, 100% .6%, 100% 71%, 97% 73%, 93% 78%, 89% 81%, 83% 85%, 78% 91%, 68% 97%, 55% 98%, 0 100%, 5% 95%, 7% 94%, 14% 87%, 19% 84%, 26% 76%, 30% 74%, 34% 69%, 42% 64%, 52% 51%, 63% 46%, 72% 34%, 85% 19%, 92% 9%);
}
.poster { display: block; width: 100%; max-height: max(35rem, 78svh); object-fit: contain; height: auto; filter: drop-shadow(.22rem .6rem .35rem #3022373d); }
.signup { align-self: start; padding-block: clamp(1.2rem, 2.6vw, 2.85rem) 1.2rem; z-index: 1; }
.signup h2, .return-link { display: inline-block; background: var(--pear); border-radius: 3rem; }
.signup h2 { padding: .17em .55em .21em; letter-spacing: -.055em; line-height: 1.04; font-size: clamp(1.65rem, 2.8vw, 3rem); }
form { margin-top: clamp(.9rem, 1.6vw, 1.65rem); }
.controls { display: flex; gap: .6rem; max-width: 43rem; }
input, button { font: inherit; color: inherit; border-radius: .72rem; }
input { flex: 1; min-width: 0; padding: .76em 1em; background: var(--paper); border: 1.5px solid var(--ink); font-size: clamp(1rem, 1.35vw, 1.4rem); }
input::placeholder { color: #64596a; }
button { min-height: 3rem; padding: .75em 1.05em; background: var(--ink); color: var(--paper); border: 1.5px solid var(--ink); cursor: pointer; font-weight: 700; font-size: clamp(1rem, 1.35vw, 1.4rem); letter-spacing: -.025em; }
button span { margin-left: .3em; }
button:hover { background: #43364b; }
button:disabled { cursor: wait; opacity: .75; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 4px; }
#signup-note, .feedback { margin: .65rem 0 0 .25rem; font-size: clamp(.875rem, 1.15vw, 1.15rem); line-height: 1.4; }
.feedback:empty { margin: 0; }
.feedback { font-weight: 700; }
.feedback[data-error] { color: #802f21; }
footer { justify-content: space-between; gap: 1rem; border-top: 1px solid; padding-top: .8rem; }
footer ul { list-style: none; padding: 0; flex-wrap: wrap; gap: .45rem clamp(.7rem, 2.3vw, 2.4rem); font-size: clamp(.875rem, 1.35vw, 1.3rem); }
footer li + li::before { content: ''; margin-right: clamp(.7rem, 2.3vw, 2.4rem); }
footer img { width: clamp(5rem, 8vw, 8.2rem); height: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.result { max-width: 42rem; margin: 12vh auto; padding: 1.5rem; }
.result h1 { font-size: clamp(3.5rem, 10vw, 6rem); margin: .45em 0 .25em; line-height: .95; }
.result p { line-height: 1.5; }
.return-link { padding: .7em 1.1em; margin-top: 1.5rem; color: var(--ink); font-weight: 700; }
@media (min-width: 45.01rem) and (max-width: 60rem) {
  .controls { flex-wrap: wrap; }
  h1 { font-size: 9.65vw; }
}
@media (max-width: 45rem) {
  .page { padding-inline: clamp(1.2rem, 5.6vw, 2.5rem); }
  .masthead { gap: .8rem; }
  .announcement { font-size: .84rem; }
  .wordmark { width: clamp(5.75rem, 22vw, 8rem); }
  .hero { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto; padding-top: 1.8rem; }
  .intro { padding-top: 0; }
  h1 { font-size: clamp(3rem, 13.25vw, 6rem); line-height: .95; margin-block: .22em .32em; }
  h1 span:first-child, h1 span:nth-child(2) { display: inline; }
  .description { font-size: 1.1rem; max-width: 31em; }
  .signup { grid-row: 2; padding: 1.3rem 0 0; }
  .art { grid-row: 3; grid-column: 1; width: min(100%, 25rem); margin: 1.65rem auto .5rem; }
  .art::before { inset: 4% -4% 0 -4%; }
  .poster { max-height: none; }
  footer { align-items: flex-start; }
  footer ul { gap: .4rem .7rem; }
  footer img { width: 4.1rem; }
  footer li + li::before { margin-right: .7rem; }
}
@media (max-width: 27rem) {
  .controls { flex-direction: column; }
  .controls input { min-height: 3rem; }
  footer { flex-wrap: wrap; align-items: center; }
  footer img { display: none; }
}
