/* ==========================================================================
   Stargazer Philippines: base layer
   Fonts, design tokens, reset, typography, buttons, shared helpers.
   Loaded first on every page. No inline styles anywhere (CSP style-src 'self').
   ========================================================================== */

/* --- Fonts: self-hosted, Latin subset, variable ------------------------- */
/* Fraunces: opsz 9-144, wght 300-500 (italic 300-400). SIL OFL, see fonts/OFL-*.txt */
@font-face{font-family:"Fraunces";src:url("../fonts/fraunces-normal.d3e4c7881f2a.woff2") format("woff2");font-weight:300 500;font-style:normal;font-display:swap}
@font-face{font-family:"Fraunces";src:url("../fonts/fraunces-italic.d71c718a8fdd.woff2") format("woff2");font-weight:300 400;font-style:italic;font-display:swap}
/* Cinzel: wght 400-900, logo lettering only (Mom's logo is a Trajan-style serif) */
@font-face{font-family:"Cinzel";src:url("../fonts/cinzel-normal.f6f5c1396bd8.woff2") format("woff2");font-weight:400 900;font-style:normal;font-display:swap}
/* Karla: wght 300-600, italic 400 */
@font-face{font-family:"Karla";src:url("../fonts/karla-normal.4b7dad12cd06.woff2") format("woff2");font-weight:300 600;font-style:normal;font-display:swap}
@font-face{font-family:"Karla";src:url("../fonts/karla-italic.5500c8759bab.woff2") format("woff2");font-weight:400;font-style:italic;font-display:swap}

/* --- Tokens ------------------------------------------------------------- */
:root{
  color-scheme:dark;
  --night:#0d0a1f; --night-2:#151028; --night-3:#1d1735;
  --mist:#efe9f7; --mist-dim:rgba(239,233,247,.62); --mist-faint:rgba(239,233,247,.55);
  --gold:#e6b86f; --gold-soft:rgba(230,184,111,.55);
  --rose:#e98fb4; --violet:#9d7bf0; --teal:#5fd3c4;
  --line:rgba(239,233,247,.12);
  --ease:cubic-bezier(.22,1,.36,1);
  --gutter:clamp(20px,6vw,80px);
  --serif:"Fraunces",Georgia,"Times New Roman",serif;
  --sans:"Karla",system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;
}

/* --- Reset -------------------------------------------------------------- */
*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}
html{scroll-behavior:smooth;overflow-x:hidden;overflow-x:clip;-webkit-text-size-adjust:100%;text-size-adjust:100%}
body{
  min-height:100vh;min-height:100dvh;
  background:var(--night);color:var(--mist);
  font-family:var(--sans);font-weight:300;line-height:1.7;font-size:17px;
  overflow-x:hidden;overflow-x:clip;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;
}
img,svg,video,canvas{display:block;max-width:100%}
img{height:auto}
button{font:inherit;color:inherit}
::selection{background:var(--gold);color:var(--night)}

/* --- Focus and accessibility ------------------------------------------- */
:focus-visible{outline:2px solid var(--gold);outline-offset:3px;border-radius:2px}
.skip-link{
  position:fixed;top:12px;left:12px;z-index:100;
  padding:12px 20px;border-radius:99px;background:var(--gold);color:var(--night);
  font-weight:600;font-size:.84rem;letter-spacing:.12em;text-transform:uppercase;text-decoration:none;
  transform:translateY(-160%);transition:transform .3s var(--ease);
}
.skip-link:focus{transform:none}
.visually-hidden{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

/* --- Typography --------------------------------------------------------- */
h1,h2,h3{font-family:var(--serif);font-optical-sizing:auto}
h1{font-weight:300;font-size:clamp(2.7rem,6.2vw,5.4rem);line-height:1.04;letter-spacing:-.01em}
h2{font-weight:300;font-size:clamp(1.9rem,3.8vw,3.1rem);line-height:1.15;max-width:760px}
h3{font-weight:400}
h1 em,h2 em{font-style:italic;font-weight:400;color:var(--gold)}
em.gold{color:var(--gold)}

.eyebrow{
  font-size:.78rem;letter-spacing:.28em;text-transform:uppercase;color:var(--gold);
  display:flex;align-items:center;gap:14px;margin-bottom:28px;font-weight:400;
}
.eyebrow::before{content:"";width:42px;height:1px;background:var(--gold-soft);flex:0 0 auto}
.eyebrow.center{justify-content:center}
.eyebrow.center::before{display:none}

.section-label{font-size:.76rem;letter-spacing:.3em;text-transform:uppercase;color:var(--gold);margin-bottom:22px;font-weight:400;display:flex;align-items:center;gap:14px}
.section-label::after{content:"";flex:0 0 42px;height:1px;background:var(--gold-soft)}
.section-label.center{justify-content:center}
.section-label.center::after{display:none}

/* --- Buttons and links -------------------------------------------------- */
.btn{
  display:inline-block;text-decoration:none;font-size:.84rem;letter-spacing:.16em;
  text-transform:uppercase;font-weight:500;padding:16px 34px;border-radius:99px;cursor:pointer;border:none;
  transition:transform .35s var(--ease),background .35s,color .35s,border-color .35s;
}
.btn-gold{background:var(--gold);color:var(--night)}
.btn-gold:hover{transform:translateY(-2px);background:#f0c989}
.btn-ghost{border:1px solid var(--line);color:var(--mist);background:transparent}
.btn-ghost:hover{border-color:var(--gold-soft);color:var(--gold)}

.text-link{display:inline-flex;align-items:center;gap:12px;margin-top:34px;color:var(--gold);text-decoration:none;font-size:.84rem;letter-spacing:.18em;text-transform:uppercase;font-weight:500;background:none;border:none;cursor:pointer;font-family:var(--sans)}
.text-link .arrow{transition:transform .35s var(--ease)}
.text-link:hover .arrow{transform:translateX(6px)}

/* --- Layout helpers (replace the template's inline style="" attributes) -- */
.mx-auto{margin-left:auto;margin-right:auto}
.text-center{text-align:center}
.pt-s{padding-top:20px!important}
.pt-m{padding-top:30px!important}
.mt-m{margin-top:24px}
.mt-l{margin-top:36px}
.dim{color:var(--mist-dim)}
.wide{max-width:860px}

/* --- Reveal-on-scroll ---------------------------------------------------
   Content is hidden only when scripting is on, so a visitor (or crawler)
   without JavaScript always sees everything. */
@media (scripting:enabled){
  .reveal{opacity:0;transform:translateY(34px);transition:opacity .9s var(--ease),transform .9s var(--ease)}
  .reveal.in{opacity:1;transform:none}
}

/* --- Reduced motion ----------------------------------------------------- */
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{animation:none!important;transition:none!important}
  html{scroll-behavior:auto}
  .reveal{opacity:1!important;transform:none!important}
}
