:root {
  color-scheme: dark;
  --background: #111114;
  --surface: #1a1a1f;
  --border: #34343d;
  --muted: #b7b6c1;
  --text: #f7f4f5;
  --accent: #ff8279;
  --action: #b63434;
  --radius: .85rem;
  background: var(--background);
  color: var(--text);
  font: 16px/1.55 "Segoe UI", system-ui, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; }
header, footer { padding: 1rem max(1rem, calc((100vw - 1120px) / 2)); }
header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; border-bottom: 1px solid var(--border); }
footer { margin-top: auto; border-top: 1px solid var(--border); color: var(--muted); }
nav { display: flex; align-items: center; gap: 1.125rem; flex-wrap: wrap; }
nav a, .brand { text-decoration: none; }
nav a:hover { text-decoration: underline; }
.brand { display: grid; font-size: 1.05rem; font-weight: 750; line-height: 1.25; }
.brand small { color: var(--accent); font-size: .875rem; }
a { color: inherit; text-underline-offset: .2em; }
main { width: min(100%, 1152px); margin: 0 auto; padding: 2.5rem 1rem 4rem; }
.hero { padding: clamp(1.5rem, 6vw, 4.5rem); border: 1px solid #583536; border-radius: 1.25rem; background: radial-gradient(ellipse at 100% 0%, #57292e 0%, transparent 72%), #211a20; }
h1, h2, h3 { margin: 0; line-height: 1.12; }
h1 { font-size: clamp(2rem, 5vw, 3.6rem); letter-spacing: -.045em; }
h2 { font-size: 1.5rem; letter-spacing: -.025em; }
h3 { font-size: 1.2rem; }
p { margin: .7rem 0 1rem; }
.hero p { max-width: 40rem; margin: 1rem 0 0; color: #e6d7dc; font-size: 1.125rem; }
section { margin: 2.5rem 0 0; }
.section-heading, .card-heading { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .75rem; }
.section-heading p { color: var(--muted); margin: .35rem 0 0; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 235px), 1fr)); gap: 1rem; margin-top: 1rem; }
article, .notice, .table-wrap { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
article, .notice { padding: 1.25rem; }
article { display: flex; flex-direction: column; align-items: flex-start; }
article.selected { border-color: var(--accent); }
article > .button, article > .quiet, article > form:first-of-type { margin-top: auto; }
article > form + form { margin-top: .6rem; }
article p, .muted, .mode { color: var(--muted); }
.mode, .status, dt, label { font-size: .875rem; }
.status { padding: .2rem .55rem; border: 1px solid var(--border); border-radius: .35rem; color: var(--accent); }
.price { color: var(--text); font-size: 2.1rem; font-weight: 750; letter-spacing: -.045em; margin-bottom: .1rem; }
.price small { font-size: .875rem; color: var(--muted); letter-spacing: 0; }
.button, .quiet, select, input:not([type=checkbox]) { display: inline-block; padding: .62rem .85rem; border: 1px solid transparent; color: white; border-radius: .45rem; text-decoration: none; font: inherit; }
.button, .quiet { cursor: pointer; font-weight: 650; }
.button { background: var(--action); }
.button:hover { background: #9c282c; }
.quiet, select, textarea, input:not([type=checkbox]) { background: #25252c; border-color: var(--border); max-width: 100%; }
.quiet:hover { background: #373740; }
button:disabled { opacity: .65; cursor: progress; }
select, textarea, input:not([type=checkbox], [type=hidden]) { display: block; margin: .3rem 0 .6rem; }
textarea { color: inherit; font: inherit; border-radius: .45rem; padding: .45rem; }
a:focus-visible, button:focus-visible, select:focus-visible, input:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.stack { display: grid; gap: .55rem; margin-top: .8rem !important; }
summary { cursor: pointer; }
dl { width: 100%; display: grid; grid-template-columns: max-content 1fr; gap: .5rem .75rem; margin: .25rem 0 1rem; }
dt { color: var(--muted); }
dd { margin: 0; overflow-wrap: anywhere; }
.table-wrap { margin-top: 1rem; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th, td { padding: .8rem 1rem; border-bottom: 1px solid var(--border); }
tr:last-child td { border-bottom: 0; }
code { overflow-wrap: anywhere; color: var(--accent); }
@media (max-width: 620px) {
  header { align-items: flex-start; flex-direction: column; }
  nav { gap: .7rem; }
  main { padding-block: 1.25rem 2.5rem; }
  .cards { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: no-preference) {
  main { animation: appear .22s ease-out; }
  article, .button, .quiet { transition: background-color .16s, border-color .16s; }
  article:hover { border-color: #795052; }
  @keyframes appear { from { opacity: .65; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }
}
