/* ---------- Tokens ---------- */
:root {
  --paper: #F5F3EF;
  --white: #FFFFFF;
  --ink: #0E0E0E;
  --red: #D4231B;
  --red-dark: #B01A13;
  --muted: #5E5B56;
  --skel: #E8E5DF;
  --skel-hi: #F6F4F0;
  --line: 1px solid var(--ink);
  --gutter: clamp(16px, 3vw, 40px);
  --max: 1440px;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Instrument Sans", system-ui, sans-serif;
  --mono: "DM Mono", ui-monospace, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1; letter-spacing: -0.035em; margin: 0; font-variation-settings: "opsz" 144, "SOFT" 0, "WONK" 0; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.mono { font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; }
.muted { color: var(--muted); }

/* ---------- Loader ---------- */
.curtain {
  position: fixed; inset: 0; z-index: 100;
  background: var(--ink); color: var(--white);
  display: grid; place-items: center;
  transition: transform .9s cubic-bezier(.77,0,.18,1) .15s;
}
.curtain__mark { font-family: var(--serif); font-size: clamp(32px, 6vw, 72px); letter-spacing: -0.04em; }
.curtain__line {
  position: absolute; left: 0; top: 0; height: 3px; width: 100%;
  background: var(--red); transform-origin: left; transform: scaleX(0);
  animation: fill 1.1s cubic-bezier(.4,0,.2,1) forwards;
}
@keyframes fill { to { transform: scaleX(1); } }
body:not(.is-loading) .curtain { transform: translateY(-100%); pointer-events: none; }

/* ---------- Shimmer / placeholders ---------- */
.ph {
  position: relative; overflow: hidden;
  background: var(--skel);
  border: var(--line);
  margin: 0;
}
.ph::before { /* crosshair so it reads as "photo goes here" */
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(to top right, transparent calc(50% - .5px), rgba(14,14,14,.18) 50%, transparent calc(50% + .5px)),
    linear-gradient(to bottom right, transparent calc(50% - .5px), rgba(14,14,14,.18) 50%, transparent calc(50% + .5px));
}
.ph::after { /* shimmer sweep */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, transparent 20%, var(--skel-hi) 50%, transparent 80%);
  transform: translateX(-100%);
  opacity: 0;
}
body.is-loading .ph::after, .ph.is-loading::after { opacity: 1; animation: shimmer 1.4s linear infinite; }
@keyframes shimmer { to { transform: translateX(100%); } }
.ph figcaption {
  position: absolute; left: 12px; bottom: 10px; right: 12px; z-index: 1;
  font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase;
  background: var(--paper); border: var(--line); padding: 4px 8px; width: fit-content; max-width: 100%;
}
/* real photos */
.photo::before { display: none; }
.photo { background: var(--skel); }
.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .6s ease; }
.photo img.ready { opacity: 1; }
.photo.contain img { object-fit: contain; background: #fff; }
.logo img { height: 30px; width: auto; }
.curtain__mark img { height: clamp(40px, 8vw, 84px); width: auto; }
.footer__big img { height: clamp(56px, 11vw, 170px); width: auto; }

/* steps (coffee grinder) */
.steps { margin-top: clamp(40px, 5vw, 72px); display: grid; grid-template-columns: repeat(3, 1fr); border: var(--line); background: var(--white); counter-reset: s; }
.steps li { list-style: none; padding: clamp(20px, 3vw, 36px); counter-increment: s; }
.steps li + li { border-left: var(--line); }
.steps li::before { content: "0" counter(s); font-family: var(--mono); font-size: 12px; color: var(--red); display: block; margin-bottom: 40px; letter-spacing: .06em; }
.steps h3 { font-size: 28px; margin-bottom: 10px; }
.steps p { margin: 0; font-size: 15px; }
ol.steps { margin-bottom: 0; padding-left: 0; }

/* gallery band */
.gallery { border-bottom: var(--line); padding: clamp(40px, 6vw, 88px) 0; }
.gallery__head { display: flex; justify-content: space-between; padding-bottom: 20px; }
.gallery__grid { display: grid; grid-template-columns: 5fr 4fr 4fr; gap: 12px; align-items: end; }
.gallery__grid .ph:nth-child(2) { margin-bottom: 40px; }

.r-43 { aspect-ratio: 4 / 3; }
.r-45 { aspect-ratio: 4 / 5; }
.r-34 { aspect-ratio: 3 / 4; }
.r-32 { aspect-ratio: 3 / 2; }
.r-169 { aspect-ratio: 16 / 9; }
.r-11 { aspect-ratio: 1 / 1; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--paper); border-bottom: var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { font-family: var(--serif); font-size: 26px; letter-spacing: -0.04em; text-decoration: none; font-weight: 600; }
.logo span { color: var(--red); }
.nav { display: flex; gap: 28px; align-items: center; }
.nav a { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a.is-active { border-bottom-color: var(--red); }
.menu-btn { display: none; background: none; border: var(--line); font: inherit; font-family: var(--mono); font-size: 12px; text-transform: uppercase; padding: 8px 12px; cursor: pointer; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 13px; letter-spacing: .06em; text-transform: uppercase;
  text-decoration: none; padding: 16px 24px; border: 1px solid var(--ink);
  cursor: pointer; transition: background .15s, color .15s, transform .15s;
}
.btn--red { background: var(--red); border-color: var(--red); color: var(--white); }
.btn--red:hover { background: var(--red-dark); border-color: var(--red-dark); }
.btn--line { background: transparent; color: var(--ink); }
.btn--line:hover { background: var(--ink); color: var(--white); }
.btn--sm { padding: 10px 16px; font-size: 12px; }
.btn:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }

/* ---------- Hero ---------- */
.hero { border-bottom: var(--line); }
.hero__grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gutter); padding-top: clamp(32px, 6vw, 80px); padding-bottom: clamp(32px, 6vw, 80px); align-items: end; }
.hero__copy { grid-column: 1 / span 7; }
.hero__kicker { display: flex; gap: 16px; align-items: center; margin-bottom: 28px; }
.hero__kicker i { width: 48px; height: 1px; background: var(--ink); }
.hero h1 { font-size: clamp(56px, 10.5vw, 168px); }
.hero h1 em { font-style: italic; color: var(--red); font-weight: 400; }
.hero__sub { max-width: 46ch; font-size: 19px; margin: 36px 0; }
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero__media { grid-column: 9 / span 4; position: relative; }
.stamp {
  position: absolute; top: -18px; left: -28px; z-index: 2;
  width: 112px; height: 112px; border: 2px solid var(--red); color: var(--red);
  display: grid; place-items: center; text-align: center;
  font-family: var(--mono); font-size: 11px; line-height: 1.3; letter-spacing: .08em; text-transform: uppercase;
  background: var(--paper); transform: rotate(-8deg);
}

/* ---------- Index list ---------- */
.index { border-bottom: var(--line); }
.index__head { display: flex; justify-content: space-between; padding: 20px 0; border-bottom: var(--line); }
.index a.row {
  display: grid; grid-template-columns: 90px 1fr 1fr 60px; gap: var(--gutter); align-items: center;
  padding: clamp(22px, 3vw, 40px) 0; border-bottom: var(--line); text-decoration: none;
  transition: background .2s, padding .2s;
}
.index a.row:last-child { border-bottom: 0; }
.index a.row:hover { background: var(--white); padding-left: 16px; padding-right: 16px; }
.row__n { font-family: var(--mono); font-size: 14px; }
.row__t { font-family: var(--serif); font-size: clamp(32px, 5vw, 72px); letter-spacing: -0.035em; line-height: 1; }
.row__d { color: var(--muted); max-width: 36ch; }
.row__a { font-size: 32px; text-align: right; transition: color .2s, transform .2s; }
.index a.row:hover .row__a { color: var(--red); transform: translateX(6px); }

/* ---------- Specials strip ---------- */
.specials { background: var(--red); color: var(--white); border-bottom: var(--line); }
.specials__row { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 18px; padding-bottom: 18px; }
.specials__row p { margin: 0; font-family: var(--serif); font-size: clamp(20px, 2.6vw, 32px); letter-spacing: -0.02em; line-height: 1.15; flex: 1; }
.specials__row a { text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; white-space: nowrap; }
.visit__special { font-size: 19px; margin: 0 0 20px; padding-left: 14px; border-left: 3px solid var(--red); }
@media (max-width: 640px) { .specials__row { flex-wrap: wrap; gap: 6px 16px; } .specials__row p { flex-basis: 100%; order: 2; } }

/* ---------- Facts band ---------- */
.facts { background: var(--ink); color: var(--white); }
.facts__grid { display: grid; grid-template-columns: 5fr 7fr; gap: var(--gutter); padding-top: clamp(56px, 8vw, 120px); padding-bottom: clamp(56px, 8vw, 120px); }
.facts h2 { font-size: clamp(40px, 5.5vw, 88px); }
.facts h2 em { color: var(--red); font-style: italic; font-weight: 400; }
.facts dl { margin: 0; border-top: 1px solid rgba(255,255,255,.35); }
.facts .f { display: grid; grid-template-columns: 200px 1fr; gap: var(--gutter); padding: 22px 0; border-bottom: 1px solid rgba(255,255,255,.35); }
.facts dt { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: #ff6a62; padding-top: 4px; }
.facts dd { margin: 0; color: #e8e5df; }

/* ---------- Product sections ---------- */
.product { border-bottom: var(--line); padding: clamp(56px, 8vw, 120px) 0; }
.product__grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gutter); align-items: start; }
.product__media { grid-column: 1 / span 6; display: grid; grid-template-columns: 2fr 1fr; gap: 12px; align-items: end; }
.product--flip .product__media { grid-column: 7 / span 6; grid-row: 1; }.product__body { grid-column: 8 / span 5; }
.product--flip .product__body { grid-column: 1 / span 5; grid-row: 1; }
.product__no { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; display: flex; gap: 12px; align-items: center; margin-bottom: 20px; }
.product__no i { width: 32px; height: 1px; background: var(--ink); }
.product h2 { font-size: clamp(44px, 6vw, 96px); margin-bottom: 28px; }
.product__lead { font-size: 19px; max-width: 44ch; }
.price { display: flex; align-items: baseline; justify-content: space-between; margin: 32px 0 0; padding: 16px 0; border-top: var(--line); border-bottom: var(--line); }
.price b { font-family: var(--serif); font-size: 36px; font-weight: 500; color: var(--red); letter-spacing: -0.03em; }
table.spec { width: 100%; border-collapse: collapse; margin: 0 0 28px; }
table.spec th, table.spec td { text-align: left; padding: 11px 0; border-bottom: 1px solid rgba(14,14,14,.25); font-size: 15px; vertical-align: top; }
table.spec th { font-family: var(--mono); font-weight: 400; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; width: 42%; padding-right: 12px; }
table.spec td .todo { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.buy { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }

/* knife care */
.care { display: grid; grid-template-columns: 1fr 1fr; border: var(--line); background: var(--white); margin-top: clamp(40px, 5vw, 72px); }
.care > div { padding: clamp(20px, 3vw, 40px); }
.care > div + div { border-left: var(--line); }
.care h3 { font-size: 32px; margin-bottom: 16px; }
.care .no h3 { color: var(--red); }
.care ul { list-style: none; margin: 0; padding: 0; }
.care li { padding: 10px 0 10px 28px; border-top: 1px solid rgba(14,14,14,.2); position: relative; }
.care li::before { content: "\2713"; position: absolute; left: 0; font-family: var(--mono); }
.care .no li::before { content: "\2715"; color: var(--red); }

/* burr compare */
.compare { margin-top: clamp(40px, 5vw, 72px); border: var(--line); background: var(--white); }
.compare__head { padding: 14px 20px; border-bottom: var(--line); display: flex; justify-content: space-between; }
.compare table { width: 100%; border-collapse: collapse; }
.compare th, .compare td { padding: 14px 20px; text-align: left; border-bottom: 1px solid rgba(14,14,14,.2); font-size: 15px; vertical-align: top; }
.compare tr:last-child td, .compare tr:last-child th { border-bottom: 0; }
.compare thead th { font-family: var(--mono); font-weight: 400; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; border-bottom: var(--line); }
.compare tbody th { font-weight: 600; width: 22%; }
.compare th + th, .compare td + td, .compare th + td { border-left: 1px solid rgba(14,14,14,.2); }

/* ---------- About ---------- */
.about { border-bottom: var(--line); padding: clamp(56px, 8vw, 120px) 0; }
.about__grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gutter); }
.about__label { grid-column: 1 / span 3; }
.about__text { grid-column: 4 / span 6; }
.about__text h2 { font-size: clamp(40px, 5.5vw, 88px); margin-bottom: 40px; }
.about__text p { font-size: 19px; max-width: 54ch; }
.about__media { grid-column: 10 / span 3; align-self: end; }
.about__sign { margin-top: 36px; padding-top: 16px; border-top: var(--line); max-width: 54ch; display: flex; justify-content: space-between; }
.about__points { grid-column: 4 / span 9; display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 48px; border-top: var(--line); }
.about__points div { padding: 20px 20px 0 0; }
.about__points div + div { padding-left: 20px; border-left: var(--line); }
.about__points h3 { font-size: 28px; margin-bottom: 8px; }
.about__points p { font-size: 15px; margin: 0; }

/* ---------- FAQ ---------- */
.faq { border-bottom: var(--line); padding: clamp(56px, 8vw, 120px) 0; }
.faq__grid { display: grid; grid-template-columns: 5fr 7fr; gap: var(--gutter); }
.faq h2 { font-size: clamp(40px, 5.5vw, 88px); }
details { border-top: var(--line); }
details:last-of-type { border-bottom: var(--line); }
summary { list-style: none; cursor: pointer; padding: 22px 0; display: flex; justify-content: space-between; gap: 16px; font-family: var(--serif); font-size: 24px; letter-spacing: -0.02em; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-family: var(--mono); font-size: 24px; color: var(--red); }
details[open] summary::after { content: "\2212"; }
details p { padding: 0 40px 24px 0; max-width: 56ch; margin: 0; }

/* ---------- Visit ---------- */
.visit { background: var(--white); border-bottom: var(--line); padding: clamp(56px, 8vw, 120px) 0; }
.visit__grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gutter); }
.visit__info { grid-column: 1 / span 5; }
.visit h2 { font-size: clamp(44px, 6vw, 96px); margin-bottom: 36px; }
.visit address { font-style: normal; font-family: var(--serif); font-size: 32px; letter-spacing: -0.02em; line-height: 1.2; margin-bottom: 32px; }
.hours { margin: 0 0 32px; border-top: var(--line); }
.hours div { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid rgba(14,14,14,.25); }
.visit__map { grid-column: 7 / span 6; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--white); padding: 56px 0 28px; }
.footer__top { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.35); }
.footer__big { font-family: var(--serif); font-size: clamp(56px, 12vw, 200px); letter-spacing: -0.05em; line-height: .85; }
.footer__big span { color: var(--red); }
.footer__bot { display: flex; justify-content: space-between; padding-top: 20px; gap: 16px; flex-wrap: wrap; color: #bdb9b2; }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero__copy, .hero__media, .product__media, .product__body,
  .product--flip .product__media, .product--flip .product__body,
  .about__label, .about__text, .about__media, .about__points,
  .visit__info, .visit__map { grid-column: 1 / -1; grid-row: auto; }
  .hero__media { max-width: 420px; margin-top: 24px; margin-left: 28px; }
  .facts__grid, .faq__grid { grid-template-columns: 1fr; }
  .facts .f { grid-template-columns: 1fr; gap: 4px; }
  .index a.row { grid-template-columns: 40px 1fr 40px; }
  .row__d { display: none; }
  .about__media { max-width: 280px; }
  .about__points { grid-template-columns: 1fr; }
  .about__points div + div { border-left: 0; border-top: var(--line); padding-left: 0; margin-top: 20px; }
  .steps { grid-template-columns: 1fr; }
  .steps li + li { border-left: 0; border-top: var(--line); }
  .steps li::before { margin-bottom: 12px; }
  .gallery__grid { grid-template-columns: 1fr; }
  .gallery__grid .ph:nth-child(2) { margin-bottom: 0; }
  .care { grid-template-columns: 1fr; }
  .care > div + div { border-left: 0; border-top: var(--line); }
  .compare { overflow-x: auto; }
  .compare table { min-width: 560px; }
  .menu-btn { display: block; }
  .nav { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; align-items: flex-start; gap: 0; background: var(--paper); border-bottom: var(--line); padding: 8px var(--gutter) 16px; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ph::after, .curtain__line { animation: none !important; }
  .ph::after { opacity: 0 !important; }
  .curtain { transition: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}
