:root {
  color: #f5eedf;
  background: #181713;
  color-scheme: dark;
  font-family: system-ui, sans-serif;
  --paper: #f5eedf;
  --muted: #c0b5a2;
  --accent: #e8ad75;
}

* { box-sizing: border-box; }

body {
  min-height: 100svh;
  margin: 0;
  display: grid;
  grid-template-rows: auto 1fr;
  background:
    radial-gradient(ellipse at 16% 64%, #38251b 0%, transparent 54rem),
    #181713;
}

header,
main {
  width: min(66rem, calc(100% - 3rem));
  margin-inline: auto;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 1.625rem;
  border-bottom: 1px solid #776854;
}

.wordmark {
  font-size: .95rem;
  font-weight: 740;
  letter-spacing: .14em;
  text-transform: uppercase;
}

main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(17rem, 24rem);
  align-items: center;
  align-content: center;
  gap: clamp(2.5rem, 8vw, 7rem);
  padding-block: clamp(3rem, 11vh, 8rem);
}

.eyebrow { color: var(--accent); font-weight: 600; margin: 0 0 1rem; }

h1 {
  margin: 0;
  font: 400 clamp(3.25rem, 8vw, 7.75rem)/.98 Georgia, serif;
  letter-spacing: -.07em;
  text-wrap: balance;
}

h2 { margin: 0 0 1rem; font: 400 2rem/1.15 Georgia, serif; }
p { line-height: 1.55; }
.lead > p:last-child { color: var(--muted); max-width: 30ch; margin-block: 1.6rem 0; }

.panel {
  padding: clamp(1.25rem, 4vw, 2rem);
  border: 1px solid #6d5d4a;
  border-radius: .6rem;
  background: #211e18;
}

.panel p { color: var(--muted); }
label { display: block; margin-bottom: .5rem; font-weight: 600; }

input,
button {
  min-height: 2.875rem;
  font: inherit;
  border-radius: .35rem;
}

input {
  width: 100%;
  padding: .65rem .75rem;
  border: 1px solid #80715c;
  background: #141310;
  color: var(--paper);
}

button {
  border: 1px solid transparent;
  background: var(--accent);
  color: #21170e;
  padding: .65rem 1rem;
  font-weight: 650;
  cursor: pointer;
}

.panel button { width: 100%; margin-top: 1rem; }
.quiet { color: var(--paper); background: transparent; border-color: #776854; }
:is(input, button):focus-visible { outline: 2px solid var(--paper); outline-offset: 4px; }

#code-invalide { display: none; color: #ffb7ab; }
#code-invalide:target { display: block; }

@media (max-width: 48rem) {
  main { grid-template-columns: 1fr; }
  .panel { max-width: 29rem; }
}
