:root {
  --gold: #F5A623;
  --gold-hover: #f0c050;
  --black: #0A0A0A;
  --card: #141414;
  --text: #FFFFFF;
  --text-muted: rgba(255, 255, 255, 0.62);
  --line: rgba(255, 255, 255, 0.1);
  --content-max: 720px;
  --page-gutter: 40px;
  --radius: 4px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  min-height: 100vh;
  background: var(--black);
  color: var(--text);
  font-family: 'Barlow', sans-serif;
  font-size: 18px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

main {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 18vh var(--page-gutter) 64px;
}

p.kicker {
  font-family: 'Barlow Condensed', sans-serif;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  font-size: 14px;
  font-weight: 600;
}

h1 {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: clamp(48px, 8vw, 84px);
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin: 12px 0 20px;
  text-transform: uppercase;
}

.logo {
  display: block;
  margin: 0 0 28px;
  line-height: 0;
}

.logo img {
  display: block;
  width: min(100%, 440px);
  height: auto;
}

p.lede {
  color: var(--text-muted);
  max-width: 38ch;
}

a {
  color: var(--gold);
}

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

.stripe {
  height: 8px;
  background: repeating-linear-gradient(
    -45deg,
    var(--gold),
    var(--gold) 12px,
    var(--black) 12px,
    var(--black) 24px
  );
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--gold);
  color: var(--black);
  padding: 10px 16px;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
}

.skip-link:focus {
  left: 12px;
  top: 12px;
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.site-nav-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.nav-brand-logo {
  height: 42px;
  width: auto;
  display: block;
}

.nav-brand-copy {
  display: flex;
  flex-direction: column;
}

.nav-brand-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  line-height: 1;
}

.nav-brand-tagline {
  margin-top: 3px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.52);
}

.site-nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
}

.site-nav-link {
  color: rgba(255, 255, 255, 0.65);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
}

.site-nav-link:hover {
  color: #fff;
}

.license-note {
  margin: 0 0 22px;
  max-width: 68ch;
  padding: 12px 14px;
  border-left: 4px solid var(--gold);
  background: var(--card);
  color: rgba(255, 255, 255, 0.78);
  font-size: 15px;
}

.site-foot {
  margin-top: 28px;
}

.site-foot-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 22px 20px 40px;
  color: var(--text-muted);
  font-size: 14px;
}

.site-foot-inner p + p {
  margin-top: 8px;
}

.site-foot a {
  color: var(--gold);
}

body.staff {
  --content-max: 1120px;
  --line: rgba(255, 255, 255, 0.12);
  color-scheme: dark;
}

body.staff main.dash {
  max-width: 1120px;
  padding: 16px var(--page-gutter) 72px;
}

body.staff h1 {
  font-size: clamp(40px, 6vw, 64px);
  margin: 8px 0 0;
}

body.gallery {
  --content-max: 1120px;
  --line: rgba(255, 255, 255, 0.12);
  color-scheme: dark;
}

body.gallery main {
  max-width: 1240px;
  padding: 28px 20px 48px;
}

body.gallery h1 {
  font-size: clamp(40px, 6vw, 72px);
  margin: 4px 0 8px;
}

body.gallery .lede {
  margin-bottom: 24px;
}

body.staff .logo,
body.gallery .logo {
  margin: 0 0 10px;
}

body.staff .logo img,
body.gallery .logo img {
  width: 148px;
  height: auto;
}

.album-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 28px 20px;
}

.album-card {
  color: inherit;
  text-decoration: none;
  display: block;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.album-card:hover {
  border-color: var(--gold);
}

.album-card img,
.album-card .thumb-empty {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  display: block;
  background: #141414;
}

.album-card h2 {
  margin: 14px 14px 0;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 0.95;
  text-transform: uppercase;
}

.album-card p {
  margin: 6px 14px 14px;
  color: var(--text-muted);
}

.stage {
  margin: 8px 0 24px;
}

.stage img {
  display: block;
  width: 100%;
  height: auto;
  background: #141414;
}

.photo-grid a,
.photo-tile {
  color: inherit;
  text-decoration: none;
}

.photo-tile {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  cursor: pointer;
}

.photo-tile:hover img,
.photo-grid figure.is-selected .photo-tile img {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.stage-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.stage-nav a {
  text-decoration: none;
}

.stage-count,
.shadowbox-count {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.stage figcaption,
.shadowbox-caption {
  margin-top: 10px;
  color: var(--text-muted);
}

.stage img {
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
}

.download-list {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  margin-top: 8px;
}

.download-list .btn,
.shadowbox-panel .btn:not(.shadowbox-close) {
  width: 100%;
  margin: 0 0 8px;
}

.watermark-note,
.purchase-status {
  margin: 4px 0 14px;
  color: var(--text-muted);
  font-size: 15px;
}

.purchase-status:empty {
  display: none;
}

.grant-list {
  margin: 12px 0 18px;
  padding-left: 18px;
}

.grant-list li + li {
  margin-top: 6px;
}

.photo-grid figure.is-selected img {
  outline: 1px solid var(--gold);
  outline-offset: 3px;
}

body.gallery .btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 8px 8px 0;
  background: var(--gold);
  color: var(--black);
  border: 0;
  border-radius: var(--radius);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 10px 14px;
  cursor: pointer;
  text-decoration: none;
}

body.gallery .btn:hover {
  background: var(--gold-hover);
}

body.gallery .btn.quiet {
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--line);
}

body.gallery .btn.quiet:hover {
  border-color: var(--gold);
  background: transparent;
}

body.gallery .btn[hidden],
.shadowbox-arrow[hidden],
#inline-stage[hidden],
.shadowbox[hidden] {
  display: none;
}

body.gallery .btn:focus-visible,
.shadowbox-arrow:focus-visible,
.photo-tile:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.buy {
  margin: 16px 0 28px;
}

.buy-note {
  margin-top: 8px;
  color: var(--text-muted);
}

.cart-line {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.cart-line img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  background: #141414;
  display: block;
}

.cart-line p {
  color: var(--text-muted);
}

.cart-total {
  margin: 18px 0 8px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 28px;
  font-weight: 700;
}

.dash-bar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 36px;
}

.dash-who {
  color: var(--text-muted);
  text-align: right;
  margin-bottom: 6px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 36px;
}

.stat {
  padding: 18px 0 16px;
}

.stat + .stat {
  padding-left: 20px;
  border-left: 1px solid var(--line);
}

.stat-value {
  display: block;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: clamp(36px, 5vw, 56px);
  line-height: 0.9;
  color: var(--gold);
}

.stat-label {
  display: block;
  margin-top: 8px;
  color: var(--text-muted);
  font-size: 16px;
}

.dash-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(260px, 0.8fr);
  gap: 28px;
  align-items: start;
  margin-bottom: 28px;
}

.panel h2 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.panel + .panel {
  margin-top: 8px;
}

.empty {
  color: var(--text-muted);
  max-width: 42ch;
}

.table-wrap {
  overflow-x: auto;
}

body.staff table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 16px;
}

body.staff th {
  text-align: left;
  font-weight: 500;
  color: var(--text-muted);
  padding: 0 16px 10px 0;
  border-bottom: 1px solid var(--line);
}

body.staff td {
  padding: 14px 16px 14px 0;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

body.staff td.num,
body.staff th.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.sub {
  display: block;
  color: var(--text-muted);
  font-size: 14px;
  margin-top: 2px;
}

body.staff form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

body.staff label {
  margin-top: 8px;
  color: var(--text-muted);
  font-size: 15px;
}

body.staff label.check {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 12px 0 8px;
  color: var(--text);
}

body.staff input[type="text"],
body.staff input[type="date"],
body.staff input:not([type="checkbox"]) {
  width: 100%;
  background: var(--black);
  color: var(--text);
  border: 1px solid var(--line);
  padding: 10px 12px;
  font: inherit;
}

body.staff input:focus-visible,
body.staff button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

body.staff button {
  margin-top: 8px;
  align-self: flex-start;
  background: var(--gold);
  color: var(--black);
  border: 0;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 12px 16px;
  cursor: pointer;
}

.form-error {
  color: var(--gold);
  margin-bottom: 8px;
}

.upload-zone {
  position: relative;
  border: 1px dashed rgba(255, 255, 255, 0.35);
  padding: 22px;
  margin-bottom: 22px;
}

.upload-zone.is-hot {
  border-color: var(--gold);
}

.upload-zone p:first-child {
  margin-bottom: 14px;
}

.file-label {
  display: inline-block;
  margin: 0 8px 8px 0;
  background: var(--gold);
  color: var(--black);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 10px 14px;
  cursor: pointer;
}

.file-label:focus-within,
.file-label:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

body.staff input.file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  border: 0;
}

.album-title {
  display: flex;
  align-items: flex-end;
  gap: 16px;
}

.cover-thumb,
.album-row-thumb,
.thumb-empty {
  display: block;
  object-fit: cover;
  background: #141414;
}

.album-row-thumb,
.thumb-cell .thumb-empty {
  width: 56px;
  height: 56px;
}

.cover-thumb,
.album-title .thumb-empty {
  width: 84px;
  height: 84px;
}

.thumb-cell {
  width: 72px;
  padding-right: 12px;
}

.photo-grid figure.is-cover {
  outline: 1px solid var(--gold);
  outline-offset: 4px;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

.photo-grid figure {
  min-width: 0;
}

.photo-grid img,
.photo-fallback {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
  background: #141414;
}

.photo-fallback {
  display: grid;
  place-items: center;
  color: var(--text-muted);
  font-family: 'Barlow Condensed', sans-serif;
  letter-spacing: 0.08em;
}

.photo-grid figcaption {
  margin-top: 8px;
  font-size: 14px;
  overflow-wrap: anywhere;
}

body.staff button.quiet {
  margin-top: 8px;
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--line);
  font-size: 15px;
  padding: 6px 8px;
}

@media (max-width: 800px) {
  .dash-bar,
  .dash-grid,
  .stats {
    display: block;
  }

  .dash-who {
    text-align: left;
    margin-top: 16px;
  }

  .stat {
    padding: 16px 0;
    border-top: 1px solid var(--line);
  }

  .stat + .stat {
    padding-left: 0;
    border-left: 0;
  }

  .dash-grid {
    margin-bottom: 8px;
  }

  .dash-grid .panel + .panel {
    margin-top: 32px;
  }

  .nav-brand-copy {
    display: none;
  }
}

body.shadowbox-open {
  overflow: hidden;
}

.shadowbox:not([hidden]) {
  display: grid;
}

.shadowbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: #0a0a0a;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
}

.shadowbox-stage {
  position: relative;
  display: grid;
  place-items: center;
  padding: 28px 72px;
  min-width: 0;
}

.shadowbox-stage img {
  max-width: 100%;
  max-height: calc(100vh - 48px);
  object-fit: contain;
  background: #141414;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.72), 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.shadowbox-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 72px;
  border: 0;
  border-radius: var(--radius);
  background: rgba(10, 10, 10, 0.78);
  color: var(--gold);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 40px;
  line-height: 1;
  cursor: pointer;
}

.shadowbox-arrow.prev { left: 12px; }
.shadowbox-arrow.next { right: 12px; }

.shadowbox-arrow:hover {
  background: var(--gold);
  color: var(--black);
}

.shadowbox-panel {
  overflow: auto;
  background: var(--black);
  border-left: 1px solid var(--line);
  padding: 20px 20px 28px;
}

.shadowbox-close {
  float: right;
  width: auto;
  margin: 0 0 12px 12px;
}

.shadowbox-count {
  font-size: 18px;
  color: var(--gold);
  margin-bottom: 6px;
}

.kicker {
  font-family: 'Barlow Condensed', sans-serif;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  font-size: 14px;
  font-weight: 600;
}

@media (max-width: 800px) {
  .shadowbox:not([hidden]) {
    grid-template-columns: 1fr;
    overflow: auto;
  }

  .shadowbox-stage {
    min-height: 46vh;
    padding: 64px 12px 16px;
  }

  .shadowbox-stage img {
    max-height: 58vh;
  }

  .shadowbox-panel {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding: 16px 16px 32px;
  }

  .shadowbox-arrow.prev { left: 8px; }
  .shadowbox-arrow.next { right: 8px; }
}
