:root {
  --bg: #f7f7f3;
  --surface: #ffffff;
  --text: #151816;
  --muted: #5d655f;
  --accent: #1c5f45;
  --accent-text: #ffffff;
  --line: #dfe4df;
  --footer-bg: #151816;
  --footer-text: #f6f8f6;

  --container: 1180px;
  --space-section: 72px;
  --card-radius: 18px;
  --button-radius: 999px;
  --shadow: 0 18px 54px rgba(20, 30, 24, .09);
  --hero-min: 510px;
  --heading-font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --body-font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body-font);
  line-height: 1.65;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: var(--accent); }
.container { width: min(var(--container), calc(100% - 40px)); margin-inline: auto; }
.design-backdrop { pointer-events: none; position: fixed; inset: 0; z-index: -1; }

/* Typography families */
.heading-serif { --heading-font: Georgia, "Times New Roman", serif; }
.heading-display { --heading-font: Impact, Haettenschweiler, "Arial Narrow Bold", ui-sans-serif, system-ui, sans-serif; }
.heading-mono { --heading-font: "Courier New", ui-monospace, monospace; }
.heading-sans { --heading-font: Inter, ui-sans-serif, system-ui, sans-serif; }

.bodyfont-serif { --body-font: Georgia, "Times New Roman", serif; }
.bodyfont-humanist { --body-font: "Trebuchet MS", "Segoe UI", ui-sans-serif, sans-serif; }
.bodyfont-mono { --body-font: "Courier New", ui-monospace, monospace; }
.bodyfont-sans { --body-font: Inter, ui-sans-serif, system-ui, sans-serif; }

h1, h2, h3, .brand, .footer-brand strong {
  font-family: var(--heading-font);
}
h1 {
  max-width: 960px;
  margin: 10px 0 20px;
  font-size: clamp(44px, 6vw, 82px);
  line-height: .98;
  letter-spacing: -.045em;
}
h2 {
  margin: 0 0 18px;
  font-size: clamp(30px, 4vw, 50px);
  line-height: 1.06;
  letter-spacing: -.03em;
}
h3 { margin: 0 0 12px; font-size: 25px; line-height: 1.2; }
p { margin: 0 0 1em; }
.lead { max-width: 760px; color: var(--muted); font-size: clamp(18px, 2vw, 21px); }
.eyebrow, .section-kicker {
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.section-kicker { margin-bottom: 12px; }

/* Density */
.density-compact { --space-section: 48px; --hero-min: 430px; --container: 1240px; }
.density-balanced { --space-section: 72px; --hero-min: 510px; --container: 1180px; }
.density-airy { --space-section: 96px; --hero-min: 570px; --container: 1240px; }

/* Radius */
.radius-none { --card-radius: 0px; --button-radius: 0px; }
.radius-small { --card-radius: 10px; --button-radius: 8px; }
.radius-medium { --card-radius: 18px; --button-radius: 14px; }
.radius-large { --card-radius: 30px; --button-radius: 18px; }
.radius-pill { --card-radius: 36px; --button-radius: 999px; }

/* Header base */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 85%, transparent);
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(16px);
}
.header-row {
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 26px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
  color: var(--text);
  font-weight: 850;
  text-decoration: none;
}
.brand-image {
  width: 42px;
  height: 42px;
  object-fit: cover;
  border-radius: max(4px, calc(var(--card-radius) * .55));
}
.brand-text { line-height: 1; }
.main-nav { display: flex; flex-wrap: wrap; gap: 18px; }
.main-nav a {
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  font-weight: 650;
}
.main-nav a:hover { color: var(--accent); }

/* Header variants */
.header-centered .header-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
}
.header-centered .brand { margin: 0; justify-self: start; }
.header-centered .main-nav { justify-self: center; }
.header-centered .header-cta { justify-self: end; }
.header-floating .site-header {
  top: 14px;
  width: min(var(--container), calc(100% - 32px));
  margin-inline: auto;
  border: 1px solid var(--line);
  border-radius: max(14px, var(--card-radius));
  box-shadow: var(--shadow);
  background: color-mix(in srgb, var(--surface) 88%, transparent);
}
.header-floating .header-row { width: calc(100% - 28px); }
.header-minimal .site-header {
  border-bottom: 0;
  background: var(--bg);
  backdrop-filter: none;
}
.header-split .header-row { justify-content: space-between; }
.header-split .brand { margin-right: 0; }
.header-split .main-nav { margin-left: auto; }

/* Buttons */
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border: 1px solid var(--accent);
  border-radius: var(--button-radius);
  background: var(--accent);
  color: var(--accent-text);
  font-weight: 800;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease;
}
.button:hover { transform: translateY(-2px); box-shadow: 0 10px 24px color-mix(in srgb, var(--accent) 18%, transparent); }
.button-small { min-height: 40px; padding-inline: 16px; font-size: 14px; }
.button-secondary { background: var(--surface); color: var(--text); border-color: var(--line); }

/* Hero base */
.hero { position: relative; padding: var(--space-section) 0; }
.hero-grid {
  min-height: var(--hero-min);
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: clamp(28px, 5vw, 68px);
  align-items: center;
}
.hero-copy { position: relative; z-index: 2; }
.hero-art {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: calc(var(--card-radius) * 1.35);
  box-shadow: var(--shadow);
}
.hero-art img {
  width: 100%;
  min-height: 330px;
  max-height: 620px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* Hero variants */
.hero-split-left .hero-art { order: -1; }
.hero-centered .hero-grid { grid-template-columns: 1fr; text-align: center; }
.hero-centered .hero-copy { max-width: 900px; margin-inline: auto; }
.hero-centered .lead { margin-inline: auto; }
.hero-centered .actions { justify-content: center; }
.hero-centered .hero-art { width: min(900px, 100%); margin-inline: auto; }
.hero-editorial .hero-grid { grid-template-columns: .82fr 1.18fr; align-items: end; }
.hero-editorial h1 { font-size: clamp(52px, 7.6vw, 110px); }
.hero-editorial .hero-art { border-radius: 0; box-shadow: none; }
.hero-framed .hero-grid {
  padding: clamp(24px, 4vw, 56px);
  border: 1px solid var(--line);
  border-radius: calc(var(--card-radius) * 1.4);
  background: var(--surface);
}
.hero-framed .hero-art { box-shadow: none; }
.hero-poster .hero-grid { grid-template-columns: 1fr; }
.hero-poster .hero-art { order: -1; }
.hero-poster .hero-art img { aspect-ratio: 16 / 7; max-height: 540px; }
.hero-poster .hero-copy { max-width: 930px; margin-top: -90px; padding: 32px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--card-radius); box-shadow: var(--shadow); }
.hero-full-bleed .hero { padding-top: 22px; }
.hero-full-bleed .hero-grid {
  min-height: min(74vh, 720px);
  position: relative;
  overflow: hidden;
  grid-template-columns: 1fr;
  padding: clamp(30px, 6vw, 76px);
  border-radius: calc(var(--card-radius) * 1.4);
  background: var(--surface);
}
.hero-full-bleed .hero-art { position: absolute; inset: 0; border: 0; border-radius: 0; box-shadow: none; }
.hero-full-bleed .hero-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.72), rgba(0,0,0,.18)); }
.hero-full-bleed .hero-art img { width: 100%; height: 100%; max-height: none; aspect-ratio: auto; }
.hero-full-bleed .hero-copy { max-width: 760px; color: #fff; }
.hero-full-bleed .hero-copy .lead { color: rgba(255,255,255,.82); }
.hero-full-bleed .hero-copy .eyebrow { color: #fff; }
.hero-full-bleed .button-secondary { border-color: rgba(255,255,255,.45); background: rgba(0,0,0,.22); color: #fff; }

/* Sections */
.section { padding: var(--space-section) 0; }
.section-title-row { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; }
.section-count { color: var(--muted); font-weight: 750; }
.content-section-grid { max-width: 960px; }
.content-copy p, .content-copy li { color: var(--muted); font-size: 18px; }
.content-copy ul { padding-left: 1.25em; }

.content-wide .content-section-grid { max-width: var(--container); }
.content-split .content-section-grid,
.content-editorial .content-section-grid {
  max-width: var(--container);
  display: grid;
  grid-template-columns: minmax(220px, .72fr) minmax(0, 1.28fr);
  gap: clamp(36px, 7vw, 110px);
  align-items: start;
}
.content-split .content-heading,
.content-editorial .content-heading { position: sticky; top: 112px; }
.content-editorial .content-copy p:first-child {
  font-size: clamp(22px, 2.3vw, 30px);
  line-height: 1.45;
  color: var(--text);
}

/* Section treatments */
.sections-alternating .content-section:nth-of-type(even),
.sections-alternating .faq-section { background: color-mix(in srgb, var(--surface) 58%, var(--bg)); }
.sections-bands .content-section {
  border-top: 1px solid var(--line);
}
.sections-bands .content-section-1 { background: var(--surface); }
.sections-cards .content-section-grid,
.sections-cards .faq-shell,
.sections-cards .related-shell {
  padding: clamp(26px, 4vw, 52px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--card-radius);
  box-shadow: var(--shadow);
}

/* Catalog */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-top: 28px;
}
.catalog-grid-2 .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.catalog-grid-3 .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.catalog-grid-4 .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.catalog-featured .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.catalog-featured .product-card:first-child { grid-column: span 2; grid-row: span 2; }
.catalog-featured .product-card:first-child .product-media img { aspect-ratio: 16 / 10; min-height: 420px; }
.catalog-mosaic .product-grid { grid-template-columns: repeat(12, 1fr); }
.catalog-mosaic .product-card { grid-column: span 4; }
.catalog-mosaic .product-card:nth-child(5n + 1),
.catalog-mosaic .product-card:nth-child(5n + 4) { grid-column: span 8; }
.catalog-list .product-grid { grid-template-columns: 1fr; }
.catalog-list .product-card { display: grid; grid-template-columns: minmax(220px, 38%) 1fr; }
.catalog-list .product-media img { height: 100%; min-height: 240px; aspect-ratio: auto; }

.product-card {
  position: relative;
  overflow: hidden;
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--card-radius);
  box-shadow: var(--shadow);
}
.product-media { display: block; overflow: hidden; background: color-mix(in srgb, var(--surface) 65%, var(--bg)); }
.product-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .35s ease; }
.product-card:hover .product-media img { transform: scale(1.025); }
.product-card-body { position: relative; padding: 22px; }
.product-card h3 { margin: 2px 0 10px; }
.product-card p { color: var(--muted); }
.product-index { color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .12em; }
.product-more { display: inline-flex; gap: 8px; align-items: center; font-weight: 800; text-decoration: none; }

/* Card variants */
.card-borderless .product-card { border: 0; box-shadow: none; background: transparent; }
.card-borderless .product-card-body { padding-inline: 0; }
.card-sharp .product-card { border-width: 2px; box-shadow: none; border-radius: 0; }
.card-soft .product-card { border-color: transparent; box-shadow: 0 14px 44px color-mix(in srgb, var(--text) 9%, transparent); }
.card-glass .product-card {
  background: color-mix(in srgb, var(--surface) 76%, transparent);
  backdrop-filter: blur(18px);
  border-color: color-mix(in srgb, var(--line) 72%, transparent);
}
.card-editorial .product-card { border: 0; box-shadow: none; border-radius: 0; background: transparent; }
.card-editorial .product-card-body { border-top: 1px solid var(--line); padding-inline: 0; }
.card-overlay .product-card,
.card-poster .product-card { min-height: 420px; background: #111; }
.card-overlay .product-media,
.card-poster .product-media { position: absolute; inset: 0; }
.card-overlay .product-media::after,
.card-poster .product-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgba(0,0,0,.84)); }
.card-overlay .product-media img,
.card-poster .product-media img { height: 100%; aspect-ratio: auto; }
.card-overlay .product-card-body,
.card-poster .product-card-body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; color: #fff; }
.card-overlay .product-card p,
.card-poster .product-card p,
.card-overlay .product-index,
.card-poster .product-index { color: rgba(255,255,255,.76); }
.card-overlay .product-more,
.card-poster .product-more { color: #fff; }

/* FAQ and related */
.faq-shell {
  display: grid;
  grid-template-columns: .65fr 1.35fr;
  gap: clamp(28px, 6vw, 78px);
}
.faq-list { display: grid; gap: 12px; }
details { padding: 20px 22px; background: var(--surface); border: 1px solid var(--line); border-radius: max(8px, var(--card-radius)); }
summary { cursor: pointer; font-weight: 800; }
details p { margin-top: 14px; color: var(--muted); }

.related-shell { display: grid; grid-template-columns: .75fr 1.25fr; gap: 40px; align-items: start; }
.related-links { display: grid; border-top: 1px solid var(--line); }
.related-links a { display: flex; justify-content: space-between; gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--line); text-decoration: none; font-weight: 750; }

/* Footer */
.site-footer { padding: 64px 0; background: var(--footer-bg); color: var(--footer-text); }
.footer-grid { display: grid; grid-template-columns: 1.25fr 1fr .8fr; gap: 48px; }
.site-footer p { color: color-mix(in srgb, var(--footer-text) 68%, transparent); }
.footer-heading { font-size: 17px; letter-spacing: .04em; }
.footer-nav { display: grid; gap: 10px; max-height: 440px; overflow: auto; }
.footer-nav a { color: var(--footer-text); text-decoration: none; opacity: .82; }
.footer-nav a:hover { opacity: 1; }

.footer-centered .footer-grid { grid-template-columns: 1fr; text-align: center; }
.footer-centered .footer-brand { max-width: 720px; margin-inline: auto; }
.footer-centered .footer-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 22px; }
.footer-split .footer-grid { grid-template-columns: 1fr 1fr; }
.footer-split .footer-actions { grid-column: 2; }
.footer-compact .site-footer { padding: 36px 0; }
.footer-compact .footer-grid { grid-template-columns: 1fr auto; align-items: start; }
.footer-compact .footer-map { display: none; }

/* Motifs / family character */
.motif-lines .design-backdrop {
  background-image: linear-gradient(to right, color-mix(in srgb, var(--line) 35%, transparent) 1px, transparent 1px);
  background-size: 72px 100%;
  opacity: .34;
}
.motif-dots .design-backdrop {
  background-image: radial-gradient(color-mix(in srgb, var(--accent) 28%, transparent) 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: .45;
}
.motif-frame .hero::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid color-mix(in srgb, var(--accent) 32%, transparent);
  pointer-events: none;
}
.motif-blocks .section-kicker::before { content: "■"; margin-right: 8px; }
.motif-glow .design-backdrop {
  background:
    radial-gradient(circle at 18% 14%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 32%),
    radial-gradient(circle at 82% 34%, color-mix(in srgb, var(--accent) 10%, transparent), transparent 36%);
}

/* Family-level accents */
.design-family-brutalist .button { box-shadow: 5px 5px 0 var(--text); text-transform: uppercase; }
.design-family-brutalist .product-card { border-color: var(--text); }
.design-family-cartoon .hero-art { transform: rotate(1deg); }
.design-family-cartoon .product-card:nth-child(even) { transform: translateY(10px) rotate(-.35deg); }
.design-family-retro .site-header, .design-family-retro .product-card { border-width: 2px; }
.design-family-tech .section-kicker, .design-family-brutalist .section-kicker { font-family: "Courier New", monospace; }
.design-family-noir .product-media img { filter: saturate(.55) contrast(1.08); }
.design-family-glass .hero-framed .hero-grid,
.design-family-glass.sections-cards .content-section-grid {
  backdrop-filter: blur(18px);
  background: color-mix(in srgb, var(--surface) 78%, transparent);
}
.design-family-magazine h1,
.design-family-editorial h1 { text-wrap: balance; }
.design-family-bold h1 { text-transform: uppercase; }
.design-family-premium-luxury .eyebrow { letter-spacing: .22em; }

/* Responsive */
@media (max-width: 1050px) {
  .catalog-grid-4 .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .catalog-mosaic .product-card,
  .catalog-mosaic .product-card:nth-child(5n + 1),
  .catalog-mosaic .product-card:nth-child(5n + 4) { grid-column: span 6; }
  .main-nav { display: none; }
  .header-centered .header-row { display: flex; }
  .header-centered .brand { margin-right: auto; }
}

@media (max-width: 900px) {
  .hero-grid,
  .hero-editorial .hero-grid,
  .content-split .content-section-grid,
  .content-editorial .content-section-grid,
  .faq-shell,
  .related-shell,
  .footer-grid,
  .footer-split .footer-grid,
  .footer-compact .footer-grid {
    grid-template-columns: 1fr;
  }
  .content-split .content-heading,
  .content-editorial .content-heading { position: static; }
  .footer-split .footer-actions { grid-column: auto; }
  .catalog-featured .product-card:first-child { grid-column: auto; grid-row: auto; }
  .catalog-featured .product-grid,
  .catalog-grid-3 .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-full-bleed .hero-grid { min-height: 620px; }
  .hero-full-bleed .hero-art::after { background: linear-gradient(0deg, rgba(0,0,0,.76), rgba(0,0,0,.15)); }
  .hero-poster .hero-copy { margin-top: -54px; }
}

@media (max-width: 640px) {
  .container { width: min(100% - 24px, var(--container)); }
  .site-header { position: relative; top: 0; }
  .header-floating .site-header { top: 8px; width: calc(100% - 16px); }
  .header-row { min-height: 68px; }
  .header-row .header-cta { display: none; }
  .brand-image { width: 36px; height: 36px; }

  h1 { font-size: clamp(38px, 12vw, 58px); }
  h2 { font-size: clamp(28px, 9vw, 40px); }
  .hero { padding-top: 42px; }
  .hero-grid { min-height: auto; grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  .hero-art img { min-height: 240px; }
  .hero-full-bleed .hero-grid { min-height: 600px; padding: 26px; }
  .hero-full-bleed .hero-art { order: initial; }
  .hero-poster .hero-copy { margin-top: -30px; padding: 22px; }

  .product-grid,
  .catalog-grid-2 .product-grid,
  .catalog-grid-3 .product-grid,
  .catalog-grid-4 .product-grid,
  .catalog-featured .product-grid {
    grid-template-columns: 1fr;
  }
  .catalog-mosaic .product-grid { grid-template-columns: 1fr; }
  .catalog-mosaic .product-card,
  .catalog-mosaic .product-card:nth-child(5n + 1),
  .catalog-mosaic .product-card:nth-child(5n + 4) { grid-column: auto; }
  .catalog-list .product-card { grid-template-columns: 1fr; }
  .catalog-list .product-media img { height: auto; aspect-ratio: 4/3; }

  .card-overlay .product-card,
  .card-poster .product-card { min-height: 370px; }
  .actions .button { flex: 1 1 100%; }
  .footer-nav { max-height: 340px; }
}
