/* Mallowin — mallowin.com v1
   Palette sampled from the brand renders themselves (#F7EDE5 is the literal
   background of the character sheets). Silent site: no autoplay anywhere. */

@font-face{font-family:'Fraunces';src:url('/fonts/fraunces.woff2') format('woff2');
  font-weight:100 900;font-display:swap;font-style:normal}
@font-face{font-family:'Nunito Sans';src:url('/fonts/nunito.woff2') format('woff2');
  font-weight:100 900;font-display:swap;font-style:normal}

:root{
  --cream:#F7EDE5;
  --cream-2:#EFE1D2;
  --cream-3:#E6D5C2;
  --honey:#C08A4A;
  --amber:#C67A2E;
  --walnut:#4A3524;
  --ink:#2E2015;
  --muted:#8A7461;
  --night:#14100D;
  --night-2:#221A14;
  --sage:#8B9B6E;

  --max:1180px;
  --pad:clamp(1.25rem,5vw,3rem);
  --serif:'Fraunces',Georgia,'Times New Roman',serif;
  --sans:'Nunito Sans',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
}

*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth}
body{
  margin:0;background:var(--cream);color:var(--walnut);
  font-family:var(--sans);font-size:clamp(1rem,.96rem + .2vw,1.125rem);
  line-height:1.7;-webkit-font-smoothing:antialiased;
}
img{max-width:100%;height:auto;display:block}
a{color:var(--amber);text-decoration:none}
a:hover{text-decoration:underline;text-underline-offset:.2em}
h1,h2,h3{font-family:var(--serif);font-weight:600;color:var(--ink);
  line-height:1.15;letter-spacing:-.01em;margin:0}
:focus-visible{outline:2px solid var(--amber);outline-offset:3px;border-radius:2px}

.wrap{max-width:var(--max);margin:0 auto;padding-inline:var(--pad)}
.narrow{max-width:44rem}

/* ---------- splash (JS-gated; no-JS never sees it) ---------- */
.splash{display:none}
.splash--on{
  display:flex;position:fixed;inset:0;z-index:99;background:var(--cream);
  align-items:center;justify-content:center;
  animation:splashOut .9s ease 1.7s forwards;
}
.splash__word{font-family:var(--serif);font-size:clamp(2.2rem,7vw,4.5rem);
  color:var(--ink);letter-spacing:.02em}
.splash__word span{opacity:0;display:inline-block;animation:letterIn .5s ease forwards}
@keyframes letterIn{from{opacity:0;transform:translateY(.28em)}to{opacity:1;transform:none}}
@keyframes splashOut{to{opacity:0;visibility:hidden}}

/* ---------- header ---------- */
.site-head{padding:1.5rem 0 .5rem}
.site-head__in{display:flex;align-items:center;justify-content:space-between;gap:1.5rem}
.brand img{width:132px}
.nav{display:flex;align-items:center;gap:clamp(.9rem,2.4vw,1.9rem);
  font-size:.9rem;letter-spacing:.06em;text-transform:uppercase}
.nav a{color:var(--walnut)}
.nav a:hover{color:var(--amber)}

.btn{
  display:inline-block;background:var(--ink);color:var(--cream);
  border:0;-webkit-appearance:none;appearance:none;font-family:var(--sans);
  padding:.85rem 1.5rem;border-radius:999px;font-size:.88rem;
  letter-spacing:.06em;text-transform:uppercase;transition:background .3s ease;
}
.btn:hover{background:var(--amber);text-decoration:none}
.btn--ghost{background:transparent;color:var(--ink);box-shadow:inset 0 0 0 1px var(--cream-3)}
.btn--ghost:hover{background:var(--ink);color:var(--cream)}
.nav .btn{text-transform:uppercase;padding:.6rem 1.15rem}

/* ---------- hero ---------- */
.hero{padding:clamp(3rem,9vw,7rem) 0 clamp(2rem,5vw,3.5rem);text-align:center}
.hero h1{font-size:clamp(2.1rem,5.4vw,4rem);max-width:20ch;margin:0 auto}
.hero p{max-width:46ch;margin:1.6rem auto 2.2rem;color:var(--muted);font-size:1.08em}
.hero-figure{margin:0}
.hero-figure img{width:100%;border-radius:6px}

.band{max-width:1420px;margin:0 auto;padding-inline:var(--pad)}

/* ---------- section furniture ---------- */
section{padding:clamp(3.5rem,8vw,6.5rem) 0}
.sec-head{margin-bottom:clamp(2rem,4vw,3rem)}
.sec-head h2{font-size:clamp(1.7rem,3.4vw,2.6rem)}
.sec-head p{color:var(--muted);max-width:52ch;margin:.9rem 0 0}
.eyebrow{font-size:.78rem;letter-spacing:.18em;text-transform:uppercase;
  color:var(--honey);margin:0 0 .9rem;font-weight:600}

/* ---------- worlds grid ---------- */
.worlds{display:grid;gap:clamp(1.5rem,3vw,2.4rem);
  grid-template-columns:repeat(auto-fit,minmax(min(100%,19rem),1fr))}
.world figure{margin:0;overflow:hidden;border-radius:6px;background:var(--cream-2)}
.world img{width:100%;aspect-ratio:16/9;object-fit:cover;
  transition:transform 1.1s cubic-bezier(.2,.7,.2,1)}
.world:hover img{transform:scale(1.035)}
.world h3{font-size:1.28rem;margin:1.1rem 0 .25rem}
.world p{margin:0;color:var(--muted);font-size:.95rem}

/* ---------- the week ---------- */
.week{border-top:1px solid var(--cream-3)}
.week li{display:grid;grid-template-columns:5.5rem minmax(9rem,14rem) 1fr;
  gap:.5rem 1.5rem;align-items:baseline;
  padding:1.15rem 0;border-bottom:1px solid var(--cream-3)}
.week ul{list-style:none;margin:0;padding:0}
.week .day{font-size:.78rem;letter-spacing:.16em;text-transform:uppercase;color:var(--honey)}
.week .series{font-family:var(--serif);font-size:1.12rem;color:var(--ink)}
.week .line{color:var(--muted);font-size:.95rem}
@media(max-width:640px){
  .week li{grid-template-columns:1fr;gap:.15rem;padding:1rem 0}
}

/* ---------- dark blocks ---------- */
.night{background:var(--night);color:#CFC2B4}
.night h1,.night h2,.night h3{color:#F3E9DE}
.night .eyebrow{color:var(--honey)}
.night a{color:#E9B472}
.night .btn{background:var(--cream);color:var(--ink)}
.night .btn:hover{background:var(--honey);color:var(--ink)}
.night .btn--ghost{background:transparent;color:#F3E9DE;box-shadow:inset 0 0 0 1px #4A3B2E}
.night .btn--ghost:hover{background:#F3E9DE;color:var(--ink)}

.sleep-band{display:grid;gap:clamp(2rem,5vw,4rem);align-items:center;
  grid-template-columns:repeat(auto-fit,minmax(min(100%,22rem),1fr))}
.twins{display:flex;gap:1rem;background:var(--cream);border-radius:8px;padding:1.5rem}
.twins figure{margin:0;flex:1;text-align:center;display:flex;flex-direction:column}
.twins img{width:100%;height:clamp(190px,22vw,260px);object-fit:contain;
  object-position:bottom;border-radius:4px;margin-bottom:.6rem}
.twins figcaption{margin-top:auto}
.twins figcaption{font-family:var(--serif);color:var(--ink);font-size:1rem}

/* ---------- collections / links ---------- */
.cards{display:grid;gap:1.25rem;
  grid-template-columns:repeat(auto-fit,minmax(min(100%,17rem),1fr));margin-top:2rem}
.card{display:block;padding:1.5rem;border-radius:6px;
  background:var(--night-2);box-shadow:inset 0 0 0 1px #33281F}
.card:hover{background:#2B211A;text-decoration:none}
.card h3{font-size:1.15rem;margin-bottom:.5rem}
.card p{margin:0;font-size:.93rem;color:#B6A796}

/* ---------- prose ---------- */
.prose p{margin:0 0 1.35rem}
.prose p:last-child{margin-bottom:0}
.prose h2{font-size:clamp(1.45rem,2.6vw,1.9rem);margin:2.8rem 0 1rem}
.lede{font-size:1.16em;color:var(--ink)}

/* ---------- cta + footer ---------- */
.cta{text-align:center;background:var(--cream-2)}
.cta h2{font-size:clamp(1.6rem,3.2vw,2.3rem)}
.cta p{color:var(--muted);max-width:44ch;margin:1rem auto 2rem}

.site-foot{background:var(--night);color:#9C8D7E;padding:clamp(3rem,6vw,4.5rem) 0 2.5rem;
  font-size:.92rem}
.site-foot__word{font-family:var(--serif);font-size:clamp(1.4rem,3vw,2rem);
  color:#F3E9DE;margin:0 0 2rem}
.site-foot__in{display:flex;flex-wrap:wrap;gap:1.5rem 3rem;justify-content:space-between}
.site-foot a{color:#CFC2B4}
.site-foot a:hover{color:#E9B472}
.site-foot ul{list-style:none;margin:0;padding:0}
.site-foot li{margin-bottom:.5rem}
.fine{margin-top:2.5rem;padding-top:1.5rem;border-top:1px solid #2C231C;
  font-size:.85rem;color:#7A6C5F}

/* ---------- small screens ---------- */
@media(max-width:660px){
  .site-head{padding:1.25rem 0 .25rem}
  .site-head__in{flex-direction:column;gap:1rem}
  .brand img{width:150px}
  .nav{gap:1.1rem;font-size:.82rem}
  .twins{padding:1rem;gap:.75rem}
  .hero{padding-top:clamp(2rem,7vw,4rem)}
}

/* ---------- motion / print ---------- */
@media(prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .splash--on{animation:none;display:none}
  .splash__word span{opacity:1;animation:none}
  .world img{transition:none}
  .world:hover img{transform:none}
  *{animation-duration:.001ms!important;transition-duration:.001ms!important}
}
