/* Hangar Ink — retro hangar look: light brushed aluminum, faded stencil, worn poster type.
   No glassy blur, no pill buttons, no tech gradients. */

@font-face {
  font-family: "Allerta Stencil";
  src: url("../fonts/AllertaStencil-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Barlow Condensed";
  src: url("../fonts/BarlowCondensed-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Barlow Condensed";
  src: url("../fonts/BarlowCondensed-Italic.ttf") format("truetype");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Barlow Condensed";
  src: url("../fonts/BarlowCondensed-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Barlow Condensed";
  src: url("../fonts/BarlowCondensed-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Barlow Condensed";
  src: url("../fonts/BarlowCondensed-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Barlow Condensed";
  src: url("../fonts/BarlowCondensed-ExtraBold.ttf") format("truetype");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Barlow Condensed";
  src: url("../fonts/BarlowCondensed-ExtraBoldItalic.ttf") format("truetype");
  font-weight: 800;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Barlow Condensed";
  src: url("../fonts/BarlowCondensed-Black.ttf") format("truetype");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Barlow Condensed";
  src: url("../fonts/BarlowCondensed-BlackItalic.ttf") format("truetype");
  font-weight: 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Barlow";
  src: url("../fonts/Barlow-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Barlow";
  src: url("../fonts/Barlow-Italic.ttf") format("truetype");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Barlow";
  src: url("../fonts/Barlow-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Barlow";
  src: url("../fonts/Barlow-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Barlow";
  src: url("../fonts/Barlow-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Painted plates (header, cards, dialog, footer, admin panels) */
  --ink: #14110e;
  --ink-2: #1c1713;
  --ink-3: #241c16;
  --cream: #e6d4b0;
  --cream-dim: #c4b089;
  --cream-muted: #8a7a5c;
  --gold: #c4a05a;
  --gold-soft: #b08a4a;
  --rust: #8c3a22;
  --oxide: #6a2a1a;
  --oxide-red: #a3482c;
  --line: rgba(198, 168, 110, 0.22);
  --line-strong: rgba(198, 168, 110, 0.42);
  /* Bare light aluminum (page background and type that sits on it) */
  --metal: #c5bdb2;
  --text: #1a1613;
  --text-dim: #3a342e;
  --text-muted: #423c36;
  --accent: #642818;
  --accent-hover: #4a1e10;
  --seam: rgba(66, 60, 54, 0.32);
  --seam-hi: rgba(255, 250, 240, 0.38);
  --max: 1180px;
  --stencil: "Allerta Stencil", "Barlow Condensed", sans-serif;
  --display: "Barlow Condensed", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  padding: 0;
  background-color: var(--metal);
  color: var(--text);
}

body {
  font-family: Barlow, "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  min-height: 100vh;
  position: relative;
  text-rendering: optimizeLegibility;
  /* scroll (not fixed) so the skin tiles over the full document height */
  background-image: url("../images/textures/brushed-aluminum.png");
  background-size: 512px 512px;
  background-repeat: repeat;
  background-attachment: scroll;
}

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

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

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

.site-footer a,
.signup a,
.design-dialog a,
.adm-app a {
  color: var(--gold);
}

.site-footer a:hover,
.signup a:hover,
.design-dialog a:hover,
.adm-app a:hover {
  color: var(--cream);
}

.skip {
  position: absolute;
  left: 0.75rem;
  top: -100px;
  background: var(--rust);
  color: var(--cream);
  padding: 0.5rem 0.85rem;
  z-index: 100;
  font-family: var(--stencil);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 2px solid var(--gold);
}

.skip:focus {
  top: 0.5rem;
}

/* Overlays: a light oxide wash, then grain. Absolute so they cover tall pages.
   Neither intercepts clicks. */
.rust-wash,
.grain {
  pointer-events: none;
  position: absolute;
  inset: 0;
}

.rust-wash {
  z-index: 45;
  opacity: 0.18;
  background: url("../images/textures/rust-stains.png") repeat;
  background-size: 520px 520px;
  mix-blend-mode: soft-light;
}

.grain {
  z-index: 50;
  opacity: 0.08;
  background: url("../images/textures/grain.png") repeat;
  background-size: 128px 128px;
}

/* Banner + nav share one sticky stack so the nav never slides under the banner. */
.sticky-top {
  position: sticky;
  top: 0;
  z-index: 40;
}

.preview-banner {
  position: relative;
  z-index: 40;
  background-color: #3a2218;
  background-image:
    url("../images/textures/rust-stains.png"),
    url("../images/textures/metal-rivets.png");
  background-size: 380px, 280px;
  color: var(--cream);
  border-bottom: 2px solid var(--gold);
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.45);
  font-family: var(--stencil);
  font-size: 0.86rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-align: center;
  padding: 0.6rem 1rem;
  line-height: 1.35;
}

.preview-banner strong {
  color: var(--gold);
  font-weight: 400;
}

/* Nav — riveted plate, no blur, no glass */
.site-header {
  position: relative;
  z-index: 30;
  background-color: rgba(16, 13, 10, 0.96);
  background-image: url("../images/textures/metal-rivets.png");
  background-size: 320px;
  border-bottom: 2px solid #2a2018;
  box-shadow: 0 1px 0 var(--gold-soft);
}

.rivet-row {
  display: block;
  height: 10px;
  background-image: radial-gradient(circle at 50% 50%, #7a5a40 0 1.6px, #3a2a20 2px, transparent 2.4px);
  background-size: 22px 10px;
  background-repeat: repeat-x;
  background-position: center;
  opacity: 0.9;
}

.nav-wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.55rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

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

.brand-lockup img {
  width: 248px;
  height: auto;
  object-fit: contain;
  flex: 0 0 auto;
}

.nav-links {
  display: flex;
  gap: 1.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: var(--stencil);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.86rem;
}

.nav-links a {
  color: var(--cream);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 0.12rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.75);
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.kicker {
  font-family: var(--stencil);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  font-size: 0.78rem;
  margin: 0 0 0.75rem;
}

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: 0.01em;
  margin: 0 0 0.75rem;
  color: var(--text);
}

h1, h2 {
  -webkit-mask-image: url("../images/textures/type-distress.png");
  mask-image: url("../images/textures/type-distress.png");
  -webkit-mask-size: 280px;
  mask-size: 280px;
  -webkit-mask-repeat: repeat;
  mask-repeat: repeat;
}

h1 {
  font-size: clamp(2.6rem, 6.4vw, 5.4rem);
  text-transform: uppercase;
  max-width: 14ch;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  text-transform: uppercase;
}

h3 {
  font-size: 1.45rem;
  line-height: 1.15;
  text-transform: none;
  font-weight: 800;
}

.lede {
  font-size: 1.15rem;
  color: var(--text-dim);
  max-width: 38rem;
  margin: 0 0 1.6rem;
}

/* Hero — poster on a hangar wall */
.hero {
  position: relative;
  overflow: hidden;
  padding: 3.2rem 0 4rem;
  background-color: transparent;
  border-bottom: 1px solid var(--seam);
  box-shadow: 0 1px 0 var(--seam-hi);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(260px, 520px) 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-badge {
  margin: 0 auto;
  width: 100%;
  max-width: 520px;
}

/* Worn paper / pasted-poster frame around the badge */
.poster-frame {
  background:
    url("../images/textures/worn-paper.png") repeat,
    #d8c4a0;
  background-size: 220px, auto;
  padding: 0.85rem 0.85rem 1rem;
  border: 1px solid #3a2a1c;
  box-shadow:
    0 0 0 2px #8a6a40,
    0 18px 36px rgba(0, 0, 0, 0.45),
    inset 0 0 0 1px rgba(255, 230, 190, 0.25);
}

.poster-frame img {
  width: 100%;
  height: auto;
  display: block;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--stencil);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.9rem 1.25rem;
  border-radius: 0;
  border: 2px solid var(--gold);
  line-height: 1;
  min-height: 2.85rem;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.35);
}

.btn-primary {
  background: var(--rust);
  color: var(--cream);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--oxide-red);
  color: var(--cream);
  border-color: var(--cream);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: rgba(66, 60, 54, 0.55);
  box-shadow: inset 0 0 0 1px rgba(66, 60, 54, 0.08);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
}

.design-dialog .btn-ghost,
.signup .btn-ghost,
.adm-head .btn-ghost,
.adm-login .btn-ghost,
.adm-panel .btn-ghost,
.adm-ver .btn-ghost,
.adm-actions .btn-ghost {
  color: var(--cream);
  border-color: var(--line-strong);
  box-shadow: inset 0 0 0 1px rgba(198, 168, 110, 0.15);
}

.design-dialog .btn-ghost:hover,
.design-dialog .btn-ghost:focus-visible,
.signup .btn-ghost:hover,
.signup .btn-ghost:focus-visible,
.adm-head .btn-ghost:hover,
.adm-head .btn-ghost:focus-visible,
.adm-login .btn-ghost:hover,
.adm-login .btn-ghost:focus-visible,
.adm-panel .btn-ghost:hover,
.adm-panel .btn-ghost:focus-visible,
.adm-ver .btn-ghost:hover,
.adm-ver .btn-ghost:focus-visible,
.adm-actions .btn-ghost:hover,
.adm-actions .btn-ghost:focus-visible {
  border-color: var(--gold);
  color: var(--gold);
}

.hero-note {
  margin: 1.4rem 0 0;
  color: var(--text-muted);
  font-size: 0.92rem;
  max-width: 36rem;
}

/* Shop */
.section {
  padding: 4.25rem 0;
  position: relative;
}

.section + .section {
  border-top: 1px solid var(--seam);
  box-shadow: 0 -1px 0 var(--seam-hi);
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-end;
  margin-bottom: 2rem;
}

.section-head p {
  margin: 0;
  color: var(--text-dim);
  max-width: 28rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem 1.25rem;
}

.card {
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-width: 0;
  color: inherit;
  text-decoration: none;
  box-shadow:
    inset 0 0 0 1px rgba(0, 0, 0, 0.35),
    0 0 0 1px #1a1410;
  position: relative;
}

/* Corner rivets on product cards */
.card::before,
.card::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, #c4a07a 0 1.2px, #6a4a32 2.2px, #3a2418 3.2px, transparent 3.5px);
  z-index: 2;
  pointer-events: none;
  top: 6px;
}

.card::before { left: 6px; }
.card::after { right: 6px; }

.card-media {
  position: relative;
  aspect-ratio: 3 / 4;
  background: #111;
  overflow: hidden;
  border-bottom: 1px solid #2a2018;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
}

.tag {
  position: absolute;
  right: 0.7rem;
  top: 0.7rem;
  background: var(--rust);
  color: var(--cream);
  border: 1px solid var(--gold);
  border-radius: 0;
  font-family: var(--stencil);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.68rem;
  padding: 0.36rem 0.5rem;
  line-height: 1;
}

.card-body {
  padding: 0.95rem 1rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  flex: 1;
  background-color: #2a221c;
  background-image: url("../images/textures/worn-paper.png");
  background-size: 280px;
  background-blend-mode: multiply;
}

.card-id {
  font-family: var(--stencil);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-soft);
  font-size: 0.72rem;
  margin: 0;
}

.card-body h3 {
  margin: 0;
  font-size: 1.28rem;
}

.card-meta {
  margin: 0.25rem 0 0;
  color: var(--cream-muted);
  font-size: 0.8rem;
}

.homebuilt {
  background-color: transparent;
}

.feature {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.feature-media {
  position: relative;
  border: 1px solid var(--line);
  background: var(--ink-2);
  overflow: hidden;
  box-shadow:
    0 0 0 2px #2a2018,
    0 0 0 3px var(--gold-soft);
}

.feature-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center 18%;
}

.feature-copy .lede {
  margin-bottom: 1.1rem;
}

.subhead {
  font-family: var(--display);
  font-weight: 800;
  font-style: italic;
  color: var(--gold);
  font-size: 1.35rem;
  margin: -0.2rem 0 1rem;
}

/* About + signup */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: start;
}

.about-grid p {
  color: var(--text-dim);
  margin: 0 0 1rem;
}

.about-grid p:last-child {
  margin-bottom: 0;
}

.signup {
  background-color: var(--ink-3);
  background-image: url("../images/textures/metal-rivets.png");
  background-size: 320px;
  border: 2px solid var(--gold-soft);
  padding: 1.6rem 1.4rem 1.45rem;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.5);
  position: relative;
}

.signup::before,
.signup::after {
  content: "";
  position: absolute;
  top: 7px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #c4a07a 0 1.2px, #6a4a32 2.2px, #3a2418 3.2px, transparent 3.5px);
}

.signup::before { left: 7px; }
.signup::after { right: 7px; }

.signup h3 {
  text-transform: uppercase;
  margin-bottom: 0.4rem;
  font-family: var(--stencil);
  font-weight: 400;
  letter-spacing: 0.08em;
  font-size: 1.35rem;
  line-height: 1.15;
}

.signup p {
  margin: 0 0 1rem;
  color: var(--cream-dim);
}

.signup-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.signup-form label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.signup-form input[type="email"] {
  flex: 1 1 180px;
  min-width: 0;
  background: #120e0b;
  border: 1px solid var(--line-strong);
  border-radius: 0;
  color: var(--cream);
  font: inherit;
  padding: 0.75rem 0.85rem;
}

.signup-form input[type="email"]:focus {
  outline: 2px solid var(--gold);
  outline-offset: 1px;
}

.signup-form button {
  cursor: pointer;
}

.form-note {
  margin: 0.85rem 0 0;
  color: var(--gold);
  font-size: 0.95rem;
}

.form-note[hidden] {
  display: none;
}

/* Footer */
.site-footer {
  border-top: 2px solid #2a2018;
  box-shadow: 0 -1px 0 var(--gold-soft);
  padding: 0 0 2.6rem;
  background-color: #100c0a;
  background-image: url("../images/textures/metal-rivets.png");
  background-size: 380px;
  color: var(--cream-dim);
  font-size: 0.92rem;
}

.site-footer .rivet-row {
  margin-bottom: 1.6rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(180px, 280px) 1fr;
  gap: 2rem;
  align-items: start;
}

.footer-brand {
  display: block;
}

.footer-brand img {
  width: 260px;
  height: auto;
  object-fit: contain;
}

.site-footer ul {
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
}

.site-footer li + li {
  margin-top: 0.35rem;
}

@media (max-width: 980px) {
  .hero-grid,
  .feature,
  .about-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-badge {
    max-width: 400px;
  }

  h1 {
    max-width: none;
  }

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

  .hero {
    padding: 2.2rem 0 2.8rem;
  }

  .feature-media {
    max-width: 420px;
  }
}

@media (max-width: 640px) {
  .nav-wrap {
    padding: 0.55rem 0.9rem 0.7rem;
    gap: 0.55rem;
    flex-direction: column;
    align-items: stretch;
  }

  .brand-lockup img {
    width: 200px;
  }

  .nav-links {
    width: 100%;
    justify-content: space-between;
    gap: 0.5rem;
    font-size: 0.78rem;
    letter-spacing: 0.12em;
  }

  .wrap {
    padding: 0 0.9rem;
  }

  .grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.9rem 0.7rem;
  }

  .card-body {
    padding: 0.7rem 0.7rem 0.85rem;
  }

  .card-body h3 {
    font-size: 1.05rem;
  }

  .card-media .tag {
    top: auto;
    bottom: 0.7rem;
  }

  .feature-media {
    max-width: none;
  }

  .feature-media .tag {
    top: 0.7rem;
    bottom: auto;
  }

  .signup-form {
    flex-direction: column;
    align-items: stretch;
  }

  .signup-form input[type="email"] {
    flex: 0 0 auto;
    width: 100%;
  }

  .signup-form button {
    width: 100%;
  }

  .hero {
    padding: 1.5rem 0 2rem;
  }

  .hero-grid {
    gap: 1.4rem;
  }

  .section {
    padding: 2.8rem 0;
  }

  .preview-banner {
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    padding: 0.5rem 0.7rem;
  }

  .footer-brand img {
    width: 220px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .rust-wash,
  .grain {
    mix-blend-mode: normal;
    opacity: 0.10;
  }
  .grain { opacity: 0.05; }
}

/* ---------- Shop grid loaded from the API ---------- */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 0 0 1.4rem;
}

.chip {
  font-family: var(--stencil);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  background: transparent;
  border: 1px solid rgba(66, 60, 54, 0.45);
  border-radius: 0;
  padding: 0.55rem 1rem;
  cursor: pointer;
}

.chip:hover,
.chip:focus-visible {
  color: var(--text);
  border-color: var(--accent);
}

.adm-head .chip {
  color: var(--cream-dim);
  border-color: var(--line-strong);
}

.adm-head .chip:hover,
.adm-head .chip:focus-visible {
  color: var(--cream);
  border-color: var(--gold);
}

.chip[aria-pressed="true"] {
  background: var(--rust);
  border-color: var(--oxide-red);
  color: #f1e2c2;
}

.chip small { opacity: 0.7; margin-left: 0.35rem; }

.collection-note {
  color: var(--text-dim);
  margin: 0 0 1.4rem;
  max-width: 62ch;
}

.card-price {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--gold);
  margin: 0.4rem 0 0;
}

.card-price small {
  font-family: var(--stencil);
  font-weight: 400;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cream-muted);
  margin-left: 0.4rem;
}

a.card:hover,
a.card:focus-visible {
  border-color: var(--gold-soft);
  outline: none;
  transform: translateY(-2px);
}

.soon {
  border: 1px dashed rgba(66, 60, 54, 0.4);
  background: rgba(255, 250, 240, 0.22);
  padding: 2.4rem 1.6rem;
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}

.soon h3 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  text-transform: uppercase;
  margin: 0.2rem 0 0.6rem;
}

.soon p { color: var(--text-dim); margin: 0 auto 1.2rem; max-width: 52ch; }

/* ---------- Design dialog ---------- */
.design-dialog {
  width: min(960px, calc(100vw - 1.5rem));
  max-height: calc(100vh - 2rem);
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 0;
  background: #1a1511;
  color: var(--cream);
  overflow: auto;
}

.design-dialog::backdrop { background: rgba(8, 6, 4, 0.82); }

.dlg-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
}

.dlg-media {
  background: #0e0b09;
  position: relative;
  display: flex;
  flex-direction: column;
}

.dlg-media button.dlg-img {
  display: block;
  border: 0;
  padding: 0;
  background: none;
  cursor: zoom-in;
}

.dlg-media img { display: block; width: 100%; height: auto; }

.dlg-tabs {
  display: flex;
  gap: 0;
  border-top: 1px solid var(--line);
}

.dlg-tabs button {
  flex: 1;
  font-family: var(--stencil);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.7rem 0.5rem;
  background: #14110e;
  color: var(--cream-muted);
  border: 0;
  border-right: 1px solid var(--line);
  cursor: pointer;
}

.dlg-tabs button[aria-pressed="true"] { background: var(--oxide); color: var(--cream); }

.dlg-copy { padding: 1.6rem 1.6rem 1.4rem; }
.dlg-copy h3 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); text-transform: uppercase; margin: 0.1rem 0 0.4rem; }
.dlg-copy p { color: var(--cream-dim); }
.dlg-close {
  position: absolute; right: 0.6rem; top: 0.6rem; z-index: 3;
  background: #1a120e; color: var(--cream); border: 1px solid var(--line-strong);
  width: 2.4rem; height: 2.4rem; font-size: 1.3rem; cursor: pointer; border-radius: 0;
}
.dlg-colors { list-style: none; padding: 0; margin: 0.8rem 0; display: flex; gap: 0.5rem; flex-wrap: wrap; }
.dlg-colors li {
  font-family: var(--stencil); font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase;
  border: 1px solid var(--line-strong); padding: 0.25rem 0.6rem;
}
.dlg-buy { margin-top: 1.2rem; display: flex; gap: 0.7rem; flex-wrap: wrap; align-items: center; }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; }
.btn[hidden] { display: none; }
.btn-primary:disabled:hover,
.btn-primary:disabled:focus-visible {
  background: var(--rust);
  border-color: var(--gold);
  color: var(--cream);
}

.dlg-color-text {
  font-family: var(--stencil);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cream-dim);
  margin: 0.8rem 0 0.2rem;
}

.dlg-options {
  border: 0;
  margin: 0.85rem 0 0;
  padding: 0;
  min-inline-size: 0;
}
.dlg-options legend {
  font-family: var(--stencil);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cream-muted);
  padding: 0;
}
.dlg-chips {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
  margin: 0.55rem 0 0;
}
.dlg-chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--stencil);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cream-dim);
  background: transparent;
  border: 1px solid var(--line-strong);
  padding: 0.45rem 0.75rem;
  cursor: pointer;
}
.dlg-chip:hover,
.dlg-chip:focus-within {
  color: var(--cream);
  border-color: var(--gold);
}
.dlg-chip:has(input:checked) {
  background: var(--rust);
  border-color: var(--oxide-red);
  color: #f1e2c2;
}
.dlg-chip input {
  appearance: none;
  -webkit-appearance: none;
  width: 1px;
  height: 1px;
  margin: 0;
  position: absolute;
  opacity: 0;
}
.dlg-chip:focus-within {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.dlg-size-hint,
.dlg-size-empty {
  flex-basis: 100%;
  margin: 0.2rem 0 0;
  font-size: 0.85rem;
  color: var(--cream-muted);
}

.dlg-guide {
  margin: 0.95rem 0 0;
  border: 1px solid var(--line);
  background: #14110e;
}
.dlg-guide summary {
  font-family: var(--stencil);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cream-muted);
  cursor: pointer;
  padding: 0.55rem 0.7rem;
}
.dlg-guide summary:hover,
.dlg-guide summary:focus-visible {
  color: var(--cream);
}
.dlg-guide-product,
.dlg-guide-note {
  margin: 0;
  padding: 0 0.7rem 0.55rem;
  font-size: 0.82rem;
  color: var(--cream-muted);
}
.dlg-guide table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  color: var(--cream-dim);
}
.dlg-guide th,
.dlg-guide td {
  padding: 0.35rem 0.7rem;
  text-align: left;
  border-top: 1px solid var(--line);
}
.dlg-guide thead th {
  font-family: var(--stencil);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cream-muted);
  font-weight: 400;
}
.dlg-guide tbody th {
  font-family: var(--stencil);
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--cream);
}
.dlg-media.is-zoomed img { max-width: none; width: 160%; }
.dlg-media.is-zoomed { overflow: auto; max-height: 82vh; }
.dlg-media.is-zoomed button.dlg-img { cursor: zoom-out; }

.dlg-thumbs {
  display: flex;
  gap: 0.4rem;
  padding: 0.5rem;
  overflow-x: auto;
  border-top: 1px solid var(--line);
  background: #14110e;
}
.dlg-thumbs button {
  border: 2px solid transparent;
  padding: 0;
  background: #0e0b09;
  cursor: pointer;
  width: 4.6rem;
  flex: 0 0 auto;
}
.dlg-thumbs button[aria-current="true"] { border-color: var(--gold); }
.dlg-thumbs img { width: 100%; height: 4.6rem; object-fit: cover; display: block; }


@media (max-width: 760px) {
  .dlg-grid { grid-template-columns: 1fr; }
}

/* Headings on painted plates keep the cream stencil color. */
.card h3,
.signup h3,
.design-dialog h3,
.adm-app h1,
.adm-app h2,
.adm-app h3 {
  color: var(--cream);
}

/* ---- contact page ---- */
.contact-card { max-width: 560px; }
.contact-form { display: grid; gap: 0.9rem; }
.contact-form label {
  display: block;
  font-family: var(--stencil);
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cream-dim);
  margin-bottom: 0.3rem;
}
.cf-opt { color: var(--cream-muted); text-transform: none; letter-spacing: 0; font-family: inherit; }
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form select,
.contact-form textarea {
  width: 100%;
  background: #120e0b;
  border: 1px solid var(--line-strong);
  border-radius: 0;
  color: var(--cream);
  font: inherit;
  padding: 0.7rem 0.85rem;
}
.contact-form textarea { min-height: 9rem; resize: vertical; }
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
/* honeypot: off-screen, not display:none (some bots skip hidden fields) */
.cf-trap { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.contact-form button { justify-self: start; cursor: pointer; }
.contact-form button:disabled { opacity: 0.6; cursor: wait; }
.form-note[data-kind="bad"] { color: #f1b8a0; }
.form-note[data-kind="ok"] { color: #cfe3b8; }
.contact-direct, .contact-privacy { color: var(--text-dim); }
.contact-privacy { font-size: 0.92rem; }
.nav-links a[aria-current="page"] { color: var(--gold); }

/* ---------- cart drawer + order success (shown only when the shop is open and checkout is on) ---------- */
.nav-cart[hidden] { display: none; }
.cart-btn {
  font: inherit; letter-spacing: inherit; text-transform: inherit; color: var(--cream); background: transparent;
  border: 1px solid var(--line-strong); border-radius: 0; padding: 0.3rem 0.7rem; cursor: pointer;
}
.cart-btn:hover, .cart-btn:focus-visible { color: var(--gold); border-color: var(--gold); }
.cart-count {
  display: inline-block; min-width: 1.4em; padding: 0 0.3em; margin-left: 0.2em; text-align: center;
  background: var(--rust); color: var(--cream); font-size: 0.8em; line-height: 1.5;
}
.cart-backdrop { position: fixed; inset: 0; z-index: 90; background: rgba(8, 6, 4, 0.72); }
.cart-backdrop[hidden], .cart-drawer[hidden], .cart-foot[hidden], .cart-empty[hidden], .cart-status[hidden] { display: none; }
.cart-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 100; width: min(440px, 100vw);
  display: flex; flex-direction: column; background: #1a1511; color: var(--cream);
  border-left: 2px solid var(--gold-soft); box-shadow: -8px 0 0 rgba(0, 0, 0, 0.25);
}
.cart-drawer:focus { outline: none; }
.cart-head { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.2rem; border-bottom: 1px solid var(--line-strong); }
.cart-head h2 { margin: 0; font-size: 1.7rem; text-transform: uppercase; color: var(--cream); }
.cart-close { position: static; }
.cart-body { flex: 1; overflow: auto; padding: 0.4rem 1.2rem; }
.cart-empty { color: var(--cream-dim); padding: 1.2rem 0; }
.cart-lines { list-style: none; margin: 0; padding: 0; }
.cart-line { display: grid; grid-template-columns: 72px 1fr; gap: 0.9rem; padding: 0.9rem 0; border-bottom: 1px solid var(--line); }
.cart-line img, .cart-noimg { width: 72px; height: 96px; object-fit: cover; background: #0e0b09; border: 1px solid var(--line); display: block; }
.cart-line p { margin: 0 0 0.15rem; color: var(--cream-dim); }
.cart-line .card-id { color: var(--gold); }
.cart-line-title { font-family: var(--display); font-weight: 700; font-size: 1.25rem; text-transform: uppercase; color: var(--cream) !important; line-height: 1.1; }
.cart-line-row { display: flex; align-items: center; gap: 0.8rem; flex-wrap: wrap; margin-top: 0.5rem; }
.cart-qty { display: inline-flex; align-items: center; border: 1px solid var(--line-strong); }
.cart-qty-btn { background: transparent; color: var(--cream); border: 0; width: 2rem; height: 2rem; font-size: 1.1rem; cursor: pointer; }
.cart-qty-btn:hover:not(:disabled), .cart-qty-btn:focus-visible { background: var(--oxide); }
.cart-qty-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.cart-qty-n { min-width: 1.8rem; text-align: center; color: var(--cream); }
.cart-line-price { font-family: var(--stencil); color: var(--cream); margin-left: auto; }
.cart-remove { background: none; border: 0; color: var(--cream-muted); text-decoration: underline; cursor: pointer; font: inherit; font-size: 0.85rem; padding: 0.2rem; }
.cart-remove:hover, .cart-remove:focus-visible { color: var(--gold); }
.cart-foot { padding: 1rem 1.2rem 1.3rem; border-top: 1px solid var(--line-strong); background: #15100d; }
.cart-subtotal { display: flex; justify-content: space-between; font-family: var(--stencil); letter-spacing: 0.1em; text-transform: uppercase; margin: 0 0 0.3rem; color: var(--cream); }
.cart-subtotal strong { font-size: 1.25rem; }
.cart-ship { margin: 0 0 0.3rem; color: var(--gold); font-family: var(--stencil); letter-spacing: 0.12em; text-transform: uppercase; font-size: 0.8rem; }
.cart-foot .card-meta { color: var(--cream-muted); margin: 0 0 0.9rem; }
.cart-checkout { width: 100%; }
.cart-status { margin: 0.7rem 0 0; color: var(--cream-dim); }
.cart-status[data-kind="bad"] { color: #f1b8a0; }
html.cart-open { overflow: hidden; }

.order-card { max-width: 640px; margin: 0 auto; padding: 2rem; border: 1px solid var(--line-strong); background: #1a1511; color: var(--cream); }
.order-card h2 { text-transform: uppercase; color: var(--cream); margin-top: 0; }
.order-card p { color: var(--cream-dim); }
.order-card .order-ref { font-family: var(--stencil); letter-spacing: 0.14em; color: var(--gold); font-size: 1.1rem; }
.order-card a:not(.btn) { color: var(--gold); }
