/* =========================================================
   ShineStudio — shared tokens + chrome
   Used by The Receipt (v2) and Night Shift Dashboard (v3).
   The Editorial (v1) keeps its own styles.css.
   ========================================================= */

@font-face {
  font-family: "Fraunces";
  src: url("fonts/Fraunces-VariableFont.ttf") format("truetype-variations");
  font-weight: 100 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("fonts/Fraunces-Italic-VariableFont.ttf") format("truetype-variations");
  font-weight: 100 900; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("fonts/Manrope-VariableFont_wght.ttf") format("truetype-variations");
  font-weight: 200 800; font-style: normal; font-display: swap;
}

:root {
  --cream:        #FAF4EC;
  --panel:        #FFFDFA;
  --panel-2:      #FBF6EE;
  --border:       #EFE6DD;
  --border-soft:  #F2EAE0;
  --ink:          #161616;
  --ink-body:     #2C2722;
  --muted:        #8A7F73;

  --coral:        #FA584B;
  --coral-hover:  #ED463A;
  --coral-tint:   #FDEAE5;
  --coral-deep:   #C23A2F;
  --lime:         #79A23E;
  --lime-tint:    #EDF3DF;
  --violet:       #6B43B8;
  --violet-tint:  #ECE4FA;
  --indigo:       #3B3E66;
  --indigo-tint:  #E7E6F0;
  --gold:         #E0A83C;

  --spark-url: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M50 4 C 54 30, 70 46, 96 50 C 70 54, 54 70, 50 96 C 46 70, 30 54, 4 50 C 30 46, 46 30, 50 4 Z'/%3E%3C/svg%3E");

  --font-display: "Fraunces", "Playfair Display", ui-serif, Georgia, serif;
  --font-sans:    "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-script:  "Pacifico", "Fraunces", cursive;

  --fr-head: "opsz" 90, "SOFT" 40, "WONK" 1;
  --fr-sub:  "opsz" 40, "SOFT" 30, "WONK" 0;

  --r-sm: 10px; --r-md: 14px; --r-lg: 22px; --r-xl: 30px; --r-pill: 999px;
  --sh-sm: 0 2px 8px rgba(60,40,20,.06);
  --sh-md: 0 12px 30px rgba(60,40,20,.09);
  --sh-lg: 0 26px 60px rgba(60,40,20,.13);
  --sh-coral: 0 14px 34px rgba(250,88,75,.28);
  --sh-pop: 6px 6px 0 0 var(--ink);
  --sh-pop-coral: 7px 7px 0 0 var(--coral);

  --maxw: 1120px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--cream); color: var(--ink-body);
  font-family: var(--font-sans); font-size: 18px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
h1,h2,h3,h4 { font-family: var(--font-display); color: var(--ink); margin: 0; letter-spacing: -0.02em; line-height: 1.04; font-weight: 600; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

/* real brand assets */
.brand-wordmark { height: 40px; width: auto; display: block; }
.brand-symbol { display: block; width: 22px; height: 22px; }

/* sparkle */
.spark {
  display: inline-block; width: 1em; height: 1em; background: var(--coral);
  -webkit-mask: var(--spark-url) center/contain no-repeat; mask: var(--spark-url) center/contain no-repeat;
  vertical-align: -0.08em; flex: none;
}
.spark-float {
  position: absolute; background: var(--coral);
  -webkit-mask: var(--spark-url) center/contain no-repeat; mask: var(--spark-url) center/contain no-repeat;
  pointer-events: none; animation: twinkle 4s var(--ease) infinite;
}
@keyframes twinkle { 0%,100%{transform:scale(1) rotate(0);opacity:.85} 50%{transform:scale(1.18) rotate(12deg);opacity:1} }

/* eyebrow */
.eyebrow {
  font-size: 13px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted); display: inline-flex; align-items: center; gap: 9px;
}
.eyebrow .spark { width: 13px; height: 13px; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-sans);
  font-weight: 700; font-size: 17px; border: none; border-radius: var(--r-pill);
  padding: 15px 28px; cursor: pointer; text-decoration: none; line-height: 1;
  transition: transform .12s var(--ease), background .12s, box-shadow .18s;
}
.btn-coral { background: var(--coral); color: #fff; box-shadow: var(--sh-coral); }
.btn-coral:hover { background: var(--coral-hover); transform: translateY(-2px); }
.btn-coral:active { transform: translateY(0) scale(.98); }
.btn-ink { background: var(--ink); color: var(--cream); }
.btn-ink:hover { background: #000; transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--cream); }
.btn-lg { padding: 18px 34px; font-size: 18px; }

/* wordmark */
.wordmark {
  display: inline-flex; align-items: flex-start; position: relative;
  font-family: var(--font-script); font-size: 30px; color: var(--ink); line-height: 1;
  user-select: none; padding-top: 4px;
}
.wordmark .wm-i { position: relative; }
.wordmark .wm-i-spark {
  position: absolute; width: 12px; height: 12px; left: 50%; top: -4px; transform: translateX(-50%);
  background: var(--coral); -webkit-mask: var(--spark-url) center/contain no-repeat; mask: var(--spark-url) center/contain no-repeat;
}
.wordmark .wm-ai {
  font-family: var(--font-sans); font-weight: 800; font-size: 11px; letter-spacing: 0.04em;
  background: var(--coral); color: #fff; border-radius: var(--r-pill); padding: 3px 7px;
  margin-left: 6px; margin-top: 2px; align-self: flex-start;
}

/* nav (shared) */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 100; transition: background .3s, box-shadow .3s, border-color .3s; border-bottom: 1px solid transparent; }
.nav.scrolled { background: rgba(250,244,236,.82); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); border-bottom: 1px solid var(--border); }
.nav-inner { max-width: var(--maxw); margin: 0 auto; padding: 16px 28px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav-links { display: flex; gap: 30px; align-items: center; }
.nav-links a { font-size: 16px; font-weight: 600; color: var(--ink-body); transition: color .12s; }
.nav-links a:hover { color: var(--coral); }
.nav-right { display: flex; align-items: center; gap: 20px; }
.nav-login { font-size: 16px; font-weight: 600; color: var(--ink); }
.nav-login:hover { color: var(--coral); }
.nav-toggle { display: none; }
.ver-pill {
  font-size: 12px; font-weight: 700; letter-spacing: .04em; color: var(--muted);
  border: 1px solid var(--border); border-radius: var(--r-pill); padding: 6px 12px;
  display: inline-flex; align-items: center; gap: 7px; background: var(--panel);
}
.ver-pill:hover { color: var(--coral); border-color: var(--coral); }

/* reveal */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; } .reveal.d3 { transition-delay: .24s; } .reveal.d4 { transition-delay: .32s; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } .spark-float { animation: none; } html { scroll-behavior: auto; } }

@media (max-width: 760px) {
  .nav-links, .nav-login { display: none; }
  .nav-links.open { display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--cream); padding: 18px 28px 24px; gap: 18px; border-bottom: 1px solid var(--border); box-shadow: var(--sh-md); }
  .nav-toggle { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 11px; border: 1px solid var(--border); background: var(--panel); cursor: pointer; }
  .nav-toggle svg { width: 22px; height: 22px; color: var(--ink); }
}
