* { box-sizing: border-box; }
:root {
  color-scheme: light;
  background: #f4f2eb;
  color: #292821;
  font: 16px/1.5 -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --ink: #292821;
  --muted: #625e53;
  --paper: #fbf9f4;
  --line: #dcd7ca;
  --olive: #4e573c;
}
body { margin: 0; padding-inline: 20px; }
h1, h2, p { margin: 0; }
h1, h2, .masthead p { font-family: Georgia, 'Times New Roman', serif; font-weight: 400; line-height: 1.15; }
h1 { font-size: 36px; letter-spacing: -.025em; }
h2, .masthead p { font-size: 24px; }
a { color: #3c462d; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid #4c6046; outline-offset: 3px; }
.masthead { display: flex; align-items: center; gap: 12px; min-height: 76px; margin: auto; max-width: 720px; border-bottom: 1px solid var(--line); }
.masthead svg { color: var(--olive); flex: none; }
main { max-width: 520px; margin: 48px auto; }
main > p, nav { margin-block: 12px 0; }
nav { display: flex; flex-wrap: wrap; gap: 4px 16px; align-items: center; }
nav a, .text-button, .hint { font-size: 14px; }
section { border-top: 1px solid var(--line); margin-top: 24px; padding-top: 20px; }
section > p { margin-top: 8px; }
.sign-in, .code-settings { display: grid; justify-items: start; gap: 8px; margin-block: 20px 16px; }
.sign-in input { width: min(100%, 336px); }
label { color: var(--muted); font-weight: 600; font-size: 14px; }
input, button { padding: 8px 12px; min-height: 44px; font: inherit; border: 1px solid #c7c0b2; border-radius: 8px; color: var(--ink); background: var(--paper); }
button { cursor: pointer; font-size: 14px; font-weight: 600; }
button:hover { background: #ede9df; }
button.primary { background: var(--olive); color: var(--paper); border-color: var(--olive); }
button.primary:hover { background: #3c462d; }
button.text-button { padding-inline: 0; border-color: transparent; background: transparent; color: #3c462d; text-decoration: underline; text-underline-offset: 3px; }
.code-input, output, input[type="number"] { font-variant-numeric: tabular-nums; }
.code-input { letter-spacing: .14em; font-size: 20px; }
input[type="number"] { width: 92px; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.invite { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 20px; align-items: center; padding-block: 12px; color: var(--muted); font-size: 14px; }
.invite output { display: block; margin-top: 4px; color: var(--ink); font-size: 40px; line-height: 1.15; letter-spacing: .08em; }
.invite time { white-space: nowrap; }
.hint { color: var(--muted); }
.feedback { padding: 12px; border: 1px solid var(--line); border-radius: 8px; color: #3c462d; }
.feedback.error { color: #7c472f; }
@media (max-width: 520px) { main { margin-block: 28px; } h1 { font-size: 30px; } }
