:root {
  --cream: #f9f3ed;
  --paper: #fffdf8;
  --sand: #cec38d;
  --olive: #c4b525;
  --olive-dark: #7a6724;
  --ink: #20171a;
  --muted: #6d6562;
  --line: rgba(32, 23, 26, 0.14);
  --shadow: 0 18px 48px rgba(32, 23, 26, 0.12);
  --display: "IvyOra Display", "Georgia", "Times New Roman", serif;
  --sans: "IvyStyle Sans", "Segoe UI", Arial, sans-serif;
  --step-0: clamp(0.96rem, 0.92rem + 0.18vw, 1.06rem);
  --step-1: clamp(1.06rem, 1rem + 0.34vw, 1.25rem);
  --step-2: clamp(1.32rem, 1.2rem + 0.58vw, 1.68rem);
  --step-3: clamp(2.2rem, 1.78rem + 2vw, 3.55rem);
  --step-4: clamp(3.2rem, 2.35rem + 4.15vw, 6.2rem);
  --space-page: clamp(18px, 5vw, 76px);
  --section-y: clamp(54px, 8vw, 106px);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--step-0);
}

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

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 112px 1fr auto;
  align-items: center;
  gap: clamp(14px, 3vw, 28px);
  min-height: 66px;
  padding: 10px var(--space-page);
  background: rgba(249, 243, 237, 0.94);
  border-bottom: 3px solid var(--olive);
  backdrop-filter: blur(14px);
}

.brand img,
.site-footer img {
  width: 104px;
  height: auto;
  mix-blend-mode: multiply;
}

.view:not(.is-active) {
  display: none !important;
}

.view.is-active.about-section,
.view.is-active.contact-section {
  display: grid;
}

.nav,
.footer-nav {
  display: flex;
  justify-content: center;
  gap: clamp(14px, 3vw, 38px);
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.nav a,
.footer-nav a {
  position: relative;
  padding: 10px 0;
}

.nav a::after,
.footer-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 5px;
  left: 0;
  height: 2px;
  background: var(--olive);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.nav a:hover::after,
.footer-nav a:hover::after,
.nav a.is-current::after,
.footer-nav a.is-current::after {
  transform: scaleX(1);
}

.header-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 11px 16px;
  border: 0;
  border-radius: 4px;
  cursor: pointer;
  font: inherit;
  font-weight: 900;
  line-height: 1.1;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, opacity 180ms ease;
}

.button:hover,
.header-cta:hover,
.filter-button:hover {
  transform: translateY(-2px);
}

.header-cta,
.button.primary {
  background: var(--olive);
  color: var(--ink);
  box-shadow: 0 12px 24px rgba(122, 103, 36, 0.22);
}

.button.secondary {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}

.button.full {
  width: 100%;
}

.button.disabled {
  opacity: 0.48;
  pointer-events: none;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(320px, 1.06fr);
  gap: clamp(30px, 6vw, 82px);
  min-height: calc(100vh - 66px);
  padding: clamp(40px, 7vw, 96px) var(--space-page) 58px;
  overflow: hidden;
}

.home-hero {
  position: relative;
  min-height: calc(100vh - 66px);
  display: grid;
  align-items: end;
  padding: clamp(34px, 7vw, 86px) var(--space-page);
  overflow: hidden;
  background: var(--ink);
}

.home-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.74;
}

.home-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(32, 23, 26, 0.78), rgba(32, 23, 26, 0.3) 58%, rgba(32, 23, 26, 0.1));
}

.home-hero-copy {
  position: relative;
  z-index: 1;
  max-width: 980px;
  color: var(--cream);
}

.home-hero-copy .eyebrow {
  color: var(--olive);
}

.home-hero-copy p:not(.eyebrow) {
  max-width: 760px;
  color: rgba(249, 243, 237, 0.88);
  font-size: var(--step-1);
  line-height: 1.48;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: min(36vw, 420px);
  height: 9px;
  background: var(--olive);
}

.hero-copy {
  position: relative;
  align-self: center;
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--olive-dark);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1,
h2 {
  font-family: var(--display);
  font-weight: 500;
  letter-spacing: 0;
  text-wrap: balance;
}

h1 {
  max-width: 880px;
  margin-bottom: 20px;
  font-size: var(--step-4);
  line-height: 0.94;
}

h2 {
  margin-bottom: 16px;
  font-size: var(--step-3);
  line-height: 1;
}

h3 {
  margin-bottom: 10px;
  font-size: var(--step-2);
  line-height: 1.12;
  text-wrap: balance;
}

.hero-copy p:not(.eyebrow),
.section-heading p,
.about-section p,
.contact-copy p {
  color: var(--muted);
  font-size: var(--step-1);
  line-height: 1.48;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero-board {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  grid-auto-rows: minmax(190px, 1fr);
  gap: 14px;
  align-self: center;
}

.hero-product {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 8px solid var(--paper);
  border-radius: 4px;
  box-shadow: var(--shadow);
}

.hero-product-large {
  grid-row: span 2;
}

.home-about,
.catalog-section,
.featured-products,
.about-section,
.contact-section,
.home-contact {
  padding: var(--section-y) var(--space-page);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(280px, 0.68fr);
  gap: clamp(22px, 5vw, 58px);
  align-items: end;
  margin-bottom: 34px;
}

.section-heading .eyebrow {
  grid-column: 1 / -1;
  margin-bottom: -6px;
}

.home-about {
  background: linear-gradient(90deg, rgba(196, 181, 37, 0.28), transparent 38%), var(--paper);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.values-grid article {
  display: grid;
  gap: 10px;
  padding: clamp(22px, 4vw, 38px);
  background: var(--cream);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.values-grid span {
  color: var(--olive-dark);
  font-weight: 900;
}

.values-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.44;
}

.featured-products {
  position: relative;
  overflow: hidden;
  background: var(--cream);
}

.compact-heading {
  max-width: 760px;
  margin-bottom: 28px;
}

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

.featured-grid article {
  display: grid;
  grid-template-rows: 210px auto;
  align-items: center;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
}

.featured-grid img {
  width: 100%;
  max-height: 192px;
  object-fit: contain;
  padding: 18px;
}

.featured-grid h3 {
  margin: 0;
  padding: 16px 18px;
  background: var(--paper);
  border-top: 4px solid var(--olive);
  font-family: var(--sans);
  font-size: var(--step-1);
  font-weight: 900;
}

.home-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.home-contact {
  background: var(--ink);
  color: var(--cream);
}

.home-contact .eyebrow {
  color: var(--olive);
}

.home-contact h2 {
  max-width: 880px;
}

.home-contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.home-contact-links a {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  padding: 10px 14px;
  border: 1px solid rgba(249, 243, 237, 0.24);
  border-radius: 4px;
  font-weight: 900;
}

.catalog-section {
  background: var(--paper);
}

.catalog-tools {
  position: sticky;
  top: 66px;
  z-index: 10;
  display: grid;
  grid-template-columns: minmax(220px, 0.34fr) 1fr;
  gap: 14px;
  align-items: center;
  padding: 14px;
  margin-bottom: 20px;
  background: rgba(249, 243, 237, 0.94);
  border: 1px solid var(--line);
  border-radius: 4px;
  backdrop-filter: blur(14px);
}

.search-box,
.lead-form label {
  display: grid;
  gap: 7px;
  color: var(--olive-dark);
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
}

input {
  min-height: 45px;
  padding: 0 13px;
}

textarea {
  resize: vertical;
  padding: 12px 13px;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-button {
  min-height: 38px;
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  font-weight: 900;
}

.filter-button.is-active {
  background: var(--olive);
  color: var(--ink);
}

.catalog-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
  gap: 18px;
  align-items: start;
}

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

.product-card {
  display: grid;
  grid-template-rows: 240px auto;
  min-height: 100%;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 4px;
  box-shadow: 0 10px 26px rgba(32, 23, 26, 0.06);
}

.product-card figure {
  display: grid;
  place-items: center;
  margin: 0;
  padding: 18px;
  background: #ffffff;
}

.product-card img {
  max-height: 210px;
  object-fit: contain;
}

.product-content {
  display: grid;
  gap: 12px;
  padding: 18px;
}

.product-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.product-category,
.product-size {
  color: var(--olive-dark);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.product-size {
  color: var(--muted);
}

.product-content h3 {
  min-height: 48px;
  margin: 0;
  font-family: var(--sans);
  font-size: var(--step-1);
  font-weight: 900;
  line-height: 1.18;
}

.product-content p {
  min-height: 74px;
  margin: 0;
  color: var(--muted);
  line-height: 1.42;
}

.select-product {
  min-height: 42px;
  border: 1px solid var(--ink);
  border-radius: 4px;
  background: var(--ink);
  color: var(--cream);
  cursor: pointer;
  font: inherit;
  font-weight: 900;
}

.select-product.is-selected {
  background: var(--olive);
  color: var(--ink);
}

.cart-panel {
  position: sticky;
  top: 154px;
  display: grid;
  gap: 16px;
  padding: 20px;
  background: var(--cream);
  border: 2px solid var(--olive);
  border-radius: 4px;
}

.cart-panel h3 {
  margin-bottom: 6px;
  font-family: var(--sans);
  font-size: var(--step-2);
  font-weight: 900;
}

.cart-panel p {
  margin: 0;
  color: var(--muted);
}

.cart-panel ul {
  display: grid;
  gap: 8px;
  min-height: 80px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cart-panel li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--muted);
}

.remove-item {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-weight: 900;
}

.about-section,
.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(300px, 0.72fr);
  gap: clamp(30px, 6vw, 88px);
  align-items: center;
}

.about-section {
  background: var(--ink);
  color: var(--cream);
}

.about-section .eyebrow,
.about-section p {
  color: rgba(249, 243, 237, 0.78);
}

.about-image {
  min-height: 360px;
  overflow: hidden;
  border: 8px solid var(--olive);
  border-radius: 4px;
}

.about-image img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
}

.contact-section {
  background: linear-gradient(90deg, rgba(196, 181, 37, 0.22), transparent 42%), var(--cream);
}

.contact-list {
  display: grid;
  gap: 10px;
  margin-top: 24px;
  font-size: clamp(1.1rem, 2.2vw, 1.8rem);
  font-weight: 900;
}

.contact-list a {
  width: fit-content;
  overflow-wrap: anywhere;
  border-bottom: 2px solid var(--olive);
}

.lead-form {
  display: grid;
  gap: 16px;
  padding: clamp(20px, 3vw, 32px);
  background: var(--paper);
  border: 1px solid rgba(32, 23, 26, 0.18);
  border-radius: 4px;
}

.site-footer {
  display: grid;
  grid-template-columns: 112px 1fr;
  align-items: center;
  gap: 24px;
  padding: 20px var(--space-page);
  background: var(--ink);
  color: var(--cream);
}

.site-footer img {
  padding: 5px;
  background: transparent;
  filter: brightness(0) invert(1);
  mix-blend-mode: normal;
}

.footer-nav {
  justify-content: flex-end;
  color: var(--cream);
}

@media (max-width: 1180px) {
  .catalog-layout {
    grid-template-columns: 1fr;
  }

  .cart-panel {
    position: static;
    order: -1;
  }

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

@media (max-width: 920px) {
  .site-header {
    position: static;
    grid-template-columns: 100px 1fr;
  }

  .header-cta {
    grid-column: 2;
    justify-self: end;
  }

  .nav {
    grid-column: 1 / -1;
    justify-content: flex-start;
    overflow-x: auto;
  }

  .hero,
  .section-heading,
  .about-section,
  .contact-section,
  .catalog-tools {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 42px;
  }

  .hero-board {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 176px;
  }

  .catalog-tools {
    position: static;
  }

  .values-grid,
  .featured-grid,
  .product-grid {
    grid-template-columns: 1fr 1fr;
  }

  .site-footer {
    grid-template-columns: 1fr;
  }

  .footer-nav {
    justify-content: flex-start;
    flex-wrap: wrap;
  }
}

@media (max-width: 600px) {
  :root {
    --section-y: 46px;
  }

  .site-header {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .brand img,
  .site-footer img {
    width: 92px;
  }

  .header-cta {
    grid-column: 1;
    justify-self: stretch;
  }

  .nav {
    gap: 18px;
    font-size: 0.76rem;
  }

  .hero-board,
  .values-grid,
  .featured-grid,
  .product-grid {
    grid-template-columns: 1fr;
  }

  .hero-product-large {
    grid-row: auto;
  }

  .product-card {
    grid-template-rows: 220px auto;
  }

  .product-content p {
    min-height: auto;
  }

  .cart-panel li {
    align-items: flex-start;
  }
}
