:root {
  --white: #ffffff;
  --paper: #fbfaf7;
  --porcelain: #f6f2ec;
  --granite: #5d4636;
  --granite-dark: #34251d;
  --granite-soft: #8a735f;
  --granite-line: #d8cfc4;
  --ink: #25211d;
  --muted: #6f6961;
  --success: #2e6b47;
  --shadow: 0 16px 50px rgba(52, 37, 29, .09);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  overflow-x: hidden;
}

img,
svg {
  max-width: 100%;
}

a {
  color: inherit;
}

.site-shell {
  min-height: 100vh;
  background:
    linear-gradient(90deg, rgba(93, 70, 54, .08) 0, rgba(93, 70, 54, 0) 1px) 0 0 / 36px 36px,
    linear-gradient(180deg, rgba(93, 70, 54, .05) 0, rgba(93, 70, 54, 0) 1px) 0 0 / 36px 36px,
    var(--white);
}

.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.topline {
  border-bottom: 1px solid var(--granite-line);
  color: var(--granite);
  background: var(--paper);
  font-size: 13px;
}

.topline .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 38px;
  gap: 18px;
}

.topline p {
  margin: 0;
}

.topline a {
  font-weight: 700;
  text-decoration: none;
}

.main-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, .94);
  border-bottom: 2px solid var(--granite);
  backdrop-filter: blur(16px);
}

.nav {
  min-height: 94px;
  display: grid;
  grid-template-columns: 260px 1fr auto;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand img {
  width: 246px;
  height: auto;
  display: block;
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.nav-links a,
.pill-link {
  color: var(--granite-dark);
  text-decoration: none;
  font-size: 14px;
  font-weight: 750;
  padding: 10px 12px;
  border-radius: 2px;
}

.nav-links a:hover,
.pill-link:hover {
  background: var(--porcelain);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--granite);
  background: var(--granite);
  color: var(--white);
  font-weight: 800;
  font-size: 14px;
  text-decoration: none;
  border-radius: 2px;
  cursor: pointer;
}

.button.secondary {
  background: var(--white);
  color: var(--granite);
}

.button:hover {
  box-shadow: 0 0 0 4px rgba(93, 70, 54, .12);
}

.market-hero {
  padding: 38px 0 32px;
  border-bottom: 1px solid var(--granite-line);
  background: linear-gradient(180deg, var(--white), var(--paper));
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, .9fr);
  gap: 38px;
  align-items: start;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--granite);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 2px;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  font-family: Georgia, "Times New Roman", serif;
  color: var(--granite-dark);
  line-height: 1.04;
  font-weight: 700;
  letter-spacing: 0;
}

h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(42px, 7vw, 88px);
}

h2 {
  margin: 0;
  font-size: clamp(32px, 4vw, 54px);
}

h3 {
  margin: 0;
  font-size: 26px;
}

.hero-copy {
  max-width: 720px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.search-panel {
  margin-top: 26px;
  background: var(--white);
  border: 2px solid var(--granite);
  box-shadow: var(--shadow);
  padding: 14px;
}

.search-panel form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.search-panel label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.search-panel input {
  min-height: 48px;
  border: 1px solid var(--granite-line);
  padding: 0 14px;
  font: inherit;
  color: var(--ink);
  background: var(--white);
  border-radius: 2px;
}

.search-panel input:focus {
  outline: 3px solid rgba(93, 70, 54, .18);
  border-color: var(--granite);
}

.quick-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.quick-tags a {
  border: 1px solid var(--granite-line);
  color: var(--granite);
  background: var(--paper);
  padding: 7px 10px;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  border-radius: 2px;
}

.featured-panel {
  background: var(--white);
  border: 1px solid var(--granite-line);
  box-shadow: var(--shadow);
}

.featured-panel header {
  border-bottom: 2px solid var(--granite);
  padding: 18px 18px 14px;
}

.featured-panel header p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.mini-list {
  display: grid;
}

.mini-item {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 14px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--granite-line);
  text-decoration: none;
}

.mini-item:last-child {
  border-bottom: 0;
}

.mini-item img {
  width: 96px;
  height: 82px;
  object-fit: contain;
  border: 1px solid var(--granite-line);
  background: var(--white);
}

.mini-item strong {
  display: block;
  color: var(--granite-dark);
}

.mini-item span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  margin-top: 3px;
}

.ornament {
  width: min(520px, 80%);
  margin: 28px auto 0;
  display: block;
}

.section {
  padding: 68px 0;
  border-bottom: 1px solid var(--granite-line);
}

.section-header {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 22px;
  align-items: end;
  margin-bottom: 28px;
}

.section-header p {
  max-width: 620px;
  margin: 10px 0 0;
  color: var(--muted);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.product-card {
  background: var(--white);
  border: 1px solid var(--granite-line);
  text-decoration: none;
  color: inherit;
  box-shadow: 0 8px 28px rgba(52, 37, 29, .05);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  min-width: 0;
}

.product-card:hover {
  border-color: var(--granite);
  box-shadow: var(--shadow);
}

.product-card figure {
  margin: 0;
  aspect-ratio: 4 / 3;
  background: var(--white);
  display: grid;
  place-items: center;
  border-bottom: 1px solid var(--granite-line);
}

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

.product-card .content {
  padding: 20px;
}

.product-card p {
  color: var(--muted);
  margin: 10px 0 0;
}

.product-card h3,
.product-card p,
.mini-item strong,
.mini-item span {
  overflow-wrap: anywhere;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.meta-row span {
  border: 1px solid var(--granite-line);
  color: var(--granite);
  padding: 6px 8px;
  font-size: 12px;
  font-weight: 800;
  border-radius: 2px;
  background: var(--paper);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 42px;
  align-items: start;
}

.panel {
  background: var(--white);
  border: 1px solid var(--granite-line);
  box-shadow: 0 8px 28px rgba(52, 37, 29, .05);
}

.panel .panel-inner {
  padding: 24px;
}

.rule-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--granite-line);
}

.rule-list li {
  padding: 16px 0;
  border-bottom: 1px solid var(--granite-line);
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 14px;
}

.rule-list b {
  color: var(--granite);
}

.number {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid var(--granite);
  color: var(--granite);
  font-weight: 900;
  font-size: 13px;
}

.seo-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--granite-line);
  background: var(--granite-line);
}

.seo-strip div {
  background: var(--white);
  padding: 18px;
}

.seo-strip strong {
  display: block;
  color: var(--granite-dark);
}

.seo-strip span {
  color: var(--muted);
  font-size: 13px;
}

.seller-callout {
  background: var(--granite);
  color: var(--white);
  padding: 34px;
  border: 1px solid var(--granite);
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 18px;
}

.seller-callout h2,
.seller-callout p {
  color: var(--white);
}

.seller-callout p {
  margin: 8px 0 0;
  opacity: .88;
}

.seller-callout .button {
  background: var(--white);
  color: var(--granite);
  border-color: var(--white);
}

.footer {
  background: var(--paper);
  border-top: 2px solid var(--granite);
  padding: 44px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr repeat(3, 1fr);
  gap: 30px;
}

.footer img {
  width: 230px;
}

.footer p,
.footer a {
  color: var(--muted);
  font-size: 14px;
}

.footer a {
  display: block;
  text-decoration: none;
  margin: 8px 0;
}

.footer h3 {
  font-size: 17px;
  margin-bottom: 10px;
}

.breadcrumb {
  color: var(--muted);
  font-size: 13px;
  margin: 26px 0 16px;
}

.breadcrumb a {
  color: var(--granite);
  font-weight: 800;
  text-decoration: none;
}

.product-page {
  padding-bottom: 70px;
}

.product-detail {
  display: grid;
  grid-template-columns: minmax(320px, .9fr) minmax(0, 1.1fr);
  gap: 42px;
  align-items: start;
}

.product-media {
  background: var(--white);
  border: 1px solid var(--granite-line);
  box-shadow: var(--shadow);
  padding: 20px;
}

.product-media img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  background: var(--white);
}

.product-summary h1 {
  font-size: clamp(38px, 5vw, 70px);
}

.product-summary .lead {
  color: var(--muted);
  font-size: 18px;
  margin: 16px 0 0;
}

.listing-status {
  display: inline-flex;
  margin: 20px 0 0;
  border: 1px solid var(--granite);
  color: var(--granite);
  padding: 8px 10px;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.specs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid var(--granite-line);
  margin-top: 24px;
}

.specs div {
  padding: 14px;
  border-right: 1px solid var(--granite-line);
  border-bottom: 1px solid var(--granite-line);
}

.specs div:nth-child(2n) {
  border-right: 0;
}

.specs div:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.specs span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.specs strong {
  color: var(--granite-dark);
}

.copy-block {
  margin-top: 44px;
  display: grid;
  grid-template-columns: minmax(0, .78fr) minmax(320px, .42fr);
  gap: 36px;
}

.copy-block p {
  color: var(--muted);
}

.copy-block h2 {
  font-size: 34px;
  margin-top: 28px;
}

.callout-list {
  border: 1px solid var(--granite-line);
  background: var(--paper);
  padding: 22px;
}

.callout-list h2 {
  font-size: 28px;
}

.callout-list ul {
  padding-left: 18px;
  color: var(--muted);
}

.intake-form {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.intake-form input,
.intake-form select,
.intake-form textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--granite-line);
  padding: 10px 12px;
  font: inherit;
  background: var(--white);
  color: var(--ink);
  border-radius: 2px;
}

.intake-form textarea {
  min-height: 100px;
  resize: vertical;
}

.notice {
  margin-top: 10px;
  color: var(--success);
  font-weight: 800;
  min-height: 24px;
}

@media (max-width: 920px) {
  .nav {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 14px 0;
  }

  .nav-links,
  .nav-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .hero-grid,
  .split,
  .product-detail,
  .copy-block,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .product-grid,
  .seo-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .seller-callout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .container {
    width: min(1180px, calc(100% - 22px));
  }

  .topline .container {
    align-items: flex-start;
    flex-direction: column;
    padding: 8px 0;
    gap: 4px;
  }

  .brand img {
    width: 210px;
  }

  .nav-links {
    gap: 2px;
  }

  .nav-links a,
  .pill-link {
    padding: 8px 9px;
    font-size: 13px;
  }

  .market-hero {
    padding-top: 26px;
  }

  .search-panel form {
    grid-template-columns: 1fr;
  }

  .product-grid,
  .seo-strip,
  .specs {
    grid-template-columns: 1fr;
  }

  .specs div,
  .specs div:nth-child(2n),
  .specs div:nth-last-child(-n + 2) {
    border-right: 0;
    border-bottom: 1px solid var(--granite-line);
  }

  .specs div:last-child {
    border-bottom: 0;
  }

  .section {
    padding: 46px 0;
  }

  .section-header {
    grid-template-columns: 1fr;
  }
}
