@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 560;
  font-display: swap;
  src: url("/static/fonts/fraunces-normal-560.woff2") format("woff2");
}
@font-face {
  font-family: "Fraunces";
  font-style: italic;
  font-weight: 560;
  font-display: swap;
  src: url("/static/fonts/fraunces-italic-560.woff2") format("woff2");
}
@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/static/fonts/outfit-normal-400.woff2") format("woff2");
}
@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/static/fonts/outfit-normal-500.woff2") format("woff2");
}
@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/static/fonts/outfit-normal-600.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/static/fonts/ibm-plex-mono-normal-400.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/static/fonts/ibm-plex-mono-normal-500.woff2") format("woff2");
}

:root {
  --bg: #14110e;
  --paper: #f4efe4;
  --paper-2: #e9e1d1;
  --ink: #1c1712;
  --muted: #8d8478;
  --brass: #d7b56d;
  --red: #e23b2b;
  --line: rgba(244, 239, 228, 0.16);
  --ink-line: #ddcfb8;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  min-height: 100vh;
  color: var(--paper);
  font-family: "Outfit", "Avenir Next", "Segoe UI", sans-serif;
  font-weight: 400;
  background:
    radial-gradient(900px 420px at 0% -8%, rgba(226, 59, 43, 0.18), transparent 55%),
    radial-gradient(720px 380px at 100% 0%, rgba(215, 181, 109, 0.12), transparent 48%),
    var(--bg);
}

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
}

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.frame {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding-bottom: 64px;
}

.top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 24px;
  padding: 22px 0 16px;
  border-bottom: 1px solid var(--line);
}

.word {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  font-size: 13px;
}

.seal {
  width: 16px;
  height: 16px;
  background:
    linear-gradient(var(--red), var(--red)) 0 0 / 7px 7px no-repeat,
    var(--paper);
  box-shadow: 0 0 0 1px rgba(244, 239, 228, 0.35);
}

.top nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
}

.top nav a {
  text-decoration: none;
  font-size: 14px;
}

.btn {
  border: 1px solid rgba(244, 239, 228, 0.45);
  padding: 8px 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
}

.btn:hover { border-color: var(--brass); color: var(--brass); }

.hero { padding: 54px 0 12px; max-width: 780px; }

.kicker {
  margin: 0 0 14px;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass);
}

h1 {
  margin: 0;
  font-family: "Fraunces", "Iowan Old Style", Palatino, Georgia, serif;
  font-weight: 560;
  font-size: clamp(48px, 7vw, 92px);
  letter-spacing: -0.035em;
  line-height: 0.92;
  max-width: 11ch;
}

h1 em {
  font-style: italic;
  font-weight: 560;
  color: var(--brass);
}

.hero-title {
  display: block;
}

.swap {
  display: inline-grid;
  justify-items: start;
  align-items: baseline;
  vertical-align: baseline;
}

.swap-word {
  grid-area: 1 / 1;
  white-space: nowrap;
  animation: word-fade 12s ease-in-out infinite;
}

.swap-name { animation-delay: 0s; }
.swap-website { animation-delay: -9s; }
.swap-logo { animation-delay: -6s; }
.swap-tshirt { animation-delay: -3s; }

@keyframes word-fade {
  0%, 19.5% { opacity: 1; }
  25%, 94.5% { opacity: 0; }
  100% { opacity: 1; }
}

.lede {
  margin: 22px 0 0;
  max-width: 58ch;
  font-size: 18px;
  line-height: 1.5;
  color: #e6dccb;
}

.search {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 28px;
  max-width: 640px;
  padding: 6px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
}

.search input {
  flex: 1 1 180px;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 16px;
  padding: 12px 12px;
  outline: none;
}

.search input::placeholder { color: #8a8175; }

.search button {
  flex: 1 1 auto;
  border: 0;
  background: var(--red);
  color: #fff8f4;
  font-family: "Outfit", sans-serif;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 13px;
  padding: 0 18px;
  min-height: 46px;
  cursor: pointer;
}

.search button:hover { background: #c43324; }

.hint {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.hint a { color: var(--brass); }

.sec { margin-top: 54px; }

.sec h2 {
  margin: 0 0 8px;
  font-family: "Fraunces", Georgia, serif;
  font-weight: 560;
  font-size: clamp(32px, 4vw, 44px);
  letter-spacing: -0.03em;
}

.sec > p.intro {
  margin: 0 0 18px;
  max-width: 62ch;
  color: #d9d0c2;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.card {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 14px;
  padding: 10px 12px;
  text-decoration: none;
  background: rgba(244, 239, 228, 0.03);
  border: 1px solid var(--line);
  min-height: 100%;
}

.card-unfiled {
  border-style: dashed;
  border-color: rgba(244, 239, 228, 0.34);
}

.card:hover {
  border-color: rgba(215, 181, 109, 0.75);
  background: rgba(244, 239, 228, 0.06);
}

.plate {
  width: 100%;
  aspect-ratio: 1 / 1;
  height: auto;
  background: var(--paper);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.plate img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  padding: 12px;
  display: block;
}

.monogram span {
  font-family: "Fraunces", Georgia, serif;
  font-size: 64px;
  line-height: 1;
  color: var(--ink);
  letter-spacing: -0.04em;
}

.card .plate {
  width: 68px;
  max-width: 68px;
  height: auto;
  aspect-ratio: 1 / 1;
  flex-shrink: 0;
}

.card .plate img {
  padding: 6px;
}

.card .monogram span {
  font-size: 28px;
}

.card-meta {
  min-width: 0;
}

.card h3 {
  margin: 0;
  font-family: "Fraunces", Georgia, serif;
  font-weight: 560;
  font-size: 22px;
  letter-spacing: -0.025em;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.card-sub {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.id, .mono {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
}

.card .id {
  margin: 0 0 4px;
  color: var(--brass);
  font-size: 12px;
}

.tag {
  margin: 8px 0 0;
  color: #d2c8b8;
  font-size: 14px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.index {
  list-style: none;
  padding: 8px 0 0;
  margin: 8px 0 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0 22px;
}

.index a {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}

.index a:hover .nm { color: var(--brass); }

.index .nm {
  font-family: "Fraunces", Georgia, serif;
  font-size: 20px;
}

.index .id { color: var(--muted); font-size: 12px; align-self: center; }

.tickets {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.ticket {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  min-height: 180px;
  padding: 16px 16px 18px;
  text-decoration: none;
  border: 1px dashed rgba(244, 239, 228, 0.38);
}

.ticket:hover { border-color: var(--brass); }

.ticket .eyebrow {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass);
}

.ticket strong {
  font-family: "IBM Plex Mono", monospace;
  font-size: 18px;
  font-weight: 500;
}

.ticket .note { color: #d2c8b8; line-height: 1.4; }

.foot {
  margin-top: 64px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.foot p { margin: 0 0 8px; max-width: 78ch; }

.dossier {
  color-scheme: light;
  background: var(--paper);
  color: var(--ink);
  margin: 28px auto 0;
  padding: 28px 32px 36px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}

.sheet-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 18px;
}

.file-no {
  font-family: "IBM Plex Mono", monospace;
  font-size: 13px;
  letter-spacing: 0.04em;
}

.stamp {
  border: 2px solid var(--red);
  color: var(--red);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 11px;
  padding: 6px 8px;
  transform: rotate(-6deg);
  white-space: nowrap;
}

.stamp-new { border-color: #8a6a22; color: #8a6a22; }
.stamp-fall { border-color: #1c1712; color: #1c1712; }

.dossier-hero {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 28px;
  align-items: start;
}

.plate-lg {
  max-width: 280px;
  height: auto;
}

.dossier h1 {
  color: var(--ink);
  max-width: 12ch;
  font-size: clamp(44px, 6vw, 76px);
}

.dossier h1.long { font-size: clamp(34px, 4.5vw, 56px); max-width: 16ch; }

.tagline {
  margin: 10px 0 0;
  font-size: 20px;
  line-height: 1.35;
  max-width: 36ch;
}

.blurb {
  margin: 12px 0 0;
  max-width: 58ch;
  line-height: 1.5;
  color: #3c342b;
}

.outlinks {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin: 16px 0 0;
}

.outlinks a {
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 26px 0 8px;
  border-top: 1px solid var(--ink-line);
  border-bottom: 1px solid var(--ink-line);
}

.metrics div { padding: 14px 12px 16px; }
.metrics div + div { border-left: 1px solid var(--ink-line); }

.metrics dt {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #6e675c;
}

.metrics dd { margin: 6px 0 0; }

.score {
  font-family: "Fraunces", Georgia, serif;
  font-size: 42px;
  line-height: 1;
  font-weight: 560;
}

.sev-critical { color: #9d2b1d; }
.sev-high { color: #a15c12; }
.sev-medium { color: #8a6a22; }
.sev-low { color: #1d6b45; }
.sev-none, .sev-unknown { color: #6e675c; }

.product {
  font-family: "IBM Plex Mono", monospace;
  font-size: 15px;
  overflow-wrap: anywhere;
}

.dossier h2 {
  margin: 22px 0 8px;
  font-family: "Fraunces", Georgia, serif;
  font-weight: 560;
  font-size: 28px;
}

.desc {
  margin: 0 0 10px;
  max-width: 68ch;
  line-height: 1.55;
  font-size: 16.5px;
}

.also {
  margin: 0 0 12px;
  color: #4e463c;
  font-size: 14px;
}

.vector {
  margin: 0;
  padding: 12px 14px;
  background: var(--paper-2);
  font-family: "IBM Plex Mono", monospace;
  font-size: 13px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.offline-note {
  margin: 8px 0 0;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #8a8175;
}

.colophon {
  margin: 18px 0 0;
  color: #6e675c;
  font-size: 13px;
  line-height: 1.45;
}

.dossier .search {
  margin-top: 26px;
  box-shadow: none;
  border: 1px solid var(--ink-line);
  background: transparent;
}

.dossier .search button {
  background: var(--ink);
  color: var(--paper);
}

.note-block {
  margin: 8px 0 0;
  padding: 12px 14px;
  background: #f6e4dc;
  color: #6d2418;
}

.unstamped {
  margin: 8px 0 0;
  font-family: "Fraunces", Georgia, serif;
  font-size: 28px;
}

@media (max-width: 980px) {
  .grid, .tickets, .index { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 800px) {
  .frame { width: min(1120px, calc(100% - 28px)); }
  .dossier { padding: 22px 16px 28px; }
  .dossier-hero, .metrics, .grid, .tickets, .index { grid-template-columns: 1fr; }
  .metrics div + div { border-left: 0; border-top: 1px solid var(--ink-line); }
  .plate-lg { max-width: 100%; }
  h1 { max-width: none; }
  .search button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto; }
}

.merch {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 22px 28px;
  margin: 28px 0 8px;
  padding: 16px 18px;
  border: 1px solid var(--ink-line);
  background: #faf6ee;
}

.shirt-svg {
  width: 148px;
  height: auto;
  display: block;
}

.shirt-body { fill: #1c1712; }

.shirt-collar {
  fill: none;
  stroke: #f4efe4;
  stroke-width: 3;
  stroke-linecap: round;
}

.shirt-print-bg { fill: #f4efe4; }

.merch-copy { min-width: 0; }

.shirt-buy {
  display: inline-block;
  border: 0;
  background: var(--red);
  color: #fff8f4;
  font-family: "Outfit", sans-serif;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 13px;
  padding: 14px 18px;
  text-decoration: none;
}

.shirt-buy:hover { background: #c43324; }

.search button:disabled,
.search input:disabled {
  cursor: wait;
  opacity: 0.72;
}

.search button:disabled:hover {
  background: var(--red);
}

.dossier .search button:disabled:hover {
  background: var(--ink);
}

body.is-busy,
body.is-busy button,
body.is-busy a.is-busy-link {
  cursor: wait;
}

body.is-busy {
  padding-top: 3.25rem;
}

a.is-busy-link {
  pointer-events: none;
  opacity: 0.8;
}

.busy-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 40;
  overflow: hidden;
  pointer-events: none;
  background: rgba(244, 239, 228, 0.12);
  opacity: 0;
  visibility: hidden;
}

body.is-busy .busy-bar {
  opacity: 1;
  visibility: visible;
}

.busy-bar::after {
  content: "";
  display: block;
  height: 100%;
  width: 32%;
  background: linear-gradient(90deg, var(--red), var(--brass));
  animation: busy-slide 1.1s ease-in-out infinite;
}

@keyframes busy-slide {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(380%); }
}

.busy-status {
  position: fixed;
  top: 3px;
  left: 0;
  right: 0;
  z-index: 39;
  pointer-events: none;
  text-align: center;
  font-family: "Outfit", sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.35;
  color: var(--paper);
  background: rgba(20, 17, 14, 0.94);
  border-bottom: 1px solid rgba(215, 181, 109, 0.35);
  padding: 10px 18px 11px;
  opacity: 0;
  visibility: hidden;
}

body.is-busy .busy-status {
  opacity: 1;
  visibility: visible;
}

.busy-spin {
  display: inline-block;
  width: 0.85em;
  height: 0.85em;
  margin-right: 0.5em;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  vertical-align: -0.12em;
  animation: busy-spin 0.7s linear infinite;
}

@keyframes busy-spin {
  to { transform: rotate(360deg); }
}

a.shirt-buy.is-busy-link:hover {
  background: var(--red);
}

@media (max-width: 800px) {
  .busy-status {
    font-size: 12px;
    padding: 10px 14px 11px;
  }
}
