:root {
  color-scheme: dark;
  --night: #070d18;
  --cream: #fff7eb;
  --paper: #fffcf6;
  --ink: #321b20;
  --muted: #674b4e;
  --red: #b51e27;
  --red-dark: #9f171f;
  --line: #e4d1c1;
  --green: #214638;
  --gold: #ffd86b;
  --display: Georgia, "Times New Roman", serif;
  font: 100%/1.5 system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--cream);
  background:
    radial-gradient(90% 70% at 50% -10%, #35517f 0%, transparent 58%),
    radial-gradient(70% 50% at 50% 110%, #1c2c4d 0%, var(--night) 72%);
  background-attachment: fixed;
}
a { color: inherit; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid #ffd86b; outline-offset: 3px; }
h1, h2, h3, p { margin: 0; }
h1, h2 { font-family: var(--display); }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.shell { width: min(760px, calc(100% - 48px)); margin-inline: auto; }
.skip { position: absolute; top: -60px; z-index: 2; padding: 8px; background: white; color: var(--ink); }
.skip:focus { top: 8px; }

.top { padding: 18px 24px 0; }
.top nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; font-size: .9rem; font-weight: 650; }
.top a { text-decoration: none; }
.top a:hover { text-decoration: underline; text-underline-offset: 5px; }
.count { display: inline-grid; min-width: 22px; min-height: 22px; margin-left: 6px; padding-inline: 5px; place-items: center; border-radius: 14px; background: var(--cream); color: var(--red-dark); font-size: .79rem; }

.hero { width: min(680px, calc(100% - 40px)); margin: 28px auto 0; text-align: center; }
.brand { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; margin: 0; color: inherit; font-family: var(--display); font-size: clamp(1.15rem, 2.4vw, 1.45rem); text-decoration: none; }
.brand:hover { text-decoration: underline; text-underline-offset: 5px; }
.brand img { width: 36px; height: 36px; border-radius: 50%; background: var(--cream); padding: 5px; }
h1 { margin-top: 18px; font-weight: 500; font-size: clamp(3rem, 7vw, 5.1rem); line-height: .94; letter-spacing: -.045em; }
h1 em { color: #ff5a62; font-style: italic; }
.lede { max-width: 42ch; margin: 18px auto 0; color: #d5c7b8; font-family: var(--display); font-size: 1.08rem; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 22px; }

.button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; padding: 11px 19px; border: 1px solid transparent; border-radius: 6px; font-weight: 720; text-decoration: none; }
.primary { background: var(--red); color: white; }
.primary:hover { background: var(--red-dark); }
.secondary { background: white; border-color: var(--line); color: var(--red-dark); }
.secondary:hover { background: var(--cream); }
.text-button { border: 0; background: transparent; padding: 9px; color: var(--red-dark); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

.buckets {
  width: min(1120px, calc(100% - 48px));
  margin: 48px auto 10px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: start;
}
.bucket {
  color: var(--ink);
  background: var(--paper);
  border-radius: 16px;
  box-shadow: 0 16px 36px #00000066;
}
.bucket-body { padding: 22px 18px 26px; }
.bucket h2, #issue-label { font-size: clamp(1.8rem, 3vw, 2.4rem); line-height: 1.05; letter-spacing: -.03em; }
.intro { margin-top: 8px; color: var(--muted); }
.department-picker { min-width: 0; display: grid; border: 0; gap: 10px; padding: 0; margin: 16px 0 0; }
.department { display: grid; cursor: pointer; grid-template-columns: auto auto 1fr; gap: 12px; align-items: center; background: white; border: 1px solid var(--line); border-radius: 7px; padding: 12px; }
.department:has(:checked) { background: #f9eae5; border-color: #ac4c46; }
.department input { appearance: auto; width: 17px; height: 17px; margin: 0; accent-color: var(--red); }
.department-icon { display: grid; place-items: center; color: var(--red); background: #f4e3d8; width: 34px; height: 34px; border-radius: 50%; }
.department strong, .department small { display: block; }
.department small { color: var(--muted); font-size: .87rem; }

form label { display: block; font-family: var(--display); font-size: .95rem; font-weight: 700; margin-bottom: 6px; }
#issue-label { margin-bottom: 12px; }
.optional { font-family: system-ui, sans-serif; font-weight: 400; color: var(--muted); }
form input[type=text], select, textarea { width: 100%; border: 1px solid #c9ab9f; border-radius: 5px; padding: 10px 12px; color: var(--ink); background: var(--paper); }
form input[type=text], select { min-height: 48px; }
form input[type=text] { margin-bottom: 18px; }
textarea { display: block; min-height: 84px; resize: vertical; }
.select-wrap { position: relative; margin-bottom: 16px; }
select { appearance: none; padding-right: 30px; }
.select-wrap::after { content: ""; pointer-events: none; position: absolute; right: 15px; top: 19px; width: 8px; height: 8px; border: solid var(--red); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.form-note, .reply-meta, .feedback { font-size: .875rem; color: var(--muted); }
.note-hint { margin: 6px 0 16px; }
.form-note { margin-top: 9px; }
.eyebrow { color: var(--red); letter-spacing: .14em; font-weight: 800; font-size: .81rem; }
.reply h2 { margin-top: 6px; font-size: clamp(1.8rem, 3vw, 2.3rem); }
.reply-meta { margin-block: 7px 18px; }
.reply h3 { margin-bottom: 8px; font-size: 1.12rem; }
.reply #reply-body { margin-top: 8px; }
.reply-status { width: fit-content; margin-top: 17px; padding: 5px 10px; border-radius: 4px; color: var(--green); background: #e5eee7; font-weight: 700; font-size: .87rem; }
.reply-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; }
.feedback:not(:empty) { margin-top: 8px; }

.top a[aria-current="page"] { text-decoration: underline; text-underline-offset: 5px; }
.warning-names { display: grid; gap: 4px; }
.warning-page form input[type=email] { width: 100%; min-height: 48px; margin-bottom: 8px; border: 1px solid #c9ab9f; border-radius: 5px; padding: 10px 12px; color: var(--ink); background: var(--paper); }
.warning-page textarea { margin-bottom: 16px; }
.warning-placeholder { min-height: 240px; padding: 24px; display: grid; place-content: center; gap: 7px; text-align: center; color: var(--muted); background: var(--cream); border: 1px dashed #c9ab9f; border-radius: 10px; }
.warning-placeholder span { color: var(--red); font-size: 1.7rem; }
.warning-result img { display: block; width: 100%; height: auto; margin-block: 12px 16px; border: 1px solid var(--line); }
.warning-actions { display: flex; flex-wrap: wrap; gap: 8px; }

.faq { margin-top: 54px; padding-block: 8px 28px; color: var(--ink); }
.faq h2 { color: var(--cream); font-size: clamp(2.1rem, 4vw, 3rem); line-height: 1.08; letter-spacing: -.04em; }
.faq-intro { max-width: 62ch; margin-top: 8px; color: #d5c7b8; }
.faq-list { max-width: 760px; display: grid; gap: 8px; margin-block: 21px 16px; }
.faq-list details { border: 1px solid var(--line); border-radius: 6px; background: white; }
.faq-list summary { padding: 13px 15px; color: var(--red-dark); font-weight: 700; cursor: pointer; }
.faq-list summary::marker { color: var(--red); }
.faq-list details[open] summary { padding-bottom: 5px; }
.faq-list details p { padding: 0 15px 14px; }

.history { padding-block: 12px 48px; }
.history h2, .about h2 { color: var(--cream); font-size: 2rem; }
.history > p, .about p { color: #d5c7b8; margin-top: 8px; }
.about { padding-block: 8px 64px; }
.about h2:not(:first-child) { margin-top: 28px; }
.about p { max-width: 62ch; }
#ticket-list { margin: 12px 0 0; padding: 0; list-style: none; }
#ticket-list li + li { margin-top: 8px; }
.ticket-link { display: flex; width: 100%; gap: 7px 18px; flex-wrap: wrap; justify-content: space-between; text-align: left; }
.ticket-link span:last-child { color: var(--muted); font-weight: 500; font-size: .89rem; }

footer { background: #06101c; color: var(--cream); }
.footer-columns { width: min(1120px, calc(100% - 48px)); margin-inline: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 48px; align-items: start; padding-block: 22px 18px; font-size: .875rem; }
.footer-brand { font-weight: 650; }
.footer-columns p + p { margin-top: 4px; }
.footer-aside { text-align: right; }
.footer-brand-icon { box-sizing: content-box; vertical-align: -4px; margin-right: 4px; padding: 2px; border-radius: 50%; background: var(--cream); }
footer a { color: var(--gold); }

@media (max-width: 800px) {
  .buckets { grid-template-columns: 1fr; margin-top: 36px; }
  .hero { margin-top: 18px; }
  .footer-columns { grid-template-columns: 1fr; gap: 14px; }
  .footer-aside { text-align: left; }
}
@media (max-width: 420px) {
  .shell, .buckets, .footer-columns { width: min(100% - 28px, 640px); }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media print {
  body.printing-ticket { background: white; color: black; }
  body.printing-ticket :is(.top, .hero, .faq, .history, footer, .skip, .reply-actions, .feedback, .bucket:first-child) { display: none !important; }
  body.printing-ticket .buckets { display: block; width: 100%; margin: 0; }
  body.printing-ticket .bucket { box-shadow: none; background: white; }
}
