:root {
  color-scheme: light;
  --ink: #191715;
  --muted: #756e68;
  --paper: #fbf8f1;
  --white: #ffffff;
  --line: #dfe2e5;
  --oak: #9e7650;
  --moss: #d84d40;
  --moss-dark: #c73f35;
  --sand: #ffe37a;
  --shadow: 0 24px 70px rgba(28, 42, 35, 0.12);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
}
body.is-locked { overflow: hidden; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid #2d6f54; outline-offset: 3px; }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 100; background: var(--ink); color: white; padding: 12px 18px; border-radius: 8px; }
.skip-link:focus { top: 16px; }

.demo-strip {
  display: flex;
  justify-content: center;
  gap: 12px;
  padding: 9px 20px;
  background: var(--ink);
  color: white;
  font-size: 13px;
  line-height: 1.4;
}
.demo-strip span { color: #cbd6e5; }

.project-offer {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, .9fr) auto;
  align-items: center;
  gap: clamp(24px, 4vw, 64px);
  padding: 32px clamp(24px, 7vw, 110px);
  background: #ffe37a;
  color: var(--ink);
  border-bottom: 1px solid rgba(25, 23, 21, .14);
}
.project-offer-copy p { margin: 0 0 8px; color: #8f2f27; font-size: 11px; font-weight: 800; letter-spacing: .16em; }
.project-offer-copy h2 { margin: 0; font-family: Arial, Helvetica, sans-serif; font-size: clamp(28px, 3.5vw, 52px); font-weight: 500; line-height: 1.02; letter-spacing: -.045em; }
.project-offer-copy h2 strong { color: #b53027; font-weight: 900; white-space: nowrap; }
.project-offer-copy > span { display: block; margin-top: 10px; color: #5e5147; font-size: 14px; }
.project-offer-payments { display: grid; gap: 10px; margin: 0; }
.project-offer-payments > div { display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: baseline; padding-bottom: 10px; border-bottom: 1px solid rgba(25, 23, 21, .18); }
.project-offer-payments dt { color: #675a50; font-size: 12px; }
.project-offer-payments dd { margin: 0; font-size: 17px; font-weight: 800; white-space: nowrap; }
.project-offer > a { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; border: 1px solid var(--ink); border-radius: 999px; padding: 12px 20px; background: var(--ink); color: white; text-decoration: none; font-size: 13px; font-weight: 700; white-space: nowrap; }
.project-offer > a:hover, .project-offer > a:focus-visible { background: #3a332e; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 28px;
  min-height: 86px;
  padding: 14px clamp(20px, 5vw, 72px);
  background: rgba(247, 246, 242, 0.94);
  border-bottom: 1px solid rgba(23, 36, 58, 0.08);
  backdrop-filter: blur(18px);
}
.brand { display: inline-flex; align-items: center; gap: 12px; width: fit-content; text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 48px; aspect-ratio: 1; color: var(--moss); }
.brand-mark svg { width: 42px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2; }
.brand > span:last-child { display: grid; gap: 2px; }
.brand strong { letter-spacing: 0.13em; font-family: Georgia, "Times New Roman", serif; font-size: 21px; font-weight: 400; }
.brand small { color: var(--moss); font-size: 8px; font-weight: 700; letter-spacing: .13em; }
.site-header nav { display: flex; gap: 30px; }
.site-header nav a { color: #3f4c5e; text-decoration: none; font-size: 14px; }
.site-header nav a:hover, .site-header nav a:focus-visible { color: var(--moss); }
.header-actions { justify-self: end; display: flex; gap: 8px; }
.cart-button, .favorites-button { min-height: 46px; border: 0; border-radius: 999px; padding: 8px 12px 8px 16px; background: var(--white); color: var(--ink); box-shadow: 0 4px 18px rgba(23, 36, 58, 0.08); cursor: pointer; white-space: nowrap; }
.favorites-button.is-active { background: var(--moss-dark); color: white; }
.cart-count, .favorite-count { display: inline-grid; place-items: center; min-width: 26px; height: 26px; margin-left: 6px; border-radius: 999px; background: var(--moss); color: white; font-size: 12px; }
.favorites-button.is-active .favorite-count { background: white; color: var(--moss-dark); }

main { overflow: hidden; }
.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(420px, 1.05fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
  min-height: 670px;
  padding: 72px clamp(24px, 7vw, 110px) 80px;
  background: linear-gradient(140deg, #f8f6f0 0%, #eeeae2 100%);
}
.eyebrow { margin: 0 0 14px; color: var(--moss); font-size: 12px; font-weight: 700; letter-spacing: 0.17em; }
h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; font-weight: 400; }
h1 { max-width: 720px; margin: 0; font-size: clamp(54px, 6.1vw, 92px); line-height: 0.96; letter-spacing: -0.055em; }
.hero-copy > p:not(.eyebrow) { max-width: 620px; margin: 30px 0 0; color: var(--muted); font-size: 18px; line-height: 1.75; }
.hero-actions { display: flex; align-items: center; gap: 24px; margin-top: 34px; }
.primary-link, .checkout-button, .checkout-form > button, .explainer-dialog > button:last-child, .checkout-success button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 50px;
  border: 0;
  border-radius: 999px;
  padding: 13px 24px;
  background: var(--moss-dark);
  color: white;
  text-decoration: none;
  cursor: pointer;
}
.text-button { border: 0; border-bottom: 1px solid currentColor; padding: 5px 0; background: transparent; color: var(--ink); cursor: pointer; }
.hero-points { display: flex; flex-wrap: wrap; gap: 22px; margin: 44px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: 13px; }
.hero-points li::before { content: "•"; margin-right: 9px; color: var(--moss); }
.hero-visual { position: relative; min-height: 520px; border-radius: 36px; background: #d9d2c7; box-shadow: var(--shadow); overflow: hidden; }
.hero-product { position: absolute; background-image: url("./assets/catalog-grid.png"); background-size: 300% 200%; background-repeat: no-repeat; }
.hero-product-lamp { inset: 0 44% 0 0; background-position: 0 0; }
.hero-product-vase { inset: 10% -4% -9% 48%; background-position: 50% 0; border-radius: 28px 0 0 0; box-shadow: -16px 18px 40px rgba(23, 36, 58, 0.12); }
.hero-visual > p { position: absolute; left: 26px; bottom: 24px; display: grid; gap: 4px; margin: 0; padding: 13px 16px; border-radius: 14px; background: rgba(255,255,255,.88); backdrop-filter: blur(12px); }
.hero-visual > p span { color: var(--moss); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.hero-visual > p strong { font-size: 13px; }

.catalog, .service-grid, .about, .demo-legal { padding: 100px clamp(24px, 7vw, 110px); }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 40px; margin-bottom: 34px; }
.section-heading.compact { max-width: 760px; }
h2 { margin: 0; max-width: 850px; font-size: clamp(40px, 5vw, 68px); line-height: 1.04; letter-spacing: -0.035em; }
.search-field { display: grid; gap: 7px; min-width: min(320px, 100%); color: var(--muted); font-size: 12px; }
.search-field input { width: 100%; border: 0; border-bottom: 1px solid #aeb5b5; padding: 10px 2px; background: transparent; color: var(--ink); outline: none; font-size: 15px; }
.search-field input:focus { border-color: var(--moss); }
.filters { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 34px; }
.filters button { border: 1px solid #cfd3d2; border-radius: 999px; padding: 9px 16px; background: transparent; color: var(--muted); cursor: pointer; }
.filters button.is-active { border-color: var(--moss); background: var(--moss); color: white; }
.catalog-meta { display: flex; justify-content: space-between; gap: 24px; margin: -10px 0 24px; color: var(--muted); font-size: 13px; }
.catalog-meta p { margin: 0; }
.catalog-meta [data-catalog-count] { color: var(--ink); font-weight: 700; }
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 36px 18px; }
.product-card { display: flex; min-width: 0; flex-direction: column; }
.product-media { position: relative; }
.product-image, .product-detail-image { display: block; aspect-ratio: 1; border-radius: 18px; background-color: var(--product-accent, #d8c4a8); background-image: linear-gradient(145deg, transparent 66%, rgba(216,77,64,.12)), url("./assets/catalog-grid.png"); background-size: auto, 300% 200%; background-repeat: no-repeat; box-shadow: 0 12px 34px rgba(33, 44, 39, 0.07); }
.favorite-button { position: absolute; top: 10px; right: 10px; display: grid; place-items: center; width: 44px; min-width: 44px; height: 44px; border: 1px solid rgba(23,36,58,.12); border-radius: 50%; padding: 0; background: rgba(255,255,255,.92); color: var(--ink); box-shadow: 0 6px 20px rgba(23,36,58,.12); cursor: pointer; }
.favorite-button svg { width: 21px; fill: transparent; stroke: currentColor; stroke-width: 1.7; }
.favorite-button[aria-pressed="true"] { background: var(--moss-dark); color: white; }
.favorite-button[aria-pressed="true"] svg { fill: currentColor; }
.product-kicker { min-height: 0 !important; margin: 14px 0 7px !important; color: var(--moss) !important; font-size: 10px !important; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.product-card-head { display: grid; gap: 7px; }
.product-card h3 { margin: 0; font-size: 20px; line-height: 1.15; }
.product-card h3 a { text-decoration: none; }
.product-card h3 a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.product-card strong { white-space: nowrap; font-size: 15px; }
.product-card .product-description { display: -webkit-box; min-height: 63px; margin: 9px 0 16px; overflow: hidden; color: var(--muted); font-size: 13px; line-height: 1.55; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.product-card .add-button { width: 100%; min-height: 44px; margin-top: auto; border: 1px solid #aeb6b0; border-radius: 999px; padding: 10px 14px; background: transparent; color: var(--ink); cursor: pointer; }
.product-card .add-button:hover, .product-card .add-button:focus-visible { border-color: var(--moss); background: var(--moss); color: white; }
.empty-state { color: var(--muted); }
.pagination { display: flex; justify-content: center; align-items: center; gap: 18px; margin-top: 46px; }
.pagination button { min-width: 106px; min-height: 44px; border: 1px solid #aeb6b0; border-radius: 999px; padding: 10px 18px; background: white; color: var(--ink); cursor: pointer; }
.pagination button:disabled { cursor: not-allowed; opacity: .42; }
.pagination span { min-width: 124px; color: var(--muted); text-align: center; font-size: 13px; }

.service-grid { background: var(--moss-dark); color: white; }
.service-grid .eyebrow { color: #cddacc; }
.service-cards { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 48px; border-top: 1px solid rgba(255,255,255,.18); }
.service-cards article { padding: 34px 30px 12px 0; border-right: 1px solid rgba(255,255,255,.18); }
.service-cards article + article { padding-left: 30px; }
.service-cards article:last-child { border-right: 0; }
.service-cards span { color: #bfccb9; font-size: 12px; }
.service-cards h3 { margin: 22px 0 12px; font-size: 28px; }
.service-cards p { margin: 0; color: #d8ded8; line-height: 1.65; }

.about { display: grid; grid-template-columns: .9fr 1.1fr; gap: 70px; background: white; }
.about-copy p { margin: 0 0 18px; color: var(--muted); line-height: 1.8; }
.about-copy a { display: inline-block; margin-top: 8px; color: var(--moss-dark); font-weight: 700; }
.demo-legal { background: #eceae4; }
.demo-legal-intro { max-width: 920px; margin: -8px 0 34px; color: var(--muted); line-height: 1.75; }
.demo-legal-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.demo-legal article { min-width: 0; padding: 26px; border: 1px solid #d4d1c9; border-radius: 20px; background: rgba(255,255,255,.68); }
.demo-legal h3 { margin: 0 0 20px; font-size: 24px; }
.demo-legal dl { display: grid; grid-template-columns: minmax(90px, .7fr) 1.3fr; gap: 10px 14px; margin: 0; }
.demo-legal dt { color: var(--muted); font-size: 12px; font-weight: 700; }
.demo-legal dd { margin: 0; overflow-wrap: anywhere; font-size: 13px; line-height: 1.55; }
.demo-legal ul { margin: 0; padding-left: 20px; color: var(--muted); line-height: 1.65; }
.demo-legal li + li { margin-top: 8px; }
.demo-legal article > p { margin: 0; color: var(--muted); line-height: 1.75; }
footer { display: flex; justify-content: space-between; gap: 24px; padding: 32px clamp(24px, 7vw, 110px); background: #eceae4; color: var(--muted); font-size: 13px; }
footer p { margin: 0; }

.drawer-backdrop { position: fixed; inset: 0; z-index: 40; background: rgba(23, 36, 58, .28); backdrop-filter: blur(4px); }
.cart-drawer { position: fixed; top: 0; right: 0; z-index: 41; width: min(460px, 100%); height: 100dvh; padding: 28px; background: white; box-shadow: -18px 0 60px rgba(23,36,58,.18); transform: translateX(105%); transition: transform .25s ease; overflow: auto; }
.cart-drawer.is-open { transform: translateX(0); }
.drawer-head { display: flex; justify-content: space-between; align-items: start; border-bottom: 1px solid var(--line); padding-bottom: 20px; }
.drawer-head h2 { font-size: 43px; }
.icon-button { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 50%; background: white; color: var(--ink); font-size: 27px; cursor: pointer; }
.cart-items { display: grid; gap: 0; }
.cart-item { display: grid; grid-template-columns: 72px 1fr auto; gap: 14px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); }
.cart-item-image { width: 72px; aspect-ratio: 1; border-radius: 12px; background-image: url("./assets/catalog-grid.png"); background-size: 300% 200%; }
.cart-item h3 { margin: 0 0 6px; font-family: Arial, sans-serif; font-size: 14px; font-weight: 700; }
.cart-item p { margin: 0; color: var(--muted); font-size: 13px; }
.quantity { display: flex; align-items: center; gap: 8px; }
.quantity button { width: 30px; height: 30px; border: 1px solid var(--line); border-radius: 50%; background: white; cursor: pointer; }
.cart-empty { margin: 38px 0; color: var(--muted); line-height: 1.6; }
.cart-summary { margin-top: 28px; }
.cart-summary p { display: flex; justify-content: space-between; gap: 20px; color: var(--muted); font-size: 13px; }
.cart-summary p:first-child { color: var(--ink); font-size: 18px; }
.cart-summary p strong { text-align: right; }
.checkout-button { width: 100%; margin-top: 16px; }

dialog { width: min(720px, calc(100% - 32px)); max-height: calc(100dvh - 32px); border: 0; border-radius: 28px; padding: 34px; color: var(--ink); box-shadow: var(--shadow); overflow: auto; }
dialog::backdrop { background: rgba(23,36,58,.38); backdrop-filter: blur(5px); }
.dialog-close { position: absolute; top: 22px; right: 22px; }
.product-dialog { width: min(980px, calc(100% - 32px)); }
.product-detail { display: grid; grid-template-columns: minmax(280px, .95fr) minmax(300px, 1.05fr); gap: 38px; align-items: center; padding: 12px; }
.product-detail-image { width: 100%; }
.product-detail-copy { min-width: 0; padding-right: 38px; }
.product-detail-copy h2 { font-size: clamp(42px, 5vw, 64px); }
.product-detail-description { margin: 22px 0; color: var(--muted); line-height: 1.7; }
.product-detail-features { display: grid; gap: 8px; margin: 0 0 24px; padding-left: 20px; color: var(--muted); }
.product-detail-price { display: block; margin: 0 0 24px; font-family: Georgia, "Times New Roman", serif; font-size: 30px; font-weight: 400; }
.product-detail-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.detail-primary, .detail-secondary { min-height: 48px; border-radius: 999px; padding: 11px 16px; cursor: pointer; }
.detail-primary { border: 1px solid var(--moss-dark); background: var(--moss-dark); color: white; }
.detail-secondary { border: 1px solid #aeb6b0; background: transparent; color: var(--ink); }
.checkout-copy { padding-right: 50px; }
.checkout-copy h2, .explainer-dialog h2, .checkout-success h2 { font-size: clamp(38px, 5vw, 54px); }
.checkout-copy > p:last-child, .explainer-dialog > p, .checkout-success p { color: var(--muted); line-height: 1.65; }
.demo-payment-warning { margin: 20px 0 0; border: 2px solid #b42323; border-radius: 14px; padding: 14px 16px; background: #fff0f0; color: #8f1d1d; font-size: 13px; font-weight: 800; line-height: 1.55; }
.checkout-form > .demo-payment-warning { grid-column: 1 / -1; margin-top: 0; }
.checkout-success > .demo-payment-warning { margin-top: 0; }
.checkout-success .demo-payment-warning { color: #8f1d1d; }
.checkout-form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 26px; }
.checkout-form > label { display: grid; gap: 8px; color: var(--muted); font-size: 13px; }
.checkout-form input[type="text"], .checkout-form input[type="email"], .checkout-form > label input { border: 1px solid var(--line); border-radius: 12px; padding: 13px 14px; color: var(--ink); }
.checkout-form fieldset { display: grid; gap: 10px; border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.checkout-form legend { padding: 0 6px; font-weight: 700; }
.checkout-form fieldset label { color: var(--muted); font-size: 14px; }
.checkout-total { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; padding-top: 16px; border-top: 1px solid var(--line); font-size: 20px; }
.checkout-form > button { grid-column: 1 / -1; }
.checkout-success { padding: 40px 10px 10px; text-align: center; }
.checkout-success > span { display: grid; place-items: center; width: 66px; height: 66px; margin: 0 auto 22px; border-radius: 50%; background: #e7efe9; color: var(--moss); font-size: 30px; }
.demo-order-number { display: block; margin: 18px 0; color: var(--moss); letter-spacing: .12em; }
.explainer-dialog ol { display: grid; gap: 14px; padding-left: 24px; line-height: 1.6; }
.explainer-dialog > button:last-child { margin-top: 8px; }

@media (max-width: 900px) {
  .project-offer { grid-template-columns: 1fr 1fr; }
  .project-offer > a { grid-column: 1 / -1; width: fit-content; }
  .site-header { grid-template-columns: 1fr auto; }
  .site-header nav { display: none; }
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-visual { min-height: 460px; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section-heading { align-items: start; flex-direction: column; }
  .service-cards { grid-template-columns: 1fr; }
  .service-cards article, .service-cards article + article { padding: 26px 0; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.18); }
  .service-cards article:last-child { border-bottom: 0; }
  .about { grid-template-columns: 1fr; gap: 34px; }
  .demo-legal-grid { grid-template-columns: 1fr; }
  .product-detail { grid-template-columns: 1fr 1fr; gap: 24px; }
  .product-detail-copy { padding-right: 30px; }
}

@media (max-width: 620px) {
  .demo-strip { align-items: center; flex-direction: column; gap: 2px; text-align: center; }
  .project-offer { grid-template-columns: 1fr; gap: 22px; padding: 28px 20px; }
  .project-offer-copy p { font-size: 12px; }
  .project-offer-copy h2 { font-size: clamp(34px, 10.5vw, 46px); }
  .project-offer-payments > div { grid-template-columns: 1fr; gap: 4px; }
  .project-offer-payments dt { font-size: 13px; }
  .project-offer-payments dd { white-space: normal; }
  .project-offer > a { grid-column: auto; width: 100%; }
  .site-header { min-height: 74px; padding-inline: 16px; }
  .brand small { display: none; }
  .brand-mark { width: 36px; }
  .header-actions { gap: 5px; }
  .cart-button, .favorites-button { min-height: 44px; padding: 7px 9px; }
  .header-actions .button-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .cart-count, .favorite-count { margin-left: 0; }
  .hero { gap: 38px; padding: 54px 20px 58px; }
  h1 { font-size: clamp(49px, 16vw, 68px); }
  .hero-copy > p:not(.eyebrow) { margin-top: 22px; font-size: 16px; }
  .hero-actions { align-items: stretch; flex-direction: column; gap: 16px; }
  .text-button { width: fit-content; }
  .hero-visual { min-height: 360px; border-radius: 24px; }
  .hero-product-lamp { right: 38%; }
  .hero-product-vase { left: 54%; }
  .catalog, .service-grid, .about, .demo-legal { padding: 72px 20px; }
  h2 { font-size: 42px; }
  .search-field { min-width: 100%; }
  .catalog-meta { align-items: flex-start; flex-direction: column; gap: 5px; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 10px; }
  .product-card h3 { font-size: 16px; }
  .product-card strong { font-size: 14px; }
  .product-card .product-description { min-height: 60px; font-size: 13px; line-height: 1.55; -webkit-line-clamp: 3; }
  .product-kicker { margin-top: 10px !important; font-size: 12px !important; letter-spacing: .03em; }
  .favorite-button { top: 7px; right: 7px; width: 44px; height: 44px; }
  .pagination { gap: 8px; }
  .pagination button { min-width: 84px; padding-inline: 12px; }
  .pagination span { min-width: 104px; font-size: 13px; }
  footer { align-items: flex-start; flex-direction: column; }
  .demo-legal dl { grid-template-columns: 1fr; gap: 3px; }
  .demo-legal dd + dt { margin-top: 9px; }
  .cart-drawer { padding: 22px 18px; }
  dialog { padding: 28px 20px; }
  .product-detail { grid-template-columns: 1fr; gap: 24px; padding: 0; }
  .product-detail-image { max-height: 42vh; }
  .product-detail-copy { padding-right: 0; }
  .product-detail-copy h2 { padding-right: 42px; font-size: 38px; }
  .product-detail-actions { grid-template-columns: 1fr; }
  .checkout-form { grid-template-columns: 1fr; }
  .checkout-total, .checkout-form > button { grid-column: 1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cart-drawer { transition: none; }
}
