/* Salsa Dance Napa — wine-country variant of the salsadancevegas.com system.
   Same family: Cabinet Grotesk display + Space Grotesk text, grain overlay,
   ivory ground, gold hairlines, identical easing/gutter/section tokens.
   Divergence is palette only: Vegas magenta -> Napa wine. */

/* Fonts: display=optional + a width-matched local fallback keeps CLS at zero.
   Never switch these to display=swap — swap-CLS does not show up in a local
   Lighthouse run and only surfaces on the live URL. */
@font-face { font-family:"Cabinet Grotesk"; src:url("/assets/fonts/cabinet-500.woff2") format("woff2"); font-weight:500; font-style:normal; font-display:optional; }
@font-face { font-family:"Cabinet Grotesk"; src:url("/assets/fonts/cabinet-700.woff2") format("woff2"); font-weight:700; font-style:normal; font-display:optional; }
@font-face { font-family:"Cabinet Grotesk"; src:url("/assets/fonts/cabinet-800.woff2") format("woff2"); font-weight:800; font-style:normal; font-display:optional; }
@font-face { font-family:"Cabinet Grotesk"; src:url("/assets/fonts/cabinet-900.woff2") format("woff2"); font-weight:900; font-style:normal; font-display:optional; }
@font-face { font-family:"Space Grotesk"; src:url("/assets/fonts/space-grotesk-var.woff2") format("woff2"); font-weight:300 700; font-style:normal; font-display:optional; }
@font-face { font-family:"Cabinet Grotesk Fallback"; src:local("Helvetica Neue"), local("Arial"); ascent-override:96%; descent-override:24%; line-gap-override:0%; }
@font-face { font-family:"Space Grotesk Fallback";  src:local("Helvetica Neue"), local("Arial"); ascent-override:98%; descent-override:24%; line-gap-override:0%; }

:root{
  --ivory:#FAF6F0; --ivory-2:#F5EEE3; --champagne:#F3E8D8;
  --wine:#6E1F35; --wine-deep:#4E1526; --wine-soft:#A85F74;
  --gold:#C9A84C; --gold-soft:#E3CF9A;
  --ink:#1C1917; --ink-60:rgba(28,25,23,.6); --ink-45:rgba(28,25,23,.45);
  --ink-30:rgba(28,25,23,.3); --ink-10:rgba(28,25,23,.1); --white:#fff;
  --font-display:"Cabinet Grotesk","Cabinet Grotesk Fallback","Helvetica Neue",Arial,sans-serif;
  --font-text:"Space Grotesk","Space Grotesk Fallback",-apple-system,Helvetica,Arial,sans-serif;
  --ease-out-expo:cubic-bezier(.16,1,.3,1); --ease-luxe:cubic-bezier(.65,0,.15,1);
  --gutter:clamp(1.25rem,4vw,4rem); --section-pad:clamp(4.5rem,10vw,9rem);
  --maxw:74rem;
}
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}
  *,*::before,*::after{animation-duration:.01ms!important;transition-duration:.01ms!important}}
body{margin:0;background:var(--ivory);color:var(--ink);font-family:var(--font-text);
  font-size:clamp(1rem,.97rem + .15vw,1.075rem);line-height:1.7;-webkit-font-smoothing:antialiased}
img{max-width:100%;height:auto;display:block}
a{color:inherit}
h1,h2,h3,h4{font-family:var(--font-display);font-weight:800;line-height:1.08;
  letter-spacing:-.02em;margin:0;text-wrap:balance}
.grain{position:fixed;inset:0;z-index:1;pointer-events:none;opacity:.035;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E")}
.wrap{max-width:var(--maxw);margin:0 auto;padding-inline:var(--gutter)}
.eyebrow{font-family:var(--font-text);font-size:.72rem;font-weight:600;
  letter-spacing:.22em;text-transform:uppercase;color:var(--wine);margin:0 0 1.25rem}
.rule{height:1px;background:linear-gradient(90deg,var(--gold),transparent);border:0;margin:0}

/* nav */
.nav{position:sticky;top:0;z-index:50;display:flex;align-items:center;justify-content:space-between;
  gap:1rem;padding:.9rem var(--gutter);background:rgba(250,246,240,.88);
  backdrop-filter:blur(12px);border-bottom:1px solid var(--ink-10)}
.nav-logo{display:flex;align-items:center;gap:.6rem;text-decoration:none;
  font-family:var(--font-display);font-weight:800;letter-spacing:-.01em;font-size:1.02rem}
.nav-logo svg{width:26px;height:26px;flex:none}
.nav-links{display:flex;align-items:center;gap:clamp(.9rem,2.4vw,1.9rem);
  font-size:.85rem;letter-spacing:.02em}
.nav-links a{text-decoration:none;color:var(--ink-60);transition:color .25s var(--ease-out-expo)}
.nav-links a:hover{color:var(--wine)}
@media (max-width:620px){.nav-links .hide-sm{display:none}}

/* buttons */
.btn{display:inline-block;font-family:var(--font-text);font-weight:600;font-size:.9rem;
  letter-spacing:.04em;padding:1rem 2rem;border-radius:999px;text-decoration:none;
  border:1px solid var(--wine);background:var(--wine);color:var(--ivory);cursor:pointer;
  transition:background .3s var(--ease-out-expo),color .3s var(--ease-out-expo),transform .3s var(--ease-out-expo)}
.btn:hover{background:var(--wine-deep);border-color:var(--wine-deep);transform:translateY(-1px)}
.btn-ghost{background:transparent;color:var(--wine)}
.btn-ghost:hover{background:var(--wine);color:var(--ivory)}

/* hero */
.hero{padding:clamp(4rem,11vw,8.5rem) 0 clamp(3rem,7vw,5rem);position:relative;z-index:2}
.hero h1{font-size:clamp(2.6rem,7.2vw,5.6rem);font-weight:900;max-width:16ch}
.hero h1 em{font-style:italic;font-weight:800;color:var(--wine)}
.hero .sub{margin:1.9rem 0 2.6rem;max-width:58ch;font-size:clamp(1.05rem,1rem + .4vw,1.22rem);color:var(--ink-60)}

/* sections */
section{position:relative;z-index:2}
.sec{padding:var(--section-pad) 0;border-top:1px solid var(--ink-10)}
.sec h2{font-size:clamp(1.9rem,4.2vw,3.1rem);max-width:20ch}
.sec .lede{margin:1.5rem 0 0;max-width:62ch;color:var(--ink-60);font-size:1.05rem}
.sec-alt{background:var(--ivory-2)}

/* packages */
.pkgs{display:grid;gap:1.5rem;margin:3rem 0 0;grid-template-columns:repeat(auto-fit,minmax(19rem,1fr))}
.pkg{background:var(--white);border:1px solid var(--ink-10);border-radius:4px;
  padding:clamp(1.75rem,3.5vw,2.5rem);display:flex;flex-direction:column;gap:1rem;
  transition:border-color .3s var(--ease-out-expo),transform .3s var(--ease-out-expo)}
.pkg:hover{border-color:var(--gold);transform:translateY(-2px)}
.pkg h3{font-size:1.45rem;letter-spacing:-.01em}
.pkg .price{font-family:var(--font-display);font-weight:800;font-size:2.4rem;color:var(--wine);line-height:1}
.pkg p{margin:0;color:var(--ink-60);font-size:.98rem}
.note{margin:2.5rem 0 0;font-size:.95rem;color:var(--wine);font-weight:500}

/* studios */
.studios{display:grid;gap:1.5rem;margin:2.75rem 0 0;grid-template-columns:repeat(auto-fit,minmax(18rem,1fr))}
.studio{border:1px solid var(--ink-10);border-radius:4px;padding:1.9rem;background:var(--white)}
.studio h3{font-size:1.2rem;margin-bottom:.5rem}
.studio p{margin:.4rem 0 1.1rem;color:var(--ink-60);font-size:.96rem}
.studio a{color:var(--wine);font-weight:600;text-decoration:none;border-bottom:1px solid var(--gold-soft);font-size:.93rem}
.studio a:hover{border-bottom-color:var(--wine)}

/* journal */
.jgrid{display:grid;gap:1px;margin:2.75rem 0 0;background:var(--ink-10);
  border:1px solid var(--ink-10);grid-template-columns:repeat(auto-fill,minmax(20rem,1fr))}
.jcard{background:var(--ivory);padding:1.6rem;text-decoration:none;display:flex;flex-direction:column;gap:.55rem;
  transition:background .3s var(--ease-out-expo)}
.jcard:hover{background:var(--white)}
.jcard .jt{font-family:var(--font-display);font-weight:700;font-size:1.02rem;line-height:1.3;letter-spacing:-.01em}
.jcard .jd{font-size:.86rem;color:var(--ink-45)}
.jcard .jx{font-size:.9rem;color:var(--ink-60);line-height:1.55}

/* form */
.form{margin:2.75rem 0 0;max-width:44rem}
.frow{display:grid;gap:1.1rem;grid-template-columns:1fr 1fr}
@media (max-width:640px){.frow{grid-template-columns:1fr}}
.field{display:flex;flex-direction:column;gap:.45rem;margin-bottom:1.1rem}
.field label{font-size:.78rem;font-weight:600;letter-spacing:.1em;text-transform:uppercase;color:var(--ink-60)}
.field input,.field textarea{font-family:var(--font-text);font-size:1rem;color:var(--ink);
  background:var(--white);border:1px solid var(--ink-10);border-radius:3px;padding:.85rem 1rem;width:100%;
  transition:border-color .25s var(--ease-out-expo)}
.field input:focus,.field textarea:focus{outline:none;border-color:var(--wine)}
.field textarea{min-height:8rem;resize:vertical}
.hp{position:absolute!important;left:-9999px!important;width:1px;height:1px;overflow:hidden}
.formmsg{margin:1.25rem 0 0;font-size:.98rem;font-weight:500;min-height:1.5rem}
.formmsg.ok{color:var(--wine)}
.formmsg.err{color:#B3261E}

/* footer */
.foot{border-top:1px solid var(--ink-10);padding:3rem 0;font-size:.86rem;color:var(--ink-45);position:relative;z-index:2}
.foot a{color:var(--ink-60);text-decoration:none}
.foot a:hover{color:var(--wine)}
.foot-row{display:flex;flex-wrap:wrap;gap:1rem 2rem;justify-content:space-between;align-items:center}

/* article */
.article{padding:clamp(3rem,7vw,5rem) 0 var(--section-pad);position:relative;z-index:2}
.article-head{max-width:44rem;margin:0 auto}
.article-head h1{font-size:clamp(2rem,4.6vw,3.2rem);margin-bottom:1rem}
.article-meta{font-size:.85rem;color:var(--ink-45);letter-spacing:.04em}
.article-hero{max-width:56rem;margin:2.75rem auto 0;border-radius:4px;overflow:hidden}
.prose{max-width:44rem;margin:2.75rem auto 0}
.prose h2{font-size:clamp(1.4rem,2.6vw,1.85rem);margin:2.75rem 0 .9rem;letter-spacing:-.015em}
.prose h3{font-size:1.2rem;margin:2rem 0 .7rem}
.prose p{margin:0 0 1.35rem}
.prose ul,.prose ol{margin:0 0 1.35rem;padding-left:1.25rem}
.prose li{margin:0 0 .5rem}
.prose a{color:var(--wine);text-decoration:underline;text-underline-offset:2px}
.backlink{display:inline-block;margin:0 0 1.75rem;font-size:.85rem;color:var(--ink-60);text-decoration:none;letter-spacing:.04em}
.backlink:hover{color:var(--wine)}
.article-cta{max-width:44rem;margin:3.5rem auto 0;padding:2rem;background:var(--ivory-2);
  border:1px solid var(--ink-10);border-radius:4px;text-align:center}
.article-cta h3{font-size:1.3rem;margin-bottom:.6rem}
.article-cta p{color:var(--ink-60);margin:0 0 1.5rem;font-size:.98rem}

/* ============ MEDIA (added with the imagery pass) ============
   Every image ships through Astro's <Picture>, which emits intrinsic
   width/height plus avif/webp srcset — so nothing here needs an aspect hack
   and none of it shifts layout while loading. Containers use aspect-ratio so
   the box is reserved even before the first byte arrives: CLS stays at 0. */

/* hero — media sits behind the copy, veil keeps the text legible on ivory */
.hero { overflow: hidden; min-height: clamp(34rem, 78vh, 48rem); display: flex; align-items: center; }
.hero > .wrap { width: 100%; }
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 38%; }
.hero-veil {
  position: absolute; inset: 0; z-index: -1;
  /* Two layers, same as the Vegas hero: a light top/bottom fade to seat the
     media against the ivory ground, and a strong left-to-right falloff so the
     copy column stays legible while the photograph reads at full strength on
     the right. Keep the 180deg layer light — stacking two heavy gradients
     washes the image out completely. */
  background:
    linear-gradient(180deg, rgba(250,246,240,.86) 0%, rgba(250,246,240,.22) 30%,
                    rgba(250,246,240,.16) 68%, rgba(250,246,240,.78) 100%),
    linear-gradient(90deg, rgba(250,246,240,.96) 0%, rgba(250,246,240,.80) 36%,
                    rgba(250,246,240,.28) 68%, rgba(250,246,240,.04) 100%);
}
@media (max-width: 720px) {
  .hero-veil { background: linear-gradient(180deg, rgba(250,246,240,.93) 0%, rgba(250,246,240,.8) 45%, rgba(250,246,240,.93) 100%); }
}

/* package + studio cards */
.pkg-media, .studio-media {
  aspect-ratio: 3 / 2; overflow: hidden; border-radius: 3px;
  margin: 0 0 .35rem; background: var(--ivory-2);
}
.pkg-media img, .studio-media img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .6s var(--ease-out-expo);
}
.pkg:hover .pkg-media img, .studio:hover .studio-media img { transform: scale(1.03); }
.studio-media { aspect-ratio: 16 / 10; margin-bottom: 1.1rem; }

/* our-story split */
.sec-split { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
@media (max-width: 900px) { .sec-split { grid-template-columns: 1fr; } }
.sec-figure { aspect-ratio: 4 / 3; overflow: hidden; border-radius: 3px; background: var(--ivory-2); }
.sec-figure img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* journal cards */
.jcard { padding: 0; gap: 0; overflow: hidden; }
.jcard-media { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--ivory-2); }
.jcard-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s var(--ease-out-expo); }
.jcard:hover .jcard-media img { transform: scale(1.04); }
.jcard-body { display: flex; flex-direction: column; gap: .55rem; padding: 1.4rem 1.5rem 1.6rem; }

/* closing image above the form */
.inquire-media {
  aspect-ratio: 21 / 9; overflow: hidden; border-radius: 3px;
  margin: 2.5rem 0 0; background: var(--ivory-2);
}
.inquire-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; display: block; }

/* article hero */
.article-hero { aspect-ratio: 16 / 8; background: var(--ivory-2); }
.article-hero img { width: 100%; height: 100%; object-fit: cover; display: block; }

@media (prefers-reduced-motion: reduce) {
  .pkg-media img, .studio-media img, .jcard-media img { transition: none; }
  .pkg:hover .pkg-media img, .studio:hover .studio-media img, .jcard:hover .jcard-media img { transform: none; }
}
