/* ============================================================
   Emily the Officiant — Site Styles
   ============================================================ */

:root {
  --ink: #1a1a1a;
  --ink-soft: #3a3a3a;
  --ink-muted: #6a6a64;
  --cream: #f5efe1;
  --cream-deep: #ece4d2;
  --paper: #f9f4e8;
  --accent: oklch(72% 0.10 200);          /* turquoise */
  --accent-deep: oklch(58% 0.11 200);
  --accent-soft: oklch(88% 0.05 200);

  --display: "Permanent Marker", "Caveat Brush", system-ui, sans-serif;
  --body: "DM Sans", "Inter", -apple-system, sans-serif;

  --max: 1240px;
  --pad: clamp(20px, 4vw, 64px);
}

* { box-sizing: border-box; }

html {
  overflow-x: hidden;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

#root {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
}

/* Paper texture overlay (toggle via body.paper) */
body.paper::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.5;
  mix-blend-mode: multiply;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(120,90,40,0.05) 0, transparent 60%),
    radial-gradient(circle at 80% 70%, rgba(120,90,40,0.04) 0, transparent 55%),
    repeating-linear-gradient(0deg, rgba(120,90,40,0.012) 0 2px, transparent 2px 4px),
    repeating-linear-gradient(90deg, rgba(120,90,40,0.012) 0 2px, transparent 2px 4px);
}

body > * { position: relative; z-index: 2; }

/* ----- Typography ----- */
h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.05;
  margin: 0 0 0.5em;
  color: var(--ink);
}
h1 { font-size: clamp(36px, 6vw, 90px); }
h2 { font-size: clamp(27px, 4.125vw, 54px); }
h3 { font-size: clamp(20px, 2.25vw, 28px); }
h4 { font-size: clamp(15px, 1.5vw, 20px); }

p { margin: 0 0 1em; max-width: 64ch; text-wrap: pretty; }
a { color: var(--ink); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }

/* Eyebrow / uppercase label, marker style */
.eyebrow {
  font-family: var(--display);
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
}

/* ----- Layout primitives ----- */
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding-inline: var(--pad);
}

section { padding-block: clamp(40px, 6vw, 90px); }

/* ----- Nav ----- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in oklab, var(--cream) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid color-mix(in oklab, var(--ink) 10%, transparent);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 18px var(--pad);
  max-width: var(--max);
  margin: 0 auto;
}
.brand {
  font-family: var(--display);
  font-size: 22px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.brand .ast { display: inline-block; transform: rotate(-12deg); }
.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}
.nav-links a {
  text-decoration: none;
  font-size: 15px;
  color: var(--ink);
  position: relative;
  padding-bottom: 2px;
}
.nav-links a:hover {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-decoration-color: var(--accent);
  text-underline-offset: 4px;
}
.nav-links a.active::after {
  content: "";
  position: absolute;
  left: -4px; right: -4px; bottom: -4px;
  height: 6px;
  background: var(--accent);
  z-index: -1;
  border-radius: 8px;
  transform: skewX(-6deg);
  opacity: 0.7;
}
.nav-cta {
  text-decoration: none;
  border: 2px solid var(--ink);
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  background: var(--ink);
  color: var(--cream);
  transition: background 0.2s ease, border-color 0.2s ease;
}
.nav-cta:hover { background: var(--accent-deep); border-color: var(--accent-deep); }

/* ----- Hamburger button ----- */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
}

/* ----- Mobile menu overlay ----- */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--cream);
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 60px var(--pad) 40px;
  gap: 4px;
}
.mobile-menu a {
  font-family: var(--display);
  font-size: 34px;
  text-decoration: none;
  color: var(--ink);
  padding: 6px 0;
}
.mobile-menu a:hover { color: var(--accent-deep); }
.mobile-menu .btn { color: var(--cream); font-family: var(--body); font-size: 16px; padding: 14px 24px; }
.mobile-menu .btn:hover { color: var(--cream); }
.mobile-menu-close {
  position: absolute;
  top: 22px;
  right: var(--pad);
  background: none;
  border: none;
  font-size: 26px;
  cursor: pointer;
  color: var(--ink);
  line-height: 1;
}

@media (max-width: 960px) {
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .hamburger { display: flex; }
}

/* ----- Responsive grids ----- */
@media (max-width: 768px) {
  .mobile-stack { grid-template-columns: 1fr !important; }
  .mobile-2col  { grid-template-columns: 1fr 1fr !important; }
  .hero-float-top { display: none !important; }
}

/* ----- Buttons ----- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 999px;
  border: 2px solid var(--ink);
  background: var(--ink);
  color: var(--cream);
  font-family: var(--body);
  font-weight: 500;
  font-size: 16px;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.18s cubic-bezier(.2,.8,.4,1), box-shadow 0.18s;
}
.btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 var(--accent-deep);
}
.btn-outline {
  background: transparent;
  color: var(--ink);
}
.btn-accent {
  background: var(--accent);
  border-color: var(--ink);
  color: var(--ink);
}

/* ----- Illustration wrapper ----- */
.illo { display: block; }
.illo img { display: block; width: 100%; height: auto; }

/* Lets white-background line art take on the color behind it */
.blend { mix-blend-mode: multiply; }

/* Wobble animation — applied to anything with .wobble when body.wobble */
body.wobble .wobble {
  animation: wobble 6s ease-in-out infinite;
  transform-origin: center;
}
body.wobble .wobble-2 { animation-duration: 7.5s; animation-delay: -2s; }
body.wobble .wobble-3 { animation-duration: 5.4s; animation-delay: -3.4s; }
@keyframes wobble {
  0%, 100% { transform: rotate(var(--r, -2deg)) translateY(0); }
  50%      { transform: rotate(calc(var(--r, -2deg) * -1)) translateY(-4px); }
}

/* ----- Hand-drawn underline ----- */
.scribble {
  position: relative;
  display: inline-block;
  white-space: nowrap;
}
.scribble::after {
  content: "";
  position: absolute;
  left: -2%;
  right: -2%;
  bottom: -6px;
  height: 12px;
  background: var(--accent);
  border-radius: 50%;
  z-index: -1;
  opacity: 0.55;
  transform: rotate(-1.2deg) scaleY(0.55);
}

.highlight-block {
  background: var(--accent);
  padding: 2px 12px;
  border-radius: 6px;
  color: var(--ink);
}

/* ----- Marquee ribbon ----- */
.ribbon {
  border-top: 1.5px solid var(--ink);
  border-bottom: 1.5px solid var(--ink);
  overflow: hidden;
  background: var(--accent-soft);
  padding-block: 14px;
}
.ribbon-track {
  display: flex;
  gap: 56px;
  white-space: nowrap;
  animation: marquee 38s linear infinite;
  font-family: var(--display);
  font-size: 22px;
  letter-spacing: 0.04em;
}
.ribbon-track span { display: inline-flex; align-items: center; gap: 56px; }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ----- Checkerboard motif ----- */
.checker {
  --c1: var(--ink);
  --c2: var(--cream);
  background:
    conic-gradient(var(--c1) 25%, var(--c2) 25% 50%, var(--c1) 50% 75%, var(--c2) 75%);
  background-size: 20px 20px;
}
.checker-band {
  height: 14px;
  width: 100%;
  background:
    conic-gradient(var(--ink) 25%, var(--cream) 25% 50%, var(--ink) 50% 75%, var(--cream) 75%);
  background-size: 14px 14px;
}

/* ----- Cards ----- */
.card {
  background: var(--cream);
  border: 2px solid var(--ink);
  border-radius: 6px;
  padding: 28px;
}
.card-tilted-l { transform: rotate(-1.2deg); }
.card-tilted-r { transform: rotate(1.2deg); }

/* Sticker-style frame */
.sticker {
  background: var(--paper);
  border: 1.5px solid var(--ink);
  padding: 16px 18px 16px;
  border-radius: 4px;
  box-shadow: 4px 4px 0 var(--ink);
}

/* ----- Hero specifics ----- */
.hero-stage {
  position: relative;
  text-align: center;
  padding-block: clamp(40px, 8vw, 100px);
}
.hero-title {
  font-size: clamp(45px, 9vw, 128px);
  line-height: 0.92;
  margin: 0 auto 28px;
  max-width: 14ch;
}
.hero-floats { position: absolute; inset: 0; pointer-events: none; }
.hero-floats > * { position: absolute; }

/* ----- Footer ----- */
footer {
  background: var(--ink);
  color: var(--cream);
  padding-block: 20px 16px;
  margin-top: 80px;
}
/* A tinted last section would otherwise show a cream strip above the footer */
main:has(.flush-footer) + footer { margin-top: 0; }
footer a { color: var(--cream); }
footer .brand { color: var(--cream); }

/* ----- Lists ----- */
.checklist {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 14px;
}
.checklist li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 14px;
  align-items: baseline;
}
.checklist li::before {
  content: "✶";
  font-family: var(--display);
  color: var(--accent-deep);
  font-size: 22px;
  line-height: 1;
}
.checklist-plain li::before {
  color: var(--ink);
}

/* ----- Page transitions ----- */
.page-enter {
  animation: pageIn 0.45s cubic-bezier(.2,.8,.3,1) both;
}
@keyframes pageIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ----- Forms ----- */
.field {
  display: grid;
  gap: 6px;
  margin-bottom: 18px;
}
.field label {
  font-family: var(--display);
  font-size: 18px;
}
.field input, .field textarea, .field select {
  font-family: var(--body);
  font-size: 16px;
  padding: 12px 14px;
  border: 1.5px solid var(--ink);
  background: var(--paper);
  border-radius: 4px;
  color: var(--ink);
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

/* ----- Utility ----- */
.row { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.stack { display: grid; gap: 20px; }
.center { text-align: center; }
.muted { color: var(--ink-muted); }
.smallcaps { text-transform: uppercase; letter-spacing: 0.1em; font-size: 12px; }
.divider {
  border: 0;
  border-top: 1.5px dashed color-mix(in oklab, var(--ink) 30%, transparent);
  margin: 40px 0;
}
.tag {
  display: inline-block;
  border: 1.5px solid var(--ink);
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--cream);
}
