/*
  Shared spacing and responsive polish for List & Line.
  The base layer is shared; device-specific layout changes stay inside bounded media queries.
  Spacing follows an 8px rhythm and the site's warm, soft visual style.
*/
:root {
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 48px;
  --space-6: 64px;
  --section-gap: 120px;
  --content-max: 1280px;
}

html { scroll-padding-top: 24px; }
body { font-size: 16px; line-height: 1.5; }
img { max-width: 100%; }
.demo-banner {
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 8px 16px;
  background: #302b27;
  color: #fffdfa;
  text-align: center;
  font-size: 13px;
  line-height: 1.35;
}
.demo-badge {
  flex: 0 0 auto;
  padding: 3px 8px;
  border: 1px solid #c9bba9;
  border-radius: 999px;
  color: #ead9c5;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
}
.wrap,
.inner-wrap {
  width: min(var(--content-max), calc(100% - 64px));
  margin-inline: auto;
}

/* Main storefront */
.topline { min-height: 32px; }
.header { min-height: 80px; }
.hero-copy { max-width: 780px; padding-top: 88px; }
.hero h1 { line-height: 1; }
.hero-text,
.intro-copy > p:not(.eyebrow),
.feature-content > p:not(.eyebrow),
.newsletter p:not(.eyebrow),
.about-copy > p:not(.eyebrow),
.page-heading > p:not(.eyebrow),
.product-description,
.value-card p,
.info-card p,
.faq-list details p {
  font-size: 16px;
  line-height: 1.6;
}
.eyebrow,
.product-kind,
.product-category,
.inner-product-type,
.cart-line-type,
.badge,
.tag { font-size: 13px; }
.intro { padding: 120px 0 80px; gap: 64px; }
.intro-copy { max-width: 400px; }
.intro h2 { margin-bottom: 16px; }
.intro-copy > p:not(.eyebrow) { margin-bottom: 24px; }
.category-grid { gap: 24px; }
.category { padding: 24px; }
.feature { margin-bottom: 120px; }
.feature-content { max-width: 480px; }
.feature h2 { margin-bottom: 16px; }
.feature-content > p:not(.eyebrow) { margin-bottom: 24px; }
.products { padding-bottom: 120px; }
.section-head { margin-bottom: 32px; gap: 16px; }
.product-grid { gap: 24px; }
.product-image { height: 260px; }
.product-kind { margin: 16px 0 8px; }
.product-card h3 { font-size: 15px; line-height: 1.4; margin-bottom: 8px; }
.newsletter { padding: 64px 0; }
.newsletter-inner { gap: 48px; }
.newsletter h2 { margin-bottom: 16px; }
.footer { padding: 64px 0 24px; }
.footer-main { gap: 32px; }
.footer h3 { margin: 8px 0 16px; }
.footer-main > div:not(:first-child) { gap: 12px; }
.footer-main > div:not(:first-child) > a { font-size: 14px; }

/* Interior pages */
.page-heading { padding: 32px 0 48px; }
.page-heading .eyebrow,
.eyebrow { margin-bottom: 16px; }
.catalog-toolbar { margin: 16px 0 32px; gap: 24px; }
.catalog-grid { gap: 32px 24px; }
.inner-product-image { height: 280px; }
.inner-product-type { margin: 16px 0 8px; }
.inner-product h2 { margin-bottom: 8px; }
.product-layout { gap: 64px; padding: 24px 0 48px; }
.product-gallery { height: 560px; }
.product-price { margin: 24px 0 16px; }
.product-specs { margin: 32px 0; }
.product-specs div { gap: 16px; padding: 16px 0; }
.related { padding-top: 48px; }
.related-grid { gap: 24px; }
.related-card img { height: 180px; object-fit: cover; }
.related-card a { padding: 16px; }
.about-hero { padding: 48px 0 80px; gap: 64px; }
.about-copy h1 { margin-bottom: 24px; }
.values { gap: 24px; margin-bottom: 80px; }
.value-card { padding: 32px; }
.value-card h2 { margin-bottom: 12px; }
.info-cards { gap: 24px; margin: 32px 0 64px; }
.info-card { padding: 28px; }
.info-card h2 { margin-bottom: 12px; }
.contact-layout { gap: 64px; }
.contact-list { gap: 16px; }
.contact-item { padding: 24px 0; }
.contact-form { gap: 16px; }
.contact-form input,
.contact-form textarea { padding: 16px; }
.faq-list { gap: 16px; margin: 24px 0 80px; }
.faq-list details { padding: 0 24px; }
.faq-list summary { padding: 20px 32px 20px 0; }
.faq-list details p { padding: 0 0 20px; }
.inner-footer { margin-top: 96px; padding: 56px 0 24px; }
.inner-footer-grid { gap: 32px; padding-bottom: 40px; }
.inner-footer h3 { margin: 8px 0 16px; }
.inner-footer-grid > div:not(:first-child) { gap: 12px; }
.inner-footer p,
.inner-footer a:not(.inner-logo) { font-size: 14px; }

/* Cart spacing */
.cart-page { padding-bottom: 80px; }
.cart-heading { padding: 24px 0 32px; }
.cart-layout { gap: 32px; }
.cart-list { gap: 16px; }
.cart-line { gap: 24px; padding: 16px; }
.cart-summary { padding: 24px; }
.cart-summary h2 { margin-bottom: 24px; }
.summary-row { gap: 16px; padding: 12px 0; }
.shipping-message { font-size: 14px; line-height: 1.55; margin: 16px 0 24px; }
.cart-footnote { font-size: 13px; line-height: 1.55; }

/* Alternate storefront */
.masthead { min-height: 80px; }
.hero-desc,
.promise-copy,
.campaign-copy > p:not(.kicker) { font-size: 16px; line-height: 1.6; }
.hero-desc { margin: 24px 0; }
.promise { padding: 96px 0; }
.categories { padding: 40px 0 96px; gap: 24px; }
.category { padding: 24px; }
.campaign { margin-bottom: 96px; }
.campaign-copy { padding: 56px 48px; }
.campaign-copy h2 { margin-bottom: 16px; }
.products { padding-bottom: 96px; }
.product-grid { gap: 24px; }
.product-category { margin: 16px 0 8px; font-size: 13px; }
.product h3 { font-size: 15px; line-height: 1.4; margin-bottom: 8px; }
.service-band { padding: 32px 0; }
.service-grid { gap: 32px; }

@media (min-width: 651px) and (max-width: 1100px) {
  :root { --section-gap: 96px; }
  .wrap,
  .inner-wrap { width: min(var(--content-max), calc(100% - 48px)); }
  .hero-copy { max-width: 68%; padding-top: 72px; }
  .hero h1 { font-size: clamp(42px, 5vw, 56px); }
  .intro { gap: 40px; padding: 96px 0 72px; }
  .category-grid { gap: 16px; }
  .category { padding: 20px; }
  .feature { margin-bottom: 96px; }
  .products { padding-bottom: 96px; }
  .product-grid { gap: 24px 16px; }
  .product-image { height: 240px; }
  .newsletter { padding: 56px 0; }
  .footer-main { gap: 24px; }
  .catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; }
  .inner-product-image { height: 300px; }
  .product-layout { gap: 40px; }
  .product-gallery { height: 460px; }
  .about-hero { gap: 40px; padding: 32px 0 64px; }
  .values,
  .info-cards { gap: 20px; }
  .contact-layout { gap: 40px; }
  .inner-footer-grid { gap: 24px; }
  .cart-layout { grid-template-columns: minmax(0, 1.3fr) minmax(260px, .7fr); gap: 24px; }
  .hero-main { max-width: 62%; }
  .hero-stack { right: 8%; transform: scale(.82); transform-origin: top right; }
  .hero-side { right: 3%; }
  .promise { gap: 32px; padding: 72px 0; }
  .campaign-copy { padding: 40px 32px; }
  .service-grid { gap: 20px; }
}

@media (max-width: 650px) {
  :root { --section-gap: 80px; }
  .wrap,
  .inner-wrap { width: calc(100% - 32px); }
  .topline { min-height: 32px; padding-inline: 8px; font-size: 12px; }
  .demo-banner { min-height: 38px; gap: 8px; padding: 7px 12px; font-size: 12px; }
  .demo-badge { padding: 3px 7px; font-size: 9px; }
  .header { min-height: 68px; gap: 8px; }
  .logo { font-size: 23px; }
  .head-actions { flex: 0 0 auto; gap: 6px; }
  .cart-btn { min-height: 44px; height: 44px; padding-inline: 10px; }
  .hero { height: 760px; min-height: 0; }
  .hero-copy { max-width: none; padding: 32px 20px 0; }
  .hero h1 { max-width: 12ch; font-size: clamp(40px, 10vw, 46px); line-height: 1; }
  .hero-text { max-width: 34ch; margin: 16px 0 24px; font-size: 16px; }
  .button { min-height: 48px; font-size: 14px; }
  .social-proof { position: relative; z-index: 1; gap: 12px; margin-top: 24px; font-size: 14px; transform: none !important; }
  .hero-note { left: auto !important; right: 16px !important; top: auto; bottom: 48px; width: 150px; transform: none !important; }
  .hero-caption { left: 16px; right: auto; bottom: 18px; width: calc(100% - 190px); max-width: 120px; line-height: 1.25; }
  .intro { padding: 80px 0 64px; gap: 32px; }
  .intro h2 { font-size: 34px; line-height: 1.1; margin-bottom: 16px; }
  .intro-copy { max-width: none; }
  .intro-copy > p:not(.eyebrow) { margin-bottom: 24px; }
  .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .category { min-height: 176px; height: auto; padding: 16px; }
  .feature { min-height: 0; height: auto; margin-bottom: 80px; border-radius: 20px; }
  .feature-content { padding: 24px 20px; max-width: 100%; }
  .feature h2 { font-size: 34px; line-height: 1.08; margin-bottom: 16px; }
  .feature-content > p:not(.eyebrow) { max-width: 34ch; margin-bottom: 24px; }
  .products { padding-bottom: 80px; }
  .section-head { display: block; margin-bottom: 24px; }
  .section-head h2 { font-size: 32px; line-height: 1.1; }
  .product-controls { display: flex; width: 100%; max-width: 100%; min-width: 0; flex-wrap: wrap; justify-content: flex-start; gap: 8px; margin-top: 16px; }
  .product-controls .filter { flex: 0 0 auto; padding: 8px 12px; font-size: 13px; }
  .product-controls .text-link { flex: 0 0 auto; margin-left: 0; font-size: 13px; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 16px; }
  .product-image { height: clamp(160px, 54vw, 220px); }
  .product-card h3,
  .product h3 { font-size: 14px; line-height: 1.4; }
  .newsletter { padding: 48px 0; }
  .newsletter-inner { display: block; }
  .newsletter h2 { font-size: 30px; line-height: 1.15; margin-bottom: 16px; }
  .newsletter form { width: 100%; max-width: 100%; margin-top: 24px; }
  .footer { padding: 48px 0 24px; }
  .footer-main { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 20px; }
  .footer-main > div:first-child { grid-column: 1 / -1; }
  .footer-main > div:not(:first-child) > a { font-size: 14px; }
  .footer-bottom { flex-wrap: wrap; gap: 12px 16px; }
  .footer-bottom span:last-child { text-align: left; }

  .page-heading { padding: 24px 0 32px; }
  .page-heading h1 { font-size: 38px; line-height: 1.08; }
  .page-heading > p:not(.eyebrow) { margin-top: 16px; }
  .catalog-toolbar { align-items: stretch; flex-direction: column; gap: 16px; margin: 8px 0 24px; }
  .catalog-filters { gap: 8px; }
  .catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 12px; }
  .inner-product-image { height: clamp(160px, 52vw, 220px); }
  .inner-product h2 { font-size: 15px; line-height: 1.4; }
  .product-layout { grid-template-columns: 1fr; gap: 28px; padding: 8px 0 32px; }
  .product-gallery { height: clamp(300px, 92vw, 420px); }
  .product-info h1 { font-size: 36px; line-height: 1.1; }
  .product-buy-row { gap: 12px; }
  .product-buy-row .inner-button { min-height: 48px; padding-inline: 16px; }
  .related { padding-top: 32px !important; }
  .related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; }
  .related-card img { height: clamp(120px, 38vw, 160px); }
  .related-card a { padding: 12px; }
  .about-hero { grid-template-columns: 1fr; gap: 24px; padding: 24px 0 48px; }
  .about-copy h1 { font-size: 38px; line-height: 1.1; margin-bottom: 20px; }
  .about-visual { min-height: 260px; }
  .values,
  .info-cards { grid-template-columns: 1fr; gap: 16px; margin: 24px 0 48px; }
  .value-card,
  .info-card { padding: 24px; }
  .contact-layout { grid-template-columns: 1fr; gap: 32px; }
  .contact-list { gap: 12px; }
  .contact-item { padding: 16px 0; }
  .contact-form { grid-template-columns: 1fr; gap: 16px; }
  .contact-form .full,
  .form-hint { grid-column: 1; }
  .contact-form input,
  .contact-form textarea { min-height: 48px; padding: 14px 16px; }
  .faq-list { gap: 12px; margin: 16px 0 56px; }
  .faq-list details { padding-inline: 18px; }
  .faq-list summary { min-height: 56px; padding: 18px 28px 18px 0; }
  .faq-list details p { padding-bottom: 18px; }
  .inner-footer { margin-top: 64px; padding: 40px 0 24px; }
  .inner-footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; padding-bottom: 32px; }
  .inner-footer-grid > div:first-child { grid-column: 1 / -1; }
  .inner-footer-grid > div:not(:first-child) { gap: 12px; }
  .inner-footer p,
  .inner-footer a:not(.inner-logo) { font-size: 14px; }
  .inner-footer-bottom { flex-wrap: wrap; gap: 12px 16px; }

  .cart-page { padding-bottom: 56px; }
  .cart-heading { padding: 16px 0 24px; }
  .cart-layout { grid-template-columns: 1fr; gap: 20px; }
  .cart-list { gap: 12px; }
  .cart-layout,
  .cart-layout > *,
  .cart-summary,
  .cart-line { min-width: 0; width: 100%; max-width: 100%; }
  .cart-line { grid-template-columns: 64px minmax(0, 1fr); align-items: start; gap: 10px; padding: 12px; }
  .cart-line-image { grid-column: 1; grid-row: 1; width: 64px; height: 72px; }
  .cart-line > div:nth-child(2) { grid-column: 2; grid-row: 1; min-width: 0; }
  .cart-line-title { font-size: 14px; line-height: 1.35; }
  .cart-line-side { grid-column: 1 / -1; grid-row: 2; display: flex; align-items: center; justify-items: initial; flex-wrap: wrap; gap: 8px; min-width: 0; }
  .cart-line-total { margin-right: auto; }
  .cart-qty button { width: 40px; height: 40px; }
  .cart-summary { padding: 16px; }
  .cart-summary h2 { margin-bottom: 20px; }
  .summary-row { min-width: 0; gap: 8px; font-size: 13px; }
  .summary-row > * { min-width: 0; }
  .summary-row > :last-child { text-align: right; overflow-wrap: anywhere; }
  .cart-summary .inner-button { min-width: 0; width: 100%; max-width: 100%; padding-inline: 14px; gap: 10px; font-size: 13px; white-space: normal; }
  .cart-footnote { overflow-wrap: anywhere; }

  .masthead { min-height: 68px; gap: 10px; }
  .hero-main { left: 20px; top: 32px; right: 20px; max-width: none; }
  .hero h1 { font-size: 40px; line-height: 1.05; }
  .hero-desc { max-width: 34ch; margin: 16px 0 24px; font-size: 16px; }
  .cta { min-height: 48px; height: 48px; font-size: 14px; }
  .promise { grid-template-columns: 1fr; gap: 16px; padding: 64px 0; }
  .promise h2 { font-size: 34px; line-height: 1.1; }
  .promise-mark { margin-top: 0; }
  .categories { padding: 24px 0 64px; gap: 16px; }
  .campaign { min-height: 0; height: auto; grid-template-columns: 1fr; margin-bottom: 80px; }
  .campaign-img { min-height: 200px; height: 200px; }
  .campaign-copy { padding: 24px 20px 28px; }
  .campaign-copy h2 { font-size: 30px; line-height: 1.15; margin-bottom: 16px; }
  .campaign-copy > p:not(.kicker) { margin-bottom: 24px; }
  .section-title { display: block; margin-bottom: 24px; }
  .section-title h2 { font-size: 30px; line-height: 1.1; }
  .filters { flex-wrap: wrap; gap: 8px; margin-top: 16px; }
  .filter { min-height: 40px; padding: 8px 12px; }
  .product-photo { height: clamp(160px, 52vw, 220px); }
  .service-band { padding: 24px 0; }
  .service-grid { grid-template-columns: 1fr; gap: 16px; }
  .footer-content { grid-template-columns: minmax(0, 1fr) auto; gap: 16px; }
  .footer-content > p { max-width: 18ch; }
  .footer-links { grid-column: 1 / -1; gap: 16px 20px; padding: 16px 0; }
}

@media (max-width: 380px) {
  .wrap,
  .inner-wrap { width: calc(100% - 32px); }
  .hero { height: 780px; }
  .hero-note { left: auto !important; right: 12px !important; width: 144px; }
  .hero-caption { left: 14px; width: calc(100% - 178px); }
  .topline { display: block; height: 32px; min-height: 32px; padding: 0 8px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; line-height: 32px; font-size: 10px; }
  .logo { font-size: 21px; }
  .cart-btn { width: 44px; min-height: 44px; height: 44px; justify-content: center; padding: 0; }
  .cart-btn span { display: none; }
  .hero-copy { padding-inline: 16px; }
  .hero h1 { font-size: 38px; }
  .product-controls .text-link { flex-basis: 100%; }
  .cart-line { grid-template-columns: 64px minmax(0, 1fr); }
  .cart-line-side { grid-column: 1 / -1; grid-row: 2; justify-items: start; display: flex; align-items: center; flex-wrap: wrap; }
  .cart-line-total { margin-right: auto; }
}
