:root {
  color-scheme: light;
  --ink: #211d19;
  --muted: #6d6258;
  --paper: #f7f2ea;
  --panel: #fffaf1;
  --line: #ddd0c1;
  --charcoal: #27302c;
  --moss: #516b55;
  --ochre: #b57a3a;
  --clay: #8f5142;
  --white: #ffffff;
  --shadow: 0 18px 55px rgba(31, 25, 20, 0.14);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
}

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

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
}

.site-header {
  align-items: center;
  background: rgba(247, 242, 234, 0.91);
  border-bottom: 1px solid rgba(221, 208, 193, 0.78);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  left: 0;
  min-height: 74px;
  padding: 0 40px;
  position: sticky;
  right: 0;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
}

.brand,
.nav,
.site-footer nav {
  align-items: center;
  display: flex;
}

.brand {
  gap: 12px;
  font-weight: 760;
  text-decoration: none;
}

.brand-mark {
  align-items: center;
  background: var(--charcoal);
  color: var(--paper);
  display: inline-flex;
  height: 42px;
  justify-content: center;
  width: 42px;
}

.nav {
  gap: 20px;
}

.nav a,
.site-footer a,
.text-link {
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 700;
  text-decoration: none;
}

.nav a:hover,
.site-footer a:hover,
.text-link:hover,
.nav a.is-current {
  color: var(--ink);
}

.header-cta {
  background: var(--moss);
  color: var(--white);
  justify-self: end;
  padding: 12px 18px;
  text-decoration: none;
}

.hero {
  min-height: calc(100svh - 74px);
  overflow: hidden;
  position: relative;
}

.hero::after {
  background: linear-gradient(90deg, rgba(24, 20, 17, 0.78), rgba(24, 20, 17, 0.24) 55%, rgba(24, 20, 17, 0.05));
  content: "";
  inset: 0;
  position: absolute;
}

.hero picture,
.hero img {
  height: 100%;
  inset: 0;
  position: absolute;
  width: 100%;
}

.hero img {
  object-fit: cover;
}

.hero-content {
  color: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: calc(100svh - 74px);
  max-width: 920px;
  padding: 7vw 40px 12vw;
  position: relative;
  z-index: 1;
}

.eyebrow,
.section-kicker {
  font-size: 0.78rem;
  font-weight: 820;
  letter-spacing: 0.12em;
  margin: 0 0 14px;
  text-transform: uppercase;
}

.hero h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3rem, 7vw, 6.8rem);
  line-height: 0.96;
  margin: 0;
  max-width: 860px;
}

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

.button,
.chip,
.cart-button,
.icon-button {
  border: 0;
  cursor: pointer;
  font-weight: 780;
  text-decoration: none;
}

.button {
  align-items: center;
  display: inline-flex;
  justify-content: center;
  min-height: 48px;
  padding: 14px 20px;
}

.button.primary {
  background: var(--clay);
  color: var(--white);
}

.button.secondary {
  background: var(--paper);
  color: var(--ink);
}

section {
  padding: 88px 40px;
  scroll-margin-top: 128px;
}

.band {
  background: var(--charcoal);
  color: var(--paper);
}

.intro {
  align-items: end;
  display: grid;
  gap: 56px;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
}

h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.1rem, 4vw, 4.3rem);
  line-height: 1;
  margin: 0;
}

h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.8rem, 6vw, 6rem);
  line-height: 0.98;
  margin: 0;
}

h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.45rem;
  margin: 0 0 8px;
}

p {
  line-height: 1.65;
}

.section-head {
  align-items: end;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  margin-bottom: 34px;
}

.page-hero {
  background: #eee6da;
  display: grid;
  gap: 20px;
  padding-bottom: 72px;
  padding-top: 86px;
}

.page-hero p {
  max-width: 780px;
}

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

.feature-tile {
  background: var(--panel);
  border: 1px solid var(--line);
}

.feature-tile img {
  aspect-ratio: 1.6 / 1;
  height: auto;
  object-fit: cover;
  width: 100%;
}

.filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.catalog-count {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 850;
  margin: -18px 0 18px;
  text-transform: uppercase;
}

.chip,
.cart-button {
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--ink);
  min-height: 40px;
  padding: 10px 14px;
}

.chip.is-active,
.cart-button span {
  background: var(--ink);
  color: var(--paper);
}

.cart-button span {
  display: inline-flex;
  justify-content: center;
  margin-left: 6px;
  min-width: 24px;
  padding: 2px 6px;
}

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

.project-stack {
  display: grid;
  gap: 22px;
}

.project-card,
.product-card,
.article-feature,
.article-list article,
.article-card,
.review-card,
.video-card,
.plan-card {
  background: var(--panel);
  border: 1px solid var(--line);
}

.project-card.expanded {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(0, 1.15fr);
}

.project-card img,
.product-card img,
.article-feature img,
.article-card > img,
.review-card > img {
  aspect-ratio: 1.2 / 1;
  height: auto;
  object-fit: cover;
  width: 100%;
}

.plan-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 0;
}

.plan-card .card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 16px;
}

.plan-card .button {
  margin-top: auto;
}

.plan-image {
  align-items: center;
  aspect-ratio: 4 / 3;
  background: #efe7dc;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: center;
  overflow: hidden;
  padding: 8px;
}

.plan-image img {
  height: 100%;
  max-height: 180px;
  object-fit: contain;
  width: 100%;
}

.project-card.expanded img {
  aspect-ratio: auto;
  height: 100%;
  min-height: 470px;
}

.card-body {
  padding: 20px;
}

.meta {
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 0.82rem;
  font-weight: 760;
  gap: 8px;
  text-transform: uppercase;
}

.detail-list {
  display: grid;
  gap: 8px;
  margin: 18px 0;
  padding-left: 18px;
}

.detail-list li {
  line-height: 1.45;
}

.meta span:not(:last-child)::after {
  content: "/";
  margin-left: 8px;
}

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

.process-grid article {
  background: rgba(255, 250, 241, 0.08);
  min-height: 230px;
  padding: 26px;
}

.process-grid span {
  color: #d7ad75;
  display: block;
  font-weight: 850;
  margin-bottom: 44px;
}

.article-layout {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1.2fr) minmax(310px, 0.8fr);
}

.article-list {
  display: grid;
  gap: 18px;
}

.article-list.tall {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.article-list article {
  padding: 0;
}

.review-card {
  padding: 24px;
}

.review-grid,
.video-grid,
.plan-grid {
  display: grid;
  gap: 14px;
}

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

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

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

.review-card {
  display: flex;
  flex-direction: column;
  background: rgba(255, 250, 241, 0.08);
  border-color: rgba(255, 250, 241, 0.18);
  padding: 0;
}

.article-card,
.video-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.article-card .card-body,
.review-card .card-body,
.video-card .card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
}

.article-card h2,
.video-card h3 {
  font-size: 1.16rem;
  line-height: 1.12;
}

.article-card p,
.review-card p,
.video-card p {
  font-size: 0.93rem;
  line-height: 1.5;
}

.article-body {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 10px;
  margin-top: 14px;
  padding-top: 14px;
}

.article-body p {
  margin: 0;
}

.article-card .text-link,
.video-card .text-link {
  margin-top: auto;
}

.review-card .link-row {
  margin-top: auto;
}

.synopsis {
  color: var(--paper);
  font-weight: 850;
}

.video-thumb {
  background: #111;
  display: block;
  position: relative;
}

.video-thumb img {
  aspect-ratio: 16 / 9;
  display: block;
  height: auto;
  object-fit: cover;
  width: 100%;
}

.video-thumb span {
  background: rgba(33, 29, 25, 0.86);
  color: var(--paper);
  font-size: 0.78rem;
  font-weight: 850;
  padding: 7px 10px;
  position: absolute;
  right: 10px;
  text-transform: uppercase;
  top: 10px;
}

.link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.plan-toolbar {
  align-items: end;
  background: var(--panel);
  border: 1px solid var(--line);
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  margin-bottom: 18px;
  padding: 18px;
}

.plan-toolbar label:first-child {
  grid-column: span 2;
}

.plan-toolbar label {
  color: var(--muted);
  display: grid;
  font-size: 0.84rem;
  font-weight: 850;
  gap: 8px;
}

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

.tag-row span {
  background: #eee6da;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
  padding: 5px 7px;
}

.plan-details {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 9px;
  margin: 12px 0;
  padding-top: 12px;
}

.plan-details div {
  display: grid;
  gap: 3px;
}

.plan-details dt {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 850;
  text-transform: uppercase;
}

.plan-details dd {
  line-height: 1.45;
  margin: 0;
}

.plan-card h3 {
  font-size: 1.22rem;
  line-height: 1.08;
}

.plan-card p {
  font-size: 0.94rem;
  line-height: 1.5;
}

.article-feature .card-body {
  padding: 26px;
}

.product-card {
  display: flex;
  flex-direction: column;
}

.product-card .card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
}

.price-row {
  align-items: center;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  margin-top: auto;
}

.price {
  font-size: 1.1rem;
  font-weight: 850;
}

.sales {
  background: #eee6da;
  display: grid;
  gap: 44px;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
}

.page-sales {
  min-height: calc(100svh - 74px);
}

.sales h1 {
  margin-bottom: 18px;
}

.sales-copy p {
  max-width: 630px;
}

.sales-points {
  border-top: 1px solid var(--line);
  margin: 28px 0 0;
}

.sales-points div {
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 18px;
  grid-template-columns: 130px minmax(0, 1fr);
  padding: 16px 0;
}

.sales-points dt {
  font-weight: 850;
}

.sales-points dd {
  color: var(--muted);
  margin: 0;
}

.sales-form {
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 26px;
}

.sales-form label {
  color: var(--muted);
  display: grid;
  font-size: 0.86rem;
  font-weight: 800;
  gap: 8px;
}

.wide {
  grid-column: 1 / -1;
}

input,
select,
textarea {
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--ink);
  min-height: 46px;
  padding: 12px;
  width: 100%;
}

textarea {
  resize: vertical;
}

.form-note {
  color: var(--moss);
  font-size: 0.9rem;
  font-weight: 760;
  margin: 0;
}

.cart-drawer {
  background: rgba(33, 29, 25, 0.45);
  inset: 0;
  opacity: 0;
  pointer-events: none;
  position: fixed;
  transition: opacity 180ms ease;
  z-index: 30;
}

.cart-drawer.is-open {
  opacity: 1;
  pointer-events: auto;
}

.cart-panel {
  background: var(--panel);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  height: 100%;
  margin-left: auto;
  max-width: 420px;
  padding: 24px;
  transform: translateX(100%);
  transition: transform 180ms ease;
  width: min(100%, 420px);
}

.cart-drawer.is-open .cart-panel {
  transform: translateX(0);
}

.cart-head,
.cart-line,
.cart-total,
.site-footer {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.icon-button {
  background: var(--ink);
  color: var(--paper);
  height: 38px;
  width: 38px;
}

.cart-items {
  display: grid;
  flex: 1;
  gap: 12px;
  overflow: auto;
}

.cart-line {
  border-bottom: 1px solid var(--line);
  gap: 14px;
  padding: 14px 0;
}

.cart-total {
  border-top: 1px solid var(--line);
  font-size: 1.15rem;
  margin: 16px 0;
  padding-top: 16px;
}

.site-footer {
  background: var(--ink);
  color: var(--paper);
  gap: 24px;
  padding: 38px 40px;
}

.site-footer p {
  color: #cfc5b8;
  margin: 6px 0 0;
}

.site-footer nav {
  gap: 22px;
}

@media (max-width: 960px) {
  .site-header {
    gap: 12px;
    grid-template-columns: 1fr auto;
    min-height: auto;
    padding: 12px 22px;
  }

  .nav {
    grid-column: 1 / -1;
    justify-content: space-between;
    order: 3;
    width: 100%;
  }

  .header-cta {
    justify-self: end;
    padding: 11px 14px;
  }

  .intro,
  .article-layout,
  .sales,
  .project-card.expanded,
  .plan-toolbar {
    grid-template-columns: 1fr;
  }

  .home-grid,
  .project-grid,
  .product-grid,
  .process-grid,
  .article-list.tall,
  .review-grid,
  .video-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .project-card.expanded img {
    min-height: 320px;
  }
}

@media (max-width: 660px) {
  section {
    padding: 64px 18px;
  }

  .hero-content {
    justify-content: flex-start;
    min-height: 72svh;
    padding: 56px 18px 82px;
  }

  .hero {
    min-height: 72svh;
  }

  .hero h1 {
    font-size: clamp(2.45rem, 13vw, 4rem);
  }

  .section-head,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .project-grid,
  .product-grid,
  .process-grid,
  .sales-form,
  .article-list.tall,
  .review-grid,
  .video-grid,
  .plan-grid {
    grid-template-columns: 1fr;
  }

  .sales-points div {
    grid-template-columns: 1fr;
  }

  .wide {
    grid-column: auto;
  }
}
