/* Memento Magicka — shared base styles (header, draft strip, tokens).
   Every path in this site is relative, so the whole folder can be copied
   as-is to holly-hamel.com/memento-magicka/ or memento.holly-hamel.com/. */

:root {
  --bg: #09070b;
  --bg-2: #120d13;
  --bg-3: #1a1219;
  --ink: #f1e8dc;
  --muted: #b5a698;
  --faint: #75675e;
  --crimson: #8e1b30;
  --rose: #c64a62;
  --gold: #cfae72;
  --gold-2: #efdcab;
  --smoke: #3a2440;
  --line: rgba(239, 220, 171, 0.14);
  --line-soft: rgba(255, 255, 255, 0.07);
  --glass: rgba(255, 255, 255, 0.03);
  --accent-glow: rgba(142, 27, 48, 0.55); /* draft strip + header hover; pages can override */
  --header-bg: rgba(9, 7, 11, 0.92);

  --f-display: "Cormorant Garamond", "Cormorant", Georgia, serif;
  --f-caps: "Cinzel", "Trajan Pro", Georgia, serif;
  --f-body: "Jost", "Futura", "Avenir Next", system-ui, sans-serif;

  --header-h: 92px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-body);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
::selection { background: var(--crimson); color: var(--ink); }

/* film-grain texture over everything, very faint */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: 0.07;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* ---------- shared header (built by assets/memento.js) ---------- */
.mm-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: var(--header-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.mm-draft {
  text-align: center;
  font-family: var(--f-body);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-2);
  background: linear-gradient(90deg, transparent, var(--accent-glow), transparent);
  padding: 5px 16px;
}
.mm-nav {
  max-width: 1180px;
  margin: 0 auto;
  height: 62px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.mm-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-family: var(--f-caps);
  font-size: 15px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  white-space: nowrap;
}
.mm-brand svg { width: 30px; height: 30px; color: var(--gold); flex: none; }
.mm-brand em { font-family: var(--f-display); font-style: italic; text-transform: none; letter-spacing: 0.02em; font-size: 21px; color: var(--gold-2); }
.mm-links { display: flex; align-items: center; gap: 4px; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.mm-links::-webkit-scrollbar { display: none; }
.mm-links a {
  text-decoration: none;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 8px 12px;
  border-radius: 999px;
  transition: color .3s, background .3s;
  white-space: nowrap;
}
.mm-links a:hover { color: var(--ink); background: var(--glass); }
.mm-links a[aria-current="page"] { color: var(--gold-2); }
.mm-links a.mm-cta {
  color: var(--ink);
  border: 1px solid rgba(207, 174, 114, 0.45);
  margin-left: 6px;
}
.mm-links a.mm-cta:hover { background: var(--accent-glow); border-color: var(--gold); }
.mm-links a[hidden] { display: none; }

@media (max-width: 680px) {
  .mm-brand .mm-brand-text { display: none; }
  .mm-nav { padding: 0 16px; gap: 8px; }
  .mm-links a { font-size: 11px; letter-spacing: 0.1em; padding: 7px 9px; }
  .mm-draft { font-size: 9.5px; letter-spacing: 0.16em; }
}

/* ---------- toolbox teaser: preview strip link + floating live-site badge ---------- */
.mm-draft a { color: var(--gold-2); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.mm-draft { font-size: 12px; padding: 7px 16px; }
.mm-live-badge {
  position: fixed; right: 16px; bottom: 16px; z-index: 60;
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px 10px 10px; border-radius: 999px;
  font-family: var(--f-caps); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; text-decoration: none;
  color: #0a1a15; background: linear-gradient(180deg, #f7e2a6, #d4af5a 55%, #b8913f);
  box-shadow: 0 10px 30px -8px rgba(0,0,0,.7);
}
.mm-live-badge span { font-size: 9px; letter-spacing: .16em; background: rgba(10,26,21,.85); color: #f3dc9c; padding: 4px 8px; border-radius: 999px; }
.mm-live-badge:hover { filter: brightness(1.08); }
@media (max-width: 680px) { .mm-draft { font-size: 10.5px; } }

/* ---------- shared bits ---------- */
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 680px) { .wrap { padding: 0 16px; } }

.eyebrow {
  font-family: var(--f-caps);
  font-size: 12px;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: var(--gold);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--f-caps);
  font-size: 13px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  padding: 16px 30px;
  border-radius: 999px;
  border: 1px solid rgba(207, 174, 114, 0.5);
  background: linear-gradient(135deg, rgba(142, 27, 48, 0.9), rgba(74, 12, 28, 0.9));
  box-shadow: 0 0 0 0 rgba(198, 74, 98, 0);
  cursor: pointer;
  transition: box-shadow .5s, transform .5s, border-color .5s;
}
.btn:hover { transform: translateY(-2px); border-color: var(--gold-2); box-shadow: 0 10px 40px -8px rgba(198, 74, 98, 0.55); }
.btn.ghost { background: transparent; border-color: var(--line); }
.btn.ghost:hover { border-color: var(--gold); box-shadow: none; }

/* placeholder text — anything Holly still needs to write or confirm */
.ph {
  color: var(--faint);
  font-style: italic;
  border-bottom: 1px dashed rgba(207, 174, 114, 0.35);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  html { scroll-behavior: auto; }
}
