/* =========================================================================
   THE PLATE ROOM — design tokens
   A small print studio's stockroom, not a generic "dark mode SaaS".
   ========================================================================= */
:root {
  --ink: #14171f;
  --ink-2: #1c212c;
  --ink-3: #232939;
  --line: rgba(234, 230, 218, 0.12);
  --line-strong: rgba(234, 230, 218, 0.22);

  --paper: #f3efe4;
  --text: #eae6da;
  --text-dim: #9aa0ae;
  --text-faint: #6b7280;

  --gold: #c9a227;
  --gold-bright: #e0bd49;
  --rust: #a8452f;
  --rust-bright: #c25a3f;
  --green: #5b8266;

  --radius: 3px;
  --radius-lg: 6px;

  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --container: 1180px;
}

/* =========================================================================
   Reset & base
   ========================================================================= */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; margin: 0 0 0.5em; letter-spacing: -0.01em; }
p { margin: 0 0 1em; color: var(--text-dim); }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }

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

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}

/* =========================================================================
   Buttons
   ========================================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14.5px;
  letter-spacing: 0.01em;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--gold);
  color: #191307;
}
.btn-primary:hover { background: var(--gold-bright); }
.btn-outline {
  background: transparent;
  color: var(--text);
  border-color: var(--line-strong);
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold-bright); }
.btn-block { width: 100%; justify-content: center; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* =========================================================================
   Site header
   ========================================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(20, 23, 31, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 600;
  color: var(--paper);
}
.brand img { height: 34px; width: auto; }
.brand .mark {
  width: 34px; height: 34px;
  border: 1.5px solid var(--gold);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--gold);
}
.main-nav { display: flex; align-items: center; gap: 36px; }
.main-nav a {
  font-size: 14.5px;
  color: var(--text-dim);
  font-weight: 500;
  transition: color 0.15s ease;
}
.main-nav a:hover, .main-nav a.active { color: var(--paper); }
.nav-toggle { display: none; background: none; border: none; color: var(--text); }

@media (max-width: 800px) {
  .main-nav { display: none; }
  .nav-toggle { display: block; }
}

/* =========================================================================
   Hero — "Current Release"
   ========================================================================= */
.hero {
  position: relative;
  padding: 92px 0 72px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 480px;
  background: radial-gradient(60% 60% at 30% 20%, rgba(201, 162, 39, 0.14), transparent 70%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(38px, 5vw, 58px);
  line-height: 1.06;
  color: var(--paper);
  margin: 18px 0 22px;
}
.hero h1 em { color: var(--gold-bright); font-style: normal; }
.hero .lede { font-size: 17px; max-width: 46ch; }
.hero-actions { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }

.hero-stack { position: relative; height: 420px; }
.plate-card {
  position: absolute;
  width: 240px;
  background: var(--ink-2);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  padding: 10px 10px 16px;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.55);
}
.plate-card img { border-radius: 2px; aspect-ratio: 5/7; object-fit: cover; }
.plate-card .tag { font-family: var(--font-mono); font-size: 11px; color: var(--gold); margin-top: 10px; letter-spacing: 0.08em; }
.hero-stack .c1 { top: 0; left: 40px; transform: rotate(-6deg); z-index: 1; }
.hero-stack .c2 { top: 40px; left: 190px; transform: rotate(4deg); z-index: 2; }
.hero-stack .c3 { top: 130px; left: 90px; transform: rotate(-2deg); z-index: 3; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-stack { height: 300px; margin-top: 20px; }
  .plate-card { width: 170px; }
  .hero-stack .c1 { left: 10px; }
  .hero-stack .c2 { left: 130px; top: 30px; }
  .hero-stack .c3 { left: 60px; top: 100px; }
}

/* =========================================================================
   Section headers
   ========================================================================= */
.section { padding: 72px 0; }
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 34px;
  gap: 20px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 20px;
}
.section-head h2 { font-size: 30px; color: var(--paper); margin: 6px 0 0; }
.section-head .view-all { font-size: 14px; color: var(--gold); white-space: nowrap; }

/* =========================================================================
   Product grid & "plate" card
   ========================================================================= */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
@media (max-width: 940px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid { grid-template-columns: 1fr; } }

.card {
  position: relative;
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.card:hover { border-color: var(--line-strong); transform: translateY(-3px); }
.card .frame { position: relative; aspect-ratio: 5/6; overflow: hidden; background: var(--ink-3); }
.card .frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.card:hover .frame img { transform: scale(1.04); }

.plate-no {
  position: absolute;
  top: 12px; left: 12px;
  background: rgba(20,23,31,0.82);
  border: 1px solid var(--line-strong);
  color: var(--gold-bright);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  padding: 5px 9px;
  border-radius: 2px;
  backdrop-filter: blur(4px);
}
.status-pill {
  position: absolute;
  top: 12px; right: 12px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 9px;
  border-radius: 2px;
  background: rgba(168, 69, 47, 0.85);
  color: #fff2ec;
}
.status-pill.available { background: rgba(91, 130, 102, 0.85); }

.card-body { padding: 18px 18px 20px; }
.card-body h3 { font-size: 18px; color: var(--paper); margin-bottom: 4px; }
.card-cat { font-size: 12.5px; color: var(--text-faint); margin-bottom: 10px; }
.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
}
.price-tag { font-family: var(--font-mono); color: var(--gold-bright); font-size: 16px; font-weight: 600; }
.card-foot .btn { padding: 9px 16px; font-size: 13px; }

/* =========================================================================
   Filters / toolbar (shop page)
   ========================================================================= */
.toolbar {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 30px;
}
.field {
  background: var(--ink-2);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  color: var(--text);
  padding: 11px 14px;
  font-family: var(--font-body);
  font-size: 14.5px;
}
.field:focus { outline: none; border-color: var(--gold); }
.toolbar .search { flex: 1; min-width: 220px; }
.result-count { font-family: var(--font-mono); font-size: 12.5px; color: var(--text-faint); }

/* =========================================================================
   Product detail page
   ========================================================================= */
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  padding: 56px 0 90px;
  align-items: start;
}
@media (max-width: 880px) { .product-detail { grid-template-columns: 1fr; gap: 34px; } }

.product-media {
  position: relative;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--ink-2);
}
.product-media img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }

.product-info .plate-no { position: static; display: inline-block; margin-bottom: 16px; }
.product-info h1 { font-size: 36px; color: var(--paper); }
.product-info .cat-link { color: var(--gold); font-size: 13px; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.08em; }
.product-info .desc { margin: 22px 0; font-size: 15.5px; }

.spec-table { border-top: 1px solid var(--line); margin: 26px 0; }
.spec-row { display: flex; justify-content: space-between; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.spec-row span:first-child { color: var(--text-faint); }
.spec-row span:last-child { color: var(--text); font-family: var(--font-mono); }

.buy-box { background: var(--ink-2); border: 1px solid var(--line-strong); border-radius: var(--radius-lg); padding: 26px; margin-top: 28px; }
.buy-box .price-tag { font-size: 30px; display: block; margin-bottom: 4px; }
.buy-box .price-note { font-size: 12.5px; color: var(--text-faint); margin-bottom: 20px; }

.form-row { margin-bottom: 16px; }
.form-row label { display: block; font-size: 13px; color: var(--text-dim); margin-bottom: 6px; }
.form-row input, .form-row textarea, .form-row select {
  width: 100%;
  background: var(--ink-3);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  color: var(--text);
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 14.5px;
}
.form-row input:focus, .form-row textarea:focus, .form-row select:focus { outline: none; border-color: var(--gold); }
.form-note { font-size: 12.5px; color: var(--text-faint); margin-top: 10px; }

/* =========================================================================
   Info bar (trust strip)
   ========================================================================= */
.info-bar { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--ink-2); }
.info-bar .container { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; padding: 30px 28px; }
@media (max-width: 700px) { .info-bar .container { grid-template-columns: 1fr; } }
.info-item { display: flex; gap: 14px; align-items: flex-start; }
.info-item .num { font-family: var(--font-mono); color: var(--gold); font-size: 13px; padding-top: 3px; }
.info-item h4 { font-size: 15px; color: var(--paper); margin-bottom: 4px; }
.info-item p { font-size: 13.5px; margin: 0; }

/* =========================================================================
   Alerts / flash messages
   ========================================================================= */
.alert {
  padding: 14px 18px;
  border-radius: var(--radius);
  font-size: 14px;
  margin-bottom: 22px;
  border: 1px solid;
}
.alert-success { background: rgba(91,130,102,0.12); border-color: rgba(91,130,102,0.4); color: #b7d4bd; }
.alert-error { background: rgba(168,69,47,0.12); border-color: rgba(168,69,47,0.4); color: #f0b6a5; }

/* =========================================================================
   Reference / receipt page
   ========================================================================= */
.receipt {
  max-width: 560px;
  margin: 70px auto;
  background: var(--ink-2);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  padding: 40px;
  text-align: center;
}
.receipt .ref {
  font-family: var(--font-mono);
  font-size: 24px;
  letter-spacing: 0.06em;
  color: var(--gold-bright);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  padding: 14px;
  margin: 20px 0 26px;
}
.receipt ol { text-align: left; margin: 0 0 26px; padding-left: 20px; list-style: decimal; color: var(--text-dim); font-size: 14.5px; }
.receipt ol li { margin-bottom: 8px; }

/* =========================================================================
   Empty state
   ========================================================================= */
.empty-state { text-align: center; padding: 70px 20px; color: var(--text-faint); }
.empty-state h3 { color: var(--paper); }

/* =========================================================================
   Footer
   ========================================================================= */
.site-footer { border-top: 1px solid var(--line); padding: 54px 0 34px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h5 { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 16px; }
.footer-grid li { margin-bottom: 10px; }
.footer-grid a { color: var(--text-dim); font-size: 14px; }
.footer-grid a:hover { color: var(--gold-bright); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 24px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--text-faint); flex-wrap: wrap; gap: 10px; }

/* =========================================================================
   Utility
   ========================================================================= */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
