:root {
  color-scheme: light;
  --ink: #111111;
  --muted: #666666;
  --line: #d8d8d8;
  --soft: #f4f4f4;
  --yellow: #fff200;
  --success: #166534;
  --warning: #7c2d12;
  font-family: Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background: #ffffff;
}

body {
  margin: 0;
  min-width: 320px;
  background: #ffffff;
  color: var(--ink);
  font-family: Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
}

a {
  color: inherit;
}

.shell {
  width: min(100% - 32px, 760px);
  margin: 0 auto;
  padding: 48px 0 64px;
}

.hero {
  text-align: left;
}

.hero-lockup {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(190px, 245px);
  align-items: center;
  gap: clamp(20px, 5vw, 48px);
  margin-bottom: 24px;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin: 0;
  font-size: clamp(2.65rem, 7vw, 5.15rem);
  line-height: 0.9;
  letter-spacing: -0.065em;
}

h2 {
  margin-bottom: 22px;
  font-size: 1.25rem;
  letter-spacing: -0.025em;
}

.bee {
  display: block;
  width: 100%;
  max-width: 245px;
  height: auto;
  justify-self: end;
}

.intro {
  max-width: 600px;
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.5;
}

.stock-status {
  display: grid;
  gap: 4px;
  margin: 0 0 38px;
  line-height: 1.35;
}

.stock-status strong {
  font-size: 1.12rem;
}

#after-order {
  color: var(--muted);
  font-size: 0.86rem;
}

.order-card,
.status-card {
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  padding: 28px 0 32px;
}

.fields {
  display: grid;
  grid-template-columns: 1.4fr 0.6fr;
  gap: 18px;
}

.beer-field {
  grid-column: 1 / -1;
}

.field {
  display: grid;
  gap: 8px;
  font-size: 0.94rem;
  font-weight: 700;
}

.field small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 400;
  line-height: 1.4;
}

.field input {
  width: 100%;
  min-height: 52px;
  border: 1px solid #8d8d8d;
  border-radius: 0;
  padding: 11px 13px;
  background: #ffffff;
  color: var(--ink);
  outline: none;
}

.field input:focus {
  border-color: var(--ink);
  box-shadow: 0 0 0 2px var(--ink);
}

.field input:disabled {
  background: var(--soft);
  color: var(--muted);
}

.money-field {
  position: relative;
}

.currency {
  position: absolute;
  top: 50%;
  left: 13px;
  z-index: 1;
  transform: translateY(-50%);
  color: var(--muted);
  font-weight: 400;
}

.money-field input {
  padding-left: 29px;
}

.small-note,
.trust-note,
.setup-warning,
footer,
.eyebrow {
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.5;
}

.small-note {
  margin: 14px 0 28px;
}

.summary {
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 6px 0;
}

.grand-total {
  margin-top: 12px;
  border-top: 2px solid var(--ink);
  padding-top: 17px;
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.checkout-button,
.secondary-button {
  display: block;
  width: 100%;
  margin-top: 25px;
  border: 2px solid var(--ink);
  border-radius: 0;
  padding: 16px 20px;
  background: var(--ink);
  color: #ffffff;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  font-weight: 700;
  transition:
    background 120ms ease,
    color 120ms ease;
}

.checkout-button:hover,
.checkout-button:focus-visible,
.secondary-button:hover,
.secondary-button:focus-visible {
  background: var(--yellow);
  color: var(--ink);
}

.checkout-button:disabled {
  border-color: #aaaaaa;
  background: #aaaaaa;
  color: #ffffff;
  cursor: not-allowed;
}

.trust-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  max-width: 570px;
  margin: 15px auto 0;
}

.trust-note p {
  margin-bottom: 0;
}

.lock {
  flex: 0 0 auto;
  line-height: 1.5;
}

.setup-warning {
  margin: 18px 0 0;
  padding: 13px;
  background: #fff7ed;
  color: var(--warning);
  text-align: center;
}

.status-card {
  margin-top: 8vh;
}

.status-card h1 {
  font-size: clamp(2.2rem, 8vw, 4rem);
}

.status-card p {
  max-width: 620px;
  line-height: 1.55;
}

.status-card.success h1 {
  color: var(--success);
}

.status-details {
  margin: 24px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
}

.status-details .summary-row {
  padding: 5px 0;
}

.secondary-button {
  width: fit-content;
  min-width: 220px;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.92em;
}

footer {
  padding-top: 20px;
  text-align: center;
}

footer p {
  margin-bottom: 0;
}

.honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

[hidden] {
  display: none !important;
}

@media (max-width: 680px) {
  .shell {
    width: min(100% - 24px, 760px);
    padding-top: 30px;
  }

  .hero-lockup {
    grid-template-columns: minmax(0, 1fr) minmax(120px, 175px);
    gap: 18px;
  }

  h1 {
    font-size: clamp(2.3rem, 11vw, 3.7rem);
  }

  .bee {
    max-width: 175px;
  }
}

@media (max-width: 500px) {
  .hero {
    text-align: center;
  }

  .hero-lockup {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .bee {
    width: min(62vw, 235px);
    max-width: none;
    justify-self: center;
  }

  .intro {
    margin-right: auto;
    margin-left: auto;
  }

  .stock-status {
    margin-right: auto;
    margin-left: auto;
  }

  .fields {
    grid-template-columns: 1fr;
  }

  .beer-field {
    grid-column: auto;
  }

  .summary-row {
    gap: 14px;
  }
}
