/* ==========================================================
   Once & Always — shared styles ("Paper Lantern" look)
   Change colours and fonts here; every page follows.
   ========================================================== */
:root {
  --paper: #f7f0e3;          /* page background */
  --paper-2: #efe2c9;        /* section paper */
  --card: #fffaf1;           /* cards, forms */
  --ink: #3b2f2a;            /* body text */
  --ink-dim: #75645a;
  --accent: #c8623d;         /* terracotta — buttons, headings */
  --accent-deep: #9e4528;
  --accent-rgb: 200, 98, 61;
  --sage: #6f8f6c;
  --sage-rgb: 111, 143, 108;
  --blue: #2f4a6b;           /* ink blue — secondary headings */
  --lantern: #f2b84b;        /* warm glow */
  --line: rgba(59, 47, 42, .14);
  --font-head: 'Caveat Brush', cursive;
  --font-script: 'Caveat', cursive;
  --font-body: 'Nunito', system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
main, header, section { overflow-x: clip; }
body {
  min-height: 100vh;
  background-color: var(--paper);
  /* soft paper grain */
  background-image:
    radial-gradient(rgba(120, 90, 60, .05) 1px, transparent 1px),
    radial-gradient(rgba(120, 90, 60, .04) 1px, transparent 1px),
    radial-gradient(ellipse at 15% 0%, rgba(242, 184, 75, .18), transparent 55%),
    radial-gradient(ellipse at 90% 40%, rgba(111, 143, 108, .12), transparent 50%);
  background-size: 7px 7px, 11px 11px, 100% 100%, 100% 100%;
  background-position: 0 0, 3px 5px, 0 0, 0 0;
  background-attachment: fixed;
  color: var(--ink);
  font-family: var(--font-body);
  overflow-x: hidden;
}
img { max-width: 100%; }
a { color: var(--accent-deep); }

/* ---------- Floating sky: paper confetti + rising lanterns ---------- */
.sky { position: fixed; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.confetti {
  position: absolute; top: -20px; border-radius: 2px; opacity: .55;
  animation: confettiFall linear infinite;
}
@keyframes confettiFall {
  0%   { transform: translate(0, -5vh) rotate(0deg) rotateY(0deg); }
  50%  { transform: translate(var(--sway), 50vh) rotate(180deg) rotateY(180deg); }
  100% { transform: translate(0, 108vh) rotate(360deg) rotateY(360deg); }
}
.lantern {
  position: absolute; bottom: -80px; width: 22px; height: 30px; border-radius: 9px 9px 11px 11px;
  background: radial-gradient(ellipse at 50% 60%, #ffe2a0 0%, var(--lantern) 45%, #e07b3c 100%);
  box-shadow: 0 0 18px 6px rgba(242, 184, 75, .45);
  opacity: 0; animation: lanternRise linear infinite;
}
.lantern::before { /* little top cap */
  content: ''; position: absolute; top: -4px; left: 6px; width: 10px; height: 5px; border-radius: 2px; background: #8a4b2c;
}
.lantern::after { /* ribbed lines */
  content: ''; position: absolute; inset: 4px 0; border-left: 1px solid rgba(158,69,40,.35); border-right: 1px solid rgba(158,69,40,.35); left: 7px; right: 7px;
}
@keyframes lanternRise {
  0% { opacity: 0; transform: translate(0, 0) rotate(-4deg); }
  10% { opacity: .85; }
  50% { transform: translate(var(--sway), -55vh) rotate(4deg); }
  90% { opacity: .75; }
  100% { opacity: 0; transform: translate(0, -115vh) rotate(-3deg); }
}

/* Paper airplanes on curved flight paths, with a dashed trail */
.plane { position: absolute; width: 30px; height: 30px; opacity: 0; offset-rotate: auto; }
.plane svg { width: 100%; height: 100%; display: block; filter: drop-shadow(0 2px 2px rgba(0,0,0,.15)); }
.plane::after {
  content: ''; position: absolute; top: 50%; right: 100%; width: 110px; border-top: 2px dashed rgba(47, 74, 107, .35);
}
@keyframes flyArc {
  0% { opacity: 0; offset-distance: 0%; } 8% { opacity: 1; }
  88% { opacity: 1; } 100% { opacity: 0; offset-distance: 100%; }
}

/* ---------- Navbar ---------- */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 12px 28px;
  background: rgba(247, 240, 227, .9); backdrop-filter: blur(6px);
  border-bottom: 2px dashed var(--line);
}
.nav-brand { font-family: var(--font-head); font-size: 30px; color: var(--accent); text-decoration: none; white-space: nowrap; }
.nav-links { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.nav-links a {
  font-family: var(--font-head); font-size: 22px; color: var(--blue); text-decoration: none; letter-spacing: .3px;
}
.nav-links a:hover, .nav-links a.current { color: var(--accent); }
.nav-links .letter { display: inline-block; animation: dance 2.4s ease-in-out infinite; }
@keyframes dance {
  0%, 100% { transform: translateY(0) rotate(0); }
  25% { transform: translateY(-3px) rotate(-4deg); }
  75% { transform: translateY(1px) rotate(4deg); }
}
.nav-separator { color: var(--sage); font-size: 13px; }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 6px; margin-left: auto; }
.hamburger span { display: block; width: 28px; height: 3px; border-radius: 2px; background: var(--accent); }
.nav-overlay {
  position: fixed; inset: 0; z-index: 100; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 16px;
  background: rgba(247, 240, 227, .98); opacity: 0; pointer-events: none; transition: opacity .3s;
}
.nav-overlay.open { opacity: 1; pointer-events: auto; }
.nav-overlay a { font-family: var(--font-head); font-size: 36px; color: var(--blue); text-decoration: none; }
.nav-overlay .close-btn { position: absolute; top: 16px; right: 22px; font-size: 30px; color: var(--accent); cursor: pointer; }

/* Click bursts */
.paper-bit {
  position: fixed; z-index: 200; pointer-events: none; border-radius: 1px;
  animation: bit .65s ease-out forwards;
}
@keyframes bit {
  0% { transform: translate(0,0) rotate(0) scale(1); opacity: 1; }
  100% { transform: translate(var(--dx), var(--dy)) rotate(var(--rot)) scale(.4); opacity: 0; }
}
.burst-char {
  position: fixed; z-index: 200; pointer-events: none; font-size: 20px;
  animation: burst .7s ease-out forwards;
}
@keyframes burst {
  0% { transform: translate(-50%,-50%) scale(.5); opacity: 1; }
  100% { transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(1.2); opacity: 0; }
}

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

/* ---------- Layout ---------- */
main, .page { position: relative; z-index: 5; }
.page-hero {
  min-height: 70vh; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 120px 24px 40px;
}
.eyebrow { font-family: var(--font-body); font-weight: 800; font-size: 15px; letter-spacing: 5px; color: var(--sage); text-transform: uppercase; }
.page-hero h1, .big-title {
  font-family: var(--font-head); font-size: clamp(52px, 9vw, 112px); color: var(--accent); line-height: 1.02;
  text-shadow: 3px 3px 0 rgba(242, 184, 75, .35);
}
.page-hero .tagline { font-family: var(--font-script); font-size: clamp(26px, 4vw, 38px); color: var(--blue); margin-top: 8px; }
.page-hero .tagline-small { font-size: 18px; color: var(--ink-dim); margin-top: 8px; }
.scroll-hint { margin-top: 36px; font-family: var(--font-script); font-size: 24px; color: var(--ink-dim); animation: floaty 2s ease-in-out infinite; }

.section { padding: 60px 24px; }
/* "Torn paper" section: a slightly darker sheet with ragged top and bottom edges */
.dark {
  position: relative; padding: 90px 24px; background: var(--paper-2);
  --edge: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 14' preserveAspectRatio='none'%3E%3Cpath d='M0 14 L0 6 L8 9 L15 3 L24 8 L31 2 L40 7 L47 4 L56 10 L63 3 L72 8 L80 1 L88 7 L96 4 L104 9 L112 3 L120 7 L120 14 Z'/%3E%3C/svg%3E");
  -webkit-mask: var(--edge) top / 120px 14px repeat-x, linear-gradient(#000, #000) center / 100% calc(100% - 26px) no-repeat, var(--edge) bottom / 120px 14px repeat-x;
  mask: var(--edge) top / 120px 14px repeat-x, linear-gradient(#000, #000) center / 100% calc(100% - 26px) no-repeat, var(--edge) bottom / 120px 14px repeat-x;
}
.dark.sage { background: #e3e8d6; }
.dark.blue { background: #dfe3e6; }
.inner { max-width: 860px; margin: 0 auto; }
.inner.wide { max-width: 1100px; }
h2.title, h3.title { font-family: var(--font-head); color: var(--accent); text-align: center; line-height: 1.08; font-weight: 400; }
h2.title { font-size: clamp(44px, 7vw, 70px); }
h3.title { font-size: clamp(38px, 6vw, 56px); }
.sub { font-family: var(--font-script); font-size: clamp(24px, 3vw, 32px); color: var(--blue); text-align: center; margin: 4px 0 22px; }
.inner p { font-size: 18px; line-height: 1.75; margin-bottom: 16px; }
.center { text-align: center; }

.checks { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px 30px; margin: 24px 0; }
.checks li { font-size: 18px; font-weight: 600; padding-left: 32px; position: relative; }
.checks li::before { content: '✓'; position: absolute; left: 0; top: -2px; width: 22px; height: 22px; border-radius: 50%; background: var(--sage); color: #fff; font-size: 13px; display: flex; align-items: center; justify-content: center; }
.list { list-style: none; margin: 18px 0; }
.list li { font-size: 18px; line-height: 1.6; padding: 6px 0 6px 30px; position: relative; }
.list li::before { content: '✿'; position: absolute; left: 0; color: var(--accent); }
.list strong { color: var(--blue); }

/* Pull-quote on a "taped note" */
.callout {
  position: relative; margin: 34px auto; padding: 26px 30px 22px; max-width: 680px;
  background: var(--card); border-radius: 4px; box-shadow: 0 6px 18px rgba(59,47,42,.12); transform: rotate(-1deg);
}
.callout::before {
  content: ''; position: absolute; top: -12px; left: 50%; width: 110px; height: 24px; transform: translateX(-50%) rotate(2deg);
  background: rgba(var(--sage-rgb), .35);
}
.callout p { font-family: var(--font-script); font-size: 26px; line-height: 1.35; margin: 0; color: var(--blue); }

.divider { text-align: center; font-size: 20px; letter-spacing: 12px; color: var(--accent); padding: 36px 0; opacity: .7; }

/* Image frames look like photos pinned to the page.
   Replace the inner <div class="ph"> with an <img> when you have art. */
.photos { display: flex; justify-content: center; align-items: center; gap: 34px; flex-wrap: wrap; padding: 60px 24px; }
.img-frame {
  width: 360px; height: 360px; padding: 12px 12px 40px; background: #fff; border-radius: 3px;
  box-shadow: 0 10px 28px rgba(59,47,42,.18); transform: rotate(-2deg);
}
.photos .img-frame:nth-child(even) { transform: rotate(2deg); }
.img-frame.small { width: 260px; height: 270px; }
.img-frame.med { width: 320px; height: 330px; }
.img-frame.tall { width: 280px; height: 400px; }
.img-frame.wide { width: 440px; height: 300px; }
.img-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ph {
  width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 4px; text-align: center; padding: 14px;
  background: repeating-linear-gradient(45deg, #f3e7d1 0 14px, #efe0c4 14px 28px);
  font-family: var(--font-head); font-size: 24px; color: var(--accent-deep);
}
.ph .ph-icon { font-size: 52px; }
.ph small { font-family: var(--font-body); font-size: 12px; color: var(--ink-dim); }

/* ---------- Scroll-reveal animations ---------- */
.reveal { opacity: 0; translate: 0 30px; transition: opacity .8s ease, translate .8s ease, scale .8s ease; }
.reveal.from-left { translate: -80px 0; }
.reveal.from-right { translate: 80px 0; }
.reveal.pop { translate: 0 0; scale: .7; }
.reveal.visible { opacity: 1; translate: 0 0; scale: 1; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; cursor: pointer; text-decoration: none; border: none;
  background: var(--accent); color: #fff; font-family: var(--font-head); font-size: 28px;
  padding: 12px 34px; border-radius: 40px;
  box-shadow: 0 4px 0 var(--accent-deep), 0 10px 22px rgba(var(--accent-rgb), .3); transition: transform .15s, box-shadow .15s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--accent-deep), 0 14px 28px rgba(var(--accent-rgb), .35); }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--accent-deep); }
.btn.ghost { background: transparent; color: var(--accent); border: 2px solid var(--accent); box-shadow: none; }
.btn.disabled { opacity: .45; pointer-events: none; }
.cta-wrap { text-align: center; padding: 10px 0; }

@keyframes bounce { 0%,100% { translate: 0 0; } 50% { translate: 0 -6px; } }
@keyframes wiggle { 0%,100% { rotate: 0deg; } 10% { rotate: -4deg; } 20% { rotate: 4deg; } 30% { rotate: 0deg; } }
@keyframes glow { 0%,100% { box-shadow: 0 4px 0 var(--accent-deep), 0 0 10px rgba(242,184,75,.4); } 50% { box-shadow: 0 4px 0 var(--accent-deep), 0 0 28px rgba(242,184,75,.95); } }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes spin { to { transform: rotate(360deg); } }

.float-emoji { position: absolute; font-size: 28px; opacity: .6; animation: floaty 5s ease-in-out infinite; pointer-events: none; z-index: 2; }
@media (max-width: 1100px) { .float-emoji { display: none; } }

/* ---------- Cards / grids ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 22px; margin-top: 30px; }
.card {
  background: var(--card); border: 2px dashed rgba(var(--accent-rgb), .3); border-radius: 18px;
  padding: 26px 22px; text-align: center; transition: transform .25s, border-color .25s;
}
.card:hover { transform: translateY(-6px) rotate(-1deg); border-color: var(--accent); }
.card .icon { font-size: 42px; margin-bottom: 6px; }
.card h4 { font-family: var(--font-head); font-size: 30px; color: var(--blue); font-weight: 400; }
.card p { font-size: 15px; line-height: 1.5; color: var(--ink-dim); margin: 6px 0 0; }

/* ---------- Forms ---------- */
.field {
  display: block; width: 100%; padding: 13px 16px; margin-bottom: 14px; border-radius: 12px;
  border: 2px solid var(--line); background: #fff; color: var(--ink);
  font-family: var(--font-body); font-size: 16px; outline: none;
}
.field:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(var(--accent-rgb), .15); }
textarea.field { min-height: 140px; resize: vertical; }
label.lbl { display: block; font-family: var(--font-head); font-size: 22px; color: var(--blue); margin-bottom: 4px; }

/* ---------- Footer ---------- */
.footer { position: relative; z-index: 5; background: var(--blue); color: #e9e1d2; padding: 60px 24px 30px; }
.footer-grid { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 30px; }
.footer h4 { font-family: var(--font-head); font-size: 26px; color: var(--lantern); margin-bottom: 8px; font-weight: 400; }
.footer .brand { font-family: var(--font-head); font-size: 38px; color: #fff; }
.footer p, .footer a { font-size: 15px; color: #cfd6dd; text-decoration: none; line-height: 1.9; display: block; }
.footer a:hover { color: var(--lantern); }
.footer .copy { text-align: center; margin-top: 40px; font-size: 13px; color: #a9b4bf; }
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }

@media (max-width: 768px) {
  .navbar { padding: 10px 16px; }
  .dark { padding: 70px 16px; }
  .section { padding: 40px 16px; }
  .photos { padding: 40px 16px; gap: 22px; }
  .img-frame, .img-frame.med, .img-frame.wide, .img-frame.tall { width: 100%; max-width: 330px; height: 320px; }
  .img-frame.small { width: 44%; height: auto; aspect-ratio: 9 / 10; padding: 8px 8px 24px; }
  .inner p, .list li, .checks li { font-size: 17px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; translate: 0 0; scale: 1; }
}
