/* =====================================================================
   Lil Moose — Hannah & Glen
   A soft, romantic design system. Cozy creams, sage, and blush.
   ===================================================================== */

/* ---------- Design tokens ---------- */
:root {
  /* palette */
  --cream:      #FBF6EE;
  --cream-2:    #FFFDF8;
  --card:       #FFFFFF;
  --ink:        #3E362C;
  --ink-soft:   #766A5B;
  --line:       #ECE2D3;

  --sage:       #9CB39A;
  --sage-deep:  #6E8B6C;
  --blush:      #E9B9BC;
  --blush-deep: #D6858E;
  --gold:       #E2B173;
  --cocoa:      #A17C54;
  --moose:      #8B6B47;

  /* type */
  --serif:  "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans:   "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  --script: "Caveat", "Segoe Script", cursive;

  /* geometry */
  --radius:    22px;
  --radius-sm: 14px;
  --radius-lg: 34px;
  --shadow:    0 18px 40px -24px rgba(90, 64, 40, 0.45);
  --shadow-sm: 0 8px 20px -14px rgba(90, 64, 40, 0.4);
  --maxw:      1120px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  font-size: 17px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.1; margin: 0 0 .4em; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }

/* soft dappled background */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(60vw 60vw at 12% -8%,  rgba(233,185,188,.28), transparent 60%),
    radial-gradient(55vw 55vw at 92% 6%,   rgba(156,179,154,.30), transparent 60%),
    radial-gradient(50vw 50vw at 50% 108%, rgba(226,177,115,.22), transparent 60%),
    var(--cream);
}

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.section { padding: 74px 0; }
.center { text-align: center; }
.eyebrow {
  font-family: var(--script);
  font-size: 1.6rem;
  color: var(--blush-deep);
  line-height: 1;
  margin-bottom: .2em;
}
.lead { color: var(--ink-soft); font-size: 1.08rem; max-width: 60ch; }
.center .lead { margin-left: auto; margin-right: auto; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  backdrop-filter: blur(10px);
  background: rgba(251, 246, 238, 0.82);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 14px 22px; max-width: var(--maxw); margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-size: 1.35rem; }
.brand .moose { font-size: 1.5rem; transform: translateY(1px); }
.brand b { font-weight: 600; }
.brand .amp { color: var(--blush-deep); font-family: var(--script); font-size: 1.5rem; }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  padding: 8px 14px; border-radius: 999px; color: var(--ink-soft);
  font-weight: 600; font-size: .95rem; transition: background .25s var(--ease), color .25s var(--ease);
}
.nav-links a:hover { background: var(--cream-2); color: var(--ink); }
.nav-links a.active { background: var(--sage); color: #fff; }

.nav-toggle { display: none; font-size: 1.5rem; padding: 6px 10px; border-radius: 12px; color: var(--ink); }
.nav-toggle:hover { background: var(--cream-2); }

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 100%; right: 12px; left: 12px;
    flex-direction: column; align-items: stretch; gap: 4px;
    background: var(--cream-2); border: 1px solid var(--line);
    border-radius: var(--radius); padding: 10px; box-shadow: var(--shadow);
    transform-origin: top; transform: scaleY(0); opacity: 0; pointer-events: none;
    transition: transform .2s var(--ease), opacity .2s var(--ease);
  }
  .nav-links.open { transform: scaleY(1); opacity: 1; pointer-events: auto; }
  .nav-links a { padding: 12px 14px; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px; border-radius: 999px; font-weight: 700; font-size: 1rem;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s;
}
.btn-primary { background: var(--blush-deep); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-ghost { background: var(--cream-2); color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover { transform: translateY(-2px); background: #fff; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 96px 0 78px; text-align: center; overflow: hidden; }
.hero .eyebrow { font-size: 1.9rem; }
.hero h1 {
  font-size: clamp(3rem, 9vw, 6.2rem);
  margin: .06em 0 .1em;
}
.hero h1 .amp { color: var(--blush-deep); font-family: var(--script); font-weight: 600; }
.hero-sub { font-size: 1.2rem; color: var(--ink-soft); max-width: 46ch; margin: .4em auto 1.6em; }
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero .heart-rule { margin: 26px auto 0; }

/* decorative floaters */
.floaties { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 0; }
.floaty { position: absolute; font-size: 1.8rem; opacity: .55; animation: drift 14s ease-in-out infinite; }
.floaty:nth-child(1){ left: 6%;  top: 22%; animation-delay: 0s;   }
.floaty:nth-child(2){ left: 88%; top: 16%; animation-delay: -3s;  font-size: 2.4rem; }
.floaty:nth-child(3){ left: 16%; top: 72%; animation-delay: -6s;  font-size: 1.4rem; }
.floaty:nth-child(4){ left: 78%; top: 66%; animation-delay: -9s;  }
.floaty:nth-child(5){ left: 50%; top: 12%; animation-delay: -2s;  font-size: 1.2rem; }
.floaty:nth-child(6){ left: 34%; top: 30%; animation-delay: -7s;  font-size: 1.1rem; }
@keyframes drift {
  0%,100% { transform: translateY(0) rotate(-6deg); }
  50%     { transform: translateY(-22px) rotate(6deg); }
}

.heart-rule { display: flex; align-items: center; justify-content: center; gap: 12px; color: var(--sage-deep); }
.heart-rule::before, .heart-rule::after {
  content: ""; height: 1px; width: 60px; background: linear-gradient(90deg, transparent, var(--sage));
}
.heart-rule::after { background: linear-gradient(90deg, var(--sage), transparent); }

/* ---------- Home hub cards ---------- */
.hub {
  display: grid; gap: 22px;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}
.hub-card {
  position: relative; display: block; padding: 30px 26px 28px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); overflow: hidden;
  transition: transform .28s var(--ease), box-shadow .28s var(--ease);
}
.hub-card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: linear-gradient(160deg, transparent 55%, var(--accent, var(--blush)) 300%);
  opacity: .1; transition: opacity .3s;
}
.hub-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.hub-card:hover::after { opacity: .22; }
.hub-emoji { font-size: 2.5rem; line-height: 1; margin-bottom: 12px; display: block; }
.hub-card h3 { font-size: 1.6rem; margin-bottom: .2em; }
.hub-card p { color: var(--ink-soft); font-size: .98rem; margin: 0; }
.hub-card .go { display: inline-block; margin-top: 14px; color: var(--blush-deep); font-weight: 700; }
.hub-card .go::after { content: " →"; transition: margin .2s var(--ease); }
.hub-card:hover .go::after { margin-left: 6px; }

/* ---------- The three of us ---------- */
.trio {
  display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 14px;
}
.trio-card {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 26px; box-shadow: var(--shadow-sm); min-width: 150px;
  transition: transform .25s var(--ease);
}
.trio-card:hover { transform: translateY(-4px); }
.trio-card b { font-family: var(--serif); font-size: 1.35rem; font-weight: 500; margin-top: 8px; }
.trio-card span:last-child { color: var(--ink-soft); font-size: .9rem; }
.trio-avatar {
  width: 62px; height: 62px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--serif); font-size: 1.8rem; color: #fff; font-weight: 600;
  background: var(--a, var(--sage)); box-shadow: var(--shadow-sm);
}

/* ---------- Page header ---------- */
.page-head { padding: 60px 0 8px; text-align: center; }
.page-head h1 { font-size: clamp(2.4rem, 6vw, 3.8rem); }

/* ---------- Filter bar (moose ages) ---------- */
.filterbar {
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: center;
  align-items: center; margin: 8px 0 30px;
}
.chip {
  padding: 8px 18px; border-radius: 999px; font-weight: 700; font-size: .92rem;
  background: var(--cream-2); border: 1px solid var(--line); color: var(--ink-soft);
  transition: all .2s var(--ease);
}
.chip:hover { transform: translateY(-2px); color: var(--ink); }
.chip.active { background: var(--sage-deep); border-color: var(--sage-deep); color: #fff; }
.sort-select {
  margin-left: 6px; padding: 8px 14px; border-radius: 999px; font-family: var(--sans);
  font-weight: 600; font-size: .9rem; color: var(--ink); background: var(--cream-2);
  border: 1px solid var(--line);
}

/* ---------- Gallery grid ---------- */
.gallery {
  display: grid; gap: 18px;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
}
.g-card {
  position: relative; background: var(--card); border-radius: var(--radius-sm);
  overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--line);
  cursor: pointer; transition: transform .28s var(--ease), box-shadow .28s var(--ease);
  animation: pop .5s var(--ease) both;
}
.g-card:hover { transform: translateY(-5px) rotate(-.4deg); box-shadow: var(--shadow); }
.g-media { aspect-ratio: 4 / 5; overflow: hidden; background: var(--line); }
.g-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.g-card:hover .g-media img { transform: scale(1.05); }
.g-body { padding: 12px 14px 14px; }
.g-body h4 { font-family: var(--serif); font-size: 1.15rem; margin: 0 0 2px; }
.g-body .meta { font-size: .82rem; color: var(--ink-soft); display: flex; gap: 8px; align-items: center; }
.g-tag {
  display: inline-block; font-size: .72rem; font-weight: 800; letter-spacing: .04em;
  text-transform: uppercase; padding: 3px 9px; border-radius: 999px;
  background: var(--blush); color: #7a3b41;
}
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }

.empty-note {
  grid-column: 1 / -1; text-align: center; color: var(--ink-soft);
  padding: 40px; font-style: italic;
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 100; display: none;
  align-items: center; justify-content: center; padding: 24px;
  background: rgba(48, 38, 28, 0.82); backdrop-filter: blur(6px);
}
.lightbox.open { display: flex; animation: fade .25s var(--ease); }
.lb-inner { max-width: 900px; width: 100%; text-align: center; }
.lb-inner img {
  max-height: 76vh; width: auto; margin: 0 auto; border-radius: var(--radius-sm);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.5);
}
.lb-caption { color: #fff; margin-top: 16px; }
.lb-caption h4 { font-family: var(--serif); color: #fff; font-size: 1.5rem; margin: 0 0 4px; }
.lb-caption p { color: rgba(255,255,255,.8); margin: 0; }
.lb-btn {
  position: absolute; top: 50%; transform: translateY(-50%); color: #fff; font-size: 2.4rem;
  padding: 10px 18px; border-radius: 50%; transition: background .2s;
}
.lb-btn:hover { background: rgba(255,255,255,.15); }
.lb-prev { left: 12px; } .lb-next { right: 12px; }
.lb-close { position: absolute; top: 18px; right: 22px; color: #fff; font-size: 2rem; padding: 6px 14px; border-radius: 50%; }
.lb-close:hover { background: rgba(255,255,255,.15); }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Love notes ---------- */
.notes-grid {
  display: grid; gap: 22px;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
.note-card {
  position: relative; background: var(--cream-2);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 26px 22px; box-shadow: var(--shadow-sm);
  transition: transform .28s var(--ease), box-shadow .28s var(--ease);
  animation: pop .5s var(--ease) both;
}
.note-card::before {
  content: "💌"; position: absolute; top: -14px; left: 22px; font-size: 1.5rem;
  filter: drop-shadow(0 4px 6px rgba(0,0,0,.12));
}
.note-card:hover { transform: translateY(-5px) rotate(.4deg); box-shadow: var(--shadow); }
.note-card .to { font-family: var(--script); color: var(--blush-deep); font-size: 1.5rem; line-height: 1; margin: 6px 0 10px; }
.note-body { font-family: var(--serif); font-size: 1.12rem; color: var(--ink); line-height: 1.6; }
.note-body.clamp { display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.note-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; }
.note-sign { font-family: var(--script); font-size: 1.35rem; color: var(--cocoa); }
.note-date { font-size: .8rem; color: var(--ink-soft); }
.note-more { font-weight: 700; color: var(--sage-deep); font-size: .9rem; }
.note-more:hover { text-decoration: underline; }

/* ---------- Song page ---------- */
.song-wrap { max-width: 760px; margin: 0 auto; }
.vinyl {
  width: 210px; height: 210px; margin: 8px auto 24px; border-radius: 50%;
  background:
    repeating-radial-gradient(circle at center, #2c2620 0 2px, #221d18 2px 4px);
  display: grid; place-items: center; box-shadow: var(--shadow);
  animation: spin 8s linear infinite;
}
.vinyl .label {
  width: 78px; height: 78px; border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, var(--blush), var(--blush-deep));
  display: grid; place-items: center; font-size: 1.8rem;
  box-shadow: inset 0 0 0 6px rgba(255,255,255,.15);
}
.vinyl.paused { animation-play-state: paused; }
@keyframes spin { to { transform: rotate(360deg); } }

.embed-box {
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm);
  border: 1px solid var(--line); margin: 0 auto 30px; background: var(--card);
}
.embed-box iframe { display: block; width: 100%; border: 0; }
.embed-placeholder {
  padding: 40px 24px; text-align: center; color: var(--ink-soft); background: var(--cream-2);
}
.audio-wrap { padding: 26px 24px; text-align: center; background: var(--cream-2); }
.audio-wrap audio { width: 100%; max-width: 520px; margin: 0 auto; }
.audio-hint { font-family: var(--script); color: var(--blush-deep); font-size: 1.5rem; margin: 0 0 14px; line-height: 1; }

/* ---------- The Map of Us ---------- */
.map-figure { margin: 10px auto 0; max-width: 560px; }
.map-figure img {
  width: 100%; border-radius: var(--radius); box-shadow: var(--shadow);
  border: 1px solid var(--line); background: var(--cream-2);
  transition: transform .3s var(--ease);
}
.map-figure img:hover { transform: translateY(-5px); }
.map-figure figcaption { margin-top: 14px; color: var(--ink-soft); font-size: .95rem; }
.lyrics {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 30px; box-shadow: var(--shadow-sm); text-align: center;
}
.lyrics p { font-family: var(--serif); font-size: 1.25rem; line-height: 1.9; color: var(--ink); white-space: pre-line; }
.lyrics .chorus { color: var(--blush-deep); font-style: italic; }

.song-list { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 12px; }
.song-list li {
  display: flex; align-items: center; gap: 14px; padding: 14px 18px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}
.song-list .note-ico { font-size: 1.4rem; }
.song-list .st { font-family: var(--serif); font-size: 1.15rem; }
.song-list .sa { color: var(--ink-soft); font-size: .9rem; }
.song-list a { margin-left: auto; color: var(--sage-deep); font-weight: 700; }

/* ---------- Timeline (our story) ---------- */
.timeline { position: relative; max-width: 780px; margin: 10px auto 0; padding: 10px 0; }
.timeline::before {
  content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 3px;
  background: linear-gradient(var(--sage), var(--blush)); transform: translateX(-50%); border-radius: 3px;
}
.tl-item { position: relative; width: 50%; padding: 14px 34px; }
.tl-item:nth-child(odd) { left: 0; text-align: right; }
.tl-item:nth-child(even) { left: 50%; }
.tl-dot {
  position: absolute; top: 24px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--blush-deep); border: 4px solid var(--cream); box-shadow: 0 0 0 2px var(--blush);
}
.tl-item:nth-child(odd) .tl-dot { right: -9px; }
.tl-item:nth-child(even) .tl-dot { left: -9px; }
.tl-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 22px; box-shadow: var(--shadow-sm); display: inline-block; text-align: left;
}
.tl-when { font-family: var(--script); color: var(--blush-deep); font-size: 1.4rem; line-height: 1; }
.tl-card h3 { font-size: 1.35rem; margin: 6px 0 6px; }
.tl-card p { margin: 0; color: var(--ink-soft); font-size: .96rem; }
.tl-emoji { font-size: 1.3rem; }
@media (max-width: 680px) {
  .timeline::before { left: 18px; }
  .tl-item, .tl-item:nth-child(even) { width: 100%; left: 0; text-align: left; padding-left: 46px; padding-right: 10px; }
  .tl-item:nth-child(odd) { text-align: left; }
  .tl-item:nth-child(odd) .tl-dot, .tl-item:nth-child(even) .tl-dot { left: 9px; right: auto; }
}

/* ---------- Footer ---------- */
.site-footer {
  margin-top: 40px; padding: 50px 22px 40px; text-align: center;
  border-top: 1px solid var(--line); background: rgba(255,253,248,.6);
}
.site-footer .heart-rule { margin-bottom: 16px; }
.site-footer p { color: var(--ink-soft); margin: 4px 0; }
.site-footer .sig { font-family: var(--script); font-size: 1.6rem; color: var(--blush-deep); }

/* ---------- Utility ---------- */
.mt-lg { margin-top: 40px; }
.back-link { display: inline-block; margin: 24px 0 0; color: var(--ink-soft); font-weight: 600; }
.back-link:hover { color: var(--ink); }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .vinyl { animation: none; }
}
