:root {
  color-scheme: light;
  --ink: #17191f;
  --muted: #626875;
  --paper: #f4f1eb;
  --surface: #ffffff;
  --surface-soft: #ebe6dd;
  --accent: #af3f33;
  --accent-dark: #7c2a22;
  --green: #2f6b55;
  --line: #ded7cb;
  --shadow: 0 18px 40px rgba(23, 25, 31, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 0.95rem clamp(1rem, 4vw, 4rem);
  background: rgba(244, 241, 235, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 850;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 2.3rem;
  height: 2.3rem;
  place-items: center;
  border-radius: 8px;
  background: var(--ink);
  color: white;
  font-size: 0.8rem;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  color: var(--muted);
  font-size: 0.93rem;
  font-weight: 750;
}

.site-nav a,
.text-link {
  text-decoration: none;
}

.site-nav a:hover,
.text-link:hover {
  color: var(--accent-dark);
}

.hero {
  display: grid;
  min-height: 66vh;
  align-items: end;
  padding: clamp(5rem, 9vw, 8rem) clamp(1rem, 4vw, 4rem);
  background:
    linear-gradient(90deg, rgba(23, 25, 31, 0.78), rgba(23, 25, 31, 0.3)),
    url("https://images.unsplash.com/photo-1472851294608-062f824d29cc?auto=format&fit=crop&w=1800&q=80")
      center / cover;
  color: white;
}

.hero-copy {
  width: min(760px, 100%);
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #ffcf9d;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 12ch;
  margin-bottom: 1rem;
  font-size: clamp(3rem, 8vw, 6.4rem);
  line-height: 0.95;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.05;
}

h3 {
  margin-bottom: 0.45rem;
  font-size: 1.05rem;
  line-height: 1.25;
}

.hero p {
  max-width: 650px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
}

.hero-actions,
.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-actions {
  margin-top: 2rem;
}

.button,
.item-card a {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  padding: 0.72rem 0.95rem;
  font: inherit;
  font-weight: 850;
  text-decoration: none;
}

.button.primary,
.item-card a {
  background: var(--accent);
  color: white;
}

.button.primary:hover,
.item-card a:hover {
  background: var(--accent-dark);
}

.button.secondary {
  background: rgba(255, 255, 255, 0.16);
  color: white;
  outline: 1px solid rgba(255, 255, 255, 0.55);
}

.section {
  padding: clamp(4rem, 8vw, 6rem) clamp(1rem, 4vw, 4rem);
}

.muted-section {
  background: var(--surface-soft);
}

.intro-grid,
.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(260px, 1.05fr);
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: end;
}

.intro-grid p,
.item-card p,
.item-meta,
.site-footer {
  color: var(--muted);
}

.section-heading {
  margin-bottom: 1.5rem;
}

.text-link {
  justify-self: end;
  color: var(--accent);
  font-weight: 850;
}

.item-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.compact-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.item-card {
  display: grid;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.item-image {
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(175, 63, 51, 0.15), rgba(47, 107, 85, 0.16)),
    #f5f0e9;
}

.item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-fallback {
  width: 4rem;
  height: 4rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: white;
  color: var(--accent);
  font-weight: 900;
}

.item-body {
  display: grid;
  gap: 0.75rem;
  padding: 1rem;
}

.qr-print-link {
  justify-self: start;
  min-height: auto;
  padding: 0;
  background: transparent;
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 850;
  text-decoration: underline;
}

.qr-print-link:hover {
  background: transparent;
  color: var(--accent-dark);
}

.item-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 750;
}

.pill {
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
  background: #f0ece4;
}

.price {
  color: var(--green);
  font-weight: 900;
}

.site-footer {
  padding: 1.5rem clamp(1rem, 4vw, 4rem);
  border-top: 1px solid var(--line);
}

.site-footer p {
  margin: 0;
}

@media (max-width: 1050px) {
  .item-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .intro-grid,
  .section-heading,
  .item-grid,
  .compact-grid {
    grid-template-columns: 1fr;
  }

  .text-link {
    justify-self: start;
  }

  .hero {
    min-height: 62vh;
  }
}
