/* ============================================================
   I LOVE BEAVER — variant 2 "the catalog"
   Minimal editorial spec-sheet. Near-white paper, hairline
   rules, Space Grotesk, inventory codes. Red only for the
   heart and prices.
   ============================================================ */

:root {
  --paper: #fcfcfa;
  --ink: #131312;
  --mute: #75756e;
  --hairline: #e3e3dc;
  --red: #e01f26;
  --panel: #f4f4ef;

  --font-display: 'Space Grotesk', 'Helvetica Neue', sans-serif;
  --font-body: 'Instrument Sans', 'Helvetica Neue', Arial, sans-serif;

  --maxw: 1280px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
}

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

a { color: var(--ink); }

:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

.wrap {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 3rem);
}

.label {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mute);
}

.heart { color: var(--red); }

/* ============================ header ============================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--hairline);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 62px;
}

.brand {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  color: var(--ink);
}

.site-nav ul {
  display: flex;
  gap: clamp(0.8rem, 2.5vw, 2.2rem);
  list-style: none;
}

.site-nav a {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--mute);
  padding-block: 0.4rem;
}

.site-nav a:hover { color: var(--ink); }

.site-nav a[aria-current="page"] {
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
}

.nav-toggle {
  display: none;
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  background: none;
  border: 1px solid var(--ink);
  padding: 0.45rem 0.9rem;
  cursor: pointer;
}

@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none;
    position: absolute;
    inset: 100% 0 auto 0;
    background: var(--paper);
    border-bottom: 1px solid var(--hairline);
  }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; gap: 0; padding: 0.6rem 1.25rem 1.2rem; }
  .site-nav a { display: block; padding: 0.7rem 0; }
}

/* ============================ hero ============================ */
.hero {
  border-bottom: 1px solid var(--hairline);
  padding-block: clamp(4rem, 10vw, 8rem) clamp(3rem, 7vw, 5rem);
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(3rem, 10vw, 8.5rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
}

.hero h1 .heart { font-weight: 300; }

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 3rem;
  margin-top: clamp(2rem, 5vw, 3.5rem);
  justify-content: space-between;
  align-items: end;
}

.hero-meta p.lede {
  max-width: 34rem;
  font-size: 1.05rem;
  color: var(--mute);
}

.hero-meta .label { flex-shrink: 0; }

/* ============================ links & buttons ============================ */
.text-link {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 0.15rem;
}

.text-link:hover { color: var(--red); border-color: var(--red); }

.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--paper);
  background: var(--ink);
  border: 1px solid var(--ink);
  padding: 0.9rem 2rem;
  cursor: pointer;
  transition: background 140ms ease, color 140ms ease;
}

.btn:hover { background: var(--red); border-color: var(--red); color: #fff; }

.btn-outline { background: transparent; color: var(--ink); }

.btn-outline:hover { background: var(--ink); color: var(--paper); }

/* ============================ sections ============================ */
.section { padding-block: clamp(3rem, 7vw, 5.5rem); }

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: clamp(1.8rem, 4vw, 3rem);
}

.section-head h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  letter-spacing: -0.01em;
}

/* ============================ product grid ============================ */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
}

.product-card {
  background: var(--paper);
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  text-align: left;
  border: 0;
  font: inherit;
  color: var(--ink);
  cursor: pointer;
  transition: background 160ms ease;
}

.product-card:hover,
.product-card:focus-visible { background: var(--panel); }

.product-card .thumb {
  display: block;
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: #fff;
}

.product-card .thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 220ms ease;
}

.product-card .thumb img.alt { opacity: 0; }

.product-card:hover .thumb img.alt,
.product-card:focus-visible .thumb img.alt { opacity: 1; }

.product-card .sku {
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--mute);
}

.product-card h3 {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.95rem;
  line-height: 1.4;
  flex: 1;
}

.product-card .price {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--red);
}

.card-meta { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; }

/* ---------- filters ---------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 1.6rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--hairline);
  padding-bottom: 1rem;
}

.filter-btn {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  background: none;
  border: 0;
  color: var(--mute);
  cursor: pointer;
  padding: 0.2rem 0;
}

.filter-btn:hover { color: var(--ink); }

.filter-btn[aria-pressed="true"] {
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
}

/* ============================ split rows ============================ */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}

.split .prose p + p { margin-top: 1rem; }

.split .prose p { color: var(--mute); }

.split .prose p strong { color: var(--ink); }

.split h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.6rem, 3.4vw, 2.4rem);
  letter-spacing: -0.01em;
  margin-bottom: 1.2rem;
}

.split figure img { width: 100%; aspect-ratio: 1; object-fit: cover; }

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

/* ============================ ticker strip ============================ */
.strip {
  border-block: 1px solid var(--hairline);
  padding-block: 1rem;
  overflow: hidden;
}

.strip-track {
  display: flex;
  gap: 3rem;
  width: max-content;
  animation: strip 30s linear infinite;
}

.strip span {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--mute);
  white-space: nowrap;
}

.strip span b { color: var(--red); font-weight: 500; }

@keyframes strip { to { transform: translateX(-50%); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .strip-track { animation: none; }
  *, *::before, *::after { transition: none !important; animation-duration: 0.01ms !important; }
}

/* ============================ page hero (interior) ============================ */
.page-hero {
  border-bottom: 1px solid var(--hairline);
  padding-block: clamp(3rem, 7vw, 5rem);
}

.page-hero h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.4rem, 6.5vw, 4.5rem);
  letter-spacing: -0.02em;
  margin-top: 0.8rem;
}

.page-hero p {
  max-width: 40rem;
  margin-top: 1rem;
  color: var(--mute);
  font-size: 1.05rem;
}

/* ============================ spec list (about / contact) ============================ */
.spec-list { border-top: 1px solid var(--hairline); }

.spec-row {
  display: grid;
  grid-template-columns: minmax(140px, 240px) 1fr;
  gap: 1.5rem;
  padding-block: 1.4rem;
  border-bottom: 1px solid var(--hairline);
}

.spec-row dt {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mute);
  padding-top: 0.3rem;
}

.spec-row dd { font-size: 1.05rem; }

.spec-row dd a { text-decoration-color: var(--red); }

.spec-row dd .big {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.3rem, 2.6vw, 1.9rem);
  letter-spacing: -0.01em;
}

@media (max-width: 640px) {
  .spec-row { grid-template-columns: 1fr; gap: 0.3rem; }
}

/* ============================ blog ============================ */
.post-list { display: grid; }

.post-card {
  border-bottom: 1px solid var(--hairline);
  padding-block: clamp(2rem, 5vw, 3rem);
  display: grid;
  grid-template-columns: minmax(120px, 200px) 1fr;
  gap: clamp(1rem, 4vw, 3rem);
}

.post-card:first-child { border-top: 1px solid var(--hairline); }

.post-card time {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mute);
  padding-top: 0.4rem;
}

.post-card h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.3rem, 2.6vw, 1.8rem);
  letter-spacing: -0.01em;
  margin-bottom: 0.8rem;
}

.post-card p { color: var(--mute); }

.post-card p + p { margin-top: 0.8rem; }

.post-card p em { color: var(--ink); }

@media (max-width: 640px) {
  .post-card { grid-template-columns: 1fr; gap: 0.5rem; }
}

/* ============================ footer ============================ */
.site-footer {
  border-top: 1px solid var(--hairline);
  padding-block: clamp(2.5rem, 6vw, 4rem) 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  margin-bottom: 3rem;
}

.site-footer .brand { display: inline-block; margin-bottom: 0.8rem; }

.site-footer p { color: var(--mute); font-size: 0.92rem; max-width: 24rem; }

.site-footer h3 {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mute);
  margin-bottom: 0.9rem;
}

.site-footer ul { list-style: none; display: grid; gap: 0.4rem; }

.site-footer ul a { text-decoration: none; font-size: 0.95rem; }

.site-footer ul a:hover { color: var(--red); }

.footer-bottom {
  border-top: 1px solid var(--hairline);
  padding-top: 1.2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.8rem;
  font-size: 0.8rem;
  color: var(--mute);
}

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

/* ============================ product modal ============================ */
.product-modal {
  border: 1px solid var(--ink);
  padding: 0;
  margin: auto;
  max-width: min(920px, calc(100vw - 2rem));
  max-height: calc(100dvh - 2rem);
  overflow-y: auto;
  width: 100%;
  background: var(--paper);
  color: var(--ink);
}

.product-modal::backdrop { background: rgba(19, 19, 18, 0.5); }

.modal-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
}

.modal-gallery { border-right: 1px solid var(--hairline); background: #fff; }

.modal-gallery .main-img { aspect-ratio: 1; width: 100%; object-fit: cover; }

.thumb-row {
  display: flex;
  gap: 1px;
  padding: 0;
  border-top: 1px solid var(--hairline);
  background: var(--hairline);
  overflow-x: auto;
}

.thumb-row button {
  flex: 0 0 64px;
  height: 64px;
  padding: 0;
  border: 0;
  overflow: hidden;
  cursor: pointer;
  background: #fff;
  opacity: 0.5;
}

.thumb-row button[aria-current="true"] { opacity: 1; }

.thumb-row img { width: 100%; height: 100%; object-fit: cover; }

.modal-info {
  padding: clamp(1.6rem, 3.5vw, 2.6rem);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start;
}

.modal-info .sku {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  color: var(--mute);
}

.modal-info h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.modal-info .price {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.4rem;
  color: var(--red);
}

.modal-info .desc { color: var(--mute); }

.modal-info .note { font-size: 0.82rem; color: var(--mute); font-style: italic; }

.modal-close {
  position: absolute;
  top: 0;
  right: 0;
  width: 44px;
  height: 44px;
  border: 0;
  border-left: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  background: var(--paper);
  font-size: 1rem;
  cursor: pointer;
  line-height: 1;
}

.modal-close:hover { background: var(--red); color: #fff; }

@media (max-width: 680px) {
  .modal-inner { grid-template-columns: 1fr; }
  .modal-gallery { border-right: 0; border-bottom: 1px solid var(--hairline); }
}
