:root {
  --stout: #21120a;
  --malt: #6e3b12;
  --amber: #e5a632;
  --deep-amber: #c9811f;
  --foam: #fff1cf;
  --display: 'Caprasimo', 'Cooper Black', Georgia, serif;
  --text: 'Alegreya', Georgia, 'Times New Roman', serif;
}

/* The fill level of the wordmark, animated on load. */
@property --level {
  syntax: '<percentage>';
  inherits: true;
  initial-value: 77%;
}

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

html {
  background: var(--stout);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--stout);
  font-family: var(--text);
  font-size: 1.25rem;
  line-height: 1.5;
}

h1, h2, p { margin: 0; }
h2 { font-family: var(--display); font-weight: 400; line-height: 1.08; }
img, svg { display: block; }

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--stout);
  outline-offset: 2px;
}

/* Hero: the mic, with the name poured over it */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--stout);
  color: var(--foam);
  isolation: isolate;
}

.mic {
  position: absolute;
  /* Pushed right so the mic stands clear of the name. The overlay hides the left edge. */
  top: 0;
  left: 22%;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 80%;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, var(--stout) 22%, rgb(33 18 10 / .86) 42%, rgb(33 18 10 / 0) 66%);
}

.billing {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 4rem clamp(1rem, 5vw, 4.5rem) 7rem;
}

h1 {
  width: fit-content;
  padding: .04em .05em .1em 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(4.1rem, 12vw, 10.5rem);
  line-height: .96;
  color: transparent;
  background: linear-gradient(to top,
    var(--deep-amber) 0%,
    var(--amber) calc(var(--level) * .75),
    var(--amber) var(--level),
    var(--foam) var(--level),
    var(--foam) calc(var(--level) + 24%),
    transparent calc(var(--level) + 24%));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-stroke: 1px rgb(255 241 207 / .3);
  animation: pour 2.6s cubic-bezier(.3, .1, .3, 1) .35s backwards;
}

@keyframes pour {
  from { --level: -24%; }
  to { --level: 77%; }
}

.lede {
  max-width: 19em;
  margin-top: 1.4rem;
  font-size: clamp(1.5rem, 2.8vw, 2.15rem);
  line-height: 1.25;
}

.soon {
  margin-top: .6rem;
  font-style: italic;
  font-size: clamp(1.3rem, 2.2vw, 1.65rem);
  color: var(--amber);
}

.jump {
  display: inline-block;
  margin-top: 1.8rem;
  padding: .55em 1.2em .6em;
  border-radius: 999px;
  background: var(--amber);
  color: var(--stout);
  font-weight: 700;
  text-decoration: none;
  transition: background-color .15s;
}

.jump:hover { background: var(--foam); }
.jump:focus-visible { outline-color: var(--foam); }

.foam {
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: clamp(32px, 5vw, 70px);
  fill: var(--foam);
}

/* The pour: foam at the top, deepening amber toward the bottom */
main {
  background: linear-gradient(var(--foam) 0, var(--foam) 2.75rem, var(--amber) 11rem, var(--deep-amber) 100%);
}

.pour {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  max-width: 1320px;
  margin: 0 auto;
  padding: clamp(3.5rem, 7vw, 6rem) clamp(1rem, 5vw, 4.5rem) clamp(3rem, 6vw, 5.5rem);
}

.about > h2 {
  font-size: clamp(2.6rem, 5.4vw, 4.6rem);
  margin-bottom: 1.6rem;
  text-wrap: balance;
}

.about p { max-width: 32em; }
.about p + p { margin-top: 1em; }

.tap {
  width: 100%;
  height: auto;
  margin-top: 2.5rem;
  border-radius: 14px;
}

.list {
  align-self: start;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  border-radius: 14px;
  background: var(--foam);
}

.list > h2 { font-size: clamp(2rem, 3.4vw, 2.75rem); }
.intro { margin: .6rem 0 1.5rem; }

form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
}

.wide, button { grid-column: 1 / -1; }

.trap {
  position: absolute;
  left: -9999px;
}

label, legend {
  font-weight: 700;
  line-height: 1.25;
}

label span, legend span {
  font-weight: 400;
  color: var(--malt);
}

.field label { display: block; margin-bottom: .3rem; }

input[type='text'], input[type='email'], textarea {
  width: 100%;
  padding: .45em .6em;
  border: 2px solid var(--stout);
  border-radius: 8px;
  background: #fff;
  color: var(--stout);
  font: inherit;
}

textarea { resize: vertical; }

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

legend { padding: 0; margin-bottom: .4rem; }

fieldset label {
  display: flex;
  align-items: center;
  gap: .55em;
  padding: .2em 0;
  font-weight: 400;
  cursor: pointer;
}

input[type='checkbox'] {
  flex: none;
  width: 1.15em;
  height: 1.15em;
  margin: 0;
  accent-color: var(--malt);
}

button {
  justify-self: start;
  padding: .55em 1.4em .6em;
  border: 0;
  border-radius: 999px;
  background: var(--stout);
  color: var(--foam);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: background-color .15s;
}

button:hover { background: var(--malt); }
button:disabled { opacity: .7; cursor: wait; }

.done { outline: none; }
.cheers { font-family: var(--display); font-size: 2.75rem; line-height: 1.1; color: var(--malt); margin-bottom: .4rem; }

.failed { margin-top: 1rem; color: #8a1f0f; font-weight: 700; }
.failed:empty { display: none; }

footer {
  padding: 1.5rem clamp(1rem, 5vw, 4.5rem) 2rem;
  background: var(--stout);
  color: var(--foam);
  font-size: 1.05rem;
  text-align: center;
}

@media (max-width: 860px) {
  .hero { align-items: flex-start; }
  .hero::before {
    background: linear-gradient(180deg, var(--stout) 40%, rgb(33 18 10 / 0) 64%);
  }
  .mic {
    top: auto;
    left: 0;
    bottom: 0;
    height: 62%;
    object-position: 66% 60%;
  }
  .billing { padding-top: 3rem; padding-bottom: 46svh; }
  .pour { grid-template-columns: minmax(0, 1fr); }
  .list { order: 2; }
}

@media (max-width: 480px) {
  form { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  h1 { animation: none; }
  .jump, button { transition: none; }
}
