/* Carbon and white, after the app icon. Light theme for readers who prefer it. */
:root {
  --bg: #121316; --surface: #1b1c20; --fg: #f2f2f4; --muted: #a3a4ad; --line: #2c2d33; --accent: #9aa2ff;
  --beer: #f5a623; --beer-fg: #ffc65c; --beer-bg: #2b2212;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root { --bg: #f6f6f8; --surface: #ffffff; --fg: #17181c; --muted: #5d5e69; --line: #dcdce3; --accent: #3a40c8; --beer: #e0900a; --beer-fg: #7a4a00; --beer-bg: #fff3d6; color-scheme: light; }
}
* { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
}
.wrap { max-width: 760px; margin: 0 auto; padding: 56px 22px 72px; }
header { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
header img { width: 112px; height: 112px; }
h1 { font-size: 40px; line-height: 1.1; margin: 0; letter-spacing: -0.02em; }
.tagline { margin: 6px 0 0; color: var(--muted); font-size: 19px; }
.status { display: inline-block; margin-top: 26px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 14px; }
h2 { font-size: 22px; margin: 44px 0 12px; letter-spacing: -0.01em; }
p { margin: 0 0 14px; }
.lede { margin: 28px 0 22px; font-size: 19px; }
.list { display: grid; gap: 10px; }
details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
summary { cursor: pointer; padding: 14px 16px; font-weight: 600; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--muted); font-weight: 400; font-size: 20px; line-height: 1; }
details[open] summary::after { content: "\2212"; }
summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 12px; }
details p { margin: 0; padding: 0 16px 14px; color: var(--muted); }
kbd { font: 600 14px/1 ui-monospace, "SF Mono", Menlo, monospace; padding: 3px 6px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); white-space: nowrap; }
a { color: var(--accent); }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
footer { margin-top: 56px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 15px; display: flex; gap: 18px; flex-wrap: wrap; }

/* The tip jar stands apart from the feature list in beer amber. */
details.tip { background: var(--beer-bg); border-color: var(--beer); border-width: 2px; margin-top: 10px; }
details.tip summary { color: var(--beer-fg); font-size: 19px; }
details.tip summary::after { color: var(--beer-fg); }
details.tip p { color: var(--fg); }
details.tip a { color: var(--beer-fg); font-weight: 600; }

/* Where to get the app. */
.get { display: flex; gap: 12px; flex-wrap: wrap; margin: 0 0 26px; }
.button { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 1px; padding: 10px 18px; border-radius: 12px; background: var(--fg); color: var(--bg); font-weight: 600; text-decoration: none; line-height: 1.25; }
.button small { font-weight: 500; font-size: 12.5px; opacity: 0.75; }
.button.disabled { background: var(--surface); color: var(--muted); border: 1px dashed var(--line); }
a.button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* Feedback pages. */
form { display: grid; gap: 10px; margin: 0 0 8px; }
label { font-weight: 600; font-size: 15px; }
label small { font-weight: 400; color: var(--muted); }
input[type="text"], input[type="email"], input[type="password"], textarea {
  width: 100%; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface);
  color: var(--fg); font: inherit; }
textarea { min-height: 110px; resize: vertical; }
input:focus-visible, textarea:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
button { font: inherit; font-weight: 600; cursor: pointer; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--fg); padding: 9px 16px; }
button.primary { background: var(--fg); color: var(--bg); border-color: var(--fg); justify-self: start; }
button:disabled { opacity: 0.5; cursor: default; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notice { margin: 0; font-size: 15px; color: var(--muted); min-height: 1.4em; }
.notice.ok { color: #1f9d55; }
.notice.bad { color: #d64545; }
.requests { display: grid; gap: 10px; margin: 0 0 22px; padding: 0; list-style: none; }
.request { display: flex; gap: 14px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.request h3 { margin: 0; font-size: 17px; }
.request p { margin: 4px 0 0; color: var(--muted); white-space: pre-wrap; overflow-wrap: anywhere; }
.request > div { min-width: 0; flex: 1; }
.vote { display: flex; flex-direction: column; align-items: center; min-width: 54px; padding: 6px 8px; line-height: 1.15; font-variant-numeric: tabular-nums; }
.vote span { font-size: 12px; font-weight: 500; color: var(--muted); }
.vote.voted { background: var(--accent); border-color: var(--accent); color: var(--bg); }
.vote.voted span { color: inherit; }
.empty { color: var(--muted); border: 1px dashed var(--line); border-radius: 12px; padding: 16px; margin: 0 0 22px; }
.row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.meta { font-size: 13px; color: var(--muted); }
