:root {
  font-synthesis-weight: none;
}

@font-face {
  font-family: "Little Amps";
  src: url("./assets/fonts/little-amps-serif.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inclusive Sans";
  src: url("./assets/fonts/inclusive-sans.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Necto Mono";
  src: url("./assets/fonts/necto-mono.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "DM Sans";
  src: url("./assets/fonts/dm-sans-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "DM Sans";
  src: url("./assets/fonts/dm-sans-500.woff2") format("woff2");
  font-weight: 500 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Roboto Mono";
  src: url("./assets/fonts/roboto-mono-400.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Roboto Condensed";
  src: url("./assets/fonts/roboto-condensed-400.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --la-brick: #c03001;
  --la-blue: #89b4ca;
  --la-mustard: #c46500;
  --la-yellow: #febf6f;
  --la-brown: #522c25;
  --la-cream: #fff9f2;
  --la-beige: #f6ede3;
  --la-border: #e6dad4;
  --la-charcoal: #1f1e20;
  --bg: var(--la-cream);
  --surface: var(--la-cream);
  --surface-strong: var(--la-beige);
  --ink: var(--la-brown);
  --muted: rgb(82 44 37 / 0.68);
  --line: var(--la-border);
  --accent: var(--la-brown);
  --accent-dark: var(--la-brick);
  --accent-soft: var(--la-beige);
  --shadow: 0 22px 60px rgb(82 44 37 / 0.09);
  --radius: 7px;
  --radius-small: 2px;
  --font-sans: "Inclusive Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-condensed: "Little Amps", Georgia, serif;
  --font-mono: "Necto Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a0a0a;
    --surface: #101010;
    --surface-strong: #1e1e1e;
    --ink: #e7e7e8;
    --muted: rgb(231 231 232 / 0.7);
    --line: #383639;
    --accent: #f5f5f5;
    --accent-dark: #dcdcdc;
    --accent-soft: #2c2c2c;
    --shadow: 0 24px 80px rgb(0 0 0 / 0.34);
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  text-rendering: optimizeLegibility;
}

body.panel-open {
  overflow: hidden;
}

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a,
input,
select,
textarea {
  border-radius: var(--radius-small);
}

button {
  cursor: pointer;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 16px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--ink);
  color: var(--bg);
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 72px;
  padding: 14px clamp(16px, 3vw, 42px);
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0;
}

.brand-mark {
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 2px solid var(--ink);
  background: var(--ink);
  color: var(--bg);
  font-family: var(--font-mono);
  font-weight: 400;
}

.desktop-nav {
  display: flex;
  gap: clamp(18px, 2.5vw, 34px);
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
}

.desktop-nav a {
  padding: 10px 0;
}

.desktop-nav a:hover {
  color: var(--accent);
}

.header-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
}

.menu-button,
.mobile-menu {
  display: none;
}

.primary-button,
.secondary-button,
.ghost-button,
.cart-button,
.danger-button,
.icon-button,
.product-footer button,
.filter,
.import-control {
  min-height: 44px;
  border: 1px solid var(--ink);
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.primary-button,
.cart-button,
.product-footer button {
  background: var(--la-brown);
  border-color: var(--la-brown);
  color: var(--la-cream);
}

.primary-button.dark {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg);
}

.secondary-button,
.ghost-button,
.filter,
.import-control {
  background: transparent;
  color: var(--ink);
}

.danger-button {
  background: transparent;
  border-color: var(--la-brick);
  color: var(--la-brick);
}

.icon-button {
  background: var(--surface);
  color: var(--ink);
}

.primary-button:hover,
.cart-button:hover,
.product-footer button:hover,
.filter.is-active {
  background: var(--la-brick);
  border-color: var(--la-brick);
  color: var(--la-cream);
}

.secondary-button:hover,
.ghost-button:hover,
.icon-button:hover,
.import-control:hover {
  background: var(--ink);
  color: var(--bg);
}

button:active,
a:active,
.import-control:active {
  transform: translateY(1px);
}

.section-band,
.shop-section,
.sets-section,
.trade-section,
.journal-section,
.site-footer {
  max-width: 1480px;
  margin: 0 auto;
  padding-inline: clamp(16px, 4vw, 56px);
}

.hero {
  min-height: calc(100dvh - 72px);
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  align-items: center;
  gap: clamp(28px, 5vw, 76px);
  padding-top: clamp(32px, 6vw, 72px);
  padding-bottom: clamp(32px, 6vw, 72px);
}

.small-label {
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--la-brick);
}

.hero h1,
.section-heading h2,
.set-copy h2,
.trade-section h2,
.journal-section h2 {
  margin: 0;
  font-family: var(--font-condensed);
  font-size: clamp(56px, 8.6vw, 118px);
  font-weight: 400;
  line-height: 0.82;
  letter-spacing: -0.09em;
  text-transform: uppercase;
}

.hero h1 em,
.section-heading h2 em,
.set-copy h2 em,
.trade-section h2 em,
.journal-section h2 em {
  color: var(--la-mustard);
  font-style: normal;
}

.hero-text {
  max-width: 620px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.25;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero-media {
  position: relative;
  min-height: min(64dvh, 720px);
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface-strong);
  box-shadow: var(--shadow);
}

.hero-media img {
  filter: saturate(0.86) contrast(1.02) sepia(0.08);
}

.hero-card {
  position: absolute;
  left: 22px;
  bottom: 22px;
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border: 1px solid rgb(255 255 255 / 0.55);
  border-radius: var(--radius-small);
  background: rgb(255 249 242 / 0.84);
  color: var(--la-brown);
  backdrop-filter: blur(16px);
}

.hero-card span,
.product-meta,
.note-row,
.set-options span,
.journal-grid time {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.intro-strip {
  border-block: 1px solid var(--line);
  padding: 24px clamp(16px, 4vw, 56px);
}

.intro-strip p {
  max-width: 1120px;
  margin: 0 auto;
  font-family: var(--font-condensed);
  font-size: clamp(28px, 4vw, 58px);
  font-weight: 400;
  line-height: 0.82;
  letter-spacing: -0.09em;
  text-transform: uppercase;
}

.shop-section,
.sets-section,
.trade-section,
.journal-section {
  padding-top: clamp(72px, 9vw, 132px);
  padding-bottom: clamp(72px, 9vw, 132px);
}

.section-heading {
  max-width: 820px;
}

.section-heading p,
.set-copy p,
.trade-section p {
  max-width: 680px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.35;
}

.filter {
  min-height: 36px;
  padding-inline: 12px;
}

.filter:nth-child(2):hover {
  background: var(--la-mustard);
  border-color: var(--la-mustard);
  color: var(--la-cream);
}

.filter:nth-child(3):hover {
  background: var(--la-blue);
  border-color: var(--la-blue);
  color: var(--la-brown);
}

.filter:nth-child(4):hover {
  background: var(--la-yellow);
  border-color: var(--la-yellow);
  color: var(--la-brown);
}

.filter:nth-child(5):hover {
  background: var(--la-brick);
  border-color: var(--la-brick);
  color: var(--la-cream);
}

.product-toolbar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 34px 0 28px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.product-card {
  display: grid;
  align-content: start;
  gap: 12px;
  min-width: 0;
}

.image-button {
  aspect-ratio: 4 / 5;
  width: 100%;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface-strong);
}

.image-button img {
  transition: transform 420ms ease;
}

.image-button:hover img {
  transform: scale(1.035);
}

.product-card:hover .image-button {
  border-color: rgb(82 44 37 / 0.35);
  background: var(--la-beige);
}

.product-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  min-height: 18px;
}

.product-card h3 {
  margin: 0;
  font-family: var(--font-condensed);
  font-size: 30px;
  font-weight: 400;
  line-height: 0.88;
  letter-spacing: -0.08em;
  text-transform: uppercase;
}

.product-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.15;
}

.note-row {
  min-height: 18px;
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 4px;
}

.product-footer strong {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 400;
}

.product-card:nth-child(4n+1) .product-footer button {
  background: var(--la-mustard);
  border-color: var(--la-mustard);
  color: var(--la-cream);
}

.product-card:nth-child(4n+2) .product-footer button {
  background: var(--la-yellow);
  border-color: var(--la-yellow);
  color: var(--la-brown);
}

.product-card:nth-child(4n+3) .product-footer button {
  background: var(--la-brick);
  border-color: var(--la-brick);
  color: var(--la-cream);
}

.product-card:nth-child(4n+4) .product-footer button {
  background: var(--la-blue);
  border-color: var(--la-blue);
  color: var(--la-brown);
}

.product-card .product-footer button:hover {
  background: var(--la-brown);
  border-color: var(--la-brown);
  color: var(--la-cream);
}

.sets-section {
  display: grid;
  grid-template-columns: minmax(360px, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(30px, 6vw, 88px);
  align-items: center;
  border-top: 1px solid var(--line);
}

.set-media {
  aspect-ratio: 1 / 1.05;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface-strong);
}

.set-media img {
  filter: saturate(0.82) contrast(1.04) sepia(0.08);
}

.set-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 28px;
}

.set-options article {
  min-height: 134px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: background 180ms ease, color 180ms ease;
}

.set-options article:nth-child(1):hover {
  background: var(--la-mustard);
  color: var(--la-cream);
}

.set-options article:nth-child(2):hover {
  background: var(--la-yellow);
  color: var(--la-brown);
}

.set-options article:nth-child(3):hover {
  background: var(--la-blue);
  color: var(--la-brown);
}

.set-options strong {
  display: block;
  margin-top: 10px;
  font-size: 20px;
  line-height: 1.15;
}

.trade-section {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 28px;
  border-top: 1px solid var(--line);
}

.trade-section h2 {
  max-width: 900px;
}

.journal-section {
  border-top: 1px solid var(--line);
}

.journal-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr;
  gap: 14px;
  margin-top: 28px;
}

.journal-grid article {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: background 180ms ease, color 180ms ease;
}

.journal-grid article:nth-child(1):hover {
  background: var(--la-blue);
  color: var(--la-brown);
}

.journal-grid article:nth-child(2):hover {
  background: var(--la-mustard);
  color: var(--la-cream);
}

.journal-grid article:nth-child(3):hover {
  background: var(--la-yellow);
  color: var(--la-brown);
}

.journal-grid h3 {
  margin: 16px 0 10px;
  font-size: 24px;
  line-height: 1.08;
}

.journal-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 28px;
  padding-top: 42px;
  padding-bottom: 42px;
  border-top: 1px solid var(--line);
  background: var(--la-brown);
  color: var(--la-cream);
  max-width: none;
  margin-top: 14px;
  border-radius: var(--radius) var(--radius) 0 0;
}

.site-footer p {
  max-width: 420px;
  color: rgb(255 249 242 / 0.75);
}

.site-footer .brand-mark {
  border-color: var(--la-cream);
  background: var(--la-cream);
  color: var(--la-brown);
}

.footer-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: flex-end;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.overlay {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: none;
  background: rgb(25 25 23 / 0.46);
}

.overlay.is-open {
  display: block;
}

.editor-panel,
.cart-panel {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 80;
  width: min(560px, 100vw);
  height: 100dvh;
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 22px;
  overflow: auto;
  border-left: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  transform: translateX(104%);
  transition: transform 260ms ease;
  box-shadow: var(--shadow);
}

.editor-panel.is-open,
.cart-panel.is-open {
  transform: translateX(0);
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
}

.panel-header h2 {
  margin: 0;
  font-size: 40px;
  line-height: 1;
  font-family: var(--font-condensed);
  font-weight: 400;
  letter-spacing: -0.08em;
  text-transform: uppercase;
}

.editor-form {
  display: grid;
  gap: 14px;
}

.editor-form label,
.import-control {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-weight: 700;
}

.editor-form input,
.editor-form select,
.editor-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  padding: 12px;
  outline: none;
}

.editor-form textarea {
  resize: vertical;
}

.editor-form input:focus,
.editor-form select:focus,
.editor-form textarea:focus {
  border-color: var(--la-brown);
  background: var(--la-beige);
  box-shadow: 0 0 0 3px rgb(82 44 37 / 0.1);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form-actions,
.data-tools {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.editor-list,
.cart-items {
  display: grid;
  gap: 10px;
}

.editor-item,
.cart-item {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
}

.editor-item img,
.cart-item img {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-small);
  object-fit: cover;
}

.editor-item h3,
.cart-item h3 {
  margin: 0 0 4px;
  font-size: 16px;
}

.editor-item p,
.cart-item p,
.editor-note {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.editor-item-actions {
  display: grid;
  gap: 6px;
}

.editor-item-actions button,
.cart-item button {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  padding: 8px 10px;
}

.import-control {
  position: relative;
  cursor: pointer;
}

.import-control input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.cart-footer {
  margin-top: auto;
  display: grid;
  gap: 14px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.cart-footer div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.cart-footer strong {
  font-size: 28px;
}

.quick-view {
  width: min(960px, calc(100vw - 28px));
  border: 0;
  border-radius: var(--radius);
  padding: 0;
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.quick-view::backdrop {
  background: rgb(25 25 23 / 0.55);
}

.close-dialog {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 1;
}

.quick-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.quick-content img {
  min-height: 520px;
}

.quick-copy {
  padding: clamp(24px, 4vw, 48px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}

.quick-copy h2 {
  margin: 0;
  font-size: clamp(34px, 4vw, 62px);
  line-height: 0.94;
  font-family: var(--font-condensed);
  font-weight: 400;
  letter-spacing: -0.08em;
  text-transform: uppercase;
}

.quick-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media (max-width: 1120px) {
  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .hero-media {
    min-height: 520px;
  }
}

@media (max-width: 860px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .desktop-nav,
  .header-actions {
    display: none;
  }

  .menu-button {
    display: inline-flex;
    min-height: 42px;
    border: 1px solid var(--ink);
    background: transparent;
    color: var(--ink);
    align-items: center;
    justify-content: center;
    padding: 0 14px;
    font-weight: 700;
  }

  .mobile-menu.is-open {
    display: grid;
    position: fixed;
    top: 72px;
    inset-inline: 0;
    z-index: 49;
    gap: 0;
    border-bottom: 1px solid var(--line);
    background: var(--surface);
  }

  .mobile-menu a,
  .mobile-menu button {
    min-height: 52px;
    border: 0;
    border-bottom: 1px solid var(--line);
    background: transparent;
    color: var(--ink);
    text-align: left;
    padding: 0 18px;
    font-weight: 700;
  }

  .product-grid,
  .journal-grid,
  .set-options {
    grid-template-columns: 1fr 1fr;
  }

  .sets-section,
  .quick-content {
    grid-template-columns: 1fr;
  }

  .trade-section,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 620px) {
  .brand span:last-child {
    display: none;
  }

  .hero {
    min-height: auto;
    padding-top: 38px;
  }

  .hero h1,
  .section-heading h2,
  .set-copy h2,
  .trade-section h2,
  .journal-section h2 {
    font-size: clamp(42px, 15vw, 68px);
  }

  .hero-media {
    min-height: 360px;
  }

  .product-grid,
  .journal-grid,
  .set-options,
  .form-row {
    grid-template-columns: 1fr;
  }

  .product-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .product-footer button {
    width: 100%;
  }

  .editor-panel,
  .cart-panel {
    padding: 16px;
  }

  .editor-item,
  .cart-item {
    grid-template-columns: 58px 1fr;
  }

  .editor-item img,
  .cart-item img {
    width: 58px;
    height: 58px;
  }

  .editor-item-actions {
    grid-column: 1 / -1;
    grid-template-columns: 1fr 1fr;
  }

  .quick-content img {
    min-height: 320px;
  }
}
