/*
  Cambria Designer Series — www.cambriadesigner.com
  Same brand as support.modewindow.com: warm charcoal band (#2f2925) from the
  ring swatch sheets, Source Sans 3 (self-hosted Myriad cousin), MODE wordmark
  in Segoe UI bold, letter-spaced. Light only: the product photos are shot on
  white and are meant to sit on light surfaces.
*/
@font-face {
  font-family: "Source Sans 3";
  src: url("/assets/fonts/source-sans-3-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --brand: #2f2925;
  --brand-ink: #ffffff;
  --brand-ink-muted: #c9c3be;
  --bg: #ffffff;
  --alt: #f7f6f5;
  --surface: #ffffff;
  --ink: #1c1917;
  --ink-muted: #5f5853;
  --line: #e4e0dc;
  --accent: #2f2925;
  --accent-soft: #f0ece9;
  --danger: #b3261e;
  --radius: 8px;
  --shadow: 0 1px 2px rgb(0 0 0 / 0.04), 0 8px 24px rgb(0 0 0 / 0.06);
  --page: 1160px;
  --gutter: clamp(16px, 4vw, 32px);
  --font: "Source Sans 3", "Myriad Pro", "Segoe UI", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
main { flex: 1; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 0.5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 4.6vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
ul { margin: 0; }

.wrap { width: 100%; max-width: var(--page); margin: 0 auto; padding: 0 var(--gutter); }
.wrap.narrow { max-width: 820px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 20; background: var(--brand); color: #fff; padding: 10px 16px; border-radius: 6px; }
.skip:focus { top: 12px; }
.icon { width: 1.1em; height: 1.1em; flex: none; }

.eyebrow { margin: 0 0 10px; color: var(--ink-muted); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.lede { color: var(--ink-muted); font-size: 1.15rem; max-width: 40em; }
.hint { color: var(--ink-muted); font-size: 0.95rem; }

/* Header (matches the support site) */
.site-header { background: var(--brand); color: var(--brand-ink); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; align-items: center; gap: 20px; color: inherit; text-decoration: none; }
.logo { height: 60px; width: auto; }
.brand-text { display: flex; flex-direction: column; padding-left: 20px; border-left: 1px solid rgb(255 255 255 / 0.22); line-height: 1.25; }
.wordmark { font-family: "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 1.85rem; font-weight: 700; letter-spacing: 0.11em; line-height: 1.1; }
.wordmark.small { font-size: 1.15rem; margin-right: 6px; }
.product-sub { color: var(--brand-ink-muted); font-size: 0.95rem; margin-top: 2px; }
.site-nav { display: flex; flex-wrap: wrap; gap: 4px 22px; margin-left: auto; }
.site-nav a { color: var(--brand-ink-muted); font-weight: 600; text-decoration: none; padding: 4px 0; border-bottom: 2px solid transparent; }
.site-nav a:hover { color: var(--brand-ink); }
.site-nav a[aria-current="page"] { color: var(--brand-ink); border-bottom-color: currentColor; }
.site-header :focus-visible { outline-color: var(--brand-ink); }
@media (max-width: 760px) {
  .site-header .wrap { justify-content: center; }
  .brand { width: 100%; justify-content: center; }
  .logo { height: 48px; }
  .wordmark { font-size: 1.5rem; }
  .site-nav { margin: 0 auto; justify-content: center; gap: 4px 18px; }
}

/* Buttons */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 22px;
  border: 1px solid var(--accent); border-radius: var(--radius);
  background: var(--accent); color: #fff;
  font: 600 1rem var(--font); text-decoration: none; cursor: pointer;
  transition: filter 0.15s, transform 0.05s;
}
.button:hover { filter: brightness(1.15); }
.button:active { transform: translateY(1px); }
.button[disabled] { opacity: 0.6; cursor: progress; }
.button.secondary { background: transparent; color: var(--ink); border-color: #cfc8c2; }
.button.secondary:hover { filter: none; border-color: var(--ink); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

/* Sections */
.section { padding: clamp(48px, 7vw, 88px) 0; }
.section.alt { background: var(--alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 44rem; margin-bottom: 32px; }
.section-head p { color: var(--ink-muted); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* Home hero */
.hero { padding: clamp(40px, 6vw, 72px) 0; background: var(--alt); border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero h1 { max-width: 14ch; }
.tagline { font-weight: 600; letter-spacing: 0.02em; margin-bottom: 18px; }
.hero-photo { margin: 0; }
.hero-photo img { border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 1; object-fit: cover; width: 100%; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } .hero-photo { order: -1; } .hero-photo img { aspect-ratio: 4 / 3; } }

.page-hero { padding: clamp(36px, 5vw, 64px) 0; }

/* Collection cards */
.collection-grid { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 20px; }
.collection-card {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  transition: transform 0.15s, border-color 0.15s;
}
.collection-grid.compact { grid-template-columns: repeat(4, 1fr); gap: 16px; }
.collection-grid.compact .collection-card-body { padding: 14px 16px 16px; }
.collection-grid.compact .collection-card h3 { font-size: 1.1rem; }
.collection-grid.compact .collection-card p:not(.meta) { display: none; }
@media (max-width: 900px) { .collection-grid.compact { grid-template-columns: 1fr 1fr; } }
.collection-card img { aspect-ratio: 1; object-fit: cover; width: 100%; }
.collection-card-body { padding: 18px 20px 20px; }
.collection-card h2, .collection-card h3 { font-size: 1.25rem; margin: 0 0 6px; }
.collection-card p { margin: 0 0 6px; color: var(--ink-muted); }
.collection-card .meta { font-size: 0.9rem; margin: 0; }
.collection-card a.stretched { color: var(--ink); text-decoration: none; }
.collection-card a.stretched::after { content: ''; position: absolute; inset: 0; }
.collection-card:hover { transform: translateY(-2px); border-color: #cfc8c2; }
.collection-card:has(a:focus-visible) { outline: 3px solid var(--accent); outline-offset: 2px; }
.collection-card a:focus-visible { outline: none; }

/* Finish grid (home, new release) */
.finish-grid { list-style: none; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.finish-grid img, .room-grid img, .gallery img { border-radius: var(--radius); aspect-ratio: 1; object-fit: cover; width: 100%; }
.finish-grid span { display: block; font-size: 0.92rem; font-weight: 600; margin-top: 6px; }
.room-grid { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 700px) { .room-grid { grid-template-columns: 1fr 1fr; } }

/* About band */
.about-band { background: var(--brand); color: var(--brand-ink); }
.about-band .wrap { padding-top: clamp(48px, 7vw, 80px); padding-bottom: clamp(48px, 7vw, 80px); }
.about-grid { display: grid; grid-template-columns: auto 1fr; gap: clamp(24px, 5vw, 56px); align-items: center; }
.about-logo { width: clamp(110px, 16vw, 170px); }
.about-band .eyebrow { color: var(--brand-ink-muted); }
.about-band p { color: #e9e4df; font-size: 1.15rem; max-width: 42em; margin: 0; }
@media (max-width: 640px) { .about-grid { grid-template-columns: 1fr; } }

.brochure-cover img { border-radius: 4px; box-shadow: var(--shadow); max-width: 360px; margin: 0 auto; }

/* Collection page */
.product-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
@media (max-width: 900px) { .product-grid { grid-template-columns: 1fr; } }
.product-photo { margin: 0; }
.product-photo img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; }
.product-photo figcaption, .gallery span { color: var(--ink-muted); font-size: 0.92rem; margin-top: 8px; display: block; }
.crumbs { font-size: 0.92rem; color: var(--ink-muted); margin-bottom: 10px; }
.actions.buy { margin: 8px 0 24px; }
.specs { margin: 0 0 16px; border-top: 1px solid var(--line); }
.specs > div { display: grid; grid-template-columns: 7.5em 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.specs dt { font-weight: 700; }
.specs dd { margin: 0; }
.notes { padding-left: 1.2em; margin-bottom: 16px; }
.measure { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; background: var(--accent-soft); border-radius: var(--radius); padding: 12px 16px; }
.gallery { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 18px; }
.gallery a { display: block; }
@media (max-width: 560px) { .gallery { grid-template-columns: 1fr 1fr; gap: 12px; } .gallery span { font-size: 0.85rem; } }
.gallery a:hover img { filter: brightness(0.96); }

/* Brochure */
.brochure-grid { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 22px; }
.brochure-grid img { border-radius: 4px; box-shadow: var(--shadow); width: 100%; transition: transform 0.15s; }
.brochure-grid a:hover img { transform: translateY(-3px); }

/* Downloads */
.downloads { list-style: none; padding: 0; display: grid; gap: 14px; max-width: 820px; }
.download { position: relative; display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center; padding: 20px 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.download h2 { font-size: 1.2rem; margin: 0 0 4px; }
.download p { margin: 0; color: var(--ink-muted); }
.download a.stretched { color: var(--ink); text-decoration: none; }
.download a.stretched::after { content: ''; position: absolute; inset: 0; border-radius: var(--radius); }
.download:hover { border-color: #cfc8c2; }
.download:has(a:focus-visible) { outline: 3px solid var(--accent); outline-offset: 2px; }
.download a:focus-visible { outline: none; }
.file-icon { width: 48px; height: 48px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-soft); }
.file-icon .icon { width: 26px; height: 26px; }
.file-meta { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-muted); font-size: 0.92rem; white-space: nowrap; }
@media (max-width: 560px) { .download { grid-template-columns: auto 1fr; } .file-meta { grid-column: 2; } }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 1.1rem; padding: 14px 0; list-style-position: outside; }
.faq details[open] summary { color: var(--ink); }
.faq details p { color: var(--ink-muted); }

/* Text pages */
.prose h2 { font-size: 1.4rem; margin-top: 1.6em; }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 1.2em; margin-bottom: 1em; }

/* CTA band */
.cta-band { background: var(--alt); border-top: 1px solid var(--line); }
.cta-band .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding-top: clamp(36px, 5vw, 56px); padding-bottom: clamp(36px, 5vw, 56px); }
.cta-band h2 { margin: 0 0 4px; }
.cta-band p { margin: 0; color: var(--ink-muted); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(24px, 4vw, 48px); align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.panel, .card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.panel { padding: clamp(20px, 4vw, 32px); }
.contact-aside { display: grid; gap: 14px; }
.card { padding: 18px 22px; }
.card h2 { font-size: 1.05rem; margin-bottom: 4px; }
.card p { margin: 0; }
.contact-form .grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
@media (max-width: 560px) { .contact-form .grid { grid-template-columns: 1fr; } }
.field { display: block; margin-bottom: 14px; }
.field > span { display: block; font-weight: 600; font-size: 0.95rem; margin-bottom: 6px; }
.field .opt { color: var(--ink-muted); font-weight: 400; }
.field input, .field textarea { width: 100%; font: inherit; color: var(--ink); background: #fff; border: 1px solid #cfc8c2; border-radius: var(--radius); padding: 10px 12px; }
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
.field [aria-invalid="true"] { border-color: var(--danger); }
.error { display: block; color: var(--danger); font-size: 0.88rem; font-weight: 600; margin-top: 4px; }
.error:empty { display: none; }
.form-status { color: var(--danger); font-weight: 600; margin: 12px 0 0; }
.form-status:empty { display: none; }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.turnstile:empty { display: none; }
.turnstile { margin: 4px 0 14px; }
.contact-done { text-align: center; padding: 20px 8px; }
.contact-done:focus { outline: none; }
.check { width: 60px; height: 60px; margin: 0 auto 14px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); font-size: 1.8rem; font-weight: 800; }

/* 404 */
.not-found h1 { max-width: 18ch; }
.not-found .collection-grid { margin-top: 28px; }

/* Footer */
.site-footer { background: var(--brand); color: var(--brand-ink-muted); font-size: 0.95rem; }
.site-footer .wrap { padding-top: 44px; padding-bottom: 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; padding-bottom: 28px; border-bottom: 1px solid rgb(255 255 255 / 0.14); }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand { color: #fff; font-weight: 600; margin: 0 0 6px; }
.footer-tag { margin: 0; }
.site-footer h2 { color: #fff; font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; margin: 0 0 10px; }
.site-footer ul { list-style: none; padding: 0; display: grid; gap: 6px; }
.site-footer a { color: #ece7e2; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer :focus-visible { outline-color: #fff; }
.fineprint { margin: 18px 0 0; font-size: 0.86rem; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
