@font-face {
  font-family: "Geist";
  src: url("/assets/fonts/geist-sans/Geist-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Geist Mono";
  src: url("/assets/fonts/geist-mono/GeistMono-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --bg: #f1f1f1;
  --surface: #ffffff;
  --surface-subtle: #fafafa;
  --surface-muted: #f5f5f5;
  --text: #09090b;
  --muted: #666666;
  --subtle: #8a8a8a;
  --line: #eaeaea;
  --line-strong: #d4d4d4;
  --inverse: #000000;
  --inverse-text: #ffffff;
  --focus: #0070f3;
  --max: 1920px;
  --narrow: 820px;
  --font-heading: "Stack Sans Notch", "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --home-section-gap: 96px;
  --hero-background-opacity: 0.49;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  font-family: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-rendering: geometricPrecision;
  -webkit-font-smoothing: antialiased;
}

body {
  display: flex;
  min-width: 320px;
  min-height: 100vh;
  flex-direction: column;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(to bottom, rgb(250 250 250 / 0.84), rgb(255 255 255 / 0) 320px),
    radial-gradient(circle at 50% 0, rgb(0 0 0 / 0.035), transparent 360px);
}

h1,
h2,
h3, 
h4, 
h5, 
h6 {
  text-transform: uppercase;
}
a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--focus);
}

a:focus-visible,
button:focus-visible,
select:focus-visible,
input:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

main {
  width: min(calc(100% - 64px), var(--max));
  margin: 0 auto;
}

main {
  flex: 1 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  width: 100%;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 0;
  padding-inline: max(32px, calc((100vw - var(--max)) / 2));
  /* border-bottom: 1px solid rgb(234 234 234 / 0.72); */
  background: rgb(241 241 241 / 0.3);
  backdrop-filter: blur(18px);
}

.site-footer {
  position: sticky;
  bottom: 0;
  z-index: 20;
  display: flex;
  width: 100%;
  min-height: 64px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 0;
  padding-inline: max(32px, calc((100vw - var(--max)) / 2));
  border-top: 1px solid rgb(234 234 234 / 0.82);
  background: rgb(241 241 241 / 0.78);
  color: var(--muted);
  backdrop-filter: blur(18px);
}

.footer-copy {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
}

.footer-copy span + span::before {
  margin-right: 8px;
  color: var(--line-strong);
  content: "/";
}

.social-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.social-links a {
  display: inline-flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.035);
}

.social-links a:hover {
  border-color: var(--line-strong);
  color: var(--text);
}

.social-links svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;

}

.skullmelo {
  width: 50px;
  height: 50px;
  display: block;
  fill: #171717;
}

.site-nav {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgb(255 255 255 / 0.86);
  padding: 4px;
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.04);
}

.site-nav a {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0 12px;
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 500;
}

.site-nav a:hover {
  background: var(--surface-muted);
  color: var(--text);
}

.home-hero {
  position: relative;
  min-height: 620px;
  display: grid;
  align-items: center;
  justify-items: center;
  margin-bottom: var(--home-section-gap);
  margin-top: 18px;
  padding: 96px 0 0;
  overflow: hidden;
  text-align: center;
  z-index: 0;
  border-radius: 8px;
}

.home-hero::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background-image: url("/assets/images/physical/hero-background.png");
  background-position: center;
  background-size: cover;
  opacity: var(--hero-background-opacity);
}

.home-copy {
  position: relative;
  z-index: 1;
  width: min(100%, 960px);
}


.eyebrow {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 560;
}
.page-heading .eyebrow,
.page-heading p {
  color: #09090b;
}

h1,
h2,
h3,
h4,
h5,
h6,
p {
  margin-top: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-optical-sizing: auto;
}

h1 {
  max-width: 960px;
  margin: 0 auto 22px;
  font-size: 6.25rem;
  font-weight: 720;
  line-height: 0.94;
}

.lede,
.page-heading p,
.section-heading p {
  max-width: 690px;
  margin-right: auto;
  margin-left: auto;
  color: var(--text);
  font-size: 1.375rem;
  line-height: 1.45;
}
.home-hero .eyebrow {
  color: var(--text);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 34px;
}

.button,
button,
select {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
}

.button,
button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  cursor: pointer;
  font-size: 0.94rem;
  font-weight: 560;
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.04);
}

.button.primary {
  border-color: var(--inverse);
  background: var(--inverse);
  color: var(--inverse-text);
}

.button:hover,
button:hover {
  border-color: var(--line-strong);
  color: var(--text);
}

.button.primary:hover {
  background: #333333;
  color: var(--inverse-text);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
  margin-bottom: var(--home-section-gap);
  box-shadow: 0 12px 34px rgb(0 0 0 / 0.04);
}

.stat {
  background: rgb(255 255 255 / 0.84);
  padding: 24px;
  text-align: center;
}

.stat strong {
  display: block;
  margin-bottom: 4px;
  font-size: 2rem;
  font-weight: 660;
  line-height: 1;
}

.stat span {
  color: var(--muted);
  font-size: 0.94rem;
}

.physical-works,
.timeline {
  margin-bottom: var(--home-section-gap);
}

.page-heading {
  padding: 112px 0 58px;
}

.section-heading,
.page-heading {
  text-align: center;
}

.section-heading h2,
.page-heading h1 {
  margin-bottom: 14px;
  font-size: 4.25rem;
  font-weight: 690;
  line-height: 1;
}

.timeline-list {
  display: grid;
  max-width: var(--narrow);
  gap: 0;
  margin: 42px auto 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.timeline-list li {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 28px;
  border-bottom: 1px solid var(--line);
  padding: 26px 0;
  text-align: left;
}

.timeline-list h3 {
  margin-bottom: 6px;
  font-size: 1.08rem;
  font-weight: 620;
}

.timeline-list p {
  margin-bottom: 0;
  color: var(--muted);
}

.timeline-list time,
.card-body span,
.meta-row,
.archive-tools output,
.trait-panel small {
  color: var(--subtle);
  font-family: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.78rem;
}

.physical-grid,
.collection-grid,
.item-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
  padding-bottom: 0;
}

.physical-grid {
  margin-top: 42px;
}

.physical-tile {
  display: block;
  overflow: hidden;
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-muted);
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.035);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.physical-tile:hover {
  border-color: var(--line-strong);
  box-shadow: 0 16px 44px rgb(0 0 0 / 0.08);
  transform: translateY(-2px);
}

.physical-tile img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 220ms ease;
}

.physical-tile:hover img {
  transform: scale(1.025);
}

.collection-card,
.item-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.035);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.collection-card:hover,
.item-card:hover {
  border-color: var(--line-strong);
  box-shadow: 0 16px 44px rgb(0 0 0 / 0.08);
  color: var(--text);
  transform: translateY(-2px);
}

.media-frame {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 1;
  background:
    linear-gradient(135deg, #fafafa, #f1f1f1),
    var(--surface-muted);
}

.media-frame iframe {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  pointer-events: none;
}

.card-body {
  display: grid;
  gap: 6px;
  border-top: 1px solid var(--line);
  padding: 14px;
}

.card-body strong {
  min-width: 0;
  overflow: hidden;
  color: var(--text);
  font-size: 0.98rem;
  font-weight: 590;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.archive-detail .compact {
  padding-bottom: 32px;
}

.archive-detail .compact h1 {
  font-size: 4.75rem;
}

.meta-row,
.archive-tools {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.meta-row span {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-subtle);
  padding: 0 10px;
}

.archive-tools {
  justify-content: space-between;
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgb(255 255 255 / 0.78);
  padding: 10px;
}

.archive-tools label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 0.875rem;
}

select {
  min-height: 36px;
  padding: 0 34px 0 10px;
}

.archive-shell {
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  gap: 18px;
}

.trait-panel {
  position: sticky;
  top: 88px;
  max-height: calc(100vh - 104px);
  overflow: auto;
  align-self: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgb(255 255 255 / 0.82);
  padding: 14px;
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.035);
}

.trait-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.trait-panel-header strong {
  font-size: 0.94rem;
}

.trait-panel button {
  min-height: 32px;
  padding: 0 10px;
  color: var(--muted);
  font-size: 0.84rem;
}

fieldset {
  min-width: 0;
  margin: 18px 0 0;
  padding: 0;
  border: 0;
}

legend {
  margin-bottom: 8px;
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 620;
}

fieldset label {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-height: 30px;
  border-radius: 6px;
  padding: 0 6px;
  color: var(--muted);
  font-size: 0.875rem;
}

fieldset label:hover {
  background: var(--surface-muted);
  color: var(--text);
}

fieldset span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

input[type="checkbox"] {
  accent-color: var(--text);
}

[hidden] {
  display: none !important;
}

@media (max-width: 900px) {
  main {
    width: min(calc(100% - 28px), var(--max));
  }

  .site-header,
  .site-footer {
    padding-inline: 14px;
  }

  :root {
    --home-section-gap: 72px;
  }

  .home-hero {
    min-height: 520px;
    padding: 70px 0 0;
  }

  h1 {
    font-size: 4.4rem;
  }

  .section-heading h2,
  .page-heading h1,
  .archive-detail .compact h1 {
    font-size: 3rem;
  }

  .lede,
  .page-heading p,
  .section-heading p {
    font-size: 1.12rem;
  }

  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .physical-grid,
  .collection-grid,
  .item-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
  }

  .archive-shell {
    grid-template-columns: 1fr;
  }

  .trait-panel {
    position: static;
    max-height: none;
  }
}

@media (max-width: 560px) {
  .site-header {
    min-height: 64px;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding-block: 12px;
  }

  .brand {
    width: 40px;
    height: 40px;
  }

  .skullmelo {
    width: 28px;
    height: 28px;
  }

  .site-nav a {
    min-height: 30px;
    padding: 0 9px;
    font-size: 0.8125rem;
  }

  .home-hero {
    min-height: 440px;
    justify-items: start;
    text-align: left;
  }

  h1 {
    margin-left: 0;
    font-size: 3.35rem;
  }

  .lede,
  .page-heading p,
  .section-heading p {
    margin-left: 0;
  }

  .actions,
  .meta-row {
    justify-content: flex-start;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  :root {
    --home-section-gap: 56px;
  }

  .page-heading {
    padding: 72px 0 42px;
  }

  .section-heading,
  .page-heading {
    text-align: left;
  }

  .timeline-list li {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .physical-grid,
  .collection-grid,
  .item-grid {
    grid-template-columns: 1fr;
  }

  .archive-tools {
    justify-content: flex-start;
  }
}
