/* Sugar Maple Wedding: component styles. Every value comes from tokens.css; her fonts load from the system's own files. */

.sm-page {
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
}

/* ---------- Nav: centered uppercase links ---------- */
.sm-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-4);
  padding: var(--space-3) var(--space-4) 0;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.sm-nav a {
  color: var(--ink);
  text-decoration: none;
  padding-block: var(--space-1);
  border-bottom: var(--rule-weight) solid transparent;
  transition: border-color var(--dur-quick) ease-out;
}
.sm-nav a:hover,
.sm-nav a[aria-current="page"] { border-bottom-color: var(--accent); }

/* ---------- Monogram: her script initials in a ring ---------- */
.sm-monogram {
  width: var(--monogram-size);
  height: var(--monogram-size);
  border-radius: var(--radius-full);
  border: var(--rule-weight) solid var(--accent);
  color: var(--accent);
  display: inline-grid;
  place-items: center;
  font-family: var(--font-script);
  font-size: 26px;
  line-height: 1;
  padding-top: 4px;
}

/* ---------- Hero ---------- */
.sm-hero {
  display: grid;
  justify-items: center;
  gap: var(--space-2);
  padding: var(--space-6) var(--space-4);
  text-align: center;
  color: var(--ink);
}
.sm-names {
  margin: 0;
  font-family: var(--font-script);
  font-weight: 400;
  font-size: 72px;
  line-height: 1.15;
  text-wrap: balance;
}
.sm-rule {
  width: var(--rule-width);
  height: var(--rule-weight);
  background: var(--accent);
  border: 0;
  margin: 0;
  transform-origin: left center;
}
.sm-date {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

/* ---------- Section heading ---------- */
.sm-heading {
  display: grid;
  justify-items: center;
  gap: var(--space-2);
  text-align: center;
  color: var(--ink);
}
.sm-title {
  margin: 0;
  font-family: var(--font-hand-caps);
  font-weight: 400;
  font-size: 44px;
  line-height: 1.05;
  text-transform: uppercase;
  text-wrap: balance;
}
.sm-blessing {
  margin: 0;
  font-family: var(--font-callig);
  font-size: 34px;
  line-height: 1.3;
}
.sm-signature {
  font-family: var(--font-script);
  font-size: 36px;
  line-height: 1.2;
}
.sm-story-note {
  margin: 0;
  font-family: var(--font-hand);
  font-size: 26px;
  line-height: 1.35;
  color: var(--ink);
}
.sm-note-small {
  margin: 0;
  font-family: var(--font-hand);
  font-size: 20px;
  line-height: 1.4;
  color: var(--ink);
}
.sm-annotation {
  font-family: var(--font-hand-caps);
  font-size: 18px;
  line-height: 1.3;
  text-transform: uppercase;
  color: var(--ink);
}
.sm-numeral {
  font-family: var(--font-hand-caps);
  font-size: 56px;
  line-height: 1;
  color: var(--ink);
}
.sm-ornament { width: 28px; height: 28px; display: block; }

/* ---------- Button ---------- */
.sm-button {
  display: inline-block;
  background: var(--action);
  color: var(--on-action);
  border: 0;
  border-radius: var(--radius-sm);
  padding: var(--space-2) var(--space-6);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--dur-quick) var(--ease-paper), opacity var(--dur-quick) ease-out;
}
.sm-button:hover { transform: translateY(-1px) rotate(-0.6deg); }
.sm-button:active { transform: translateY(0) rotate(0); opacity: 0.9; }
.sm-button:focus-visible,
.sm-nav a:focus-visible,
.sm-replay:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

/* ---------- Band ---------- */
.sm-band {
  background: var(--surface-band);
  color: var(--ink);
  padding: var(--space-3) var(--space-4);
  text-align: center;
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.55;
}

/* ---------- Her drawings ---------- */
.sm-drawing { display: block; width: 100%; height: 100%; overflow: visible; }
.sm-drawing #ink path { fill: var(--pen); }

/* A drawing card: white card mounted on colored cardstock, the way she presents her cards */
.sm-stage { perspective: var(--perspective); perspective-origin: 50% 40%; }
.sm-card3d {
  position: relative;
  transform-style: preserve-3d;
  will-change: transform;
}
.sm-cardstock {
  position: absolute;
  inset: 0;
  background: var(--accent);
  border-radius: var(--radius-md);
  box-shadow: 0 30px 50px -20px var(--shadow-paper);
}
.sm-cardstock.is-ocher { background: var(--surface-band); }
.sm-cardstock.is-slate { background: var(--deep-slate-green); }
.sm-card {
  position: absolute;
  inset: var(--space-6);
  background: var(--surface-card);
  border-radius: var(--radius-md);
  box-shadow: 0 10px 24px -12px var(--shadow-paper);
}
.sm-layer { position: absolute; transform-style: preserve-3d; }
.sm-layer.is-lifted { filter: drop-shadow(0 14px 10px var(--shadow-paper)); }

/* Replay control used in previews and on the site to rerun an animation */
.sm-replay {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: var(--space-1) var(--space-3);
  cursor: pointer;
}

@media (prefers-reduced-motion: reduce) {
  .sm-card3d, .sm-layer { transform: none !important; }
}
