/* ==========================================================================
   Kjuti Patuti ♥️ · Potovanja — a romantic, hearts-everywhere travel diary
   Sibling of kjutipatuti.si: hot pink (#ff1a75) on soft rose, hearts, a
   handwritten-scrapbook feel.
   Type: Caveat (handwritten love-notes) · Fredoka (cute headings) · Nunito (body)
   ========================================================================== */

:root {
  --rose:        #ffe7ee;   /* page background */
  --rose-2:      #ffd6e3;   /* deeper accent */
  --blush:       #fff1f5;   /* soft tint */
  --cream:       #fffafc;   /* cards */
  --white:       #ffffff;

  --pink:        #ff1a75;   /* the brand hot pink */
  --pink-deep:   #c2185b;
  --pink-bright: #e91e63;
  --pink-soft:   #ffb3cf;

  --berry:       #59203a;   /* readable body text */
  --berry-soft:  #9a6177;
  --berry-faint: #b98ea0;

  --line:        rgba(255, 26, 117, 0.18);
  --line-strong: rgba(255, 26, 117, 0.40);

  --shadow-sm: 0 4px 14px rgba(255, 26, 117, 0.12);
  --shadow-md: 0 14px 32px -12px rgba(255, 26, 117, 0.34);
  --shadow-lg: 0 30px 60px -20px rgba(194, 24, 91, 0.40);

  --font-hand: "Caveat", "Brush Script MT", cursive;
  --font-display: "Fredoka", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, sans-serif;

  --wrap: 1180px;
  --radius: 18px;
  --radius-pill: 999px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ----- reset ----- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
img, picture, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: none; }
a { color: inherit; text-decoration: none; }
input, textarea, select, button { font: inherit; }

body {
  font-family: var(--font-body);
  color: var(--berry);
  background-color: var(--rose);
  background-image:
    radial-gradient(120% 110% at 10% -10%, rgba(255, 255, 255, 0.65), transparent 45%),
    radial-gradient(130% 130% at 100% 0%, rgba(255, 138, 184, 0.35), transparent 55%),
    radial-gradient(120% 120% at 50% 120%, rgba(255, 214, 227, 0.6), transparent 50%);
  background-attachment: fixed;
  line-height: 1.65;
  font-size: 17px;
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* drifting hearts behind everything */
.hearts-bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.hearts-bg span {
  position: absolute;
  bottom: -40px;
  font-size: 1.4rem;
  opacity: 0.35;
  animation: drift linear infinite;
  filter: saturate(1.1);
}
@keyframes drift {
  0%   { transform: translateY(0) rotate(0deg); opacity: 0; }
  10%  { opacity: 0.4; }
  90%  { opacity: 0.4; }
  100% { transform: translateY(-112vh) rotate(40deg); opacity: 0; }
}

/* heart cursor trail (added by JS) */
.cursor-heart {
  position: fixed;
  z-index: 9999;
  pointer-events: none;
  font-size: 16px;
  user-select: none;
  will-change: transform, opacity;
  transition: transform 1s ease-out, opacity 1s ease-out;
}

/* ----- shared bits ----- */
.label {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: var(--berry-soft);
}

.wrap { width: min(100% - 3rem, var(--wrap)); margin-inline: auto; }
.page { position: relative; z-index: 2; min-height: 60vh; }

/* ==========================================================================
   Masthead
   ========================================================================== */
.masthead {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px) saturate(1.3);
  background: rgba(255, 235, 242, 0.82);
  border-bottom: 2px solid var(--line);
}
.masthead__inner {
  width: min(100% - 3rem, var(--wrap));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.7rem 0;
}
.wordmark { display: inline-flex; align-items: baseline; gap: 0.5rem; }
.wordmark__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.5rem;
  color: var(--pink);
  letter-spacing: -0.01em;
}
.wordmark__heart { font-size: 1.05rem; animation: beat 1.6s ease-in-out infinite; transform-origin: center; }
@keyframes beat { 0%, 100% { transform: scale(1); } 15% { transform: scale(1.22); } 30% { transform: scale(1); } 45% { transform: scale(1.16); } }
.wordmark__sub {
  font-family: var(--font-hand);
  font-size: 1.3rem;
  color: var(--pink-deep);
  transform: translateY(2px);
}

.masthead__nav { display: flex; align-items: center; gap: 0.35rem; }
.logout-form { display: inline; }
.navlink {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-pill);
  color: var(--pink-deep);
  white-space: nowrap;
  transition: color 0.2s, background 0.2s, transform 0.2s, box-shadow 0.2s;
}
.navlink:hover { color: var(--pink); background: rgba(255, 26, 117, 0.08); }
.navlink--cta {
  background: var(--pink);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.navlink--cta:hover { background: var(--pink-deep); color: #fff; transform: translateY(-2px); }
.navlink--ghost { border: 2px solid var(--line-strong); }
.navlink--ghost:hover { background: rgba(255, 26, 117, 0.06); }

/* ==========================================================================
   Toasts
   ========================================================================== */
.toasts {
  position: fixed;
  z-index: 80;
  top: 5rem;
  right: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  max-width: min(92vw, 390px);
}
.toast {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1.1rem;
  background: var(--white);
  border: 2px solid var(--pink-soft);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--berry);
  animation: toast-in 0.45s var(--ease) both;
}
.toast--success { border-color: var(--pink-soft); }
.toast--error { border-color: var(--pink); }
.toast::before { content: "♥"; color: var(--pink); font-size: 1.1rem; }
.toast__close { color: var(--berry-faint); font-size: 1.4rem; line-height: 1; padding: 0 0.2rem; }
.toast__close:hover { color: var(--pink); }
@keyframes toast-in { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: none; } }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1rem;
  padding: 0.7rem 1.5rem;
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
  transition: transform 0.2s var(--ease), background 0.2s, box-shadow 0.2s, color 0.2s, border-color 0.2s;
}
.btn--primary {
  background: var(--pink);
  color: #fff;
  border-color: var(--pink);
  box-shadow: 0 6px 16px rgba(255, 26, 117, 0.28);
}
.btn--primary:hover { background: #fff; color: var(--pink); transform: translateY(-3px); box-shadow: var(--shadow-md); }
.btn--ink { background: var(--pink-deep); color: #fff; border-color: var(--pink-deep); }
.btn--ink:hover { background: #fff; color: var(--pink-deep); transform: translateY(-3px); box-shadow: var(--shadow-md); }
.btn--ghost { border-color: var(--line-strong); color: var(--pink-deep); }
.btn--ghost:hover { background: rgba(255, 26, 117, 0.07); transform: translateY(-2px); }
.btn--danger { border-color: var(--pink-soft); color: var(--pink-deep); }
.btn--danger:hover { background: var(--pink); color: #fff; border-color: var(--pink); }
.btn--sm { padding: 0.45rem 1rem; font-size: 0.88rem; }

/* ==========================================================================
   Intro (trips list)
   ========================================================================== */
.intro {
  position: relative;
  width: min(100% - 3rem, var(--wrap));
  margin: 3.5rem auto 1.5rem;
  text-align: center;
}
.intro__eyebrow {
  font-family: var(--font-hand);
  font-size: 1.8rem;
  color: var(--pink-deep);
  margin-bottom: 0.2rem;
}
.intro__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.8rem, 7vw, 5.2rem);
  line-height: 1.0;
  letter-spacing: -0.02em;
  color: var(--pink);
}
.intro__title .heart { color: var(--pink-bright); display: inline-block; animation: beat 1.6s ease-in-out infinite; }
.intro__lede {
  margin: 1.1rem auto 0;
  max-width: 52ch;
  font-size: 1.15rem;
  color: var(--berry-soft);
  font-weight: 600;
}
.intro__hearts { margin-top: 1.4rem; font-size: 1.3rem; letter-spacing: 0.5rem; }
.intro__hearts span { display: inline-block; animation: float 3s ease-in-out infinite; }
.intro__hearts span:nth-child(2) { animation-delay: 0.4s; }
.intro__hearts span:nth-child(3) { animation-delay: 0.8s; }
.intro__hearts span:nth-child(4) { animation-delay: 1.2s; }
.intro__hearts span:nth-child(5) { animation-delay: 1.6s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ==========================================================================
   Postcard grid (trips)
   ========================================================================== */
.postcards {
  width: min(100% - 3rem, var(--wrap));
  margin: 2.5rem auto 5rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 2.4rem 2rem;
}
.postcard {
  position: relative;
  background: var(--white);
  border: 2px solid var(--pink-soft);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
  display: flex;
  flex-direction: column;
}
.postcard:hover {
  transform: translateY(-8px) scale(1.015);
  box-shadow: var(--shadow-lg);
  z-index: 3;
  border-color: var(--pink);
}
.postcard__frame {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--rose-2);
}
.postcard__img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(1.05);
  transition: transform 0.7s var(--ease);
}
.postcard:hover .postcard__img { transform: scale(1.07); }
.postcard__empty {
  width: 100%; height: 100%;
  display: grid; place-items: center;
  font-family: var(--font-hand);
  color: var(--pink-deep);
  font-size: 1.6rem;
  background: repeating-linear-gradient(45deg, var(--rose-2) 0 16px, var(--blush) 16px 32px);
}
/* heart date sticker */
.postmark {
  position: absolute;
  top: 0.85rem; right: 0.85rem;
  display: grid; place-items: center;
  min-width: 60px; padding: 0.5rem 0.7rem;
  border-radius: 14px;
  color: #fff;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.72rem;
  line-height: 1.2;
  background: var(--pink);
  box-shadow: 0 6px 14px rgba(194, 24, 91, 0.4);
  transform: rotate(5deg);
}
.postmark::before { content: "♥"; display: block; font-size: 0.85rem; margin-bottom: 0.05rem; }
.postcard__body { padding: 1.2rem 1.35rem 1.4rem; display: flex; flex-direction: column; gap: 0.5rem; flex: 1; }
.postcard__loc { display: flex; align-items: center; gap: 0.35rem; color: var(--pink-deep); font-weight: 700; }
.postcard__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.6rem;
  line-height: 1.1;
  color: var(--berry);
}
.postcard__summary { color: var(--berry-soft); font-size: 0.97rem; font-weight: 600; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.postcard__foot {
  margin-top: auto;
  padding-top: 0.85rem;
  border-top: 2px dotted var(--line);
  display: flex; align-items: center; justify-content: space-between;
}
.postcard__stat { font-family: var(--font-display); font-weight: 400; font-size: 0.82rem; color: var(--berry-faint); }
.tag-draft {
  font-family: var(--font-display); font-size: 0.7rem; font-weight: 500;
  color: #fff; background: var(--pink-bright); border-radius: var(--radius-pill); padding: 0.15rem 0.6rem;
}

/* empty state */
.empty {
  width: min(100% - 3rem, 620px);
  margin: 4rem auto 6rem;
  text-align: center;
  padding: 3.5rem 2rem;
  border: 2.5px dashed var(--pink-soft);
  border-radius: 24px;
  background: var(--white);
}
.empty__mark { font-size: 3rem; animation: beat 1.6s ease-in-out infinite; }
.empty h2 { font-family: var(--font-display); font-weight: 600; font-size: 2rem; margin: 0.6rem 0; color: var(--pink); }
.empty p { color: var(--berry-soft); margin-bottom: 1.6rem; font-weight: 600; }

/* ==========================================================================
   Trip detail — hero
   ========================================================================== */
.trip-hero {
  position: relative;
  min-height: min(74vh, 680px);
  display: flex;
  align-items: flex-end;
  color: #fff;
  overflow: hidden;
}
.trip-hero__bg { position: absolute; inset: 0; }
.trip-hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.trip-hero__bg::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(to top, rgba(120, 10, 50, 0.88) 0%, rgba(194, 24, 91, 0.25) 45%, rgba(255, 26, 117, 0.20) 100%);
}
.trip-hero__plain { position: absolute; inset: 0; background: linear-gradient(135deg, var(--pink), var(--pink-deep)); }
.trip-hero__inner {
  position: relative;
  width: min(100% - 3rem, var(--wrap));
  margin: 0 auto;
  padding: 3.5rem 0;
}
.trip-hero__meta { display: flex; flex-wrap: wrap; gap: 0.4rem 1.2rem; margin-bottom: 1rem; }
.trip-hero__meta .label { color: rgba(255, 255, 255, 0.92); font-weight: 600; }
.trip-hero__meta .label--accent { color: #ffd9e6; }
.trip-hero__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.6rem, 7vw, 5.4rem);
  line-height: 1.0;
  letter-spacing: -0.02em;
  text-shadow: 0 4px 24px rgba(120, 10, 50, 0.5);
  max-width: 18ch;
}
.trip-hero__scroll {
  position: absolute; bottom: 1.3rem; left: 50%; transform: translateX(-50%);
  font-family: var(--font-hand); font-size: 1.4rem; color: #fff;
  display: flex; flex-direction: column; align-items: center; gap: 0.1rem; text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}
.trip-hero__scroll span { animation: bob 1.8s ease-in-out infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(6px); } }

.editor-bar {
  position: relative; z-index: 4;
  width: min(100% - 3rem, var(--wrap));
  margin: 1.5rem auto -1rem;
  display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: flex-end;
}

/* trip summary */
.trip-summary {
  width: min(100% - 3rem, 760px);
  margin: 4rem auto 1rem;
  text-align: center;
}
.trip-summary p {
  font-family: var(--font-hand);
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  line-height: 1.35;
  color: var(--pink-deep);
}
.trip-summary__star { font-size: 1.8rem; margin-bottom: 0.6rem; animation: beat 1.6s ease-in-out infinite; }

/* ==========================================================================
   Timeline of moments
   ========================================================================== */
.timeline {
  position: relative;
  width: min(100% - 3rem, 920px);
  margin: 3.5rem auto 5rem;
  padding-left: 2.7rem;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 9px; top: 12px; bottom: 12px;
  width: 3px;
  background: repeating-linear-gradient(var(--pink-soft) 0 8px, transparent 8px 16px);
}
.moment { position: relative; padding-bottom: 4rem; }
.moment::before {
  content: "♥";
  position: absolute;
  left: -2.7rem;
  top: 0;
  width: 28px; height: 28px;
  display: grid; place-items: center;
  color: var(--pink);
  font-size: 1.5rem;
  background: var(--rose);
  border-radius: 50%;
}
.moment__head { margin-bottom: 1.3rem; }
.moment__date { display: inline-flex; align-items: center; gap: 0.6rem; margin-bottom: 0.4rem; }
.moment__date .num {
  font-family: var(--font-display); font-weight: 500;
  font-size: 0.78rem;
  background: var(--pink); color: #fff;
  padding: 0.15rem 0.65rem; border-radius: var(--radius-pill);
}
.moment__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  line-height: 1.1;
  color: var(--berry);
}
.moment__loc { color: var(--pink-deep); margin-top: 0.3rem; display: inline-flex; align-items: center; gap: 0.35rem; font-weight: 700; }
.moment__text { color: var(--berry-soft); max-width: 62ch; margin-top: 0.7rem; font-size: 1.05rem; font-weight: 600; }
.moment__edit { margin-top: 1rem; display: flex; gap: 0.5rem; }

/* photo gallery */
.gallery {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(185px, 1fr));
  gap: 1rem;
}
.shot {
  position: relative;
  display: block;
  background: var(--white);
  padding: 8px 8px 8px;
  border: 1px solid var(--pink-soft);
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
  cursor: pointer;
}
.shot:nth-child(3n+1) { transform: rotate(-1.2deg); }
.shot:nth-child(3n+2) { transform: rotate(1deg); }
.shot:hover { transform: translateY(-6px) rotate(0) scale(1.02); box-shadow: var(--shadow-md); z-index: 2; border-color: var(--pink); }
.shot--portrait { grid-row: span 2; }
.shot__img { width: 100%; height: 100%; object-fit: cover; border-radius: 6px; aspect-ratio: 1; }
.shot--portrait .shot__img { aspect-ratio: 3 / 4; }
.shot::after {
  content: "♥";
  position: absolute; top: 0.5rem; right: 0.6rem;
  color: #fff; font-size: 1.1rem;
  text-shadow: 0 1px 4px rgba(0,0,0,0.4);
  opacity: 0; transform: scale(0.5);
  transition: opacity 0.3s, transform 0.3s;
}
.shot:hover::after { opacity: 1; transform: scale(1); }
.shot__cap {
  position: absolute; left: 8px; right: 8px; bottom: 8px;
  padding: 0.5rem 0.6rem;
  font-size: 0.82rem; font-weight: 700;
  color: #fff;
  background: linear-gradient(to top, rgba(120, 10, 50, 0.82), transparent);
  border-radius: 0 0 6px 6px;
  opacity: 0; transform: translateY(6px);
  transition: opacity 0.3s, transform 0.3s;
}
.shot:hover .shot__cap { opacity: 1; transform: none; }

/* ==========================================================================
   Lightbox
   ========================================================================== */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  display: none;
  align-items: center; justify-content: center;
  background: rgba(90, 8, 40, 0.92);
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.3s;
}
.lightbox.is-open { display: flex; opacity: 1; }
.lightbox__img {
  max-width: 90vw; max-height: 82vh;
  border-radius: 10px;
  border: 5px solid #fff;
  box-shadow: 0 30px 80px rgba(0,0,0,0.5);
  background: #fff;
  animation: pop 0.35s var(--ease);
}
@keyframes pop { from { transform: scale(0.95); opacity: 0; } to { transform: none; opacity: 1; } }
.lightbox__cap {
  position: absolute; bottom: 1.6rem; left: 0; right: 0;
  text-align: center; color: #fff;
  font-family: var(--font-display); font-weight: 500; font-size: 0.95rem;
  padding: 0 1rem;
}
.lightbox__btn, .lightbox__close {
  position: absolute;
  width: 54px; height: 54px; border-radius: 50%;
  color: var(--pink); font-size: 1.6rem;
  background: #fff; border: none;
  display: grid; place-items: center;
  box-shadow: 0 6px 16px rgba(0,0,0,0.3);
  transition: transform 0.2s, background 0.2s;
}
.lightbox__btn:hover, .lightbox__close:hover { transform: scale(1.08); background: var(--pink); color: #fff; }
.lightbox__btn { top: 50%; transform: translateY(-50%); }
.lightbox__btn:hover { transform: translateY(-50%) scale(1.08); }
.lightbox__btn--prev { left: 1.5rem; }
.lightbox__btn--next { right: 1.5rem; }
.lightbox__close { top: 1.3rem; right: 1.5rem; width: 46px; height: 46px; font-size: 1.4rem; }

/* ==========================================================================
   Forms / editor pages
   ========================================================================== */
.sheet {
  width: min(100% - 3rem, 760px);
  margin: 3rem auto 5rem;
  background: var(--white);
  border: 2px solid var(--pink-soft);
  border-radius: 24px;
  box-shadow: var(--shadow-md);
  padding: clamp(1.6rem, 4vw, 3rem);
}
.sheet__header { margin-bottom: 2rem; border-bottom: 2px dotted var(--line); padding-bottom: 1.3rem; }
.sheet__title {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(2rem, 5vw, 3rem); line-height: 1.05; color: var(--pink);
}
.sheet__crumb { margin-bottom: 0.6rem; font-family: var(--font-display); }
.sheet__crumb a { color: var(--pink-deep); }
.sheet__crumb a:hover { color: var(--pink); }

.field { margin-bottom: 1.5rem; }
.field > label, .field-label {
  display: block;
  font-family: var(--font-display);
  font-weight: 500; font-size: 0.95rem;
  color: var(--pink-deep);
  margin-bottom: 0.45rem;
}
.field input[type="text"],
.field input[type="password"],
.field input[type="date"],
.field input[type="number"],
.field input[type="email"],
.field textarea,
.field select,
.input {
  width: 100%;
  padding: 0.8rem 1rem;
  background: var(--blush);
  border: 2px solid var(--pink-soft);
  border-radius: 14px;
  color: var(--berry);
  font-weight: 600;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.field input::placeholder, .field textarea::placeholder, .input::placeholder { color: var(--berry-faint); font-weight: 500; }
.field input:focus, .field textarea:focus, .field select:focus, .input:focus {
  outline: none;
  border-color: var(--pink);
  box-shadow: 0 0 0 4px rgba(255, 26, 117, 0.16);
  background: #fff;
}
.field textarea { resize: vertical; min-height: 6rem; line-height: 1.6; }
.field__help { font-size: 0.85rem; color: var(--berry-faint); margin-top: 0.4rem; font-weight: 600; }
.field__error { color: var(--pink-deep); font-size: 0.88rem; margin-top: 0.4rem; font-weight: 700; }
.field--check { display: flex; align-items: center; gap: 0.6rem; }
.field--check input { width: 1.2rem; height: 1.2rem; accent-color: var(--pink); }
.field--check label { margin: 0; color: var(--berry); font-weight: 600; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }

.form-actions {
  display: flex; flex-wrap: wrap; gap: 0.8rem; align-items: center;
  margin-top: 2rem; padding-top: 1.5rem; border-top: 2px dotted var(--line);
}
.form-actions .spacer { flex: 1; }

/* file dropzone */
.dropzone {
  border: 2.5px dashed var(--pink-soft);
  border-radius: 18px;
  background: var(--blush);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: border-color 0.2s, background 0.2s;
  cursor: pointer;
}
.dropzone:hover, .dropzone.is-drag { border-color: var(--pink); background: rgba(255, 26, 117, 0.06); }
.dropzone input[type="file"] { display: none; }
.dropzone__icon { font-size: 2rem; animation: beat 1.6s ease-in-out infinite; }
.dropzone__hint { font-family: var(--font-display); font-weight: 500; font-size: 0.95rem; color: var(--pink-deep); margin-top: 0.4rem; }
.preview-grid { margin-top: 1.2rem; display: grid; grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: 0.6rem; }
.preview-grid img { aspect-ratio: 1; object-fit: cover; border-radius: 10px; border: 2px solid var(--pink-soft); }

/* existing photos editor */
.photo-edit { margin-top: 1.2rem; display: flex; flex-direction: column; gap: 0.8rem; }
.photo-edit__row {
  display: grid; grid-template-columns: 72px 1fr auto; gap: 0.9rem; align-items: center;
  padding: 0.6rem; border: 2px solid var(--pink-soft); border-radius: 14px; background: var(--blush);
}
.photo-edit__row img { width: 72px; height: 72px; object-fit: cover; border-radius: 10px; }

/* ==========================================================================
   Gate & login (centered card)
   ========================================================================== */
.portal {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 2rem 1.5rem;
  position: relative;
  z-index: 2;
}
.portal__card {
  width: min(100%, 460px);
  background: var(--white);
  border: 2px solid var(--pink-soft);
  border-radius: 28px;
  box-shadow: var(--shadow-lg);
  padding: clamp(2rem, 6vw, 3.2rem);
  text-align: center;
  position: relative;
}
.portal__stamp { font-size: 3.4rem; margin-bottom: 0.6rem; animation: beat 1.6s ease-in-out infinite; }
.portal__title {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.9rem, 5vw, 2.5rem); line-height: 1.05; color: var(--pink);
}
.portal__title em { font-style: normal; font-family: var(--font-hand); color: var(--pink-bright); font-weight: 700; }
.portal__text { color: var(--berry-soft); margin: 0.7rem 0 1.7rem; font-size: 1rem; font-weight: 600; }
.portal form { display: flex; flex-direction: column; gap: 1rem; text-align: left; }
.portal .field { margin: 0; }
.portal__foot { margin-top: 1.6rem; font-size: 0.92rem; color: var(--berry-soft); font-weight: 600; }
.portal__foot a { color: var(--pink); font-weight: 700; }
.portal__error {
  background: rgba(255, 26, 117, 0.1);
  border: 2px solid var(--pink);
  color: var(--pink-deep);
  border-radius: 14px;
  padding: 0.7rem 0.9rem; font-size: 0.95rem; font-weight: 600;
}
.backlink {
  display: inline-flex; align-items: center; gap: 0.35rem;
  font-family: var(--font-display); font-weight: 500; font-size: 0.95rem;
  color: var(--pink-deep);
}
.backlink:hover { color: var(--pink); }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  position: relative; z-index: 2;
  border-top: 2px solid var(--line);
  background: rgba(255, 235, 242, 0.6);
}
.footer__inner {
  width: min(100% - 3rem, var(--wrap));
  margin-inline: auto;
  padding: 1.8rem 0;
  display: flex; flex-wrap: wrap; gap: 0.4rem 2rem; align-items: center; justify-content: space-between;
  font-family: var(--font-display); font-weight: 400; font-size: 0.92rem; color: var(--berry-soft);
}
.footer__brand { color: var(--pink); font-weight: 500; }
.footer__meta { font-family: var(--font-hand); font-size: 1.25rem; color: var(--pink-deep); }

/* ==========================================================================
   Reveal-on-scroll (progressive enhancement)
   ========================================================================== */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .hearts-bg, .cursor-heart { display: none !important; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 720px) {
  body { font-size: 16px; }
  .masthead__inner { gap: 0.5rem; }
  .wordmark__sub { display: none; }
  .masthead__nav { gap: 0.15rem; }
  .navlink { padding: 0.4rem 0.6rem; font-size: 0.85rem; }
  .field-row { grid-template-columns: 1fr; }
  .timeline { padding-left: 2.1rem; }
  .moment::before { left: -2.1rem; }
  .lightbox__btn { width: 44px; height: 44px; }
  .footer__inner { justify-content: center; text-align: center; }
}
