/* pgh.now — Night Drop (cinematic dark streetwear) */
:root {
  --bg: #0a0a0a;
  --bg-elev: #121212;
  --bg-card: #161616;
  --bg-card-hover: #1c1c1c;
  --ink: #f5f5f5;
  --ink-soft: #c8c8c8;
  --muted: #8a8a8a;
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(255, 255, 255, 0.22);
  --gold: #c5a059;
  --gold-bright: #d4b36e;
  --gold-ink: #0a0a0a;
  --danger: #e07070;
  --ok: #6fbf84;

  --font-display: "Oswald", "Arial Narrow", Impact, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;

  --radius: 0;
  --radius-sm: 2px;
  --border: 1px solid var(--line);
  --border-gold: 1px solid var(--gold);

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4.5rem;
  --max: 1280px;
  --header-h: 3.5rem;
  --media-studio: #e8e4dc; /* warm letterbox for light Printful mockups */
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; height: auto; }

a {
  color: var(--ink);
  text-underline-offset: 3px;
}
a:hover { color: var(--gold-bright); }

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--gold);
  color: var(--gold-ink);
  padding: var(--space-2) var(--space-4);
  z-index: 200;
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus { left: 0; }

.wrap {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.muted { color: var(--muted); }
.tiny { font-size: 0.85rem; }
.placeholder {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.95em;
}
.badge {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border: 1px solid var(--gold);
  color: var(--gold);
  padding: 0.1rem 0.4rem;
  border-radius: var(--radius-sm);
  vertical-align: middle;
}

code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.9em;
  color: var(--gold-bright);
}

/* —— Header —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  height: var(--header-h);
}

.logo {
  text-decoration: none;
  color: var(--ink);
  display: inline-flex;
  align-items: baseline;
}
.logo:hover { color: var(--ink); }
.logo-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: 0.04em;
  text-transform: lowercase;
}
.logo-dot { color: var(--gold); }

.nav {
  display: none;
  gap: var(--space-5);
}
.nav a {
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
}
.nav a:hover { color: var(--ink); }

.cart-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--gold);
  color: var(--gold-ink);
  border: none;
  border-radius: var(--radius);
  padding: 0.45rem 0.85rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}
.cart-btn:hover { background: var(--gold-bright); }
.cart-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.25rem;
  height: 1.25rem;
  padding: 0 0.3rem;
  background: var(--gold-ink);
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
}

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  border-radius: var(--radius);
  padding: 0.85rem 1.4rem;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn-primary {
  background: var(--gold);
  color: var(--gold-ink);
}
.btn-primary:hover {
  background: var(--gold-bright);
  color: var(--gold-ink);
}
.btn-sm {
  padding: 0.55rem 0.95rem;
  font-size: 0.8rem;
}
.btn-block { width: 100%; }

.link-ghost {
  color: var(--ink-soft);
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.link-ghost:hover {
  color: var(--ink);
  border-bottom-color: var(--gold);
}

/* —— Hero —— */
.hero {
  position: relative;
  min-height: min(88vh, 720px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
}
.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(10, 10, 10, 0.92) 0%, rgba(10, 10, 10, 0.55) 48%, rgba(10, 10, 10, 0.25) 100%),
    linear-gradient(0deg, rgba(10, 10, 10, 0.85) 0%, transparent 45%);
}

.hero-layout {
  position: relative;
  z-index: 1;
  padding: var(--space-7) 0 var(--space-8);
  width: min(100% - 2rem, var(--max));
}

.hero-copy { max-width: 34rem; }

.eyebrow,
.section-kicker {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 var(--space-3);
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.4rem, 8vw, 4.25rem);
  line-height: 1.02;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin: 0 0 var(--space-4);
  color: #fff;
}

.lede {
  color: var(--ink-soft);
  font-size: 1.05rem;
  max-width: 28rem;
  margin: 0 0 var(--space-5);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
}

.hero-note {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}

/* —— Products —— */
.products {
  padding: var(--space-8) 0;
  background: var(--bg);
}

.section-head {
  margin-bottom: var(--space-6);
  max-width: 36rem;
}
.section-head h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0 0 var(--space-2);
  line-height: 1.1;
}
.section-sub {
  margin: 0;
  color: var(--muted);
}

.product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.product-card:hover {
  border-color: rgba(197, 160, 89, 0.55);
  background: var(--bg-card-hover);
}

.product-media {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  min-height: 320px;
  overflow: hidden;
  background: var(--media-studio);
  border: none;
  border-bottom: 1px solid var(--line);
  padding: 0;
  cursor: pointer;
  color: inherit;
}
.product-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.product-body {
  padding: var(--space-3) var(--space-4) var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  flex: 1;
}
.product-type {
  margin: 0;
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}
.product-body h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.2;
}
.product-title-btn {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  text-align: left;
  cursor: pointer;
}
.product-title-btn:hover {
  color: var(--gold-bright);
}
.product-meta {
  display: none;
}
.product-price {
  margin: 0;
  font-weight: 600;
  font-size: 1.05rem;
}
.product-stub {
  margin: 0;
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}
.product-actions {
  margin-top: var(--space-2);
}

/* —— About —— */
.about {
  padding: var(--space-8) 0;
  background: var(--bg-elev);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.about-inner {
  display: grid;
  gap: var(--space-6);
}
.about-copy h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.6rem, 3.5vw, 2.25rem);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin: 0 0 var(--space-4);
  line-height: 1.15;
}
.about-copy p { color: var(--ink-soft); }
.about-copy em { color: var(--ink); font-style: normal; font-weight: 600; }

.about-list {
  margin: var(--space-4) 0 0;
  padding: 0;
  list-style: none;
}
.about-list li {
  position: relative;
  padding: var(--space-2) 0 var(--space-2) 1.25rem;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
}
.about-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.1rem;
  width: 0.5rem;
  height: 2px;
  background: var(--gold);
}

.about-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  padding: var(--space-5);
}
.about-card h3 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 var(--space-4);
  font-size: 1rem;
  color: var(--gold);
}
.about-card ol {
  margin: 0 0 var(--space-4);
  padding-left: 1.25rem;
  color: var(--ink-soft);
}
.about-card li { margin-bottom: var(--space-2); }

/* —— Waitlist —— */
.waitlist {
  padding: var(--space-8) 0;
}
.waitlist-inner {
  max-width: 28rem;
}
.waitlist h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.6rem, 3.5vw, 2.25rem);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin: 0 0 var(--space-3);
}
.waitlist > .wrap > p,
.waitlist-inner > p {
  color: var(--ink-soft);
}

.waitlist-form {
  margin-top: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.field label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: var(--space-2);
}
.field input,
.field select {
  width: 100%;
  background: var(--bg-card);
  color: var(--ink);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 0.75rem 0.9rem;
  font-family: var(--font-body);
  font-size: 1rem;
}
.field input::placeholder { color: #555; }
.field input:focus,
.field select:focus {
  outline: none;
  border-color: var(--gold);
}
.field select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%),
    linear-gradient(135deg, var(--gold) 50%, transparent 50%);
  background-position: calc(100% - 18px) calc(50% - 3px), calc(100% - 12px) calc(50% - 3px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

.form-status { margin: 0; min-height: 1.25rem; font-size: 0.9rem; }
.form-status.ok { color: var(--ok); }
.form-status.err { color: var(--danger); }

/* —— Footer —— */
.site-footer {
  border-top: 1px solid var(--line);
  padding: var(--space-6) 0;
  background: var(--bg);
}
.footer-inner {
  display: grid;
  gap: var(--space-5);
}
.footer-brand {
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 0.06em;
}

/* —— Cart drawer —— */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  z-index: 80;
}
.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(100%, 380px);
  height: 100%;
  background: var(--bg-elev);
  border-left: 1px solid var(--line);
  z-index: 90;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.22s ease;
}
.cart-drawer.open { transform: translateX(0); }

.cart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid var(--line);
}
.cart-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.icon-btn {
  background: transparent;
  border: 1px solid var(--line-strong);
  color: var(--ink);
  width: 2.25rem;
  height: 2.25rem;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  border-radius: var(--radius);
}
.icon-btn:hover { border-color: var(--gold); color: var(--gold); }

.cart-items {
  list-style: none;
  margin: 0;
  padding: var(--space-4) var(--space-5);
  overflow-y: auto;
  flex: 1;
}
.cart-items li {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  gap: 0.35rem 0.75rem;
  align-items: start;
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--line);
}
.cart-items .cart-thumb {
  width: 52px;
  height: 52px;
  object-fit: contain;
  object-position: center;
  background: var(--media-studio);
  border: 1px solid var(--line);
}
.cart-line-body {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}
.cart-items .title {
  font-weight: 600;
  font-size: 0.9rem;
  line-height: 1.25;
}
.cart-items .meta {
  font-size: 0.75rem;
  color: var(--muted);
}
.cart-items .remove {
  justify-self: start;
  background: none;
  border: none;
  color: var(--gold);
  padding: 0;
  cursor: pointer;
  font-size: 0.85rem;
  text-decoration: underline;
  text-underline-offset: 2px;
  text-align: left;
}
.cart-line-price {
  font-weight: 600;
  white-space: nowrap;
}
.cart-items .empty {
  color: var(--muted);
  border: none;
  display: block;
  grid-template-columns: 1fr;
}

.cart-foot {
  padding: var(--space-4) var(--space-5) var(--space-5);
  border-top: 1px solid var(--line);
}
.cart-total {
  margin: 0 0 var(--space-3);
  font-size: 1.05rem;
}

/* —— Modal —— */
.modal[hidden] { display: none !important; }
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
}
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
}
.modal-card {
  position: relative;
  z-index: 1;
  width: min(100%, 400px);
  background: var(--bg-card);
  border: 1px solid var(--line-strong);
  padding: var(--space-6);
}
.modal-card h2 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 1.15rem;
  margin: 0 0 var(--space-3);
}
.modal-card p {
  color: var(--ink-soft);
  margin: 0 0 var(--space-5);
}

/* —— Breakpoints —— */
@media (min-width: 700px) {
  .nav { display: flex; }
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-6);
  }
  .product-media {
    min-height: 420px;
  }
}

@media (min-width: 900px) {
  .about-inner {
    grid-template-columns: 1.4fr 1fr;
    align-items: start;
  }
  .footer-inner {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
  .hero {
    align-items: center;
  }
  .hero-layout {
    padding: var(--space-8) 0;
  }
  .product-media {
    min-height: 480px;
  }
  .pdp-layout {
    grid-template-columns: 1.1fr 0.9fr;
  }
  .pdp-gallery {
    border-bottom: none;
    border-right: 1px solid var(--line);
  }
  .pdp-media {
    min-height: min(40vh, 400px);
  }
}

/* —— Product detail panel (PDP) —— */
body.pdp-open { overflow: hidden; }

.pdp-modal[hidden] { display: none !important; }
.pdp-modal {
  position: fixed;
  inset: 0;
  z-index: 95;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
}
.pdp-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
}
.pdp-panel {
  position: relative;
  z-index: 1;
  width: min(100%, 960px);
  max-height: calc(100vh - 2rem);
  overflow: auto;
}
.pdp-card {
  max-height: min(92vh, 900px);
  overflow-y: auto;
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--line-strong);
}
.pdp-close {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  z-index: 2;
}
.pdp-layout {
  display: grid;
  grid-template-columns: 1fr;
}
.pdp-gallery {
  background: var(--media-studio);
  border-bottom: 1px solid var(--line);
}
.pdp-media {
  aspect-ratio: 1 / 1;
  min-height: min(36vh, 360px);
  overflow: hidden;
  background: var(--media-studio);
}
.pdp-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}
.pdp-thumbs {
  display: flex;
  gap: var(--space-2);
  padding: var(--space-3);
  overflow-x: auto;
}
.pdp-thumb {
  flex: 0 0 auto;
  width: 64px;
  height: 80px;
  padding: 0;
  border: 1px solid var(--line);
  background: var(--media-studio);
  cursor: pointer;
  border-radius: 0;
}
.pdp-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}
.pdp-thumb.is-active,
.pdp-thumb:hover {
  border-color: var(--gold);
}
.pdp-info {
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.pdp-info h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.15;
  padding-right: 2.5rem;
}
.pdp-price {
  margin: 0;
  font-weight: 600;
  font-size: 1.15rem;
}
.pdp-blurb {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.55;
}
.pdp-info .btn {
  align-self: flex-start;
  margin-top: var(--space-2);
}
