/* scrollcraft – base tokens and engine states for INMORA personal wedding pages (docs/29). */
.scp {
  --sc-canvas: #f6f3ee;
  --sc-surface: #ffffff;
  --sc-ink: #1f1a17;
  --sc-ink-soft: #5e5650;
  --sc-accent: #9a6b4f;
  --sc-accent-ink: #ffffff;
  --sc-shadow: 24 20% 12%;
  --sc-display: var(--font-fraunces), Georgia, serif;
  --sc-text: var(--font-geist), system-ui, sans-serif;
  --sc-mono: var(--font-geist-mono), ui-monospace, monospace;

  --sc-xs: clamp(0.75rem, 0.73rem + 0.1vw, 0.82rem);
  --sc-sm: clamp(0.875rem, 0.85rem + 0.12vw, 0.95rem);
  --sc-base: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  --sc-lg: clamp(1.2rem, 1.1rem + 0.5vw, 1.5rem);
  --sc-xl: clamp(1.6rem, 1.35rem + 1.2vw, 2.25rem);
  --sc-2xl: clamp(2.1rem, 1.6rem + 2.4vw, 3.4rem);
  --sc-3xl: clamp(2.8rem, 1.9rem + 4.2vw, 5rem);
  --sc-4xl: clamp(3.4rem, 1.9rem + 6.6vw, 7.5rem);

  --sc-section: clamp(4.5rem, 9vw, 11rem);
  --sc-gutter: clamp(1.25rem, 5vw, 5.5rem);
  --sc-max: 82rem;
  --sc-r1: 6px;
  --sc-r2: 12px;
  --sc-r3: 20px;
  --sc-e1: 0 1px 2px hsl(var(--sc-shadow) / 0.12), 0 4px 12px -4px hsl(var(--sc-shadow) / 0.18);
  --sc-e2: 0 2px 4px hsl(var(--sc-shadow) / 0.14), 0 12px 28px -8px hsl(var(--sc-shadow) / 0.28);
  --sc-e3: 0 4px 8px hsl(var(--sc-shadow) / 0.22), 0 18px 40px -8px hsl(var(--sc-shadow) / 0.38), 0 48px 90px -24px hsl(var(--sc-shadow) / 0.3);
  --sc-ease: cubic-bezier(0.23, 1, 0.32, 1);

  background: var(--sc-canvas);
  color: var(--sc-ink);
  font-family: var(--sc-text);
  font-size: var(--sc-base);
  line-height: 1.62;
  min-height: 100svh;
  overflow-x: clip;
}
.scp h1,
.scp h2,
.scp h3 {
  font-family: var(--sc-display);
  letter-spacing: -0.035em;
  line-height: 1.06;
  margin: 0;
  font-weight: 700;
}
.scp p { margin: 0; }
.scp img { display: block; max-width: 100%; }
.scp a { color: inherit; }
.scp em { font-style: italic; color: var(--sc-accent); }
.sc-label {
  font-family: var(--sc-mono);
  font-size: var(--sc-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--sc-ink-soft);
}
.sc-wrap { max-width: var(--sc-max); margin-inline: auto; padding-inline: var(--sc-gutter); }
.sc-section { padding-block: var(--sc-section); }

/* Chrome: monogram + names top left, menu and RSVP pills top right. */
.sc-chrome {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem var(--sc-gutter);
  pointer-events: none;
}
.sc-chrome > * { pointer-events: auto; }
.sc-brand { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; font-family: var(--sc-display); font-weight: 800; font-size: 1.35rem; letter-spacing: -0.03em; }
.sc-mono {
  display: grid;
  place-items: center;
  width: 2.3rem;
  height: 2.3rem;
  border-radius: 999px;
  border: 1.5px solid var(--sc-accent);
  color: var(--sc-accent);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0;
}
.sc-pills { display: flex; gap: 0.5rem; }
.sc-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border-radius: 999px;
  padding: 0.55rem 1.05rem;
  font-size: var(--sc-sm);
  font-weight: 600;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  font-family: var(--sc-text);
  transition: transform 160ms var(--sc-ease), background 240ms var(--sc-ease);
}
.sc-pill:hover { transform: translateY(-1px); }
.scp .sc-pill--glass { background: color-mix(in srgb, var(--sc-surface) 70%, transparent); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); box-shadow: var(--sc-e1); color: var(--sc-ink); }
.scp .sc-pill--ink { background: var(--sc-ink); color: var(--sc-canvas); }
.scp .sc-pill--accent { background: var(--sc-accent); color: var(--sc-accent-ink); }
.sc-menu { position: relative; }
.sc-menu-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 0.5rem);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.15rem 1.5rem;
  min-width: 20rem;
  padding: 1rem 1.2rem;
  border-radius: var(--sc-r2);
  background: var(--sc-surface);
  box-shadow: var(--sc-e2);
}
.sc-menu-panel[hidden] { display: none; }
.sc-menu-panel a { text-decoration: none; padding: 0.35rem 0; font-size: var(--sc-sm); }
.sc-menu-panel a:hover { color: var(--sc-accent); }

.sc-skip { position: absolute; left: -999px; top: 0.5rem; z-index: 100; background: var(--sc-ink); color: var(--sc-canvas); padding: 0.5rem 1rem; border-radius: 999px; }
.sc-skip:focus { left: 0.5rem; }
.scp :focus-visible { outline: 2px solid var(--sc-accent); outline-offset: 3px; }

.sc-cta { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.6rem; }
.sc-footer { border-top: 1px solid color-mix(in srgb, var(--sc-ink) 14%, transparent); padding: 2.2rem var(--sc-gutter); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; font-size: var(--sc-sm); color: var(--sc-ink-soft); }
.sc-footer a { text-decoration: none; }

/* Engine: pinned stages and start states (only with JS). */
.sc-stage { position: sticky; top: 0; height: 100svh; overflow: clip; }
html.sc-ready [data-sc-in] > *,
html.sc-ready [data-sc-in]:not(:has(> *)) {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 620ms var(--sc-ease), transform 620ms var(--sc-ease);
}
html.sc-ready [data-sc-in].sc-in > *,
html.sc-ready [data-sc-in].sc-in:not(:has(> *)) { opacity: 1; transform: none; }
html.sc-ready [data-sc-cue] { opacity: 0; will-change: opacity, transform; }
[data-sc-parallax],
[data-sc-pan] { will-change: transform; }
[data-sc-reveal] { will-change: clip-path; }
[data-sc-count] { font-variant-numeric: tabular-nums; }

/* Reduced motion: fewer and softer, not zero – fades stay, no movement; content stands finished. */
html.sc-reduced [data-sc-in] > *,
html.sc-reduced [data-sc-in]:not(:has(> *)) { transform: none !important; }
html.sc-reduced [data-sc-reveal] { clip-path: none !important; }
html.sc-reduced [data-sc-parallax] { transform: none !important; }
html.sc-reduced [data-sc-pan] { transform: none !important; }

@media (max-width: 900px) {
  .sc-brand span:last-child { display: none; }
  .sc-menu-panel { min-width: 16rem; grid-template-columns: 1fr; }
}

/* Preview ribbon for the couple and the team. */
.sc-preview { position: fixed; z-index: 90; left: 50%; bottom: 1rem; transform: translateX(-50%); background: #171716; color: #fff; font: 600 0.78rem/1 system-ui, sans-serif; padding: 0.55rem 1rem; border-radius: 999px; box-shadow: 0 8px 24px -8px rgb(0 0 0 / 0.5); }
