/* A generated theme (engine/outreach/site_package.py): editorial, photographic, calm. Every class the core kit renders is styled
   here, and the story, gallery, specs, FAQ and options kinds; sections are styled by their id where the design asks for it. */
:root { --ink: #1b2430; --sub: #4a5563; --line: #e2e5ea; --paper: #fbfaf7; --card: #f1f3f6; --sand: #f3efe6; --accent: #2456c6; --accent-soft: #e4ebfa;
  --display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif; --text: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font: 17px/1.65 var(--text); color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img { max-width: 100%; }
.rx-page { min-height: 100vh; }
.rx-container { max-width: 1240px; margin: 0 auto; padding: 0 28px; }
.rx-accent { font-style: italic; color: var(--accent); font-weight: 400; }
.rx-eyebrow { margin: 0 0 12px; font-size: 12px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--accent); }
.rx-display, .rx-heading, .rx-title { font-family: var(--display); font-weight: 400; letter-spacing: -.015em; font-optical-sizing: auto; }
.rx-display { margin: 0; font-size: clamp(48px, 7.6vw, 96px); line-height: .98; }
.rx-heading { margin: 0 0 16px; font-size: clamp(32px, 4.4vw, 52px); line-height: 1.06; }
.rx-title { margin: 0; font-size: 24px; }
.rx-lede { max-width: 620px; font-size: 19px; line-height: 1.6; color: var(--sub); }
.rx-muted { color: var(--sub); font-size: 15px; }
.rx-note { margin-top: 18px; color: var(--sub); font-size: 13px; }
.rx-price { margin: 6px 0 10px; font-family: var(--display); font-size: 34px; font-weight: 400; color: var(--ink); }

/* nav: announcement strip, then a light sticky bar with spaced capitals */
.rx-nav { position: sticky; top: 0; z-index: 50; background: rgba(251, 250, 247, .9); backdrop-filter: saturate(180%) blur(14px); }
.rx-announcement { margin: 0; padding: 8px 24px; text-align: center; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; background: var(--ink); color: var(--paper); }
.rx-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; max-width: 1240px; margin: 0 auto; padding: 18px 28px; }
.rx-scrolled { border-bottom: 1px solid var(--line); }
.rx-brand { margin: 0; font-family: var(--display); font-size: 24px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; }
.rx-links { display: flex; gap: 28px; flex-wrap: wrap; }
.rx-nav-link { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; text-decoration: none; color: var(--sub); }
.rx-nav-link:hover, .rx-current { color: var(--ink); }
.rx-current { font-weight: 600; }
.rx-cart-button { position: relative; padding: 9px 18px; border: 1px solid var(--ink); border-radius: 999px; background: none; font: inherit; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; cursor: pointer; }
.rx-cart-count { margin-left: 6px; padding: 0 7px; border-radius: 9px; background: var(--accent); color: #fff; font-size: 11px; letter-spacing: 0; }

/* the hero: a full-bleed photograph, the words at its foot */
.rx-hero { position: relative; min-height: clamp(560px, 82vh, 860px); display: flex; align-items: flex-end; padding: 0; overflow: hidden; background: var(--ink); color: #fff; }
.rx-hero .rx-image { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; max-height: none; margin: 0; border-radius: 0; object-fit: cover; object-position: center 40%; }
.rx-hero::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(27, 36, 48, 0) 20%, rgba(27, 36, 48, .18) 50%, rgba(27, 36, 48, .72) 100%); }
.rx-hero .rx-container { position: static; width: 100%; padding-top: 180px; padding-bottom: 72px; }
.rx-hero .reveal { position: relative; z-index: 2; max-width: 760px; }
.rx-hero .rx-eyebrow { color: #d6e2ff; }
.rx-hero .rx-display { max-width: 11ch; color: #fff; text-shadow: 0 2px 24px rgba(0, 0, 0, .25); }
.rx-hero .rx-accent { color: #d6e2ff; }
.rx-hero .rx-lede { color: rgba(255, 255, 255, .9); text-shadow: 0 1px 12px rgba(0, 0, 0, .3); }
.rx-hero .rx-button { background: #fff; color: var(--ink); border-color: #fff; }
.rx-hero .rx-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .75); }

/* the band of certifications under the hero */
[data-section="home.band"] { padding: 22px 0; background: var(--sand); border-bottom: 1px solid var(--line); }
[data-section="home.band"] .rx-points { display: flex; flex-wrap: wrap; gap: 10px 14px; margin: 0; justify-content: center; }
[data-section="home.band"] .rx-point { padding: 8px 16px; border: 1px solid rgba(27, 36, 48, .14); border-radius: 999px; background: transparent; }
[data-section="home.band"] .rx-point-title { margin: 0; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
[data-section="home.band"] .rx-muted { display: none; }

/* sections */
.rx-section { padding: 96px 0; }
.rx-actions { display: flex; gap: 12px; margin-top: 30px; flex-wrap: wrap; }
.rx-button { display: inline-block; padding: 15px 26px; border: 1px solid var(--ink); border-radius: 999px; background: var(--ink); color: var(--paper); font: inherit;
  font-size: 14px; font-weight: 500; letter-spacing: .02em; text-decoration: none; cursor: pointer; transition: transform .15s, box-shadow .15s; }
.rx-button:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(27, 36, 48, .18); }
.rx-ghost { background: none; color: var(--ink); }
.rx-text-button { padding: 4px 0; border: 0; background: none; font: inherit; font-size: 13px; color: var(--sub); text-decoration: underline; cursor: pointer; }
.rx-link { display: inline-block; margin-top: 18px; color: var(--accent); font-weight: 600; text-decoration: none; border-bottom: 1px solid currentColor; }
.rx-image { display: block; width: 100%; max-height: 680px; object-fit: cover; margin-top: 40px; border-radius: 22px; }
.rx-points { display: grid; gap: 22px; margin: 28px 0 0; padding: 0; list-style: none; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.rx-point { display: flex; flex-direction: column; gap: 8px; padding: 26px; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.rx-point-title { margin: 0; font-family: var(--display); font-size: 22px; font-weight: 500; }
.rx-figure { font-family: var(--display); font-size: 28px; font-style: italic; color: var(--accent); }
.rx-card { padding-top: 48px; padding-bottom: 48px; border: 1px solid var(--line); border-radius: 26px; background: var(--card); }
.rx-answer .rx-card { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.rx-answer .rx-point { flex-direction: row; gap: 14px; background: none; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 0 0 14px; }
.rx-answer .rx-point-title { font-family: var(--text); font-size: 17px; font-weight: 600; }
[data-section="home.points"] .rx-points { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

/* stories: words beside a photograph; the sand ones alternate */
.rx-story-grid { display: grid; gap: 48px; align-items: center; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .rx-story-grid { grid-template-columns: 1fr 1fr; gap: 72px; } .rx-story-reverse .rx-story-picture { order: -1; } }
.rx-story-picture .rx-image { margin-top: 0; max-height: 720px; }
.rx-story-points { grid-template-columns: 1fr; gap: 0; margin-top: 24px; }
.rx-story-points .rx-point { padding: 14px 0 14px 18px; border: 0; border-left: 2px solid var(--accent); border-radius: 0; background: none; }
.rx-story-points .rx-point-title { font-family: var(--text); font-size: 17px; font-weight: 600; }
[data-section="home.cover"], [data-section="home.box"], [data-section="cooling.rest"], [data-section="materials.story"] { background: var(--sand); }
[data-section="mattress.inside"] .rx-image { background: #eef3fb; object-fit: contain; }

/* about: the brand's own words on a dark ground */
[data-section="home.about"] { background: var(--ink); color: #fff; text-align: center; }
[data-section="home.about"] .rx-container { max-width: 820px; }
[data-section="home.about"] .rx-eyebrow { color: #d6e2ff; }
[data-section="home.about"] .rx-heading { color: #fff; font-size: clamp(36px, 5vw, 60px); }
[data-section="home.about"] .rx-accent { color: #d6e2ff; }
[data-section="home.about"] .rx-lede { margin: 0 auto; max-width: 640px; color: rgba(255, 255, 255, .82); font-family: var(--display); font-size: 22px; line-height: 1.55; }

/* gallery */
.rx-gallery-grid { display: grid; gap: 20px; margin-top: 28px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.rx-figure-card { margin: 0; }
.rx-gallery-image { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 18px; background: #eef3fb; }
.rx-figure-card figcaption { margin-top: 10px; }

/* specs */
.rx-spec-list { display: grid; gap: 0 48px; margin: 28px 0 0; border-top: 1px solid var(--line); }
@media (min-width: 900px) { .rx-spec-list { grid-template-columns: 1fr 1fr; } }
.rx-spec { display: grid; grid-template-columns: minmax(150px, 1fr) 1.6fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.rx-spec-label { color: var(--sub); font-size: 15px; }
.rx-spec-value { margin: 0; font-weight: 500; }

/* faq */
.rx-faq-list { margin-top: 28px; border-top: 1px solid var(--line); }
.rx-faq-item { border-bottom: 1px solid var(--line); }
.rx-faq-q { display: flex; justify-content: space-between; gap: 16px; padding: 20px 0; font-family: var(--display); font-size: 22px; cursor: pointer; list-style: none; }
.rx-faq-q::-webkit-details-marker { display: none; }
.rx-faq-a { margin: 0 0 22px; max-width: 680px; color: var(--sub); }

/* options: the variants */
.rx-options .rx-card { background: var(--card); }
.rx-option-list { display: grid; gap: 16px; margin: 28px 0 0; padding: 0; list-style: none; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.rx-option { display: flex; flex-direction: column; gap: 4px; padding: 22px; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.rx-option .rx-point-title { font-family: var(--text); font-size: 16px; font-weight: 600; }
.rx-option .rx-button { margin-top: 10px; align-self: flex-start; padding: 11px 18px; font-size: 13px; }

/* cart drawer and Reserve */
.rx-backdrop { position: fixed; inset: 0; z-index: 70; background: rgba(27, 36, 48, .4); opacity: 0; pointer-events: none; transition: opacity .3s; }
.rx-backdrop.rx-open { opacity: 1; pointer-events: auto; }
.rx-drawer { position: fixed; top: 0; right: 0; z-index: 80; display: flex; flex-direction: column; width: 100%; max-width: 440px; height: 100%;
  background: var(--paper); transform: translateX(100%); transition: transform .3s; }
.rx-drawer.rx-open { transform: none; }
.rx-drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.rx-close { width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 999px; background: none; font-size: 20px; cursor: pointer; }
.rx-drawer-body { flex: 1; overflow-y: auto; padding: 24px; }
.rx-cart-empty { text-align: center; padding-top: 48px; }
.rx-cart-lines { margin: 0; padding: 0; list-style: none; }
.rx-cart-line { display: flex; justify-content: space-between; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.rx-qty { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.rx-qty button { width: 28px; height: 28px; border: 1px solid var(--line); border-radius: 999px; background: none; cursor: pointer; }
.rx-cart-footer { padding: 24px; border-top: 1px solid var(--line); }
.rx-cart-footer form { display: grid; gap: 8px; }
.rx-cart-footer input[type="email"] { padding: 12px; border: 1px solid var(--line); border-radius: 10px; font: inherit; }
.rx-subtotal { display: flex; justify-content: space-between; font-weight: 600; }
.rx-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* the reservation terms (the core's block): open, or a disclosure */
.rx-terms { margin-top: 18px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: #fff; text-align: left; }
.rx-terms-title { margin: 0; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
summary.rx-terms-title { display: flex; justify-content: space-between; cursor: pointer; list-style: none; }
summary.rx-terms-title::-webkit-details-marker { display: none; }
.rx-terms-items { margin: 10px 0 0; padding-left: 18px; font-size: 13px; color: var(--sub); }
.rx-terms-items li + li { margin-top: 4px; }

/* the one-question card (the core's micro-survey) */
.rx-survey { margin-top: 16px; padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); }
.rx-survey-slot .rx-survey { margin-top: 0; box-shadow: 0 12px 32px rgba(27, 36, 48, .18); }
.rx-survey-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
.rx-survey-choices { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.rx-survey textarea { width: 100%; margin-top: 6px; padding: 8px; border: 1px solid var(--line); border-radius: 8px; font: inherit; }
.rx-survey .rx-button { margin-top: 10px; }
.rx-chip { padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: none; font: inherit; font-size: 13px; cursor: pointer; }
.rx-chip-on { border-color: var(--ink); background: var(--card); }
.rx-survey-dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: flex; justify-content: flex-end; padding: 0 20px 20px; }
.rx-survey-slot { width: 100%; max-width: 380px; }

/* the fit checker (finder) and the Ask box */
.rx-finder-fields { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); margin: 16px 0 12px; }
.rx-finder-field label { display: block; font-size: 13px; color: var(--sub); }
.rx-finder-field input { width: 100%; margin-top: 4px; padding: 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); font: inherit; }
.rx-finder-result { margin-top: 16px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); }
.rx-finder [data-finder-disclosure] summary { list-style: none; cursor: pointer; }
.rx-finder-piece .rx-finder-fields { margin-top: 10px; }
.rx-ask .rx-card { background: var(--sand); }
.rx-ask-form { display: grid; gap: 8px; grid-template-columns: 1fr auto; align-items: end; margin-top: 16px; }
.rx-ask-form label { grid-column: 1 / -1; font-size: 13px; color: var(--sub); }
.rx-ask-form input { padding: 13px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); font: inherit; }
.rx-ask-result { margin-top: 16px; }
.rx-ask-answer { padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); }

/* footer */
.rx-footer { margin-top: 0; padding: 56px 0; background: var(--ink); color: var(--paper); }
.rx-footer .rx-brand { font-size: 26px; }
.rx-footer .rx-tagline, .rx-footer .rx-legal { color: rgba(255, 255, 255, .75); font-size: 14px; }
.rx-footer .rx-legal { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 18px; }

/* fade in (the core script adds is-in; without script everything shows) */
.reveal { opacity: 0; transform: translateY(12px); transition: opacity .6s, transform .6s; }
.reveal.is-in { opacity: 1; transform: none; }
@media (max-width: 720px) { .rx-section { padding: 64px 0; } .rx-hero { min-height: clamp(520px, 72vh, 720px); } .rx-hero .rx-container { padding-top: 120px; padding-bottom: 48px; } .rx-links { gap: 14px; } .rx-display { font-size: clamp(40px, 12vw, 64px); } }
