/* ==========================================================================
   Maeve Sophia's 2nd Birthday — Bee-themed landing page
   --------------------------------------------------------------------------
   Mobile-first, warm honey palette, honeycomb texture, gentle motion.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design tokens
   -------------------------------------------------------------------------- */
:root {
  --honey: #f5b301;
  --honey-soft: #ffc93c;
  --amber: #e0a000;
  --cream: #fff8e7;
  --cream-deep: #fbeecb;
  --cream-card: #fffdf6;
  --brown: #6b4f2e;
  --brown-dark: #3a2a18;
  --ink: #4a3417;
  --ink-soft: #7a5e3a;

  --font-display: "Baloo 2", system-ui, sans-serif;
  --font-script: "Pacifico", cursive;
  --font-body: "Quicksand", system-ui, sans-serif;

  --shadow-soft: 0 14px 34px rgba(107, 79, 46, 0.1);
  --shadow-lift: 0 18px 42px rgba(107, 79, 46, 0.18);
  --radius: 22px;
  --hex-clip: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

/* --------------------------------------------------------------------------
   2. Base / reset
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background-color: var(--cream);
  background-image:
    linear-gradient(180deg, rgba(255, 248, 231, 0) 0%, rgba(255, 236, 189, 0.55) 100%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='34.64' height='60.00' viewBox='0 0 34.64 60.00'%3E%3Cdefs%3E%3CclipPath id='hc'%3E%3Crect width='34.64' height='60.00'/%3E%3C/clipPath%3E%3C/defs%3E%3Cg clip-path='url(%23hc)' fill='none' stroke='%23F5B301' stroke-opacity='0.16' stroke-width='1.4'%3E%3Cpath d='M0.00,40.00L-17.32,50.00L-34.64,40.00L-34.64,20.00L-17.32,10.00L-0.00,20.00Z'/%3E%3Cpath d='M17.32,70.00L0.00,80.00L-17.32,70.00L-17.32,50.00L-0.00,40.00L17.32,50.00Z'/%3E%3Cpath d='M17.32,10.00L0.00,20.00L-17.32,10.00L-17.32,-10.00L-0.00,-20.00L17.32,-10.00Z'/%3E%3Cpath d='M34.64,40.00L17.32,50.00L-0.00,40.00L0.00,20.00L17.32,10.00L34.64,20.00Z'/%3E%3Cpath d='M51.96,70.00L34.64,80.00L17.32,70.00L17.32,50.00L34.64,40.00L51.96,50.00Z'/%3E%3Cpath d='M51.96,10.00L34.64,20.00L17.32,10.00L17.32,-10.00L34.64,-20.00L51.96,-10.00Z'/%3E%3Cpath d='M69.28,40.00L51.96,50.00L34.64,40.00L34.64,20.00L51.96,10.00L69.28,20.00Z'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: repeat;
}

img,
svg {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--font-display);
  color: var(--brown-dark);
  line-height: 1.15;
}

p {
  margin: 0;
}

a {
  color: var(--brown);
}

:focus-visible {
  outline: 3px solid var(--honey);
  outline-offset: 3px;
  border-radius: 6px;
}

section[id] {
  scroll-margin-top: 1rem;
}

/* --------------------------------------------------------------------------
   3. Layout helpers
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: 1080px;
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.container--narrow {
  max-width: 720px;
}

.section {
  padding-block: clamp(3.5rem, 8vw, 6.5rem);
}

.section__title {
  font-size: clamp(1.75rem, 4.5vw, 2.6rem);
  font-weight: 800;
  margin-bottom: 1rem;
}

.section__title--center {
  text-align: center;
}

/* --------------------------------------------------------------------------
   4. Skip link & canvas
   -------------------------------------------------------------------------- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  border-radius: 12px;
  background: var(--brown-dark);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 1rem;
}

#bee-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

main {
  position: relative;
  z-index: 1;
}

/* --------------------------------------------------------------------------
   5. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  min-height: 100svh;
  padding-block: 4rem;
  text-align: center;
  overflow: hidden;
}

.hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
}

.hero__eyebrow {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.hero__title {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.hero__script {
  font-family: var(--font-script);
  font-weight: 400;
  font-size: clamp(2.4rem, 8vw, 4.4rem);
  line-height: 1.1;
  color: var(--honey);
  text-shadow: 0 2px 0 rgba(107, 79, 46, 0.14);
}

.hero__line {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 6.5vw, 3.6rem);
  color: var(--brown-dark);
}

.hero__meta {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  margin-top: 0.35rem;
}

.hero__date {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--brown);
}

.hero__venue {
  font-size: 1rem;
  color: var(--ink-soft);
}

.btn {
  display: inline-block;
  padding: 0.9rem 1.8rem;
  border: 0;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.btn--honey {
  background: linear-gradient(160deg, var(--honey-soft), var(--honey));
  color: var(--brown-dark);
  box-shadow: 0 12px 26px rgba(224, 160, 0, 0.32);
}

.btn--honey:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(224, 160, 0, 0.42);
}

.btn--honey:active {
  transform: translateY(0);
}

.hero__cta {
  margin-top: 0.6rem;
}

.hero__scroll {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  margin-top: 1.6rem;
  color: var(--brown);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
}

.hero__scroll-label {
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.75rem;
  color: var(--ink-soft);
}

.hero__chevron {
  animation: bounce 1.8s ease-in-out infinite;
}

@keyframes bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(6px);
  }
}

/* --------------------------------------------------------------------------
   6. Shared decorations
   -------------------------------------------------------------------------- */
.decor-bee {
  display: grid;
  place-items: center;
  width: 64px;
  height: 72px;
  margin: 0 auto 0.5rem;
  font-size: 1.9rem;
  background: linear-gradient(160deg, var(--honey-soft), var(--amber));
  clip-path: var(--hex-clip);
}

/* --------------------------------------------------------------------------
   7. Welcome
   -------------------------------------------------------------------------- */
.welcome__card {
  max-width: 640px;
  margin-inline: auto;
  padding: clamp(2rem, 5vw, 3rem);
  text-align: center;
  background: var(--cream-card);
  border: 1px solid var(--cream-deep);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.welcome__text {
  font-size: 1.1rem;
  color: var(--ink);
}

.welcome__signature {
  margin-top: 1.4rem;
  font-family: var(--font-script);
  font-size: 1.3rem;
  color: var(--brown);
}

/* --------------------------------------------------------------------------
   8. Party details
   -------------------------------------------------------------------------- */
.detail-grid {
  list-style: none;
  margin: 2.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
}

.detail-card {
  position: relative;
  padding: 3rem 1.5rem 1.75rem;
  text-align: center;
  background: var(--cream-card);
  border: 1px solid var(--cream-deep);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.detail-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  border-radius: var(--radius) var(--radius) 0 0;
  background: linear-gradient(90deg, var(--honey-soft), var(--honey), var(--amber));
}

.detail-card__badge {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  width: 58px;
  height: 66px;
  font-size: 1.5rem;
  background: linear-gradient(160deg, var(--honey-soft), var(--amber));
  clip-path: var(--hex-clip);
}

.detail-card__label {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 0.4rem;
}

.detail-card__value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--brown-dark);
  line-height: 1.35;
}

/* --------------------------------------------------------------------------
   9. Schedule
   -------------------------------------------------------------------------- */
.timeline {
  list-style: none;
  margin: 2.75rem 0 0;
  padding: 0;
  position: relative;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 0.4rem;
  bottom: 0.4rem;
  left: 6px;
  width: 2px;
  background-image: repeating-linear-gradient(
    180deg,
    var(--honey) 0 8px,
    transparent 8px 16px
  );
}

.timeline__item {
  position: relative;
  padding: 0 0 2.25rem 2.1rem;
}

.timeline__item:last-child {
  padding-bottom: 0;
}

.timeline__item::before {
  content: "";
  position: absolute;
  top: 0.2rem;
  left: 0;
  width: 14px;
  height: 16px;
  background: var(--honey);
  clip-path: var(--hex-clip);
}

.timeline__time {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--amber);
  font-size: 0.95rem;
  letter-spacing: 0.03em;
}

.timeline__title {
  font-size: 1.25rem;
  margin: 0.15rem 0 0.25rem;
}

.timeline__text {
  color: var(--ink-soft);
}

/* --------------------------------------------------------------------------
   10. Dress code / extras
   -------------------------------------------------------------------------- */
.extras__card {
  max-width: 620px;
  margin-inline: auto;
  padding: clamp(2rem, 5vw, 3rem);
  text-align: center;
  background: var(--cream-card);
  border: 1px solid var(--cream-deep);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.extras__lead {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--brown);
  margin-bottom: 1.1rem;
}

.extras__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
  text-align: left;
  color: var(--ink-soft);
}

.extras__list li {
  position: relative;
  padding-left: 1.5rem;
}

.extras__list li::before {
  content: "🐝";
  position: absolute;
  left: 0;
  top: 0.05rem;
  font-size: 0.85rem;
}

/* --------------------------------------------------------------------------
   11. RSVP
   -------------------------------------------------------------------------- */
.rsvp__card {
  padding: clamp(2rem, 5vw, 3.25rem);
  background: var(--cream-card);
  border: 1px solid var(--cream-deep);
  border-top: 6px solid var(--honey);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.rsvp__deadline {
  text-align: center;
  color: var(--ink-soft);
  margin: 0.25rem 0 1.75rem;
}

.rsvp__form {
  display: grid;
  gap: 1.1rem;
  grid-template-columns: 1fr;
}

.field label {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 700;
  color: var(--brown);
  font-size: 0.95rem;
}

.field__optional {
  font-weight: 500;
  color: var(--ink-soft);
  font-size: 0.85rem;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 2px solid var(--cream-deep);
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.field textarea {
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--honey);
  box-shadow: 0 0 0 4px rgba(245, 179, 1, 0.18);
}

.rsvp__submit {
  justify-self: center;
  margin-top: 0.4rem;
}

.rsvp__confirmation {
  margin-top: 1.4rem;
  padding: 1rem 1.25rem;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--brown-dark);
  background: #fff3c4;
  border: 1px solid var(--honey-soft);
  border-radius: 14px;
}

.rsvp__confirmation[hidden] {
  display: none;
}

/* --------------------------------------------------------------------------
   12. Gifts note
   -------------------------------------------------------------------------- */
.gifts__note {
  display: flex;
  gap: 1rem;
  align-items: center;
  max-width: 640px;
  margin-inline: auto;
  padding: 1.4rem 1.5rem;
  background: rgba(255, 253, 246, 0.72);
  border: 1px dashed var(--honey);
  border-radius: 18px;
  color: var(--ink-soft);
}

.gifts__icon {
  flex: none;
  font-size: 1.7rem;
}

/* --------------------------------------------------------------------------
   13. Footer
   -------------------------------------------------------------------------- */
.footer {
  position: relative;
  z-index: 1;
  padding: 2.75rem 1.25rem 3.25rem;
  text-align: center;
  color: var(--brown);
}

.footer__line {
  font-family: var(--font-display);
  font-weight: 600;
}

.footer__bee {
  margin-left: 0.35rem;
}

/* --------------------------------------------------------------------------
   14. Scroll reveal
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  transition-delay: var(--rd, 0s);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.delay-1 {
  --rd: 0.08s;
}

.delay-2 {
  --rd: 0.16s;
}

.delay-3 {
  --rd: 0.24s;
}

/* --------------------------------------------------------------------------
   15. Responsive
   -------------------------------------------------------------------------- */
@media (min-width: 640px) {
  .rsvp__form {
    grid-template-columns: 1fr 1fr;
  }

  .field--full {
    grid-column: 1 / -1;
  }

  .hero__meta {
    flex-direction: row;
    gap: 0.6rem;
    align-items: baseline;
  }

  .hero__date::after {
    content: "·";
    margin-left: 0.6rem;
    color: var(--ink-soft);
  }
}

@media (min-width: 820px) {
  .detail-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .timeline__item {
    display: grid;
    grid-template-columns: 96px 1fr;
    gap: 1.25rem;
  }

  .timeline__time {
    text-align: right;
  }
}

/* --------------------------------------------------------------------------
   16. Reduced motion
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero__chevron {
    animation: none;
  }

  .btn,
  .hero__scroll {
    transition: none;
  }
}
