:root { --paper: #fbf7ef; --ink: #101418; --muted: #6b6257; --rule: #ded5c6; --red: #9a2a2a; --brand: #dd2e44; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.55 "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif; }
.masthead { border-bottom: 1px solid var(--rule); padding: 20px 24px 16px; text-align: center; }
.wordmark { font-size: 28px; font-weight: 600; color: var(--ink); text-decoration: none; }
.wordmark .pip { color: var(--brand); margin-left: 5px; font-size: 0.8em; vertical-align: 2px; }
main { max-width: 34rem; margin: 0 auto; padding: 2.5rem 1.5rem 4rem; }
h1 { font-size: 1.9rem; line-height: 1.2; margin: 0 0 0.75rem; }
h2 { font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin: 2.25rem 0 0.75rem; }
.lede { color: var(--muted); }
.beta { color: var(--muted); font-size: 0.9rem; border-left: 3px solid var(--red); padding-left: 0.6rem; }
a { color: var(--ink); }
button, .button { display: inline-block; font: inherit; cursor: pointer; border-radius: 4px; border: 1px solid var(--ink); background: var(--ink); color: var(--paper); padding: 0.6rem 1.2rem; text-decoration: none; }
.button { background: var(--red); border-color: var(--red); font-size: 1.1rem; padding: 0.8rem 1.5rem; }
.button.secondary { background: transparent; color: var(--red); }
button:disabled { opacity: 0.5; cursor: default; }
button.link { background: none; border: none; color: var(--muted); padding: 0; text-decoration: underline; }
.setup-help { background: #fffdf8; border: 1px solid var(--rule); border-left: 3px solid var(--red); border-radius: 4px; margin: 0 0 2rem; padding: 1rem 1.1rem; }
.setup-help h2 { margin: 0 0 0.4rem; }
.setup-help p { margin: 0.4rem 0; }
.setup-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.fine { color: var(--muted); font-size: 0.9rem; margin-top: 1.5rem; }
.decks { list-style: none; padding: 0; margin: 1.25rem 0; display: grid; gap: 0.5rem; }
.decks li { background: #fffdf8; border: 1px solid var(--rule); border-radius: 4px; padding: 0.6rem 0.9rem; display: flex; justify-content: space-between; gap: 1rem; }
.decks li > span { min-width: 0; }
.decks li .fine { margin: 0; }
.new-deck { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; margin: 1.25rem 0 0.5rem; }
.new-deck label { font-weight: 600; }
.new-deck input { flex: 1 1 14rem; font: inherit; padding: 0.55rem 0.7rem; border: 1px solid var(--rule); border-radius: 4px; background: #fffdf8; }
.email-step { display: grid; gap: 0.6rem; margin: 1.25rem 0; }
.email-step input[type="email"], .email-step input[type="text"] { font: inherit; padding: 0.55rem 0.7rem; border: 1px solid #b9ae9c; border-radius: 4px; background: #fff; max-width: 24rem; }
.email-step .check { display: flex; gap: 0.5rem; align-items: baseline; }
.email-step .notice { color: #6b6257; font-size: 0.9rem; margin: 0; }
.email-step .hint { color: #6b6257; font-weight: normal; font-size: 0.9rem; }
.email-step .beta { border-left: 3px solid #9a2a2a; padding-left: 0.6rem; }
.email-step button { justify-self: start; }
.email-step #code { font: inherit; font-size: 1.4rem; letter-spacing: 0.3em; padding: 0.5rem 0.7rem; border: 1px solid #b9ae9c; border-radius: 4px; background: #fff; max-width: 10rem; }
.email-step button.link { background: none; border: none; padding: 0; color: inherit; text-decoration: underline; cursor: pointer; font: inherit; }
