:root {
  --night: #18233f;
  --night-2: #223059;
  --cream: #f6efe0;
  --linen: #efe6d4;
  --paper: #fbf7ef;
  --gold: #e9c46a;
  --gold-dark: #b98a1f;
  --lilac: #c3bdea;
  --ink: #18233f;
  --muted: #5d6478;
  --line: #e4dccb;
  --white: #ffffff;
  --radius: 18px;
  --max: 1140px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 78px; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

h1, h2, h3 { line-height: 1.12; margin: 0 0 .5em; text-wrap: balance; }
h1, h2 { font-family: var(--serif); font-weight: 600; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.7rem, 6.2vw, 4.8rem); }
h1 em { color: var(--gold); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }

.eyebrow { font-size: .8rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-dark); margin-bottom: .9em; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 33em; }

/* Buttons */
.btn {
  display: inline-block;
  padding: .85em 1.6em;
  border-radius: 999px;
  background: var(--gold);
  color: var(--night);
  font-weight: 800;
  text-decoration: none;
  border: 2px solid var(--gold);
  transition: background .15s, transform .15s;
  white-space: nowrap;
}
.btn:hover { background: #f3d58d; border-color: #f3d58d; transform: translateY(-1px); }
.btn:focus-visible, .size:focus-visible { outline: 3px solid var(--lilac); outline-offset: 3px; }
.btn-ghost { background: transparent; color: var(--cream); border-color: rgba(246,239,224,.4); }
.btn-ghost:hover { background: rgba(246,239,224,.1); border-color: var(--cream); }
.btn-small { padding: .5em 1.1em; font-size: .9rem; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 10; background: var(--night); color: var(--cream); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { border: 1px solid rgba(246,239,224,.2); border-radius: 10px; }
.wordmark { display: flex; flex-direction: column; font-family: var(--serif); font-size: 1.35rem; font-weight: 600; line-height: 1; }
.wordmark small { font-family: var(--sans); font-size: .62rem; font-weight: 700; letter-spacing: .26em; text-transform: uppercase; color: var(--gold); margin-bottom: 4px; }
.nav { display: flex; align-items: center; gap: 24px; }
.nav a:not(.btn) { text-decoration: none; font-weight: 600; font-size: .94rem; color: rgba(246,239,224,.85); }
.nav a:not(.btn):hover { color: var(--gold); }

/* Stars background */
.stars {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    radial-gradient(1.500px 1.500px at 12% 22%, #fff 99%, transparent),
    radial-gradient(1px 1px at 28% 64%, #fff 99%, transparent),
    radial-gradient(1.500px 1.500px at 44% 14%, #fff 99%, transparent),
    radial-gradient(1px 1px at 58% 48%, #fff 99%, transparent),
    radial-gradient(1.500px 1.500px at 72% 78%, #fff 99%, transparent),
    radial-gradient(1px 1px at 86% 30%, #fff 99%, transparent),
    radial-gradient(1px 1px at 94% 66%, #fff 99%, transparent),
    radial-gradient(1px 1px at 6% 82%, #fff 99%, transparent),
    radial-gradient(1.500px 1.500px at 36% 88%, #fff 99%, transparent);
  opacity: .55;
}

/* Hero */
.hero { position: relative; background: linear-gradient(180deg, var(--night) 0%, var(--night-2) 100%); color: var(--cream); padding: 76px 0 84px; overflow: hidden; }
.hero-inner { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 48px; }
.hero .eyebrow { color: var(--gold); }
.hero .lead { color: rgba(246,239,224,.85); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.gift-line { margin: 26px 0 0; font-weight: 600; color: var(--cream); }
.gift-line span { color: var(--gold); margin-right: 4px; }

.bed svg { width: 100%; height: auto; display: block; }
.moon { fill: var(--cream); }
.moon-cut { fill: #1c2849; }
.twinkle path { fill: var(--gold); }
.pillow { fill: #ffffff; stroke: var(--lilac); stroke-width: 2; }
.m-top { fill: var(--cream); }
.m-body { fill: #e3d8c1; }
.m-line { stroke: var(--gold-dark); stroke-width: 2; stroke-dasharray: 2 7; stroke-linecap: round; }
.m-dots circle { fill: var(--gold-dark); opacity: .6; }
.m-leg { fill: #8a6a45; }

/* Sections */
.section { padding: 90px 0; }
.section-alt { background: var(--linen); }
.section-dark { background: var(--night); color: var(--cream); }
.section-dark .eyebrow { color: var(--gold); }
.section-dark .lead { color: rgba(246,239,224,.8); }

/* Perks */
.perks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 40px; }
.perk { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; }
.perk p { color: var(--muted); margin: 0; font-size: .97rem; }
.icon { width: 50px; height: 50px; border-radius: 50%; background: var(--night); display: grid; place-items: center; margin-bottom: 18px; }
.icon svg { width: 25px; height: 25px; fill: none; stroke: var(--gold); stroke-width: 1.700; stroke-linecap: round; stroke-linejoin: round; }

/* Models */
.shop-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.shop-head h2 { margin-bottom: 0; }
.sizes { display: flex; background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 5px; gap: 4px; }
.size { font: inherit; font-weight: 700; font-size: .9rem; line-height: 1.2; padding: .5em 1em; border: 0; border-radius: 12px; background: transparent; color: var(--ink); cursor: pointer; display: flex; flex-direction: column; align-items: center; }
.size small { font-weight: 500; font-size: .74rem; color: var(--muted); }
.size:hover { background: var(--linen); }
.size.is-active { background: var(--night); color: var(--cream); }
.size.is-active small { color: var(--gold); }

.models { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 40px; align-items: stretch; }
.model { position: relative; display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.model.featured { border: 2px solid var(--gold-dark); box-shadow: 0 18px 40px rgba(24,35,63,.12); }
.model p { color: var(--muted); font-size: .96rem; }
.badge { position: absolute; top: -13px; left: 20px; z-index: 1; background: var(--gold); color: var(--night); font-size: .74rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: .3em .9em; border-radius: 999px; }
.model-art { height: 110px; border-radius: 12px; margin-bottom: 18px; display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; padding: 14px; background: var(--paper); }
.model-art span { display: block; border-radius: 8px; }
.model-art span:nth-child(1) { height: 14px; background: var(--cream); border: 1px solid var(--line); }
.model-art span:nth-child(2) { height: 22px; }
.model-art span:nth-child(3) { height: 30px; }
.a1 span:nth-child(2) { background: #f1e3b5; } .a1 span:nth-child(3) { background: #e2cf8f; }
.a2 span:nth-child(2) { background: #d8d3f2; } .a2 span:nth-child(3) { background: #b9b1e3; }
.a3 span:nth-child(2) { background: #cfdcec; } .a3 span:nth-child(3) { background: repeating-linear-gradient(90deg, #9fb4d0 0 10px, #cfdcec 10px 14px); }
.a4 span:nth-child(2) { background: #dccdb8; } .a4 span:nth-child(3) { background: #b79f80; }
.firm { display: flex; align-items: center; gap: 5px; margin: 0 0 16px; }
.firm span { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-right: 6px; }
.firm i { width: 22px; height: 7px; border-radius: 4px; background: var(--line); }
.firm i.on { background: var(--night); }
.model-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.price { font-family: var(--serif); font-size: 1.8rem; font-weight: 600; }
.model .btn-small { background: var(--night); border-color: var(--night); color: var(--cream); }
.model .btn-small:hover { background: var(--night-2); border-color: var(--night-2); }
.models-note { margin: 26px 0 0; color: var(--muted); text-align: center; }

/* Quality */
.quality { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.facts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.facts li { background: var(--night-2); border: 1px solid rgba(246,239,224,.12); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; }
.facts strong { font-family: var(--serif); font-size: 1.7rem; font-weight: 600; color: var(--gold); line-height: 1.15; }
.facts span { color: rgba(246,239,224,.78); font-size: .95rem; }

/* Gift */
.gift-inner { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: center; }
.gift-art { position: relative; height: 220px; max-width: 360px; width: 100%; margin: 0 auto; }
.g-pillow { position: absolute; width: 62%; height: 84px; border-radius: 40px; background: var(--white); border: 2px solid var(--lilac); box-shadow: 0 12px 24px rgba(24,35,63,.1); }
.g-pillow:nth-child(1) { left: 0; top: 10px; transform: rotate(-6deg); }
.g-pillow:nth-child(2) { right: 0; top: 60px; transform: rotate(5deg); }
.g-cover { position: absolute; left: 8%; right: 8%; bottom: 0; height: 46px; border-radius: 14px; background: var(--gold); box-shadow: 0 12px 24px rgba(24,35,63,.12); }

/* FAQ */
.faq { display: grid; grid-template-columns: .7fr 1.3fr; gap: 56px; align-items: start; }
.faq-list { display: grid; gap: 12px; }
.faq-list details { background: var(--white); border-radius: 14px; padding: 4px 22px; }
.faq-list summary { cursor: pointer; font-weight: 700; padding: 14px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--gold-dark); }
.faq-list details[open] summary::after { content: "–"; }
.faq-list summary:focus-visible { outline: 3px solid var(--lilac); outline-offset: 3px; border-radius: 8px; }
.faq-list p { color: var(--muted); margin: 0 0 16px; }

/* Contact */
.contact { position: relative; background: var(--night); color: var(--cream); text-align: center; overflow: hidden; }
.contact .eyebrow { color: var(--gold); }
.contact .lead { color: rgba(246,239,224,.85); margin: 0 auto 1.6em; }
.contact-inner { position: relative; display: flex; flex-direction: column; align-items: center; }

/* Footer */
.site-footer { background: #101931; color: rgba(246,239,224,.7); font-size: .9rem; }
.footer-inner { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding-top: 22px; padding-bottom: 22px; }
.footer-inner p { margin: 0; }

/* Responsive */
@media (max-width: 1040px) {
  .models, .perks { grid-template-columns: repeat(2, 1fr); }
  .nav a:not(.btn) { display: none; }
}

@media (max-width: 880px) {
  .hero-inner, .quality, .gift-inner, .faq { grid-template-columns: 1fr; gap: 36px; }
  .hero { padding: 52px 0 60px; }
  .section { padding: 66px 0; }
  .bed { max-width: 440px; }
}

@media (max-width: 600px) {
  .container { padding: 0 16px; }
  .models, .perks { grid-template-columns: 1fr; }
  .sizes { width: 100%; }
  .size { flex: 1; padding: .5em .4em; font-size: .82rem; }
  .facts { grid-template-columns: 1fr; }
  .wordmark { font-size: 1.15rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
