/* ==========================================================
   Hectic Records — stylesheet
   Palette: ink, paper cream, brick rust, teal, vinyl gold
   Type: Fraunces (display) + Inter (body)
   ========================================================== */

:root {
  --ink: #1C1712;
  --paper: #F2E8D5;
  --paper-line: #DFCEA6;
  --rust: #A8431F;
  --rust-dark: #7E3116;
  --teal: #2E7EA6;
  --teal-dark: #235F7D;
  --gold: #CE9F3E;
  --white: #FFFDF8;

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;

  --max: 1240px;
  --radius-sm: 6px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.55;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 900;
  margin: 0 0 0.4em;
  line-height: 1.05;
}
h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; max-width: 62ch; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .12s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }
.btn--rust { background: var(--rust); color: var(--white); }
.btn--rust:hover { background: var(--rust-dark); }
.btn--outline { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn--outline:hover { background: var(--ink); color: var(--paper); }
.btn--full { display: flex; width: 100%; justify-content: center; }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }

.btn-add {
  border: 2px solid var(--ink);
  background: transparent;
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}
.btn-add:hover { background: var(--ink); color: var(--paper); }

/* ---------- Header ---------- */

.site-header {
  background: var(--paper);
  border-bottom: 3px solid var(--ink);
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-header__strip {
  background: var(--ink);
  color: var(--paper);
  font-size: 0.78rem;
  text-align: center;
  padding: 7px 16px;
}
.site-header__strip a { text-decoration: underline; }
.site-header__inner {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 14px 24px;
  max-width: var(--max);
  margin: 0 auto;
}
.site-header__logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.site-header__logo img { height: 52px; width: auto; }
.site-header__logo-word {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.35rem;
  letter-spacing: -0.01em;
}

.site-nav { flex: 1; }
.site-nav ul { list-style: none; display: flex; gap: 30px; margin: 0; padding: 0; justify-content: center; }
.site-nav a {
  font-weight: 700;
  font-size: 0.9rem;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { border-bottom-color: var(--rust); }

.header-actions { display: flex; align-items: center; gap: 18px; }
.cart-link { position: relative; display: inline-flex; align-items: center; gap: 6px; font-weight: 700; }
.cart-link svg { transition: transform .2s ease; }
.cart-icon--bump svg { transform: scale(1.25) rotate(-8deg); }
.cart-count-badge {
  background: var(--rust); color: var(--white);
  font-size: 0.7rem; min-width: 18px; height: 18px; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center; padding: 0 4px;
}

.nav-toggle { display: none; background: none; border: none; flex-direction: column; gap: 5px; cursor: pointer; }
.nav-toggle span { width: 24px; height: 2px; background: var(--ink); }
.mobile-menu { display: none; }

@media (max-width: 880px) {
  .site-nav { display: none; }
  .nav-toggle { display: flex; }
  .mobile-menu {
    display: none; background: var(--white); border-top: 1px solid var(--paper-line);
    padding: 10px 24px 20px;
  }
  .mobile-menu.is-open { display: block; }
  .mobile-menu ul { list-style: none; padding: 0; margin: 0; }
  .mobile-menu a { display: block; padding: 10px 0; font-weight: 700; }
}

/* ---------- Hero (gig-poster style, not a gradient banner) ---------- */

.hero {
  border-bottom: 3px solid var(--ink);
  overflow: hidden;
  position: relative;
}
.hero__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 64px 24px 56px;
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 40px;
  align-items: center;
}
.hero__wordmark {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(3.2rem, 9vw, 6.5rem);
  line-height: 0.85;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.hero__wordmark span { display: block; }
.hero__wordmark span:last-child { color: var(--rust); }
.hero__tag {
  font-size: 1.05rem;
  max-width: 40ch;
  margin: 22px 0 28px;
}
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero__stamp {
  justify-self: center;
  transform: rotate(-6deg);
  filter: drop-shadow(6px 8px 0 rgba(28,23,18,0.15));
}
.hero__stamp img { width: min(320px, 80%); margin: 0 auto; }

@media (max-width: 820px) {
  .hero__inner { grid-template-columns: 1fr; text-align: center; padding-top: 40px; }
  .hero__tag { margin-left: auto; margin-right: auto; }
  .hero__actions { justify-content: center; }
  .hero__stamp { order: -1; transform: rotate(-4deg); }
}

/* ---------- Section shell ---------- */

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 56px 24px;
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 28px;
  flex-wrap: wrap;
  border-bottom: 2px solid var(--ink);
  padding-bottom: 14px;
}
.section-head p { margin: 4px 0 0; }
.section--teal { background: #E3EFF4; border-top: 3px solid var(--ink); border-bottom: 3px solid var(--ink); padding: 56px 0; }
.section--teal .section-head, .section--teal .grid-wrap { max-width: var(--max); margin: 0 auto; padding-left: 24px; padding-right: 24px; }

/* ---------- Sleeve cards (signature product visual) ---------- */

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px 22px;
}
.product-grid--scroll {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  padding-bottom: 10px;
  scroll-snap-type: x mandatory;
}
.product-grid--scroll .sleeve-card { min-width: 220px; scroll-snap-align: start; }

@media (max-width: 980px) { .product-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px) { .product-grid { grid-template-columns: repeat(2, 1fr); gap: 18px 14px; } }

.sleeve-card { display: block; }
.sleeve {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-sm);
  overflow: visible;
}
.sleeve__vinyl {
  position: absolute;
  top: 8%;
  right: -8%;
  width: 78%;
  height: 78%;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, var(--ink) 0 6%, transparent 6.5%),
    repeating-radial-gradient(circle at center, #2a231b 0 3px, #1a1510 3px 6px);
  box-shadow: 0 4px 14px rgba(0,0,0,0.25);
  z-index: 1;
}
.sleeve__face {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(28,23,18,0.15);
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 10px;
  box-shadow: -6px 6px 0 rgba(28,23,18,0.08);
  background-size: cover;
  background-position: center;
}
.sleeve[data-accent="1"] .sleeve__face { background-color: var(--rust); }
.sleeve[data-accent="2"] .sleeve__face { background-color: var(--teal); }
.sleeve[data-accent="3"] .sleeve__face { background-color: var(--gold); }
.sleeve[data-accent="4"] .sleeve__face { background-color: var(--ink); }
.sleeve[data-accent="5"] .sleeve__face { background-color: #6B7F4A; }

.sleeve__format {
  align-self: flex-end;
  font-size: 0.68rem;
  font-weight: 700;
  background: rgba(20,16,12,0.65);
  color: var(--white);
  padding: 3px 9px;
  border-radius: 4px;
}
.badge {
  align-self: flex-start;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
}
.badge--preorder { background: var(--ink); color: var(--paper); }
.badge--soldout { background: #5a5248; color: var(--white); }
.sleeve--soldout { opacity: 0.55; filter: grayscale(60%); }
.btn-add[disabled] { opacity: 0.5; cursor: not-allowed; }
.btn-add[disabled]:hover { background: transparent; color: var(--ink); }

.sleeve-card__meta { padding-top: 12px; }
.sleeve-card__title { display: flex; flex-direction: column; margin-bottom: 6px; }
.sleeve-card__title strong { font-size: 0.95rem; }
.sleeve-card__title span { font-size: 0.85rem; opacity: 0.75; }
.sleeve-card__row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.sleeve-card__price { font-weight: 700; }

.empty-note { opacity: 0.7; font-style: italic; }

/* ---------- Crate dividers (genre filter, signature nav) ---------- */

.crate {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 6px;
  margin-bottom: 32px;
}
.crate-tab {
  flex-shrink: 0;
  background: var(--white);
  border: 2px solid var(--ink);
  border-bottom-width: 5px;
  border-radius: 4px 4px 0 0;
  padding: 10px 18px;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  transition: transform .1s ease;
}
.crate-tab:hover { transform: translateY(-2px); }
.crate-tab.is-active { background: var(--rust); color: var(--white); border-color: var(--ink); }

/* ---------- Genre grid (homepage) ---------- */

.genre-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 760px) { .genre-grid { grid-template-columns: repeat(2, 1fr); } }
.genre-tile {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 22px;
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: 4px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.1rem;
}
.genre-tile:hover { background: var(--ink); color: var(--paper); }
.genre-tile svg { flex-shrink: 0; }

/* ---------- CTA band ---------- */

.cta-band {
  background: var(--ink);
  color: var(--paper);
  border-top: 3px solid var(--ink);
  border-bottom: 3px solid var(--ink);
}
.cta-band__inner {
  max-width: var(--max); margin: 0 auto; padding: 56px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap;
}
.cta-band h2 { color: var(--paper); margin-bottom: 8px; }
.cta-band p { color: rgba(242,232,213,0.8); margin-bottom: 0; }

/* ---------- Visit / store info ---------- */

.visit-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  align-items: start;
}
@media (max-width: 820px) { .visit-grid { grid-template-columns: 1fr; } }
.visit-grid iframe { width: 100%; height: 320px; border: 2px solid var(--ink); border-radius: 6px; }
.detail-list { list-style: none; padding: 0; margin: 0; }
.detail-list li { padding: 14px 0; border-top: 1px solid var(--paper-line); }
.detail-list li:first-child { border-top: none; }
.detail-list dt { font-weight: 700; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.03em; opacity: 0.7; margin-bottom: 4px; }
.detail-list dd { margin: 0; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--white);
  border-top: 3px solid var(--ink);
}
.site-footer__inner {
  max-width: var(--max); margin: 0 auto; padding: 48px 24px 24px;
  display: grid; grid-template-columns: 1.2fr 1fr 1fr 1fr 1fr; gap: 28px;
}
.site-footer h3 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.04em; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a:hover { text-decoration: underline; }
.site-footer__logo { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.site-footer__logo img { height: 48px; }
.site-footer__bottom {
  border-top: 1px solid var(--paper-line);
  text-align: center;
  font-size: 0.78rem;
  opacity: 0.7;
  padding: 16px;
}
@media (max-width: 800px) { .site-footer__inner { grid-template-columns: 1fr 1fr; } }

/* ---------- Shop page ---------- */

.shop-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.shop-count { font-size: 0.85rem; opacity: 0.7; }
.search-box {
  display: flex; align-items: center; gap: 8px;
  border: 2px solid var(--ink); border-radius: 999px; padding: 8px 16px; max-width: 320px;
}
.search-box input { border: none; background: none; outline: none; width: 100%; font-family: inherit; }

/* ---------- Product page ---------- */

.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; }
@media (max-width: 800px) { .product-detail { grid-template-columns: 1fr; } }
.product-detail__sleeve { max-width: 440px; }
.product-detail__sleeve .sleeve { aspect-ratio: 1/1; }
.product-detail__price { font-size: 1.6rem; font-weight: 700; margin: 6px 0 18px; }
.product-detail__description { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--paper-line); }
.product-detail__description p { margin: 0; opacity: 0.9; }
.product-detail__meta-row { display: flex; gap: 10px; margin-bottom: 18px; flex-wrap: wrap; }
.qty-row { display: flex; align-items: center; gap: 12px; margin: 20px 0; }
.qty-row input {
  width: 70px; padding: 10px; border: 2px solid var(--ink); border-radius: 6px; font-family: inherit;
}
.back-link { display: inline-block; margin-bottom: 24px; font-weight: 700; }
.back-link::before { content: "← "; }

/* ---------- Cart page ---------- */

.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.cart-table { width: 100%; min-width: 480px; border-collapse: collapse; margin-bottom: 30px; }
.cart-table th { text-align: left; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.03em; padding-bottom: 12px; border-bottom: 2px solid var(--ink); }
.cart-table td { padding: 16px 8px; border-bottom: 1px solid var(--paper-line); vertical-align: middle; }
.cart-item { display: flex; align-items: center; gap: 14px; }
.cart-item .sleeve { width: 64px; height: 64px; flex-shrink: 0; }
.cart-item__title { display: flex; flex-direction: column; }
.cart-item__title span { font-size: 0.85rem; opacity: 0.7; }
.cart-table input[type="number"] { width: 60px; padding: 6px; border: 2px solid var(--ink); border-radius: 6px; font-family: inherit; }
.remove-link { font-size: 0.8rem; text-decoration: underline; opacity: 0.7; background: none; border: none; cursor: pointer; font-family: inherit; padding: 0; }
.cart-summary {
  max-width: 340px; margin-left: auto;
  border: 2px solid var(--ink); border-radius: 8px; padding: 22px;
}
.cart-summary__row { display: flex; justify-content: space-between; margin-bottom: 10px; }
.cart-summary__row--total { font-weight: 700; font-size: 1.15rem; border-top: 1px solid var(--paper-line); padding-top: 12px; margin-top: 12px; }
.delivery-method { border-top: 1px solid var(--paper-line); border-bottom: 1px solid var(--paper-line); padding: 14px 0; margin-bottom: 12px; }
.delivery-option { display: flex; align-items: center; gap: 8px; font-size: 0.88rem; margin-bottom: 8px; cursor: pointer; }
.delivery-option:last-of-type { margin-bottom: 0; }
.cart-empty { text-align: center; padding: 60px 24px; }

/* ---------- Contact page ---------- */

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
@media (max-width: 800px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 20px; }
