:root {
  color-scheme: dark;
  --bg: #101012;
  --bg-raised: #1b1b1f;
  --text: #f6f3ec;
  --muted: #d5d0c6;
  --red: #c8102e;
  --gold: #e6c56a;
  --blue: #4d7fd6;
  --line: #3f3d3a;
  --input: #141416;
  --input-border: #a8a295;
  --ok: #d9f5df;
  --ok-bg: #143024;
  --warn: #f6f3ec;
  --warn-bg: #3a3014;
  --danger: #ffe8ea;
  --danger-bg: #3d151b;
  --font-display: "Barlow Condensed", "Arial Narrow", "Helvetica Condensed", Impact, sans-serif;
  --font-body: system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

@font-face {
  font-family: "Barlow Condensed";
  font-style: italic;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/barlow-condensed-700-italic.woff2") format("woff2");
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(ellipse at top left, rgba(200, 16, 46, 0.16), transparent 28rem),
    var(--bg);
  color: var(--text);
  font: 1.05rem/1.55 var(--font-body);
}

.skip {
  position: absolute;
  left: 0.5rem;
  top: -3.5rem;
  background: var(--gold);
  color: #14110a;
  padding: 0.35rem 0.6rem;
  z-index: 2;
}

.skip:focus { top: 0.5rem; }

.site-header,
main,
footer {
  width: min(76rem, calc(100% - 1.5rem));
  margin-inline: auto;
}

.site-header { padding-top: 1rem; }

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.year-mark {
  margin: 0;
  width: 3.5rem;
  height: 2.05rem;
  border: 2px solid var(--blue);
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: none;
}

.year-mark span {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 700;
  font-size: 1.2rem;
  line-height: 1;
  letter-spacing: 0.04em;
}

.eyebrow,
.hero-kicker {
  margin: 0;
  color: var(--gold);
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.95rem;
}

.site-name {
  margin: 0;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 700;
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  line-height: 0.95;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.site-name a { text-decoration: none; }

.pinstripe {
  height: 0.5rem;
  margin-top: 0.7rem;
  background:
    linear-gradient(var(--red), var(--red)) left top / 100% 0.28rem no-repeat,
    linear-gradient(var(--gold), var(--gold)) left bottom / 100% 0.07rem no-repeat;
}

nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.1rem;
  list-style: none;
  padding: 0.75rem 0 0.9rem;
  margin: 0;
}

nav a {
  color: var(--text);
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 2px solid transparent;
}

nav a:hover { border-bottom-color: var(--red); }

a {
  color: var(--text);
  text-decoration-thickness: 2px;
  text-decoration-color: var(--red);
  text-underline-offset: 0.16em;
}

a:visited { color: var(--text); }

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

main { padding: 1.25rem 0 3rem; }

h1, h2, h3, caption, th, button, .button, .badge {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 700;
}

h1 {
  font-size: clamp(2.1rem, 6vw, 3.4rem);
  line-height: 0.95;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin: 0 0 0.8rem;
  overflow-wrap: anywhere;
}

.home h1 { font-size: clamp(3rem, 12vw, 5.6rem); }

h2 {
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  line-height: 1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 1.6rem 0 0.55rem;
}

h3 {
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 1.2rem 0 0.4rem;
}

.hero { margin-bottom: 0.4rem; }

.lede {
  font-size: 1.15rem;
  max-width: 40rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin: 1rem 0 1.25rem;
}

footer {
  padding: 0 0 2rem;
  color: var(--muted);
}

.hint, .muted { color: var(--muted); }

.hint { margin: 0.25rem 0 0; }

label { display: block; font-weight: 650; margin-top: 1rem; }

input,
textarea,
select {
  display: block;
  width: min(36rem, 100%);
  margin-top: 0.3rem;
  padding: 0.5rem 0.6rem;
  font: inherit;
  color: var(--text);
  background: var(--input);
  border: 1px solid var(--input-border);
  border-radius: 0;
}

textarea { min-height: 6rem; }

::placeholder { color: #c8c2b6; }

.check label {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-weight: 400;
}

.check input,
.choices input {
  display: inline;
  width: auto;
  margin: 0.2rem 0 0;
}

.choices label {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-weight: 400;
  margin-top: 0.7rem;
}

fieldset {
  margin-top: 1.25rem;
  border: 1px solid var(--line);
  border-top: 3px solid var(--red);
  padding: 0.35rem 1rem 1rem;
}

legend {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0 0.3rem;
}

button,
.button {
  margin-top: 1.1rem;
  display: inline-block;
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  background: var(--red);
  color: #fff;
  border: 1px solid var(--red);
  padding: 0.5rem 0.9rem;
  cursor: pointer;
}

a.button:visited,
button { color: #fff; }

.button-ghost,
button.secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--red);
}

a.button-ghost,
a.button-ghost:visited { color: var(--text); }

.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.actions form { margin: 0; }
.actions button { margin-top: 0.5rem; }

.notice {
  padding: 0.75rem 1rem;
  margin: 1rem 0;
  border-left: 4px solid var(--gold);
}
.notice.error { background: var(--danger-bg); color: var(--danger); border-left-color: var(--red); }
.notice.warn { background: var(--warn-bg); color: var(--warn); }
.notice.ok { background: var(--ok-bg); color: var(--ok); border-left-color: #7dcea0; }
.notice h2 { margin-top: 0; font-size: 1.15rem; }

.claim {
  border: 1px solid var(--gold);
  padding: 0.75rem 1rem;
  margin: 0 0 1rem;
}

.filters {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  align-items: end;
  margin: 0 0 1.25rem;
  padding: 0.9rem;
  background: rgba(20, 20, 22, 0.72);
  border: 1px solid var(--line);
}

.filters label { margin-top: 0; }
.filters input { width: 100%; }
.filter-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; align-items: center; }
.filter-actions button { margin-top: 0; }

.table-scroll { overflow-x: auto; max-width: 100%; }

table { border-collapse: collapse; width: 100%; min-width: 36rem; }
th, td {
  text-align: left;
  padding: 0.5rem 0.65rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
th {
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-bottom: 2px solid var(--red);
}
tbody tr:nth-child(even) { background: rgba(255, 255, 255, 0.03); }
caption {
  text-align: left;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.45rem;
}

dt {
  font-weight: 650;
  margin-top: 0.8rem;
}
dd { margin: 0; white-space: pre-wrap; }

.badge {
  display: inline-block;
  margin: 0.1rem 0.3rem 0.1rem 0;
  padding: 0.05rem 0.4rem;
  border: 1px solid var(--gold);
  color: var(--gold);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.95rem;
  line-height: 1.3;
}
.badge-dup { border-color: #ffb3be; color: #ffd5db; }
.badge-r { border-color: var(--red); color: #ffd5db; }

.group-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 1.25rem;
}

.group-nav a {
  border: 1px solid var(--red);
  padding: 0.4rem 0.75rem;
  text-decoration: none;
}

.photos,
.gallery {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.8rem;
}

.photos img,
.gallery img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  background: #070708;
}

.gallery a { text-decoration: none; }
.gallery-caption,
.photos figcaption {
  display: block;
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.pager {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.2rem;
  align-items: center;
  margin-top: 1rem;
}

.pager span { color: var(--muted); }

article {
  padding-bottom: 1rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

::selection { background: var(--red); color: #fff; }

@media (min-width: 40rem) {
  .gallery { grid-template-columns: 1fr 1fr; }
  .photos { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 64rem) {
  .filters { grid-template-columns: repeat(4, minmax(0, 1fr)) auto; }
  .gallery { grid-template-columns: 1fr 1fr 1fr; }
}

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