/* Little Loved Ones - soft sky, warm cream, gentle crayon colors */
:root {
  --sky: #cfe9f7; --sky-2: #e8f5fc; --sky-deep: #7fb8dc; --cream: #fff8ec; --cream-2: #fdf0da;
  --ink: #2d3a5c; --ink-soft: #55617f; --line: #e6dccb;
  --c-pink: #f4a7b3; --c-peach: #f7c08a; --c-butter: #f6dc7c; --c-mint: #9fd8b5; --c-blue: #8ec5ec; --c-lav: #c2b2e4;
  --accent: #4f8fc0; --accent-dark: #356f9c; --heart: #e98aa0;
  --radius: 18px; --shadow: 0 10px 30px rgba(45, 58, 92, .10);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: 'Nunito', system-ui, sans-serif; color: var(--ink); background: var(--cream); font-size: 17px; line-height: 1.6; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-dark); }
h1, h2, h3 { font-family: 'Fredoka', 'Nunito', sans-serif; font-weight: 600; line-height: 1.2; margin: 0 0 .5em; color: var(--ink); }
h1 { font-size: clamp(32px, 6vw, 54px); }
h2 { font-size: clamp(26px, 4.2vw, 38px); }
h3 { font-size: 21px; }
p { margin: 0 0 1em; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.blank { background: #fff3c4; border: 1px dashed #d9b74a; border-radius: 6px; padding: 0 5px; color: #6b5414; font-size: .92em; }

/* Header */
.top { background: rgba(255, 248, 236, .92); backdrop-filter: blur(6px); position: sticky; top: 0; z-index: 20; border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: 'Fredoka', sans-serif; font-weight: 600; font-size: 19px; line-height: 1.1; }
.brand img { width: 40px; height: 40px; }
.brand small { display: block; font-family: 'Nunito', sans-serif; font-weight: 600; font-size: 12px; color: var(--ink-soft); letter-spacing: .04em; }
.nav-toggle { display: none; background: none; border: 2px solid var(--line); border-radius: 10px; padding: 6px 10px; font: inherit; font-weight: 700; color: var(--ink); }
nav.main { display: flex; gap: 4px; flex-wrap: wrap; }
nav.main a { text-decoration: none; color: var(--ink); font-weight: 700; padding: 8px 12px; border-radius: 999px; font-size: 15px; }
nav.main a:hover, nav.main a[aria-current] { background: var(--sky); }
nav.main a.cta { background: var(--accent); color: #fff; }

/* Buttons */
.btn { display: inline-block; background: var(--accent); color: #fff; text-decoration: none; font-weight: 800; padding: 13px 24px; border-radius: 999px; border: 0; font: inherit; font-weight: 800; cursor: pointer; box-shadow: 0 6px 16px rgba(79, 143, 192, .3); }
.btn:hover { background: var(--accent-dark); }
.btn.soft { background: #fff; color: var(--accent-dark); box-shadow: inset 0 0 0 2px var(--accent); }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }

/* Sky hero with winged crayons */
.sky { position: relative; overflow: hidden; background: linear-gradient(180deg, #bfe2f6 0%, #dcf0fa 55%, var(--cream) 100%); }
.sky .wrap { position: relative; z-index: 2; padding-top: 70px; padding-bottom: 80px; text-align: center; }
.sky .verse { font-family: 'Fredoka', sans-serif; color: var(--accent-dark); font-weight: 500; letter-spacing: .06em; text-transform: uppercase; font-size: 14px; }
.sky p.lead { font-size: 19px; max-width: 640px; margin: 0 auto 26px; color: var(--ink-soft); }
.sky .btn-row { justify-content: center; }
.cloud { position: absolute; background: #fff; border-radius: 999px; opacity: .85; z-index: 1; }
.cloud::before, .cloud::after { content: ""; position: absolute; background: #fff; border-radius: 50%; }
.cloud.c1 { width: 160px; height: 46px; top: 40px; left: 6%; } .cloud.c1::before { width: 70px; height: 70px; left: 22px; top: -34px; } .cloud.c1::after { width: 54px; height: 54px; left: 78px; top: -24px; }
.cloud.c2 { width: 200px; height: 54px; top: 110px; right: 5%; } .cloud.c2::before { width: 86px; height: 86px; left: 34px; top: -44px; } .cloud.c2::after { width: 62px; height: 62px; left: 108px; top: -28px; }
.crayons { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.crayon { position: absolute; top: -90px; width: 70px; animation: drift 16s linear infinite; opacity: .95; }
.crayon svg { width: 100%; height: auto; animation: sway 4s ease-in-out infinite alternate; }
.crayon .wing { transform-origin: 50% 90%; animation: flap 1.6s ease-in-out infinite alternate; }
@keyframes drift { from { transform: translateY(-40px); } to { transform: translateY(720px); } }
@keyframes sway { from { transform: rotate(-12deg) translateX(-10px); } to { transform: rotate(12deg) translateX(10px); } }
@keyframes flap { from { transform: scaleY(1); } to { transform: scaleY(.7); } }
@media (prefers-reduced-motion: reduce) {
  .crayon { animation: none; top: auto; } .crayon svg, .crayon .wing { animation: none; }
}

/* Sections */
section.band { padding: 60px 0; }
section.band.white { background: #fff; }
section.band.sky2 { background: var(--sky-2); }
.center { text-align: center; }
.sub { color: var(--ink-soft); max-width: 680px; margin: 0 auto 30px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; }
.card { background: #fff; border-radius: var(--radius); padding: 24px 22px; box-shadow: var(--shadow); border-top: 6px solid var(--c-blue); }
.card:nth-child(6n+2) { border-top-color: var(--c-pink); } .card:nth-child(6n+3) { border-top-color: var(--c-butter); }
.card:nth-child(6n+4) { border-top-color: var(--c-mint); } .card:nth-child(6n+5) { border-top-color: var(--c-lav); } .card:nth-child(6n+6) { border-top-color: var(--c-peach); }
.card .ico { font-size: 30px; line-height: 1; margin-bottom: 8px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.photo-frame { border-radius: 24px; overflow: hidden; box-shadow: var(--shadow); border: 8px solid #fff; }
.facts { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.facts li { background: #fff; border-radius: 14px; padding: 12px 16px; box-shadow: var(--shadow); }
.facts b { display: block; font-family: 'Fredoka', sans-serif; font-weight: 600; color: var(--accent-dark); }
.birthday { background: linear-gradient(90deg, #fde7ee, #fff3d6, #e3f2fb); border-radius: var(--radius); padding: 18px 22px; text-align: center; font-weight: 700; margin-top: 26px; }
.quote { font-family: 'Fredoka', sans-serif; font-size: 22px; color: var(--accent-dark); text-align: center; max-width: 720px; margin: 0 auto; }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.gallery figure { margin: 0; background: #fff; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); }
.gallery img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.gallery figcaption { padding: 10px 14px; font-size: 15px; color: var(--ink-soft); }
.empty { text-align: center; color: var(--ink-soft); background: #fff; border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); }

/* Book */
.book-hero { display: grid; grid-template-columns: 340px 1fr; gap: 40px; align-items: center; }
.book-hero .cover { border-radius: 12px; box-shadow: 0 20px 40px rgba(45,58,92,.25); transform: rotate(-2deg); }
.pages { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; margin-top: 30px; }
.pages img { border-radius: 12px; box-shadow: var(--shadow); }
.qr-box { display: flex; gap: 18px; align-items: center; background: #fff; border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); margin-top: 20px; max-width: 460px; }
.qr-box img { width: 130px; height: 130px; }

/* Forms */
form.nice { background: #fff; border-radius: var(--radius); padding: 26px 22px; box-shadow: var(--shadow); max-width: 720px; margin: 0 auto; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
label { display: block; font-weight: 700; margin-bottom: 12px; font-size: 15px; }
label span.opt { font-weight: 400; color: var(--ink-soft); }
input, select, textarea { width: 100%; font: inherit; font-size: 16px; padding: 11px 12px; border: 2px solid var(--line); border-radius: 12px; background: #fffdf8; color: var(--ink); margin-top: 4px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--c-blue); }
textarea { min-height: 110px; }
.days { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.days label { display: inline-flex; align-items: center; gap: 6px; background: var(--sky-2); padding: 6px 12px; border-radius: 999px; margin: 0; font-weight: 600; }
.days input { width: auto; margin: 0; }
.hp { position: absolute; left: -5000px; }
.msg { display: none; margin-top: 14px; padding: 14px; border-radius: 12px; }
.msg.ok { display: block; background: #e5f6ec; } .msg.err { display: block; background: #fde8ea; }

/* Footer */
footer.foot { background: var(--ink); color: #dfe6f3; padding: 40px 0 30px; font-size: 15px; }
footer.foot a { color: #fff; }
footer.foot .cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; }
footer.foot h3 { color: #fff; font-size: 18px; }
footer.foot .tiny { margin-top: 24px; opacity: .75; font-size: 13px; }

/* Gift opening (only with ?gift) - same idea as Matt's, softer colors */
#gift { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; background: radial-gradient(circle at 50% 40%, #e9f5fc 0%, #bcdcf0 70%); overflow: auto; padding: 20px 16px; }
#gift.show { display: flex; }
.gift-inner { width: 100%; max-width: 640px; margin: auto; }
.gift-stage { position: relative; width: 300px; height: 320px; margin: 0 auto; }
.g-box { position: absolute; left: 25px; bottom: 0; width: 250px; height: 200px; background: linear-gradient(180deg, #f6b9c5 0%, #ea95a8 100%); border-radius: 10px; box-shadow: 0 30px 60px rgba(45,58,92,.25); transform-origin: bottom center; transition: transform 1s cubic-bezier(.5,-0.3,.4,1.2), opacity 1s; }
.g-box::before, .g-lid::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 36px; transform: translateX(-50%); background: linear-gradient(90deg, #a9d3ef, #e8f5fc, #a9d3ef); }
.g-lid { position: absolute; left: 13px; bottom: 190px; width: 274px; height: 56px; background: linear-gradient(180deg, #f9cad3 0%, #f2a7b7 100%); border-radius: 10px; box-shadow: 0 8px 18px rgba(45,58,92,.2); transition: transform 1.1s cubic-bezier(.5,-0.4,.5,1), opacity 1.1s; }
.g-bow { position: absolute; left: 50%; bottom: 240px; width: 150px; height: 80px; transform: translateX(-50%); transition: transform 1s cubic-bezier(.6,-0.5,.4,1), opacity .9s; }
.g-bow i { position: absolute; top: 10px; width: 68px; height: 56px; border: 12px solid #8ec5ec; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; }
.g-bow i:nth-child(1) { left: 2px; transform: rotate(-24deg); }
.g-bow i:nth-child(2) { right: 2px; transform: rotate(24deg); }
.g-bow b { position: absolute; left: 50%; top: 30px; width: 30px; height: 30px; transform: translateX(-50%); background: #6fb0dd; border-radius: 50%; box-shadow: 0 2px 4px rgba(0,0,0,.2); }
.gift-tag { text-align: center; margin-top: 22px; }
.gift-tag h2 { font-size: 30px; }
.gift-tag p { color: var(--ink-soft); margin: 0 0 16px; }
#gift.opening .g-bow { transform: translate(-50%, -260px) rotate(-35deg); opacity: 0; }
#gift.opening .g-lid { transform: translate(-240px, -120px) rotate(-70deg); opacity: 0; transition-delay: .35s; }
#gift.opening .g-box { transform: translateY(80px) scale(.6) rotateX(70deg); opacity: 0; transition-delay: .8s; }
#gift.opening .gift-tag { opacity: 0; transition: opacity .3s; }
.gift-card { display: none; width: 100%; background: #fffdf8; border-radius: 22px; padding: 32px 30px 26px; box-shadow: 0 30px 80px rgba(45,58,92,.3); position: relative; border-top: 8px solid var(--c-blue); animation: rise 1s ease both; }
.gift-card::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 7px; border-radius: 0 0 22px 22px; background: linear-gradient(90deg, var(--c-pink) 0 16.6%, var(--c-peach) 0 33.3%, var(--c-butter) 0 50%, var(--c-mint) 0 66.6%, var(--c-blue) 0 83.3%, var(--c-lav) 0); }
.gift-card h2 { font-size: 30px; margin-bottom: 4px; }
.gift-card .sub2 { color: var(--accent-dark); font-weight: 800; letter-spacing: .14em; text-transform: uppercase; font-size: 13px; margin-bottom: 14px; }
.gift-card p { font-size: 16.5px; margin: 0 0 12px; }
.gift-card ul { margin: 0 0 12px; padding-left: 20px; }
.gift-card .ask { background: var(--sky-2); border-radius: 14px; padding: 12px 16px; font-weight: 700; }
.gift-card .sign { font-family: 'Great Vibes', cursive; font-size: 40px; color: var(--accent-dark); margin: 6px 0 16px; line-height: 1.1; }
#gift.opened .gift-stage, #gift.opened .gift-tag { display: none; }
#gift.opened .gift-card { display: block; }
.confetti { position: fixed; top: -14px; width: 9px; height: 14px; z-index: 101; animation: fall linear forwards; pointer-events: none; border-radius: 2px; }
@keyframes fall { to { transform: translateY(105vh) rotate(720deg); } }
@keyframes rise { from { opacity: 0; transform: translateY(40px) scale(.96); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .g-box, .g-lid, .g-bow, .gift-card { transition: none; animation: none; } }

@media (max-width: 820px) {
  .split, .book-hero { grid-template-columns: 1fr; gap: 26px; }
  .book-hero .cover { max-width: 280px; margin: 0 auto; }
  .nav-toggle { display: block; }
  nav.main { display: none; position: absolute; top: 64px; left: 0; right: 0; background: var(--cream); flex-direction: column; padding: 10px 16px 16px; border-bottom: 1px solid var(--line); }
  nav.main.open { display: flex; }
}
@media (max-width: 560px) {
  body { font-size: 16.5px; }
  .grid2 { grid-template-columns: 1fr; gap: 0; }
  .btn { width: 100%; text-align: center; }
  .sky .wrap { padding-top: 50px; padding-bottom: 60px; }
  .crayon { width: 48px; }
  .gift-card { padding: 26px 18px 22px; }
  .gift-stage { transform: scale(.9); }
  .qr-box { flex-direction: column; text-align: center; }
  section.band { padding: 44px 0; }
}

/* Alerts + small bits */
.alert-bar { background: #fff1d6; border-bottom: 2px solid #f7c08a; padding: 10px 0; font-size: 16px; }
.alert-bar a { font-weight: 700; margin-left: 6px; }
.card ul { padding-left: 20px; margin: 0 0 10px; }
.card small.src { display: block; color: var(--ink-soft); font-size: 13px; margin-top: 6px; }
.crayon { --rt: 30%; }
@media (prefers-reduced-motion: reduce) { .crayon { top: var(--rt); } }

/* ===== Redesign (10/25): grown-up, calm, Montana photo hero, subtle doodles ===== */
:root { --cream: #fbf7ef; --cream-2: #f5eee0; --sage: #9fc0a0; --sage-dark: #5f8a62; --peach: #f2b98f; --sky: #dcebf5; --sky-2: #eef5fa; }
body { background: var(--cream); }
h1, h2, h3 { font-family: 'Lora', Georgia, serif; font-weight: 600; letter-spacing: -.005em; }
h3 { font-family: 'Nunito', sans-serif; font-weight: 800; }
.brand { font-family: 'Lora', Georgia, serif; }
.top { background: rgba(251, 247, 239, .95); }
/* crayon-stroke underline under section headings */
section.band h2 { position: relative; display: inline-block; padding-bottom: 10px; }
section.band .center h2, section.band h2.center { display: block; }
section.band h2::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 120px; height: 10px; transform: translateX(-50%);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 10'%3E%3Cpath d='M3 6c18-4 30 2 48-1s30-3 44 0 16 1 22-1' fill='none' stroke='%23f2b98f' stroke-width='4' stroke-linecap='round' opacity='.85'/%3E%3C/svg%3E") no-repeat center/contain; }
.split h2::after, .book-hero h2::after { left: 60px; }
/* photo hero */
.sky.photo { background: #dcecf4 url('/img/hero-scene.svg') center bottom / cover no-repeat; }
.sky.photo::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(251,247,239,.25) 0%, rgba(251,247,239,.45) 45%, rgba(251,247,239,0) 75%); z-index: 0; }
.sky.photo .wrap { padding-top: 70px; padding-bottom: 230px; }
.sky.photo h1 { font-size: clamp(34px, 6vw, 58px); }
.verses { position: relative; min-height: 112px; max-width: 720px; margin: 8px auto 14px; }
.verses figure { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 1.2s ease; display: flex; flex-direction: column; justify-content: center; }
.verses figure.on { opacity: 1; }
.verses blockquote { margin: 0; font-family: 'Lora', Georgia, serif; font-style: italic; font-size: clamp(21px, 3.2vw, 28px); color: #3f6f94; line-height: 1.35; }
.verses figcaption { margin-top: 6px; font-size: 14px; letter-spacing: .14em; text-transform: uppercase; color: var(--sage-dark); font-weight: 800; }
@media (prefers-reduced-motion: reduce) { .verses figure { transition: none; } }
/* doodles */
.dd { position: absolute; z-index: 1; opacity: .9; pointer-events: none; }
.dd-sun { width: 64px; left: 5%; bottom: 60px; }
.dd-heart { width: 46px; right: 7%; top: 54px; }
.dd-star { width: 38px; right: 12%; bottom: 70px; }
.dd-flower { width: 40px; left: 9%; top: 60px; }
section.band { position: relative; }
section.band.white::before, section.band.sky2::before { content: ""; position: absolute; width: 34px; height: 34px; top: 22px; opacity: .8;
  background: no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cpath d='M20 3l4.5 11.5L36 16l-9 7.5 3 12L20 29l-10 6.5 3-12L4 16l11.5-1.5z' fill='none' stroke='%239fc0a0' stroke-width='3' stroke-linejoin='round'/%3E%3C/svg%3E"); }
section.band.white::before { right: 6%; }
section.band.sky2::before { left: 6%; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 50 46'%3E%3Cpath d='M25 42C10 31 3 22 6 13c3-8 13-9 19-1 6-8 16-7 19 1 3 9-4 18-19 29z' fill='none' stroke='%23e7a1ae' stroke-width='3.5' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.card { border-top-width: 4px; box-shadow: 0 6px 22px rgba(45, 58, 92, .07); }
.card:nth-child(6n+1) { border-top-color: #a9cbe3; } .card:nth-child(6n+2) { border-top-color: var(--sage); } .card:nth-child(6n+3) { border-top-color: var(--peach); }
.card:nth-child(6n+4) { border-top-color: #a9cbe3; } .card:nth-child(6n+5) { border-top-color: var(--sage); } .card:nth-child(6n+6) { border-top-color: var(--peach); }
.quote { font-family: 'Lora', Georgia, serif; font-style: italic; font-weight: 500; }
.quote small { font-family: 'Nunito', sans-serif; font-style: normal; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--sage-dark); font-weight: 800; }
section.band.sky2 { background: var(--sky-2); }
@media (max-width: 560px) {
  .sky.photo .wrap { padding-top: 44px; padding-bottom: 150px; }
  .verses { min-height: 132px; }
  .dd-sun { width: 44px; left: 3%; bottom: 24px; } .dd-heart { width: 32px; right: 4%; top: 18px; } .dd-star { width: 28px; right: 6%; bottom: 30px; } .dd-flower { width: 30px; left: 4%; top: 18px; }
  section.band.white::before, section.band.sky2::before { width: 24px; height: 24px; top: 14px; }
}

/* kid-artwork doodles on the top photo (10/25) */
.kid { position: absolute; z-index: 1; pointer-events: none; opacity: .92; }
.kid-grass { left: 0; right: 0; bottom: 6px; width: 100%; height: 26px; }
.kid-family { width: 170px; left: 4%; bottom: 18px; }
.kid-flowers { width: 130px; right: 4%; bottom: 18px; }
.kid-geese { width: 120px; right: 16%; top: 26px; }
.kid-cloud { width: 100px; left: 22%; top: 24px; }
.kid-scribble-sun { width: 78px; left: 4%; top: 120px; }
@media (max-width: 760px) {
  .kid-family { width: 96px; left: 2%; bottom: 14px; }
  .kid-flowers { width: 78px; right: 2%; bottom: 14px; }
  .kid-geese { width: 74px; right: 18%; top: 10px; }
  .kid-cloud { display: none; }
  .kid-scribble-sun { width: 46px; left: 3%; top: 64px; }
  .dd-flower { display: none; }
}

/* swing photo (10/25) */
.swing-photo { margin: 0 auto; max-width: 980px; }
.swing-photo img { width: 100%; height: auto; display: block; border-radius: 24px; border: 8px solid #fff; box-shadow: var(--shadow); }
.swing-photo figcaption { text-align: center; margin-top: 12px; font-family: 'Lora', Georgia, serif; font-style: italic; font-size: 19px; color: #3f6f94; }
@media (max-width: 760px) { .sky.photo { background-position: 18% bottom; } }

/* vacation notice (10/25) */
.alert-bar.vac { background: #e3f0f8; color: #234; }
.alert-bar.vac .bk { display: inline-block; margin-left: 10px; font-weight: 700; }
.alert-bar.vac a { color: #2e6a93; }
