@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,700;0,900;1,700&family=Zilla+Slab:ital,wght@0,400;0,600;1,400&family=Special+Elite&display=swap');

:root {
  --cream:  #F5EDD8;
  --ink:    #1A1614;
  --rust:   #B84C2B;
  --brown:  #7A5C3A;
  --shadow: #2C1F1A;
  --warm:   #E8D9B8;
  --muted:  rgba(26,22,20,.52);
  --rule:   rgba(26,22,20,.18);

  --display: 'Playfair Display', Georgia, serif;
  --body:    'Zilla Slab', Georgia, serif;
  --stamp:   'Special Elite', 'Courier New', monospace;

  --rot-a: -1.4deg;
  --rot-b:  1.1deg;
  --rot-c: -0.7deg;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.65;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Paper grain */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  opacity: .045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.72' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23g)' opacity='.6'/%3E%3C/svg%3E");
  animation: grain 1.8s steps(3,end) infinite;
}
@keyframes grain {
  0%   { transform: translate(0,0); }
  33%  { transform: translate(-1%,1%); }
  66%  { transform: translate(1%,-1%); }
  100% { transform: translate(0,0); }
}

/* ── Typography ── */
h1,h2,h3,h4 { font-family: var(--display); line-height: 1.15; letter-spacing: -.01em; }
h1 { font-size: clamp(2.2rem,6vw,4rem); font-weight: 900; }
h2 { font-size: clamp(1.4rem,3.5vw,2.2rem); font-weight: 700; }
h3 { font-size: clamp(1.05rem,2.5vw,1.4rem); font-weight: 700; }

.stamp {
  font-family: var(--stamp);
  font-size: .73rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--muted);
}

a { color: var(--rust); text-decoration: none; }
a:hover { text-decoration: underline; }
p + p { margin-top: .85em; }

.ink-press {
  text-shadow:
    1px 1px 0 rgba(44,31,26,.18),
    2px 2px 0 rgba(44,31,26,.10),
    3px 3px 0 rgba(44,31,26,.05);
}

/* ── Layout ── */
.wrap {
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 clamp(16px,4vw,40px);
}

/* ── Nav ── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--ink);
  border-bottom: 3px solid var(--rust);
}
.nav-inner {
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 clamp(16px,4vw,40px);
  display: flex;
  align-items: center;
  height: 52px;
}
.nav-logo {
  font-family: var(--display);
  font-size: 1.2rem;
  font-weight: 900;
  color: var(--cream);
  margin-right: auto;
  letter-spacing: -.01em;
  white-space: nowrap;
}
.nav-logo span { color: var(--rust); }

.nav-links { display: flex; align-items: center; list-style: none; }
.nav-links a {
  font-family: var(--stamp);
  font-size: .70rem;
  letter-spacing: .10em;
  text-transform: uppercase;
  color: rgba(245,237,216,.65);
  padding: 0 13px;
  height: 52px;
  display: flex;
  align-items: center;
  border-left: 1px solid rgba(245,237,216,.08);
  transition: color .15s, background .15s;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--cream);
  background: rgba(184,76,43,.20);
  text-decoration: none;
}
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--cream);
  font-size: 1.4rem;
  padding: 8px;
  line-height: 1;
}
@media (max-width: 700px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 52px; left: 0; right: 0;
    background: var(--ink);
    flex-direction: column;
    align-items: stretch;
    border-bottom: 3px solid var(--rust);
  }
  .nav-links.open { display: flex; }
  .nav-links a {
    border-left: none;
    border-top: 1px solid rgba(245,237,216,.08);
    padding: 14px clamp(16px,4vw,40px);
    height: auto;
  }
}

/* ── Pinned cards ── */
.pin {
  background: var(--cream);
  border: 1px solid rgba(26,22,20,.14);
  border-radius: 2px;
  padding: clamp(16px,3vw,26px);
  position: relative;
  box-shadow: 2px 3px 0 rgba(44,31,26,.08), 4px 6px 14px rgba(44,31,26,.10);
  transition: transform .22s ease, box-shadow .22s ease;
}
/* pin head */
.pin::before {
  content: '';
  position: absolute;
  top: -9px; left: 50%;
  transform: translateX(-50%);
  width: 13px; height: 13px;
  border-radius: 999px;
  background: var(--rust);
  box-shadow: 0 2px 6px rgba(44,31,26,.28);
}
/* tape variant */
.pin.tape::before {
  width: 50px; height: 17px;
  border-radius: 2px;
  background: rgba(232,217,184,.85);
  border: 1px solid rgba(26,22,20,.14);
  box-shadow: 0 1px 4px rgba(44,31,26,.10);
}
.pin.rot-a { transform: rotate(var(--rot-a)); }
.pin.rot-b { transform: rotate(var(--rot-b)); }
.pin.rot-c { transform: rotate(var(--rot-c)); }
.pin:hover {
  transform: rotate(0deg) translateY(-3px);
  box-shadow: 3px 6px 0 rgba(44,31,26,.10), 6px 14px 24px rgba(44,31,26,.14);
}

/* ── Bench grid ── */
.bench { display: grid; gap: 28px; margin: 36px 0; }
.bench-2 { grid-template-columns: 1fr 1fr; }
.bench-3 { grid-template-columns: 1fr 1fr 1fr; }
.bench-ms { grid-template-columns: 1.6fr 1fr; }
.bench-sm { grid-template-columns: 1fr 1.6fr; }
@media (max-width: 680px) {
  .bench-2,.bench-3,.bench-ms,.bench-sm { grid-template-columns: 1fr; }
}

/* ── Page header ── */
.page-hd {
  padding: clamp(36px,6vw,72px) 0 clamp(20px,4vw,36px);
  border-bottom: 2px solid var(--ink);
  margin-bottom: clamp(28px,4vw,48px);
}
.eyebrow {
  font-family: var(--stamp);
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--rust);
  display: block;
  margin-bottom: 10px;
}

/* ── Ruled divider ── */
.ruled {
  border: none;
  border-top: 1px solid var(--rule);
  margin: 32px 0;
}
.ruled::after {
  content: '';
  display: block;
  margin-top: 3px;
  border-top: 1px solid rgba(26,22,20,.05);
}

/* ── Tags ── */
.tag {
  display: inline-block;
  font-family: var(--stamp);
  font-size: .66rem;
  letter-spacing: .10em;
  text-transform: uppercase;
  padding: 3px 8px;
  border: 1px solid var(--rule);
  border-radius: 2px;
  color: var(--muted);
  margin: 3px 3px 0 0;
}
.tag.rust { color: var(--rust); border-color: rgba(184,76,43,.32); background: rgba(184,76,43,.05); }

/* ── Buttons ── */
.btn {
  display: inline-block;
  font-family: var(--stamp);
  font-size: .76rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 11px 20px;
  border: 2px solid var(--ink);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  border-radius: 2px;
  transition: background .15s, color .15s;
  text-decoration: none;
}
.btn:hover { background: var(--ink); color: var(--cream); text-decoration: none; }
.btn.rust { border-color: var(--rust); color: var(--rust); }
.btn.rust:hover { background: var(--rust); color: var(--cream); }
.btn.filled { background: var(--rust); border-color: var(--rust); color: var(--cream); }
.btn.filled:hover { background: var(--shadow); border-color: var(--shadow); }

/* ── Build log entries ── */
.entry { padding: clamp(20px,3vw,30px) 0; border-bottom: 1px solid var(--rule); }
.entry:last-child { border-bottom: none; }
.entry-meta {
  font-family: var(--stamp);
  font-size: .68rem;
  letter-spacing: .10em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.entry h2 { margin-bottom: 10px; }
.entry figure {
  margin: 16px 0 0;
  border: 1px solid var(--rule);
  padding: 8px;
  background: var(--warm);
}
.entry figure img,
.entry figure video,
.entry figure iframe {
  width: 100%; display: block; border-radius: 1px;
}
.entry figure iframe { aspect-ratio: 16/9; border: none; }
.entry figcaption {
  font-family: var(--stamp);
  font-size: .66rem;
  letter-spacing: .08em;
  color: var(--muted);
  padding: 6px 2px 2px;
}

/* ── Product cards ── */
.product-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
@media (max-width: 800px) { .product-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 500px) { .product-grid { grid-template-columns: 1fr; } }

.product-card {
  border: 1px solid rgba(26,22,20,.14);
  border-radius: 2px;
  overflow: hidden;
  background: var(--warm);
  box-shadow: 2px 3px 0 rgba(44,31,26,.07), 4px 6px 12px rgba(44,31,26,.07);
  transition: transform .18s, box-shadow .18s;
}
.product-card:hover {
  transform: translateY(-3px);
  box-shadow: 2px 6px 0 rgba(44,31,26,.09), 6px 12px 20px rgba(44,31,26,.12);
}
.product-card .img-wrap {
  aspect-ratio: 4/3;
  background: rgba(26,22,20,.06);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.product-card .img-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }
.product-card .img-wrap .placeholder-label {
  font-family: var(--stamp);
  font-size: .68rem;
  letter-spacing: .10em;
  color: var(--muted);
}
.product-card .card-bd { padding: 16px; }
.product-card h3 { margin-bottom: 4px; font-size: 1.05rem; }
.product-card .price {
  font-family: var(--stamp);
  font-size: .82rem;
  letter-spacing: .08em;
  color: var(--rust);
  margin: 8px 0 12px;
  display: block;
}

/* ── Instagram strip ── */
.ig-strip { display: grid; grid-template-columns: repeat(4,1fr); gap: 8px; }
@media (max-width: 560px) { .ig-strip { grid-template-columns: repeat(2,1fr); } }
.ig-thumb {
  aspect-ratio: 1;
  background: rgba(26,22,20,.06);
  overflow: hidden;
  border: 1px solid var(--rule);
  display: flex; align-items: center; justify-content: center;
}
.ig-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: opacity .15s; }
.ig-thumb:hover img { opacity: .85; }

/* ── Form ── */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.field label {
  font-family: var(--stamp);
  font-size: .70rem;
  letter-spacing: .10em;
  text-transform: uppercase;
  color: var(--muted);
}
.field input,
.field textarea {
  font-family: var(--body);
  font-size: 1rem;
  padding: 10px 14px;
  border: 1px solid rgba(26,22,20,.22);
  background: rgba(245,237,216,.55);
  color: var(--ink);
  border-radius: 2px;
  outline: none;
  width: 100%;
  transition: border-color .15s;
}
.field input:focus,
.field textarea:focus { border-color: var(--rust); }
.field textarea { min-height: 140px; resize: vertical; }

/* ── Footer ── */
.site-footer {
  border-top: 2px solid var(--ink);
  padding: 28px 0;
  margin-top: 60px;
}
.footer-inner {
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 clamp(16px,4vw,40px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

/* ── Utility ── */
.mt-sm  { margin-top: 10px; }
.mt-md  { margin-top: 22px; }
.mt-lg  { margin-top: 40px; }
.mb-sm  { margin-bottom: 10px; }
.mb-md  { margin-bottom: 22px; }
.text-rust  { color: var(--rust); }
.text-muted { color: var(--muted); }
.stack { display: flex; flex-direction: column; gap: 20px; }
