/* PROTKPETS official catalog — 2026
   Self-contained styles. Fonts are local (see /fonts). */

:root {
  --paper: #f4efe6;
  --paper-2: #e9e2d6;
  --paper-3: #fcfaf6;
  --ink: #1c1814;
  --ink-soft: #5a534a;
  --accent: #9a3b24;
  --accent-hover: #7c2e1c;
  --line: rgba(28, 24, 20, 0.14);
  --line-strong: rgba(28, 24, 20, 0.28);
  --focus: #9a3b24;
  --header-h: 4.25rem;
  --wrap: 72rem;
  --font-serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", Palatino, "Times New Roman", serif;
  --font-sans: "Outfit", "Avenir Next", "Segoe UI", sans-serif;
  --shadow-focus: 0 0 0 3px var(--paper), 0 0 0 5px var(--accent);
}

@font-face {
  font-family: "Fraunces";
  src: url("../fonts/Fraunces-wght.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Fraunces";
  src: url("../fonts/Fraunces-italic.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Outfit";
  src: url("../fonts/Outfit-wght.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.65;
  letter-spacing: 0.005em;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--accent-hover);
}

:focus {
  outline: none;
}

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

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -5rem;
  z-index: 200;
  background: var(--ink);
  color: var(--paper);
  padding: 0.6rem 1rem;
  text-decoration: none;
  font-weight: 500;
}

.skip-link:focus {
  top: 0.75rem;
  color: var(--paper);
  outline-offset: 2px;
}

.wrap {
  width: min(100% - 2.5rem, var(--wrap));
  margin-inline: auto;
}

@media (min-width: 720px) {
  .wrap { width: min(100% - 4.5rem, var(--wrap)); }
}

/* Header
   -------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  line-height: 1;
}

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

.wordmark-mark {
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 2px;
  background: var(--accent);
  flex: 0 0 auto;
}

.nav-toggle {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 550;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  padding: 0.45rem 0.7rem;
  cursor: pointer;
}

.nav-toggle[aria-expanded="true"] {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.site-nav {
  display: none;
}

.site-nav.is-open {
  display: block;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: var(--paper-3);
  border-bottom: 1px solid var(--line);
  padding: 0.5rem 0 1.25rem;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0.25rem 1.25rem;
}

.site-nav a {
  display: block;
  color: var(--ink);
  text-decoration: none;
  padding: 0.7rem 0.25rem;
  border-bottom: 1px solid var(--line);
  font-size: 1rem;
  font-weight: 450;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--accent);
}

.site-nav a[aria-current="page"] {
  font-weight: 550;
}

@media (min-width: 960px) {
  .nav-toggle { display: none; }

  .site-nav {
    display: block;
    position: static;
    background: transparent;
    border: 0;
    padding: 0;
  }

  .site-nav ul {
    display: flex;
    align-items: center;
    gap: 0.15rem 1.55rem;
    padding: 0;
  }

  .site-nav a {
    padding: 0.3rem 0;
    border: 0;
    font-size: 0.92rem;
    letter-spacing: 0.01em;
  }
}

/* Typography
   -------------------------------------------------- */

.eyebrow {
  margin: 0 0 1rem;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 550;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

h1, h2, h3, .title-serif {
  font-family: var(--font-serif);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.12;
  color: var(--ink);
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.4rem, 6.4vw, 4.85rem);
  font-weight: 480;
  margin: 0 0 1.25rem;
}

h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.35rem);
  margin: 0 0 0.85rem;
}

h3 {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  margin: 0 0 0.5rem;
}

.deck {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.2rem, 2.2vw, 1.55rem);
  line-height: 1.45;
  color: var(--ink-soft);
  margin: 0 0 1.5rem;
  max-width: 36rem;
  text-wrap: pretty;
}

.lead,
.prose p {
  max-width: 38rem;
}

.lead {
  font-size: 1.12rem;
  color: var(--ink);
  margin: 0 0 1rem;
}

.prose p {
  margin: 0 0 1rem;
}

.prose p:last-child {
  margin-bottom: 0;
}

/* Buttons
   -------------------------------------------------- */

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 0.85rem;
  margin: 1.35rem 0 0;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.2rem;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 550;
  letter-spacing: 0.03em;
  line-height: 1.2;
  text-decoration: none;
  border-radius: 2px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn-primary {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.btn-primary:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--paper-3);
}

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

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

.btn-note {
  margin: 0.65rem 0 0;
  font-size: 0.82rem;
  color: var(--ink-soft);
  max-width: 28rem;
}

/* Hero
   -------------------------------------------------- */

.hero {
  padding: clamp(3rem, 8vw, 6.5rem) 0 clamp(2.5rem, 6vw, 4.5rem);
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 4rem;
    align-items: end;
  }
}

.hero .lead {
  font-size: 1.15rem;
  line-height: 1.7;
}

.hero-aside {
  color: var(--ink-soft);
  font-size: 0.98rem;
  max-width: 26rem;
  padding-bottom: 0.3rem;
}

.hero-aside p { margin: 0 0 0.8rem; }
.hero-aside p:last-child { margin: 0; }

/* Product grid
   -------------------------------------------------- */

.section {
  padding: clamp(3.2rem, 8vw, 5.5rem) 0;
}

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

.section-head p {
  margin: 0;
  max-width: 28rem;
  color: var(--ink-soft);
}

.product-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 760px) {
  .product-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.75rem 1.5rem;
  }
}

.product-card {
  display: flex;
  flex-direction: column;
  color: inherit;
  height: 100%;
}

.product-card .media {
  background: var(--paper-3);
  border: 1px solid var(--line);
  aspect-ratio: 1;
  overflow: hidden;
  margin-bottom: 1.1rem;
}

.product-card .media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: var(--paper-3);
}

.product-card .kicker {
  margin: 0 0 0.3rem;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 550;
  color: var(--ink-soft);
}

.product-card h2 {
  font-size: clamp(1.45rem, 2.4vw, 1.8rem);
  margin: 0 0 0.35rem;
}

.product-card h2 a {
  color: inherit;
  text-decoration: none;
}

.product-card h2 a:hover {
  color: var(--accent);
}

.product-card .meta {
  margin: 0 0 0.65rem;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.product-card .blurb {
  margin: 0;
  flex: 1;
  color: var(--ink);
  max-width: 34rem;
}

/* Notice band
   -------------------------------------------------- */

.band {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(2rem, 5vw, 3.25rem) 0;
}

.band h2,
.band p,
.band a {
  color: var(--paper);
}

.band a:hover {
  color: #f0d2c6;
}

.band .wrap {
  display: grid;
  gap: 1rem 3rem;
}

@media (min-width: 800px) {
  .band .wrap {
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
  }
}

.band h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  margin: 0 0 0.5rem;
}

.band p { margin: 0; max-width: 36rem; }

/* Page intro (inner pages)
   -------------------------------------------------- */

.page-hero {
  padding: clamp(2.4rem, 6vw, 4.2rem) 0 1.5rem;
}

.crumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.crumb a {
  color: var(--ink-soft);
  text-decoration: none;
}

.crumb a:hover { color: var(--accent); }

.crumb li:not(:last-child)::after {
  content: "/";
  margin-left: 0.5rem;
  color: var(--line-strong);
}

/* Product layout
   -------------------------------------------------- */

.product-layout {
  display: grid;
  gap: 2rem 3.5rem;
  padding-bottom: clamp(2.5rem, 6vw, 4rem);
  align-items: start;
}

@media (min-width: 900px) {
  .product-layout {
    grid-template-columns: 1.05fr 0.95fr;
  }
}

.gallery {
  position: sticky;
  top: calc(var(--header-h) + 1rem);
}

.gallery-main {
  background: var(--paper-3);
  border: 1px solid var(--line);
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(3.15rem, 1fr));
  gap: 0.4rem;
  margin-top: 0.6rem;
  list-style: none;
  padding: 0;
}

@media (min-width: 640px) {
  .thumbs {
    grid-template-columns: repeat(auto-fill, minmax(4.4rem, 1fr));
    gap: 0.45rem;
  }
}

.thumbs button {
  display: block;
  width: 100%;
  padding: 0;
  border: 2px solid var(--line);
  background: var(--paper-3);
  border-radius: 2px;
  cursor: pointer;
  aspect-ratio: 1;
  overflow: hidden;
}

.thumbs button img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.thumbs button[aria-current="true"] {
  border-color: var(--ink);
}

.thumbs button:hover {
  border-color: var(--ink-soft);
}

.facts {
  display: grid;
  gap: 0.15rem;
  margin: 1.4rem 0 0;
  padding: 0;
}

.facts div {
  display: grid;
  grid-template-columns: 8.5rem 1fr;
  gap: 0.75rem;
  padding: 0.7rem 0;
  border-top: 1px solid var(--line);
  font-size: 0.95rem;
}

.facts dt {
  margin: 0;
  color: var(--ink-soft);
  font-weight: 450;
}

.facts dd {
  margin: 0;
}

.split-features {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 700px) {
  .split-features {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem 1.75rem;
  }
}

.feature {
  background: var(--paper-3);
  border: 1px solid var(--line);
  padding: 1.35rem 1.3rem 1.4rem;
}

.feature p {
  margin: 0;
  color: var(--ink);
}

.specs {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.98rem;
}

.specs th,
.specs td {
  text-align: left;
  padding: 0.8rem 0.9rem 0.8rem 0;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.specs th {
  font-weight: 450;
  color: var(--ink-soft);
  width: 34%;
}

.subproduct + .subproduct {
  margin-top: clamp(3rem, 8vw, 5.5rem);
  padding-top: clamp(2.5rem, 6vw, 4rem);
  border-top: 1px solid var(--line);
}

.related {
  border-top: 1px solid var(--line);
}

.related-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 700px) {
  .related-grid { grid-template-columns: repeat(3, 1fr); }
}

.related-card {
  color: inherit;
  text-decoration: none;
}

.related-card .media {
  background: var(--paper-3);
  border: 1px solid var(--line);
  aspect-ratio: 1;
  margin-bottom: 0.75rem;
  overflow: hidden;
}

.related-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.related-card h3 {
  font-size: 1.2rem;
  margin: 0 0 0.2rem;
}

.related-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.related-card:hover h3 { color: var(--accent); }

/* Simple pages
   -------------------------------------------------- */

.narrow {
  max-width: 42rem;
}

.catalog-list {
  list-style: none;
  margin: 1.25rem 0 1.5rem;
  padding: 0;
  border-top: 1px solid var(--line);
}

.catalog-list li {
  border-bottom: 1px solid var(--line);
}

.catalog-list a {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 0;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--font-serif);
  font-size: 1.2rem;
}

.catalog-list a:hover { color: var(--accent); }

.catalog-list span {
  font-family: var(--font-sans);
  font-size: 0.88rem;
  color: var(--ink-soft);
  padding-top: 0.25rem;
}

/* Footer
   -------------------------------------------------- */

.site-footer {
  background: #241e19;
  color: #e4ddd2;
  padding: 3.25rem 0 2rem;
  margin-top: 0;
  border-top: 1px solid rgba(244, 239, 230, 0.08);
}

.footer-grid {
  display: grid;
  gap: 2.2rem 2.5rem;
}

@media (min-width: 800px) {
  .footer-grid {
    grid-template-columns: 1.3fr 1fr 1fr 1.1fr;
  }
}

.site-footer .wordmark { color: var(--paper); }
.site-footer .wordmark:hover { color: var(--paper); }

.footer-blurb {
  margin: 1rem 0 0;
  max-width: 18rem;
  color: #c9b8a4;
  font-size: 0.95rem;
}

.site-footer h2 {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 550;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #c9b8a4;
  margin: 0 0 0.85rem;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li + li { margin-top: 0.4rem; }

.site-footer a {
  color: var(--paper);
  text-decoration: none;
}

.site-footer a:hover {
  color: #f0d2c6;
  text-decoration: underline;
}

.footer-legal {
  margin-top: 2.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(244, 239, 230, 0.14);
  color: #c9b8a4;
  font-size: 0.85rem;
}

.footer-legal p { margin: 0; }

/* 404
   -------------------------------------------------- */

.page-404 {
  min-height: calc(100vh - 18rem);
  display: flex;
  align-items: center;
  padding: 4rem 0;
}

/* Utilities */

.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;
}

@media print {
  .site-header,
  .site-footer,
  .nav-toggle,
  .btn-row { }
  .site-header { position: static; }
  body { background: #fff; }
}

.btn-on-dark {
  border-color: var(--paper) !important;
  color: var(--paper) !important;
}
.btn-on-dark:hover {
  background: var(--paper) !important;
  color: var(--ink) !important;
}

@media (max-width: 899px) {
  .gallery { position: static; }
}

@media (min-width: 900px) {
  .product-card:nth-child(1) .media,
  .product-card:nth-child(2) .media {
    aspect-ratio: 1;
  }
}
