/* Design A — "Werkstatt": dark, industrial, material-driven.
   Mobile-first: base styles target phones, min-width queries enhance upwards. */

:root {
  --bg: #191713;
  --bg2: #201d17;
  --panel: #252119;
  --line: #3b352a;
  --text: #eae3d4;
  --muted: #a89e8a;
  --accent: #d96f32;
  --steel: #9aa1a8;
  --line-strong: #6b6250;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* height: auto keeps the aspect ratio when max-width shrinks an img that has width/height attributes */
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.btn-primary:focus-visible { outline-color: var(--text); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

h1, h2, h3 {
  font-family: 'Oswald', 'Arial Narrow', sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.15;
}

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }


/* Header: compact sticky row with a menu button on phones, full nav from desktop up */
header.site {
  position: sticky;
  top: 0;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  z-index: 20;
}
header.site.scrolled { background: rgba(25, 23, 19, 0.9); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
header.site.hide { transform: translateY(-100%); }
header.site .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0 12px;
  min-height: 60px;
}
.logo img { height: 30px; width: auto; }
.menu-btn { display: none; }
.js .menu-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: none;
  border: 1px solid var(--line-strong);
  color: var(--text);
  font-family: 'Oswald', sans-serif;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  padding: 9px 14px;
  cursor: pointer;
}
.menu-btn .bars, .menu-btn .bars::before, .menu-btn .bars::after {
  display: block; width: 16px; height: 2px; background: currentColor; position: relative;
}
.menu-btn .bars::before, .menu-btn .bars::after { content: ''; position: absolute; left: 0; }
.menu-btn .bars::before { top: -5px; }
.menu-btn .bars::after { top: 5px; }
header.site.open .menu-btn .bars { background: transparent; }
header.site.open .menu-btn .bars::before { top: 0; transform: rotate(45deg); }
header.site.open .menu-btn .bars::after { top: 0; transform: rotate(-45deg); }
nav.main { display: flex; flex-wrap: wrap; gap: 0 20px; align-items: center; width: 100%; justify-content: center; padding-bottom: 8px; }
.js nav.main { display: none; flex-direction: column; align-items: stretch; padding: 4px 0 14px; }
.js header.site.open nav.main { display: flex; }
.js nav.main a { padding: 13px 0; border-bottom: 1px solid var(--line); }
nav.main a {
  font-family: 'Oswald', sans-serif;
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  padding: 12px 0;
  background: linear-gradient(var(--accent), var(--accent)) left bottom / 0 2px no-repeat;
}
nav.main a:hover, nav.main a.active { color: var(--text); background-size: 100% 2px; }
nav.main a.nav-etsy { color: var(--accent); }

/* Buttons: full-width tap targets on phones */
.btn {
  display: block;
  width: 100%;
  text-align: center;
  font-family: 'Oswald', sans-serif;
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  padding: 14px 28px;
  border: 1px solid var(--accent);
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.btn-primary { background: var(--accent); color: #1a130c; }
.btn-primary:hover { background: #e8843f; border-color: #e8843f; }
.btn-ghost { color: var(--text); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--text); }
.actions { display: flex; flex-direction: column; gap: 12px; }

/* Hero */
.hero {
  position: relative;
  min-height: 68vh;
  display: flex;
  align-items: flex-end;
  isolation: isolate;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(180deg, rgba(25,23,19,0.55) 0%, rgba(25,23,19,0.25) 40%, rgba(25,23,19,0.92) 100%), var(--hero-img);
  background-size: cover;
  background-position: center;
  z-index: -1;
}
.hero .wrap { padding-top: 96px; padding-bottom: 52px; }
.kicker {
  font-family: 'Oswald', sans-serif;
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.kicker::before { content: ''; width: 28px; height: 2px; background: var(--accent); flex-shrink: 0; }
.hero h1 { font-size: clamp(42px, 7vw, 84px); max-width: 14ch; }
.hero p.lead {
  max-width: 52ch;
  margin: 18px 0 30px;
  font-size: 17px;
  color: var(--text);
}

/* Sections */
section.block { padding: 60px 0; border-top: 1px solid var(--line); }
section.block.alt { background: var(--bg2); }
.sec-head { margin-bottom: 36px; }
.sec-num {
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: 13px;
  color: var(--accent);
  letter-spacing: 0.15em;
  display: block;
  margin-bottom: 10px;
}
.sec-head h2 { font-size: clamp(28px, 4vw, 44px); }
.sec-head p.sub { color: var(--muted); max-width: 62ch; margin-top: 14px; }

.two-col { display: grid; grid-template-columns: 1fr; gap: 32px; align-items: center; }
.two-col .text p { margin-bottom: 16px; }
.two-col .text p:last-child { margin-bottom: 0; }
.framed { border: 1px solid var(--line); }

ul.materials { list-style: none; margin-top: 8px; }
ul.materials li {
  padding: 14px 0 14px 26px;
  border-bottom: 1px solid var(--line);
  position: relative;
  color: var(--text);
}
ul.materials li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 24px;
  width: 10px;
  height: 2px;
  background: var(--accent);
}
ul.materials li:last-child { border-bottom: none; }

/* Product cards */
.grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  transition: border-color 0.15s, transform 0.15s;
}
a.card:hover { border-color: var(--accent); }
.card .thumb { aspect-ratio: 4 / 3; overflow: hidden; }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.card .more { display: inline-block; }
.card .body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.card .cat {
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--steel);
  margin-bottom: 8px;
}
.card h3 { font-size: 19px; font-weight: 500; letter-spacing: 0.03em; }
.card p.teaser { font-size: 14px; color: var(--muted); margin: 10px 0 16px; flex: 1; }
.card .price-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}
.card .price { font-family: 'Oswald', sans-serif; font-size: 17px; color: var(--accent); letter-spacing: 0.04em; }
.card .more {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--steel);
}
a.card .more { color: var(--text); }

/* Values / sustainability */
.values { display: grid; grid-template-columns: 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.values .v { background: var(--bg); padding: 24px 22px; }
.values .v h3 { font-size: 15px; letter-spacing: 0.08em; color: var(--accent); margin-bottom: 10px; }
.values .v p { font-size: 14px; color: var(--muted); }
blockquote.claim {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(24px, 3.4vw, 38px);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.3;
  max-width: 26ch;
  margin: 0 0 36px;
}
blockquote.claim em { font-style: normal; color: var(--accent); }

/* Contact band */
.reviews {
  display: grid; grid-auto-flow: column; grid-auto-columns: 84%; gap: 12px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  margin: 0 -20px; padding: 0 20px 4px; scroll-padding: 0 20px;
  align-items: start;
  /* without paint containment the strip widened the page on phones */
  contain: paint;
}
.reviews::-webkit-scrollbar { display: none; }
.review { background: var(--bg); border: 1px solid var(--line); padding: 24px 22px; display: flex; flex-direction: column; scroll-snap-align: start; }
.review .stars { color: var(--accent); letter-spacing: 0.2em; font-size: 14px; margin-bottom: 12px; }
.review blockquote { font-size: 15px; flex: 1; margin-bottom: 16px; }
.review figcaption {
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--steel);
}
.review figcaption a:hover, a.inline { color: var(--accent); }

.more-link { margin-top: 28px; text-align: center; }

/* Sticky buy bar on product pages, phones only */
.buybar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  display: flex; align-items: center; gap: 8px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(25, 23, 19, 0.92); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
  transform: translateY(110%);
}
.buybar.show { transform: none; }
/* keep the footer reachable above the bar */
.buybar + footer.site { padding-bottom: 104px; }
.buybar .price { font-family: 'Oswald', sans-serif; font-size: 18px; color: var(--accent); margin-right: auto; white-space: nowrap; }
.buybar .btn { width: auto; padding: 11px 16px; font-size: 13px; }

.contact-band { text-align: center; }
.contact-band h2 { font-size: clamp(30px, 4.4vw, 48px); margin-bottom: 16px; }
.contact-band p { color: var(--muted); max-width: 56ch; margin: 0 auto 28px; }
.contact-band .actions { max-width: 420px; margin-left: auto; margin-right: auto; }
.contact-band .note { font-size: 13px; margin-top: 22px; color: var(--steel); }

/* Footer */
footer.site { border-top: 1px solid var(--line); padding: 32px 0 40px; background: var(--bg2); }
footer.site .wrap { display: flex; flex-direction: column; gap: 14px; align-items: center; text-align: center; }
footer.site p { font-size: 13px; color: var(--muted); }
footer.site nav { display: flex; gap: 22px; }
footer.site nav a { font-size: 13px; color: var(--muted); padding: 8px 0; }
footer.site nav a:hover { color: var(--text); }

/* Products page */
.page-head { padding: 44px 0 32px; }
.page-head h1 { font-size: clamp(36px, 5vw, 60px); }
.page-head p { color: var(--muted); max-width: 60ch; margin-top: 14px; }
.filters {
  display: flex; gap: 8px; margin: 0 -20px 30px; padding: 0 20px 4px;
  overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none;
}
.filters::-webkit-scrollbar { display: none; }
.filters button {
  font-family: 'Oswald', sans-serif;
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  background: none;
  border: 1px solid var(--line-strong);
  padding: 9px 16px;
  cursor: pointer;
  white-space: nowrap;
  scroll-snap-align: start;
  flex-shrink: 0;
}
.filters button:hover { color: var(--text); border-color: var(--text); }
.filters button.on { background: var(--accent); border-color: var(--accent); color: #1a130c; }

/* Product detail */
.crumb {
  display: inline-block;
  margin: 28px 0 20px;
  font-family: 'Oswald', sans-serif;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}
.crumb:hover { color: var(--text); }
.product { display: grid; grid-template-columns: 1fr; gap: 36px; align-items: start; padding-bottom: 64px; }
.gallery .stage { position: relative; border: 1px solid var(--line); background: var(--bg2); }
.gallery .track {
  display: flex;
  aspect-ratio: 4 / 3;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}
.gallery .track::-webkit-scrollbar { display: none; }
/* contain, so portrait photos show the whole product instead of a 4:3 crop */
.gallery .track img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: contain; scroll-snap-align: center; scroll-snap-stop: always; }
.gallery .count {
  position: absolute; right: 10px; bottom: 10px;
  font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: 12px; letter-spacing: 0.1em;
  color: var(--text); background: rgba(25, 23, 19, 0.75); padding: 4px 8px;
}
.gallery .nav-btn {
  display: none;
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px;
  background: rgba(25, 23, 19, 0.75); color: var(--text);
  border: 1px solid var(--line-strong); font-size: 26px; line-height: 1; cursor: pointer;
}
.gallery .nav-btn.prev { left: 10px; }
.gallery .nav-btn.next { right: 10px; }
.gallery .nav-btn:hover { border-color: var(--accent); color: var(--accent); }
.gallery .thumbs { display: none; }
.gallery .thumbs button { padding: 0; border: 1px solid var(--line); background: none; cursor: pointer; opacity: 0.6; }
.gallery .thumbs button:hover { opacity: 1; }
.gallery .thumbs button[aria-current="true"] { opacity: 1; border-color: var(--accent); }
.gallery .thumbs img { aspect-ratio: 1 / 1; width: 100%; height: auto; object-fit: cover; }
.pinfo .cat {
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--steel);
  margin-bottom: 12px;
}
.pinfo h1 { font-size: clamp(28px, 3.6vw, 42px); }
.pinfo .price { font-family: 'Oswald', sans-serif; font-size: 30px; color: var(--accent); margin: 18px 0 4px; }
.pinfo .tax { font-size: 12px; color: var(--steel); margin-bottom: 24px; }
.pinfo .actions { margin-bottom: 14px; }
.mail-alt { font-size: 13px; color: var(--muted); margin-bottom: 32px; }
.mail-alt a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-strong); }
.mail-alt .copy {
  font: inherit; font-size: 12px; color: var(--accent); background: none; border: 0;
  padding: 6px 4px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px;
}
.pinfo .desc p { margin-bottom: 14px; font-size: 15px; }
.pinfo .desc p.hint { color: var(--muted); font-size: 14px; }

.plate { border: 1px solid var(--line); margin-top: 28px; }
.plate .plate-head {
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--steel);
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--bg2);
}
.plate dl { display: grid; grid-template-columns: 118px 1fr; }
.plate dt {
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--steel);
  padding: 12px 14px;
  border-top: 1px solid var(--line);
}
.plate dd { padding: 12px 14px 12px 0; font-size: 14px; border-top: 1px solid var(--line); }
.plate dl dt:first-of-type, .plate dl dt:first-of-type + dd { border-top: none; }

.notes { margin-top: 28px; border-left: 2px solid var(--accent); padding: 4px 0 4px 18px; }
.notes h3 { font-size: 15px; letter-spacing: 0.08em; margin-bottom: 10px; }
.notes p { font-size: 14px; color: var(--muted); margin-bottom: 10px; }
.notes p:last-child { margin-bottom: 0; }

/* Tablet up */
@media (min-width: 640px) {
  .wrap { padding-left: 24px; padding-right: 24px; }
  .actions { flex-direction: row; flex-wrap: wrap; }
  .btn { display: inline-block; width: auto; }
  .contact-band .actions { max-width: none; justify-content: center; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .values { grid-template-columns: repeat(2, 1fr); }
  .reviews { grid-auto-flow: row; grid-template-columns: repeat(2, 1fr); gap: 1px; margin: 0; padding: 0; overflow: visible; background: var(--line); border: 1px solid var(--line); align-items: stretch; contain: none; }
  .review { border: 0; }
  .filters { flex-wrap: wrap; overflow: visible; margin: 0 0 30px; padding: 0; }
  .gallery .thumbs { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; margin-top: 8px; }
  .gallery .nav-btn { display: block; }
  section.block { padding: 76px 0; }
  .hero { min-height: 72vh; }
  footer.site .wrap { flex-direction: row; justify-content: space-between; text-align: left; flex-wrap: wrap; }
  .page-head { padding: 60px 0 36px; }
}

/* Desktop up */
@media (min-width: 920px) {
  header.site .wrap { flex-wrap: nowrap; gap: 28px; height: 72px; }
  .js .menu-btn { display: none; }
  nav.main, .js nav.main { display: flex; flex-direction: row; width: auto; padding: 0; }
  .js nav.main a { padding: 6px 0; border-bottom: 0; }
  .buybar { display: none; }
  .buybar + footer.site { padding-bottom: 40px; }
  .logo img { height: 34px; }
  nav.main, .js nav.main { gap: 28px; }
  nav.main a { font-size: 14px; letter-spacing: 0.12em; }
  .hero { min-height: 78vh; }
  .hero .wrap { padding-top: 120px; padding-bottom: 72px; }
  .hero p.lead { font-size: 18px; margin: 20px 0 34px; }
  section.block { padding: 88px 0; }
  .sec-head { margin-bottom: 44px; }
  .two-col { grid-template-columns: 1fr 1fr; gap: 56px; }
  .grid { grid-template-columns: repeat(3, 1fr); }
  .values { grid-template-columns: repeat(4, 1fr); }
  .values .v { padding: 28px 24px; }
  blockquote.claim { margin-bottom: 44px; }
  .product { grid-template-columns: 7fr 5fr; gap: 56px; padding-bottom: 88px; }
  .plate dl { grid-template-columns: 140px 1fr; }
  .plate dt { padding: 12px 16px; }
  .plate dd { padding-right: 16px; }
  .crumb { margin: 40px 0 24px; }
  .page-head { padding: 72px 0 40px; }
  .filters { gap: 10px; margin-bottom: 36px; }
  .filters button { padding: 9px 18px; }
  .kicker::before { width: 36px; }
}

/* Text pages (about, contact, shipping, legal) */
.page-body { padding-bottom: 72px; }
.prose { max-width: 720px; }
.prose h2 { font-size: 20px; margin: 40px 0 14px; }
.prose h2:first-child { margin-top: 0; }
.prose p { margin-bottom: 14px; font-size: 15px; }
.prose ul { margin: 0 0 14px 20px; }
.prose li { margin-bottom: 6px; font-size: 15px; }
.prose a { color: var(--accent); }
.prose a:hover { text-decoration: underline; text-underline-offset: 3px; }
.prose .muted { color: var(--muted); }
.prose address {
  font-style: normal;
  border-left: 2px solid var(--accent);
  padding: 4px 0 4px 18px;
  margin-bottom: 14px;
}

/* Motion: subtle, and only for visitors who have not asked for reduced motion */
@media (prefers-reduced-motion: no-preference) {
  header.site { transition: transform 0.3s ease, background 0.3s ease; }
  nav.main a { transition: background-size 0.25s ease, color 0.15s; }
  .buybar { transition: transform 0.3s ease; }
  .btn { transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s; }
  .btn:active { transform: scale(0.98); }

  .card .thumb img { transition: transform 0.7s cubic-bezier(.2, .6, .2, 1), filter 0.7s; filter: saturate(0.9); }
  a.card:hover .thumb img, a.card:focus-visible .thumb img { transform: scale(1.05); filter: saturate(1.05); }
  .card .more { transition: transform 0.2s ease; }
  a.card:hover .more { transform: translateX(4px); }

  .reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.6s ease, transform 0.6s ease; }
  .reveal.in { opacity: 1; transform: none; }
  .grid .reveal:nth-child(3n+2), .values .reveal:nth-child(4n+2), .reviews .reveal:nth-child(2n) { transition-delay: 0.08s; }
  .grid .reveal:nth-child(3n), .values .reveal:nth-child(4n+3) { transition-delay: 0.16s; }
  .values .reveal:nth-child(4n) { transition-delay: 0.24s; }

  .hero .kicker::before { animation: draw 0.7s ease-out both; transform-origin: left; }
  .hero h1, .hero p.lead, .hero .actions { animation: rise 0.7s ease-out both; }
  .hero p.lead { animation-delay: 0.1s; }
  .hero .actions { animation-delay: 0.2s; }
  .page-head h1, .page-head p, .pinfo h1 { animation: rise 0.6s ease-out both; }
}
@keyframes draw { from { transform: scaleX(0); } }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }
