/* ==========================================================================
   拾光 · 情侣小屋
   A warm editorial scrapbook for two.
   ========================================================================== */

:root {
  --paper: #f6f0e5;
  --paper-deep: #efe5d5;
  --paper-light: #fcf8f0;
  --ink: #2b231f;
  --ink-soft: #6e5f55;
  --ink-faint: #9b8a7d;
  --wine: #6d2632;
  --wine-deep: #4c1924;
  --wine-soft: #8a3a46;
  --coral: #d96d5c;
  --coral-soft: #e8a494;
  --blush: #edcbbf;
  --blush-light: #f3ded4;
  --sage: #7a886a;
  --sage-deep: #4d5b4d;
  --forest: #202821;
  --forest-soft: #28332a;
  --cream: #f8f0e1;
  --line: rgba(58, 39, 29, 0.14);
  --line-light: rgba(248, 240, 225, 0.18);
  --shadow-soft: 0 24px 70px rgba(63, 39, 29, 0.12);
  --shadow-card: 0 18px 44px rgba(63, 39, 29, 0.1);
  --display: "Bodoni 72", Didot, "Iowan Old Style", "Palatino Linotype", "Songti SC", "STSong", "SimSun", Georgia, serif;
  --serif: "Songti SC", "STSong", "Noto Serif SC", "SimSun", Georgia, serif;
  --sans: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --hand: "Kaiti SC", "KaiTi", "STKaiti", "Segoe Script", cursive;
  --nav-h: 86px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 8% 4%, rgba(232, 164, 148, 0.2), transparent 34rem),
    radial-gradient(circle at 92% 22%, rgba(167, 178, 145, 0.14), transparent 32rem),
    var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.modal-open { overflow: hidden; }
body.editor-active { padding-bottom: 108px; }

::selection { background: var(--wine); color: var(--cream); }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--coral);
  outline-offset: 3px;
}
button:disabled { cursor: not-allowed; opacity: 0.55; }
h1, h2, h3, p, figure, blockquote { margin: 0; }
em { font-style: normal; }
[hidden] { display: none !important; }

.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

svg {
  display: block;
  width: 1em;
  height: 1em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.skip-link {
  position: fixed;
  left: 18px;
  top: -80px;
  z-index: 12000;
  background: var(--wine);
  color: var(--cream);
  padding: 10px 18px;
  border-radius: 8px;
  transition: top 0.2s;
}
.skip-link:focus { top: 18px; }

/* Paper grain & ambient overlays ------------------------------------------ */
.paper-grain {
  position: fixed;
  inset: 0;
  z-index: 8500;
  pointer-events: none;
  opacity: 0.5;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.17'/%3E%3C/svg%3E");
  background-size: 160px 160px;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0;
  z-index: 9000;
  background: linear-gradient(90deg, var(--coral), var(--wine));
}

/* Loader ------------------------------------------------------------------ */
.page-loader {
  position: fixed;
  inset: 0;
  z-index: 10001;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  background:
    radial-gradient(circle at 50% 42%, rgba(229, 176, 158, 0.26), transparent 22rem),
    var(--paper);
  transition: opacity 0.7s var(--ease), visibility 0.7s;
}
.page-loader.is-hidden { opacity: 0; visibility: hidden; }
.loader-mark { position: relative; width: 86px; height: 86px; }
.loader-flower {
  width: 86px;
  height: 86px;
  color: var(--wine);
  stroke-width: 0.9;
  animation: spinSlow 16s linear infinite;
}
.loader-heart {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}
.loader-heart svg {
  width: 24px;
  height: 24px;
  fill: var(--coral);
  stroke: none;
  animation: heartbeat 1.6s ease-in-out infinite;
}
.page-loader p {
  font-family: var(--hand);
  font-size: 16px;
  color: var(--ink-soft);
  letter-spacing: 0.08em;
}
.loader-line {
  width: 110px;
  height: 1px;
  background: var(--line);
  overflow: hidden;
}
.loader-line i {
  display: block;
  width: 40%;
  height: 100%;
  background: var(--wine);
  animation: loaderSweep 1.4s ease-in-out infinite;
}

/* Topbar ------------------------------------------------------------------ */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 7000;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 44px;
  transition: height 0.35s var(--ease), background 0.35s, border-color 0.35s, backdrop-filter 0.35s;
  border-bottom: 1px solid transparent;
}
.topbar.scrolled {
  height: 72px;
  background: rgba(246, 240, 229, 0.84);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  backdrop-filter: blur(18px) saturate(1.2);
  border-bottom-color: rgba(58, 39, 29, 0.1);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex-shrink: 0;
}
.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(109, 38, 50, 0.28);
  border-radius: 50%;
  color: var(--wine);
  background: rgba(252, 248, 240, 0.5);
}
.brand-mark svg { width: 21px; height: 21px; stroke-width: 1.15; }
.brand-copy { display: flex; flex-direction: column; line-height: 1; }
.brand-copy strong {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--wine-deep);
}
.brand-copy small {
  margin-top: 6px;
  font-family: var(--sans);
  font-size: 7px;
  letter-spacing: 0.28em;
  color: var(--ink-faint);
}
.main-nav {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 34px;
}
.main-nav a {
  position: relative;
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--ink-soft);
  padding: 8px 0;
  transition: color 0.25s;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 1px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--coral);
  transform: translateX(-50%) scale(0);
  transition: transform 0.3s var(--ease);
}
.main-nav a:hover, .main-nav a.active { color: var(--wine); }
.main-nav a:hover::after, .main-nav a.active::after { transform: translateX(-50%) scale(1); }
.topbar-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.icon-text-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 40px;
  padding: 0 16px;
  border: 1px solid rgba(58, 39, 29, 0.16);
  border-radius: 999px;
  background: rgba(252, 248, 240, 0.42);
  color: var(--ink-soft);
  font-size: 12px;
  letter-spacing: 0.08em;
  transition: 0.3s var(--ease);
}
.icon-text-btn svg { width: 15px; height: 15px; }
.icon-text-btn:hover { border-color: var(--wine); color: var(--wine); transform: translateY(-1px); }
.edit-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 40px;
  padding: 0 18px;
  border: 1px solid var(--wine);
  border-radius: 999px;
  background: var(--wine);
  color: var(--cream);
  font-size: 12px;
  letter-spacing: 0.08em;
  box-shadow: 0 8px 24px rgba(109, 38, 50, 0.18);
  transition: 0.3s var(--ease);
}
.edit-btn svg { width: 14px; height: 14px; }
.edit-btn:hover { background: var(--wine-deep); transform: translateY(-1px); }
.edit-btn.is-editor { background: transparent; color: var(--wine); }
.edit-btn.is-editor svg { fill: var(--wine); stroke: none; }

/* Buttons & shared UI ----------------------------------------------------- */
.primary-link {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  height: 54px;
  padding: 0 8px 0 24px;
  border-radius: 999px;
  background: var(--wine);
  color: var(--cream);
  font-size: 13px;
  letter-spacing: 0.08em;
  box-shadow: 0 15px 38px rgba(109, 38, 50, 0.2);
  transition: 0.35s var(--ease);
}
.primary-link:hover { transform: translateY(-2px); box-shadow: 0 20px 46px rgba(109, 38, 50, 0.26); }
.link-orb {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(248, 240, 225, 0.13);
  transition: transform 0.35s var(--ease), background 0.35s;
}
.link-orb svg { width: 17px; height: 17px; }
.primary-link:hover .link-orb { transform: translateX(3px); background: rgba(248, 240, 225, 0.22); }
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  background: transparent;
  color: var(--ink-soft);
  padding: 8px 0;
  font-size: 13px;
  letter-spacing: 0.04em;
  transition: color 0.25s;
}
.text-link svg { width: 15px; height: 15px; }
.text-link:hover { color: var(--wine); }
.text-link.small { font-size: 12px; }
.cream-btn, .wine-btn, .outline-btn, .outline-cream-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 13px;
  letter-spacing: 0.05em;
  transition: 0.3s var(--ease);
  white-space: nowrap;
}
.cream-btn { background: var(--cream); color: var(--wine-deep); }
.cream-btn:hover { background: #fffaf0; transform: translateY(-2px); }
.wine-btn { background: var(--wine); color: var(--cream); box-shadow: 0 10px 26px rgba(109, 38, 50, 0.18); }
.wine-btn:hover { background: var(--wine-deep); transform: translateY(-2px); }
.wine-btn.danger { background: #9a3b3b; }
.outline-btn {
  background: transparent;
  border-color: rgba(58, 39, 29, 0.22);
  color: var(--ink);
}
.outline-btn:hover { border-color: var(--wine); color: var(--wine); }
.outline-cream-btn {
  background: transparent;
  border-color: rgba(248, 240, 225, 0.35);
  color: var(--cream);
}
.outline-cream-btn:hover { background: rgba(248, 240, 225, 0.1); }
.cream-btn svg, .wine-btn svg, .outline-btn svg, .outline-cream-btn svg { width: 16px; height: 16px; }
.full { width: 100%; }
.danger-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 0;
  background: transparent;
  padding: 4px 0;
  color: #9a3b3b;
  font-size: 12px;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: rgba(154, 59, 59, 0.35);
}
.danger-link svg { width: 14px; height: 14px; }
.danger-link:hover { color: #7a2020; }

.icon-text-btn svg, .edit-btn svg, .primary-link svg, .text-link svg { flex-shrink: 0; }

/* Hero -------------------------------------------------------------------- */
.hero {
  position: relative;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  min-height: 100svh;
  padding: calc(var(--nav-h) + 26px) 54px 28px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.hero-deco {
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(1px);
  opacity: 0.6;
}
.hero-deco-a {
  width: 560px;
  height: 560px;
  right: -160px;
  top: 40px;
  background: radial-gradient(circle, rgba(233, 179, 160, 0.24), transparent 66%);
}
.hero-deco-b {
  width: 420px;
  height: 420px;
  left: -200px;
  bottom: 40px;
  background: radial-gradient(circle, rgba(167, 178, 145, 0.18), transparent 68%);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(410px, 0.9fr);
  align-items: center;
  gap: 34px;
  flex: 1;
  min-height: 430px;
  position: relative;
  z-index: 1;
}
.hero-copy { position: relative; z-index: 2; }
.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink-faint);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.hero-eyebrow { margin-bottom: 22px; }
.eyebrow-line { width: 34px; height: 1px; background: var(--coral); opacity: 0.6; }
.eyebrow-dot { width: 3px; height: 3px; border-radius: 50%; background: var(--ink-faint); }
.hero-title {
  display: flex;
  align-items: baseline;
  flex-wrap: nowrap;
  gap: clamp(10px, 1.4vw, 22px);
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(66px, 7.7vw, 108px);
  line-height: 0.98;
  letter-spacing: 0.015em;
  color: var(--wine-deep);
  white-space: nowrap;
}
.hero-title .amp {
  font-family: var(--display);
  font-style: italic;
  font-size: 0.53em;
  color: var(--coral);
  transform: translateY(-0.16em);
  display: inline-block;
}
.hero-tagline {
  max-width: 440px;
  margin-top: 24px;
  font-family: var(--serif);
  font-size: clamp(16px, 1.35vw, 19px);
  line-height: 1.9;
  color: var(--ink-soft);
  letter-spacing: 0.035em;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-top: 32px;
}
.hero-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 29px;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--ink-faint);
}
.hero-meta-item { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.hero-meta-item b { color: var(--ink-soft); font-weight: 600; }
.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #7f9a72;
  box-shadow: 0 0 0 4px rgba(127, 154, 114, 0.12);
  animation: softPulse 2.6s ease-in-out infinite;
}
.meta-divider { width: 1px; height: 11px; background: var(--line); }

/* Hero art ---------------------------------------------------------------- */
.hero-art {
  position: relative;
  height: 476px;
  min-height: 420px;
  transform-style: preserve-3d;
  will-change: transform;
}
.art-halo {
  position: absolute;
  left: 12%;
  top: 6%;
  width: 78%;
  height: 88%;
  border-radius: 46% 54% 50% 50%;
  background:
    radial-gradient(circle at 42% 35%, rgba(237, 203, 191, 0.62), transparent 58%),
    radial-gradient(circle at 65% 70%, rgba(167, 178, 145, 0.25), transparent 55%);
  filter: blur(7px);
}
.art-botanical {
  position: absolute;
  z-index: 1;
  color: var(--sage);
  opacity: 0.7;
}
.art-botanical-a {
  width: 170px;
  height: 250px;
  right: -8px;
  bottom: -10px;
  transform: rotate(8deg);
}
.art-star { position: absolute; color: var(--coral); opacity: 0.72; }
.art-star-a { width: 21px; height: 21px; top: 18px; left: 3%; }
.art-star-b { width: 12px; height: 12px; bottom: 22%; left: 16%; opacity: 0.45; }
.cover-frame {
  position: absolute;
  z-index: 2;
  left: 8%;
  top: 1%;
  width: 63%;
  max-width: 372px;
  padding: 11px 11px 0;
  background: #fbf6eb;
  border-radius: 190px 190px 6px 6px;
  box-shadow: 0 30px 70px rgba(72, 43, 33, 0.18), 0 2px 0 rgba(255, 255, 255, 0.5) inset;
  transform: rotate(-2.4deg);
  transition: transform 0.7s var(--ease), box-shadow 0.7s var(--ease);
}
.cover-frame:hover { transform: rotate(-1.2deg) translateY(-5px); box-shadow: 0 38px 80px rgba(72, 43, 33, 0.22); }
.tape {
  position: absolute;
  width: 74px;
  height: 21px;
  background: rgba(217, 190, 158, 0.62);
  box-shadow: 0 1px 3px rgba(58, 39, 29, 0.08);
  -webkit-backdrop-filter: blur(1px);
  backdrop-filter: blur(1px);
  z-index: 4;
}
.tape-left { left: -24px; top: 86px; transform: rotate(-43deg); }
.tape-right { right: -24px; top: 86px; transform: rotate(43deg); }
.cover-window {
  position: relative;
  height: 348px;
  border-radius: 182px 182px 2px 2px;
  overflow: hidden;
  background: var(--paper-deep);
}
.cover-window img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}
.cover-frame:hover .cover-window img { transform: scale(1.035); }
.cover-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(30, 24, 20, 0.1), transparent 34%, transparent 72%, rgba(30, 24, 20, 0.22));
  pointer-events: none;
}
.cover-stamp {
  position: absolute;
  top: 22px;
  right: 20px;
  writing-mode: vertical-rl;
  font-size: 8px;
  letter-spacing: 0.18em;
  color: rgba(255, 248, 236, 0.75);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}
.cover-stamp b { font-weight: 500; }
.cover-corner {
  position: absolute;
  left: 18px;
  bottom: 16px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 248, 236, 0.38);
  border-radius: 50%;
  color: var(--cream);
}
.cover-corner svg { width: 12px; height: 12px; fill: currentColor; stroke: none; }
.cover-frame figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 8px 15px;
}
.cover-caption { font-family: var(--hand); font-size: 15px; color: var(--wine); }
.cover-date { font-size: 8px; letter-spacing: 0.14em; color: var(--ink-faint); white-space: nowrap; }

.side-polaroid {
  position: absolute;
  z-index: 3;
  right: 1%;
  bottom: 1%;
  width: 172px;
  padding: 9px 9px 0;
  background: #fbf6eb;
  box-shadow: 0 22px 54px rgba(72, 43, 33, 0.2);
  transform: rotate(6.2deg);
  transition: transform 0.7s var(--ease);
}
.side-polaroid:hover { transform: rotate(3deg) translateY(-5px); }
.mini-tape {
  position: absolute;
  top: -12px;
  left: 50%;
  width: 58px;
  height: 22px;
  background: rgba(219, 198, 170, 0.66);
  transform: translateX(-50%) rotate(-3deg);
  z-index: 2;
}
.side-photo { height: 148px; overflow: hidden; background: var(--paper-deep); }
.side-photo img { width: 100%; height: 100%; object-fit: cover; }
.side-polaroid figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 4px 12px;
  font-family: var(--hand);
  font-size: 13px;
  color: var(--ink-soft);
}
.side-polaroid figcaption svg { width: 11px; height: 11px; fill: var(--coral); stroke: none; }
.orbit-badge {
  position: absolute;
  z-index: 4;
  top: -8px;
  right: 1%;
  width: 108px;
  height: 108px;
  display: grid;
  place-items: center;
  color: var(--wine);
  border-radius: 50%;
  background: rgba(246, 240, 229, 0.48);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.orbit-ring { position: absolute; inset: 0; width: 100%; height: 100%; animation: spinSlow 28s linear infinite; }
.orbit-ring text {
  font-family: var(--sans);
  font-size: 8px;
  letter-spacing: 0.16em;
  fill: var(--wine);
  stroke: none;
}
.orbit-heart {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(109, 38, 50, 0.22);
  border-radius: 50%;
}
.orbit-heart svg { width: 14px; height: 14px; fill: var(--coral); stroke: none; }
.art-note {
  position: absolute;
  z-index: 1;
  left: 2%;
  bottom: 3%;
  font-family: var(--hand);
  font-size: 15px;
  letter-spacing: 0.06em;
  color: var(--wine-soft);
  transform: rotate(-7deg);
  opacity: 0.78;
}

/* Timers ------------------------------------------------------------------ */
.hero-timers {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 26px;
}
.timer-card {
  position: relative;
  overflow: hidden;
  min-height: 182px;
  padding: 20px 28px 18px;
  border-radius: 22px;
  display: flex;
  flex-direction: column;
  isolation: isolate;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.timer-card:hover { transform: translateY(-3px); }
.timer-crush {
  background:
    radial-gradient(circle at 92% 8%, rgba(255, 250, 240, 0.6), transparent 16rem),
    linear-gradient(128deg, #f0d7c9 0%, #e8c3b3 54%, #e5b9a8 100%);
  box-shadow: 0 22px 54px rgba(131, 77, 60, 0.14);
  color: var(--wine-deep);
}
.timer-together {
  background:
    radial-gradient(circle at 92% 12%, rgba(226, 185, 146, 0.15), transparent 16rem),
    linear-gradient(128deg, #61242e 0%, #541e29 58%, #431620 100%);
  box-shadow: 0 22px 54px rgba(67, 22, 32, 0.28);
  color: var(--cream);
}
.timer-top {
  display: flex;
  align-items: center;
  gap: 11px;
  position: relative;
  z-index: 2;
}
.timer-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(109, 38, 50, 0.22);
  color: var(--wine);
}
.timer-together .timer-icon { border-color: rgba(248, 240, 225, 0.25); color: var(--blush); }
.timer-icon svg { width: 15px; height: 15px; }
.timer-crush .timer-icon svg { fill: rgba(109, 38, 50, 0.1); }
.timer-together .timer-icon svg { fill: rgba(237, 203, 191, 0.18); }
.timer-label { display: flex; flex-direction: column; line-height: 1.3; }
.timer-label > span { font-size: 13px; font-weight: 600; letter-spacing: 0.06em; }
.timer-label small { margin-top: 4px; font-size: 9px; letter-spacing: 0.12em; opacity: 0.62; }
.mini-edit {
  margin-left: auto;
  width: 30px;
  height: 30px;
  border: 1px solid currentColor;
  border-radius: 50%;
  background: transparent;
  color: inherit;
  opacity: 0.45;
  display: none;
  place-items: center;
  transition: opacity 0.25s, transform 0.25s;
}
.mini-edit svg { width: 13px; height: 13px; }
.mini-edit:hover { opacity: 0.9; transform: rotate(-8deg); }
body.is-editor .mini-edit { display: grid; }
.timer-main {
  display: flex;
  align-items: baseline;
  gap: 18px;
  margin-top: 17px;
  position: relative;
  z-index: 2;
}
.timer-days {
  display: flex;
  align-items: baseline;
  gap: 6px;
  line-height: 0.86;
  font-variant-numeric: tabular-nums;
}
.timer-days span {
  font-family: var(--display);
  font-size: clamp(54px, 5vw, 72px);
  font-weight: 400;
  letter-spacing: -0.025em;
}
.timer-days em {
  font-family: var(--serif);
  font-size: 13px;
  letter-spacing: 0.1em;
  opacity: 0.65;
}
.timer-clock {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.12em;
  opacity: 0.62;
  font-variant-numeric: tabular-nums;
}
.timer-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid rgba(109, 38, 50, 0.15);
  font-size: 10px;
  letter-spacing: 0.05em;
  position: relative;
  z-index: 2;
  opacity: 0.82;
}
.timer-together .timer-foot { border-top-color: rgba(248, 240, 225, 0.16); }
.timer-together.is-waiting {
  background:
    radial-gradient(circle at 88% 14%, rgba(237, 203, 191, 0.16), transparent 16rem),
    linear-gradient(128deg, #632832 0%, #4f1c27 58%, #3d151f 100%);
}
.timer-together.is-waiting .timer-clock { display: none; }
.timer-together.is-waiting .timer-days span {
  font-size: clamp(66px, 6vw, 84px);
  line-height: 0.82;
  color: var(--blush);
}
.timer-together.is-waiting .timer-days em {
  font-family: var(--hand);
  font-size: 16px;
  letter-spacing: 0.06em;
  opacity: 0.65;
}
.timer-together.is-waiting .timer-watermark { opacity: 0.08; }
.waiting-copy {
  max-width: 310px;
  margin-left: auto;
  font-family: var(--hand);
  font-size: 14px;
  line-height: 1.7;
  letter-spacing: 0.03em;
  color: rgba(248, 240, 225, 0.66);
  text-align: right;
}
.foot-label { display: inline-flex; align-items: center; gap: 7px; min-width: 0; }
.foot-label i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.7;
  animation: softPulse 2.2s ease-in-out infinite;
  flex-shrink: 0;
}
.timer-foot b { font-weight: 600; }
.timer-watermark {
  position: absolute;
  z-index: 0;
  right: 16px;
  bottom: -22px;
  font-family: var(--display);
  font-style: italic;
  font-size: 88px;
  line-height: 1;
  letter-spacing: -0.04em;
  opacity: 0.055;
  pointer-events: none;
  white-space: nowrap;
}
.love-note {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding-top: 1px;
  font-family: var(--hand);
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  text-align: center;
}
.love-note svg { width: 13px; height: 13px; color: var(--coral); flex-shrink: 0; }

/* Photo section ----------------------------------------------------------- */
.photo-section {
  position: relative;
  margin-top: 20px;
  padding: 94px 0 66px;
  background:
    radial-gradient(circle at 85% 8%, rgba(197, 147, 106, 0.12), transparent 26rem),
    radial-gradient(circle at 8% 78%, rgba(122, 136, 106, 0.12), transparent 28rem),
    var(--forest);
  color: var(--cream);
  border-radius: 44px 44px 0 0;
  overflow: hidden;
}
.photo-glow {
  position: absolute;
  width: 620px;
  height: 620px;
  right: -240px;
  top: 40px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(217, 109, 92, 0.14), transparent 65%);
  pointer-events: none;
}
.section-inner { width: 100%; max-width: 1360px; margin: 0 auto; padding: 0 46px; position: relative; z-index: 1; }
.section-label {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink-faint);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}
.section-label.light { color: rgba(248, 240, 225, 0.46); }
.section-no {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 8px;
  letter-spacing: 0;
}
.photo-heading {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 40px;
}
.section-title {
  margin-top: 22px;
  font-family: var(--display);
  font-size: clamp(44px, 4.7vw, 64px);
  font-weight: 400;
  line-height: 1.14;
  letter-spacing: 0.01em;
  color: var(--ink);
}
.section-title.light { color: var(--cream); }
.section-title em { font-family: var(--hand); font-size: 0.92em; color: var(--wine); letter-spacing: 0.01em; }
.section-title.light em { color: var(--blush); }
.section-desc {
  margin-top: 20px;
  font-family: var(--serif);
  font-size: 15px;
  line-height: 1.9;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
}
.section-desc.light { color: rgba(248, 240, 225, 0.52); }
.photo-heading-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 20px;
  padding-bottom: 10px;
}
.photo-count { font-size: 11px; letter-spacing: 0.08em; color: rgba(248, 240, 225, 0.48); }
.photo-count b { font-family: var(--display); font-size: 20px; font-weight: 400; color: var(--blush); margin-right: 2px; }
.upload-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 42px;
  padding: 0 18px;
  border: 1px solid rgba(248, 240, 225, 0.26);
  border-radius: 999px;
  background: rgba(248, 240, 225, 0.07);
  color: var(--cream);
  font-size: 11px;
  letter-spacing: 0.06em;
  transition: 0.3s var(--ease);
}
.upload-btn svg { width: 14px; height: 14px; }
.upload-btn:hover { background: var(--cream); color: var(--forest); border-color: var(--cream); }
body:not(.is-editor) .upload-btn { opacity: 0.55; }

.gallery-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 48px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line-light);
}
.view-switch {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(248, 240, 225, 0.14);
  border-radius: 999px;
  background: rgba(248, 240, 225, 0.04);
}
.view-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 38px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(248, 240, 225, 0.5);
  font-size: 11px;
  letter-spacing: 0.05em;
  transition: 0.3s var(--ease);
}
.view-btn svg { width: 14px; height: 14px; }
.view-btn:hover { color: var(--cream); }
.view-btn.active {
  background: var(--blush);
  color: var(--wine-deep);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.14);
}
.gallery-aside { display: flex; align-items: center; gap: 20px; }
.pause-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  background: transparent;
  color: rgba(248, 240, 225, 0.52);
  font-size: 10px;
  letter-spacing: 0.08em;
  transition: color 0.25s;
}
.pause-btn svg { width: 12px; height: 12px; }
.pause-btn:hover { color: var(--cream); }
.pause-btn[hidden] { display: none; }
.gallery-hint { font-family: var(--hand); font-size: 12px; color: rgba(248, 240, 225, 0.32); letter-spacing: 0.03em; }

.gallery-stage { position: relative; margin-top: 26px; min-height: 540px; }
.gallery-view { width: 100%; }
.gallery-footer-note {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 28px;
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(248, 240, 225, 0.32);
}
.gallery-footer-line { flex: 1; height: 1px; background: var(--line-light); }

/* Film view --------------------------------------------------------------- */
.film-view { position: relative; padding: 3px 0; }
.film-row {
  position: relative;
  overflow: hidden;
  padding: 12px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}
.film-row + .film-row { margin-top: 8px; }
.marquee {
  display: flex;
  width: max-content;
  animation: marqueeLeft var(--marquee-duration, 54s) linear infinite;
  will-change: transform;
}
.film-row.reverse .marquee { animation-direction: reverse; }
.film-view.paused .marquee { animation-play-state: paused; }
.film-row:hover .marquee { animation-play-state: paused; }
.film-set { display: flex; flex-shrink: 0; }
.film-card {
  position: relative;
  width: 286px;
  flex-shrink: 0;
  margin-right: 16px;
  padding: 0;
  border: 0;
  background: #111612;
  border-radius: 5px;
  text-align: left;
  color: var(--cream);
  overflow: hidden;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.18);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.film-card:hover { transform: translateY(-4px); box-shadow: 0 26px 50px rgba(0, 0, 0, 0.28); }
.film-card::before, .film-card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 11px;
  z-index: 3;
  background-image: radial-gradient(circle at 6px 5.5px, rgba(235, 225, 208, 0.7) 2.1px, transparent 2.7px);
  background-size: 23px 11px;
  opacity: 0.5;
  pointer-events: none;
}
.film-card::before { top: 0; }
.film-card::after { bottom: 0; }
.film-photo {
  position: relative;
  height: 198px;
  margin: 12px 12px 0;
  overflow: hidden;
  border-radius: 2px;
  background: var(--forest-soft);
}
.film-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.film-card:hover .film-photo img { transform: scale(1.05); }
.film-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 62%, rgba(12, 18, 14, 0.34));
}
.film-caption {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px 18px;
  min-height: 50px;
}
.film-index {
  font-family: var(--display);
  font-style: italic;
  font-size: 13px;
  color: var(--blush);
  opacity: 0.8;
  min-width: 20px;
}
.film-caption span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: var(--serif);
  font-size: 12px;
  color: rgba(248, 240, 225, 0.74);
  letter-spacing: 0.02em;
}
.film-caption svg { width: 11px; height: 11px; margin-left: auto; color: var(--blush); opacity: 0; transition: opacity 0.3s; }
.film-card:hover .film-caption svg { opacity: 0.7; }
.film-empty { padding: 80px 20px; text-align: center; color: rgba(248, 240, 225, 0.55); }

/* Polaroid view ----------------------------------------------------------- */
.polaroid-view { position: relative; }
.polaroid-stage {
  position: relative;
  height: 540px;
  perspective: 1200px;
  perspective-origin: 50% 43%;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.polaroid-stage::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 760px;
  height: 480px;
  transform: translate(-50%, -45%);
  background: radial-gradient(ellipse, rgba(237, 203, 191, 0.09), transparent 62%);
  pointer-events: none;
}
.polaroid-card {
  position: absolute;
  left: 50%;
  top: 49%;
  width: 258px;
  padding: 13px 13px 0;
  border: 0;
  background: #f9f2e4;
  color: var(--ink);
  box-shadow: 0 28px 65px rgba(0, 0, 0, 0.3);
  transform-origin: 50% 55%;
  transition: transform 0.7s var(--ease), opacity 0.45s var(--ease), filter 0.45s var(--ease);
  cursor: pointer;
  text-align: left;
  z-index: 1;
}
.polaroid-card::before {
  content: "";
  position: absolute;
  top: -13px;
  left: 50%;
  width: 66px;
  height: 24px;
  transform: translateX(-50%) rotate(-2deg);
  background: rgba(215, 195, 166, 0.7);
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 3;
}
.polaroid-card.is-active::before { opacity: 1; }
.polaroid-card.is-active { cursor: zoom-in; }
.polaroid-card:not(.is-active) { filter: brightness(0.72) saturate(0.75); }
.polaroid-photo { height: 272px; overflow: hidden; background: #d9cfc0; }
.polaroid-photo img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.polaroid-copy { padding: 13px 4px 16px; min-height: 66px; }
.polaroid-copy p {
  font-family: var(--hand);
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.polaroid-copy span {
  display: block;
  margin-top: 5px;
  font-size: 8px;
  letter-spacing: 0.16em;
  color: var(--ink-faint);
}
.polaroid-card .polaroid-heart {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 11px;
  height: 11px;
  color: var(--coral);
  opacity: 0.65;
}
.polaroid-card .polaroid-heart svg { fill: currentColor; stroke: none; width: 100%; height: 100%; }
.polaroid-controls {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 8px;
}
.polaroid-arrow {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(248, 240, 225, 0.2);
  border-radius: 50%;
  background: transparent;
  color: var(--cream);
  transition: 0.25s var(--ease);
}
.polaroid-arrow svg { width: 16px; height: 16px; }
.polaroid-arrow:hover { background: var(--cream); color: var(--forest); }
.polaroid-counter {
  min-width: 78px;
  text-align: center;
  font-family: var(--display);
  font-size: 15px;
  letter-spacing: 0.12em;
  color: var(--blush);
}
.polaroid-counter small { font-family: var(--sans); font-size: 8px; letter-spacing: 0.1em; color: rgba(248, 240, 225, 0.4); display: block; margin-top: 2px; }
.polaroid-drag-note { text-align: center; margin-top: 14px; font-size: 9px; letter-spacing: 0.08em; color: rgba(248, 240, 225, 0.3); }

/* Mosaic view ------------------------------------------------------------- */
.mosaic-view { columns: 3; column-gap: 16px; }
.mosaic-item {
  position: relative;
  display: block;
  width: 100%;
  margin: 0 0 16px;
  padding: 0;
  border: 0;
  break-inside: avoid;
  overflow: hidden;
  border-radius: 4px;
  background: var(--forest-soft);
  color: var(--cream);
  text-align: left;
  box-shadow: 0 15px 38px rgba(0, 0, 0, 0.15);
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}
.mosaic-item:hover { transform: translateY(-4px); box-shadow: 0 24px 50px rgba(0, 0, 0, 0.25); }
.mosaic-item img { width: 100%; height: auto; transition: transform 0.8s var(--ease), filter 0.5s; }
.mosaic-item:hover img { transform: scale(1.035); }
.mosaic-overlay {
  position: absolute;
  inset: auto 0 0;
  padding: 44px 18px 15px;
  background: linear-gradient(transparent, rgba(10, 14, 11, 0.76));
  opacity: 0;
  transform: translateY(8px);
  transition: 0.4s var(--ease);
}
.mosaic-item:hover .mosaic-overlay { opacity: 1; transform: translateY(0); }
.mosaic-overlay p { font-family: var(--serif); font-size: 13px; line-height: 1.5; }
.mosaic-overlay span { display: block; margin-top: 4px; font-size: 8px; letter-spacing: 0.14em; color: rgba(248, 240, 225, 0.55); }
.mosaic-quote {
  break-inside: avoid;
  margin-bottom: 16px;
  padding: 30px 24px;
  border-radius: 4px;
  background: var(--blush);
  color: var(--wine-deep);
}
.mosaic-quote svg { width: 22px; height: 22px; color: var(--wine); opacity: 0.6; margin-bottom: 16px; }
.mosaic-quote p {
  font-family: var(--hand);
  font-size: 23px;
  line-height: 1.6;
  letter-spacing: 0.02em;
}
.mosaic-quote span { display: block; margin-top: 18px; font-size: 8px; letter-spacing: 0.18em; color: rgba(76, 25, 36, 0.55); }
.mosaic-count { display: block; break-inside: avoid; margin-bottom: 16px; padding: 12px 2px; font-size: 9px; letter-spacing: 0.14em; color: rgba(248, 240, 225, 0.34); }

/* Starry all-photos view ------------------------------------------------ */
.stars-view {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 34px 30px 26px;
  border: 1px solid rgba(248, 240, 225, 0.12);
  border-radius: 26px;
  background:
    radial-gradient(ellipse at 18% 12%, rgba(83, 108, 145, 0.26), transparent 33rem),
    radial-gradient(ellipse at 84% 68%, rgba(125, 68, 81, 0.18), transparent 30rem),
    linear-gradient(180deg, #0b1420 0%, #0a111a 48%, #101922 100%);
  box-shadow: inset 0 0 90px rgba(0, 0, 0, 0.54);
}
.sky-stars { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.sky-star {
  position: absolute;
  width: var(--star-size);
  height: var(--star-size);
  border-radius: 50%;
  background: #f7e9c8;
  box-shadow: 0 0 6px rgba(247, 225, 181, 0.75);
  opacity: 0.4;
  animation: skyTwinkle var(--star-duration) ease-in-out infinite;
  animation-delay: var(--star-delay);
}
.sky-star:nth-child(7n) { background: #c7dce6; box-shadow: 0 0 7px rgba(181, 215, 228, 0.6); }
.sky-star.is-bright { box-shadow: 0 0 12px 2px rgba(247, 225, 181, 0.55); }
.sky-nebula {
  position: absolute;
  z-index: 0;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(50px);
}
.sky-nebula-a {
  width: 480px;
  height: 320px;
  left: -120px;
  top: 140px;
  background: rgba(63, 93, 128, 0.2);
  transform: rotate(-25deg);
}
.sky-nebula-b {
  width: 520px;
  height: 300px;
  right: -160px;
  bottom: 160px;
  background: rgba(119, 59, 74, 0.18);
  transform: rotate(18deg);
}
.sky-shooting-star {
  position: absolute;
  top: 15%;
  left: 64%;
  width: 130px;
  height: 1px;
  opacity: 0;
  transform: rotate(142deg);
  transform-origin: left center;
  background: linear-gradient(90deg, rgba(248, 236, 207, 0.9), transparent);
  box-shadow: 0 0 8px rgba(248, 236, 207, 0.55);
  animation: skyShoot 13s ease-in infinite 4s;
}
.sky-header {
  position: relative;
  z-index: 2;
  max-width: 700px;
  margin: 0 auto;
  padding: 12px 0 6px;
  text-align: center;
}
.sky-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 8px;
  letter-spacing: 0.24em;
  color: rgba(248, 240, 225, 0.38);
}
.sky-eyebrow::before, .sky-eyebrow::after {
  content: "";
  width: 24px;
  height: 1px;
  background: rgba(237, 203, 191, 0.25);
}
.sky-header h3 {
  margin-top: 14px;
  font-family: var(--display);
  font-size: clamp(30px, 3.2vw, 42px);
  font-weight: 400;
  line-height: 1.35;
  color: var(--cream);
  letter-spacing: 0.02em;
}
.sky-header h3 em { font-family: var(--hand); color: var(--blush); }
.sky-header p {
  margin-top: 8px;
  font-family: var(--serif);
  font-size: 12px;
  line-height: 1.8;
  color: rgba(248, 240, 225, 0.45);
}
.sky-constellation {
  position: relative;
  z-index: 2;
  max-width: 1040px;
  margin: 22px auto 0;
  padding: 18px 18px 20px;
  border-top: 1px solid rgba(248, 240, 225, 0.08);
  border-bottom: 1px solid rgba(248, 240, 225, 0.08);
  background: radial-gradient(ellipse at 50% 40%, rgba(237, 203, 191, 0.04), transparent 70%);
}
.sky-band-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 8px;
  letter-spacing: 0.2em;
  color: rgba(248, 240, 225, 0.32);
}
.sky-band-label i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--blush);
  box-shadow: 0 0 8px rgba(237, 203, 191, 0.8);
}
.sky-words {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 18px;
  margin-top: 10px;
}
.sky-word {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  max-width: 380px;
  padding: 5px 9px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: rgba(248, 240, 225, 0.7);
  font-family: var(--hand);
  font-size: 15px;
  line-height: 1.55;
  letter-spacing: 0.02em;
  text-align: left;
  rotate: var(--word-tilt);
  animation: skyDrift 10s ease-in-out infinite;
  animation-delay: var(--word-delay);
  transition: color 0.3s, background 0.3s, rotate 0.4s var(--ease), text-shadow 0.3s;
}
.sky-word svg {
  width: 9px;
  height: 9px;
  flex-shrink: 0;
  color: var(--blush);
  opacity: 0.55;
  transition: opacity 0.3s, transform 0.3s;
}
.sky-word:hover {
  color: var(--cream);
  background: rgba(248, 240, 225, 0.05);
  rotate: 0deg;
  text-shadow: 0 0 18px rgba(237, 203, 191, 0.5);
}
.sky-word:hover svg { opacity: 1; transform: scale(1.25); }
.sky-cloud-head {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 1120px;
  margin: 30px auto 15px;
  padding: 0 3px;
  font-size: 8px;
  letter-spacing: 0.16em;
  color: rgba(248, 240, 225, 0.32);
  text-transform: uppercase;
}
.sky-cloud-head span:last-child { color: rgba(237, 203, 191, 0.45); }
.sky-collage {
  position: relative;
  z-index: 2;
  columns: 3;
  column-gap: 20px;
  max-width: 1120px;
  margin: 0 auto;
}
.sky-photo {
  position: relative;
  display: inline-block;
  width: 100%;
  margin: 0 0 22px;
  padding: 0;
  break-inside: avoid;
  border: 0;
  background: transparent;
  color: var(--cream);
  text-align: left;
  rotate: var(--photo-tilt);
  animation: skyFloat 10s ease-in-out infinite;
  animation-duration: calc(9s + var(--photo-delay));
  transition: rotate 0.55s var(--ease);
}
.sky-photo:nth-child(3n + 2) { margin-top: 28px; }
.sky-photo:nth-child(3n + 3) { margin-top: 9px; }
.sky-photo:hover { rotate: 0deg; z-index: 5; }
.sky-photo-frame {
  position: relative;
  display: block;
  overflow: hidden;
  border: 1px solid rgba(248, 240, 225, 0.14);
  border-radius: 9px;
  background: #0d1720;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.36), 0 0 30px rgba(105, 135, 158, 0.06);
  transition: border-color 0.4s, box-shadow 0.4s;
}
.sky-photo:hover .sky-photo-frame {
  border-color: rgba(237, 203, 191, 0.42);
  box-shadow: 0 26px 58px rgba(0, 0, 0, 0.46), 0 0 34px rgba(237, 203, 191, 0.14);
}
.sky-photo-frame img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 1s var(--ease), filter 0.5s;
}
.sky-photo:hover .sky-photo-frame img { transform: scale(1.025); filter: brightness(1.04); }
.sky-photo-arrow {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(248, 240, 225, 0.24);
  border-radius: 50%;
  background: rgba(9, 15, 21, 0.46);
  color: var(--cream);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.3s, transform 0.3s, background 0.3s;
}
.sky-photo-arrow svg { width: 12px; height: 12px; }
.sky-photo:hover .sky-photo-arrow { opacity: 1; transform: translateY(0); background: rgba(9, 15, 21, 0.72); }
.sky-photo-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 2px 0;
  font-size: 7px;
  letter-spacing: 0.13em;
  color: rgba(248, 240, 225, 0.3);
}
.sky-photo-meta span:first-child { color: rgba(237, 203, 191, 0.55); }
.sky-footer {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid rgba(248, 240, 225, 0.07);
  font-size: 8px;
  letter-spacing: 0.17em;
  color: rgba(248, 240, 225, 0.25);
  text-align: center;
}
.sky-footer i { width: 4px; height: 4px; border-radius: 50%; background: var(--blush); opacity: 0.55; }

@keyframes skyTwinkle {
  0%, 100% { opacity: 0.15; transform: scale(0.72); }
  50% { opacity: 0.9; transform: scale(1.15); }
}
@keyframes skyDrift {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}
@keyframes skyFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}
@keyframes skyShoot {
  0%, 82%, 100% { opacity: 0; transform: translate3d(0, 0, 0) rotate(142deg) scaleX(0.2); }
  85% { opacity: 0.9; transform: translate3d(0, 0, 0) rotate(142deg) scaleX(1); }
  92% { opacity: 0; transform: translate3d(-220px, 150px, 0) rotate(142deg) scaleX(0.2); }
}

/* Constellation view ----------------------------------------------------- */
.constellation-view {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 32px 28px 24px;
  border: 1px solid rgba(248, 240, 225, 0.12);
  border-radius: 26px;
  background:
    radial-gradient(ellipse at 50% 27%, rgba(64, 89, 121, 0.24), transparent 36rem),
    radial-gradient(ellipse at 82% 78%, rgba(119, 59, 74, 0.16), transparent 28rem),
    linear-gradient(180deg, #09121c 0%, #0a111a 48%, #0a0f17 100%);
  box-shadow: inset 0 0 96px rgba(0, 0, 0, 0.52);
}
.constellation-header {
  position: relative;
  z-index: 2;
  max-width: 710px;
  margin: 0 auto;
  padding: 8px 0 2px;
  text-align: center;
}
.constellation-header h3 {
  margin-top: 14px;
  font-family: var(--display);
  font-size: clamp(30px, 3.2vw, 42px);
  font-weight: 400;
  line-height: 1.35;
  color: var(--cream);
  letter-spacing: 0.02em;
}
.constellation-header h3 em { font-family: var(--hand); color: var(--blush); }
.constellation-header p {
  margin-top: 8px;
  font-family: var(--serif);
  font-size: 12px;
  line-height: 1.8;
  color: rgba(248, 240, 225, 0.45);
}
.constellation-map {
  position: relative;
  z-index: 2;
  max-width: 1120px;
  min-height: 430px;
  margin: 18px auto 0;
}
.constellation-lines {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}
.constellation-lines line {
  stroke: rgba(237, 203, 191, 0.27);
  stroke-width: 1;
  stroke-dasharray: 2 8;
  stroke-linecap: round;
  filter: drop-shadow(0 0 4px rgba(237, 203, 191, 0.22));
  animation: constellationFlow 26s linear infinite;
  animation-delay: var(--line-delay, 0s);
}
.constellation-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px 20px;
  padding: 8px 6px 12px;
}
.constellation-node {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 152px;
  padding: 7px 10px 8px;
  border: 0;
  background: transparent;
  color: var(--cream);
  text-align: center;
  transform: translate(var(--jitter-x, 0), var(--jitter-y, 0));
  transition: transform 0.4s var(--ease);
}
.constellation-node:hover {
  z-index: 5;
  transform: translate(var(--jitter-x, 0), calc(var(--jitter-y, 0px) - 4px));
}
.constellation-caption {
  display: -webkit-box;
  max-width: 320px;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-family: var(--hand);
  font-size: 15px;
  line-height: 1.55;
  color: rgba(248, 240, 225, 0.7);
  letter-spacing: 0.02em;
  transition: color 0.3s, text-shadow 0.3s;
}
.constellation-node:hover .constellation-caption {
  color: var(--cream);
  text-shadow: 0 0 18px rgba(237, 203, 191, 0.55);
}
.constellation-thread {
  width: 1px;
  height: 23px;
  margin-top: 7px;
  background: linear-gradient(transparent, rgba(237, 203, 191, 0.32));
  opacity: 0.7;
  transition: opacity 0.3s, background 0.3s;
}
.constellation-node:hover .constellation-thread {
  opacity: 1;
  background: linear-gradient(transparent, rgba(237, 203, 191, 0.65));
}
.constellation-star {
  position: relative;
  width: 9px;
  height: 9px;
  margin-top: 2px;
  border-radius: 50%;
  background: #fff7df;
  box-shadow: 0 0 7px 2px rgba(255, 229, 174, 0.8), 0 0 26px 9px rgba(237, 203, 191, 0.16);
  animation: constellationPulse 4.2s ease-in-out infinite;
  animation-delay: var(--star-delay, 0s);
  transition: transform 0.4s var(--ease), box-shadow 0.4s;
}
.constellation-star::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(237, 203, 191, 0.14);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.6;
}
.constellation-star::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 1px;
  height: 21px;
  background: linear-gradient(transparent, rgba(255, 247, 223, 0.55), transparent);
  transform: translate(-50%, -50%);
  opacity: 0.4;
}
.constellation-star i {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 25px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 247, 223, 0.5), transparent);
  transform: translate(-50%, -50%);
  opacity: 0.35;
}
.constellation-node:hover .constellation-star {
  transform: scale(1.45);
  box-shadow: 0 0 10px 3px rgba(255, 229, 174, 0.95), 0 0 38px 14px rgba(237, 203, 191, 0.24);
}
.constellation-footer {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  max-width: 1120px;
  margin: 18px auto 0;
  padding-top: 18px;
  border-top: 1px solid rgba(248, 240, 225, 0.07);
  font-size: 8px;
  letter-spacing: 0.17em;
  color: rgba(248, 240, 225, 0.25);
  text-align: center;
}
.constellation-footer i { width: 4px; height: 4px; border-radius: 50%; background: var(--blush); opacity: 0.55; }

@keyframes constellationFlow { to { stroke-dashoffset: -160; } }
@keyframes constellationPulse {
  0%, 100% { opacity: 0.82; }
  50% { opacity: 1; box-shadow: 0 0 10px 3px rgba(255, 229, 174, 0.9), 0 0 32px 12px rgba(237, 203, 191, 0.2); }
}

/* Gallery empty ----------------------------------------------------------- */
.gallery-empty {
  min-height: 460px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  border: 1px dashed rgba(248, 240, 225, 0.18);
  border-radius: 20px;
  background: rgba(248, 240, 225, 0.02);
  padding: 40px;
}
.empty-flower { width: 64px; height: 64px; color: var(--blush); opacity: 0.55; margin-bottom: 18px; }
.empty-flower svg { width: 100%; height: 100%; stroke-width: 0.7; }
.gallery-empty h3 { font-family: var(--display); font-size: 30px; font-weight: 400; color: var(--cream); }
.gallery-empty p { max-width: 360px; margin: 10px auto 24px; font-size: 13px; color: rgba(248, 240, 225, 0.5); }

/* Journal section --------------------------------------------------------- */
.journal-section {
  position: relative;
  padding: 100px 0 110px;
  background:
    radial-gradient(circle at 92% 20%, rgba(237, 203, 191, 0.28), transparent 30rem),
    radial-gradient(circle at 4% 88%, rgba(167, 178, 145, 0.12), transparent 28rem),
    var(--paper);
}
.journal-heading-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
}
.journal-heading .section-title { margin-top: 22px; }
.journal-heading-row .section-desc { padding-bottom: 9px; text-align: right; }
.journal-layout {
  display: grid;
  grid-template-columns: 306px minmax(0, 1fr);
  gap: 70px;
  margin-top: 56px;
  align-items: start;
}
.journal-aside { display: flex; flex-direction: column; gap: 22px; position: sticky; top: 100px; }
.calendar-card {
  padding: 22px 22px 18px;
  background: rgba(252, 248, 240, 0.74);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 12px 34px rgba(63, 39, 29, 0.05);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.calendar-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.calendar-eyebrow { display: block; margin-bottom: 4px; font-size: 8px; letter-spacing: 0.2em; color: var(--ink-faint); }
.calendar-head strong { font-family: var(--serif); font-size: 17px; font-weight: 600; color: var(--wine-deep); letter-spacing: 0.04em; }
.calendar-nav { display: flex; gap: 4px; }
.calendar-nav button {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--ink-soft);
  transition: 0.25s;
}
.calendar-nav button svg { width: 13px; height: 13px; }
.calendar-nav button:hover { border-color: var(--wine); color: var(--wine); }
.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  margin-top: 19px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
  text-align: center;
  font-size: 9px;
  color: var(--ink-faint);
}
.calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; margin-top: 6px; }
.calendar-cell {
  position: relative;
  height: 34px;
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  border-radius: 50%;
  color: var(--ink-soft);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  transition: 0.2s;
}
.calendar-cell.outside { color: rgba(155, 138, 125, 0.35); }
.calendar-cell.has-entry { color: var(--wine); font-weight: 600; }
.calendar-cell.has-entry::after {
  content: "";
  position: absolute;
  bottom: 3px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--coral);
}
.calendar-cell.is-today { box-shadow: inset 0 0 0 1px rgba(109, 38, 50, 0.3); }
.calendar-cell:hover { background: rgba(109, 38, 50, 0.07); }
.calendar-cell.selected { background: var(--wine); color: var(--cream); }
.calendar-cell.selected::after { background: var(--blush); }
.calendar-legend {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 13px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 9px;
  color: var(--ink-faint);
}
.calendar-legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--coral); }
#calendarClear { border: 0; background: transparent; color: var(--wine); font-size: 9px; text-decoration: underline; text-underline-offset: 3px; }

.quote-card {
  position: relative;
  overflow: hidden;
  padding: 30px 26px 26px;
  background: linear-gradient(145deg, #eed4c7, #e7c2b3);
  border-radius: 18px;
  color: var(--wine-deep);
  box-shadow: 0 18px 44px rgba(131, 77, 60, 0.11);
}
.quote-mark { width: 30px; height: 30px; fill: rgba(109, 38, 50, 0.22); stroke: none; margin-bottom: 14px; }
.quote-card p {
  font-family: var(--hand);
  font-size: 23px;
  line-height: 1.7;
  letter-spacing: 0.03em;
}
.quote-card footer {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  font-size: 8px;
  letter-spacing: 0.16em;
  color: rgba(76, 25, 36, 0.5);
}
.quote-line { width: 22px; height: 1px; background: currentColor; }
.quote-flower {
  position: absolute;
  right: -18px;
  bottom: -22px;
  width: 105px;
  height: 105px;
  color: var(--wine);
  opacity: 0.1;
  stroke-width: 0.55;
}
.write-card {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 18px 18px;
  border: 1px solid var(--wine);
  border-radius: 18px;
  background: var(--wine);
  color: var(--cream);
  text-align: left;
  transition: 0.35s var(--ease);
  box-shadow: 0 16px 36px rgba(109, 38, 50, 0.16);
}
.write-card:hover { background: var(--wine-deep); transform: translateY(-2px); }
.write-card-icon {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border: 1px solid rgba(248, 240, 225, 0.24);
  border-radius: 50%;
}
.write-card-icon svg { width: 15px; height: 15px; }
.write-card strong { display: block; font-family: var(--serif); font-size: 13px; font-weight: 500; letter-spacing: 0.03em; }
.write-card small { display: block; margin-top: 4px; font-size: 9px; color: rgba(248, 240, 225, 0.55); letter-spacing: 0.03em; }
.write-arrow { margin-left: auto; width: 16px; height: 16px; opacity: 0.7; }

/* Journal feed ------------------------------------------------------------ */
.journal-feed-wrap { min-width: 0; }
.journal-feed { position: relative; }
.journal-feed::before {
  content: "";
  position: absolute;
  top: 8px;
  bottom: 20px;
  left: 39px;
  width: 1px;
  background: linear-gradient(var(--line), rgba(58, 39, 29, 0.02));
}
.journal-entry {
  position: relative;
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr);
  gap: 26px;
  padding-bottom: 30px;
}
.entry-date {
  position: relative;
  z-index: 1;
  width: 80px;
  padding: 10px 8px 9px;
  text-align: center;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(63, 39, 29, 0.04);
}
.entry-day { display: block; font-family: var(--display); font-size: 32px; line-height: 1; color: var(--wine); letter-spacing: -0.02em; }
.entry-month { display: block; margin-top: 5px; font-size: 8px; letter-spacing: 0.16em; color: var(--ink-faint); text-transform: uppercase; }
.entry-year { display: block; margin-top: 2px; font-size: 8px; color: var(--ink-faint); letter-spacing: 0.1em; }
.entry-card {
  position: relative;
  padding: 25px 27px 24px;
  background: rgba(252, 248, 240, 0.74);
  border: 1px solid var(--line);
  border-radius: 16px;
  transition: 0.35s var(--ease);
  min-width: 0;
}
.entry-card:hover { background: rgba(252, 248, 240, 0.96); box-shadow: 0 18px 42px rgba(63, 39, 29, 0.07); transform: translateY(-2px); }
.entry-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  font-size: 9px;
  letter-spacing: 0.05em;
  color: var(--ink-faint);
}
.entry-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(109, 38, 50, 0.06);
  color: var(--wine-soft);
}
.entry-chip svg { width: 10px; height: 10px; }
.entry-weather { display: inline-flex; align-items: center; gap: 4px; }
.entry-weather svg { width: 11px; height: 11px; }
.entry-title {
  margin-top: 12px;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.45;
  color: var(--ink);
  letter-spacing: 0.015em;
}
.entry-body {
  margin-top: 10px;
  color: var(--ink-soft);
  font-size: 13.5px;
  line-height: 1.95;
  white-space: pre-wrap;
  word-break: break-word;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.entry-card.expanded .entry-body { display: block; -webkit-line-clamp: unset; }
.entry-card.has-photo { display: grid; grid-template-columns: minmax(0, 1fr) 156px; column-gap: 22px; }
.entry-copy { min-width: 0; }
.entry-photo {
  position: relative;
  align-self: start;
  margin-top: 16px;
  width: 156px;
  height: 138px;
  border: 0;
  padding: 0;
  border-radius: 8px;
  overflow: hidden;
  background: var(--paper-deep);
  cursor: zoom-in;
}
.entry-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.entry-photo:hover img { transform: scale(1.05); }
.entry-expand {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 10px;
  border: 0;
  background: transparent;
  padding: 0;
  color: var(--wine);
  font-size: 10px;
  letter-spacing: 0.04em;
}
.entry-expand svg { width: 11px; height: 11px; transition: transform 0.25s; }
.entry-card.expanded .entry-expand svg { transform: rotate(180deg); }
.entry-actions {
  position: absolute;
  top: 14px;
  right: 14px;
  display: flex;
  gap: 6px;
  opacity: 0;
  transition: opacity 0.25s;
}
body.is-editor .entry-actions { opacity: 1; }
.entry-action {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--paper-light);
  color: var(--ink-soft);
  transition: 0.2s;
}
.entry-action svg { width: 12px; height: 12px; }
.entry-action:hover { border-color: var(--wine); color: var(--wine); }
.entry-action.delete:hover { border-color: #9a3b3b; color: #9a3b3b; }
.entry-photo-mobile { display: none; }
.journal-feed-empty {
  padding: 75px 30px;
  text-align: center;
  border: 1px dashed rgba(58, 39, 29, 0.16);
  border-radius: 18px;
  background: rgba(252, 248, 240, 0.35);
}
.empty-stamp {
  width: 54px;
  height: 54px;
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(109, 38, 50, 0.2);
  border-radius: 50%;
  color: var(--wine);
  transform: rotate(-7deg);
}
.empty-stamp svg { width: 21px; height: 21px; }
.journal-feed-empty h3 { font-family: var(--display); font-size: 26px; font-weight: 400; color: var(--wine-deep); }
.journal-feed-empty p { margin: 10px 0 22px; font-size: 12px; color: var(--ink-faint); }
.load-more {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 100%;
  margin-top: 2px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--ink-soft);
  font-size: 11px;
  letter-spacing: 0.06em;
  transition: 0.25s;
}
.load-more svg { width: 13px; height: 13px; }
.load-more:hover { border-color: var(--wine); color: var(--wine); background: rgba(109, 38, 50, 0.03); }

/* Footer ------------------------------------------------------------------ */
.site-footer {
  position: relative;
  background:
    radial-gradient(circle at 85% 15%, rgba(217, 109, 92, 0.12), transparent 30rem),
    linear-gradient(160deg, #2b1b1d 0%, #201619 55%, #251a1b 100%);
  color: var(--cream);
  border-radius: 44px 44px 0 0;
  padding: 76px 0 32px;
  overflow: hidden;
}
.site-footer::before {
  content: "";
  position: absolute;
  left: -80px;
  top: -100px;
  width: 360px;
  height: 360px;
  border: 1px solid rgba(248, 240, 225, 0.06);
  border-radius: 50%;
  pointer-events: none;
}
.footer-inner { max-width: 1360px; margin: 0 auto; padding: 0 46px; position: relative; z-index: 1; }
.footer-top { display: flex; justify-content: space-between; gap: 60px; }
.footer-eyebrow { font-size: 9px; letter-spacing: 0.24em; color: rgba(248, 240, 225, 0.4); }
.footer-names h2 {
  margin-top: 17px;
  font-family: var(--display);
  font-size: clamp(46px, 5vw, 66px);
  font-weight: 400;
  line-height: 1.18;
  color: var(--cream);
}
.footer-names h2 em { font-family: var(--hand); color: var(--blush); }
.footer-signature {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  font-family: var(--hand);
  font-size: 15px;
  color: rgba(248, 240, 225, 0.7);
}
.footer-signature svg { width: 12px; height: 12px; fill: var(--coral); stroke: none; }
.footer-signature > span:last-child { margin-left: 8px; font-family: var(--sans); font-size: 8px; letter-spacing: 0.16em; color: rgba(248, 240, 225, 0.32); }
.footer-actions { width: 360px; padding-top: 34px; }
.footer-actions p { font-family: var(--serif); font-size: 14px; line-height: 1.8; color: rgba(248, 240, 225, 0.55); }
.footer-buttons { display: flex; gap: 10px; margin-top: 18px; }
.footer-note { display: block; margin-top: 16px; font-size: 9px; letter-spacing: 0.04em; color: rgba(248, 240, 225, 0.32); }
.footer-bottom {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid rgba(248, 240, 225, 0.1);
  font-size: 9px;
  letter-spacing: 0.06em;
  color: rgba(248, 240, 225, 0.28);
}
.footer-logo { display: inline-flex; align-items: center; gap: 7px; color: rgba(248, 240, 225, 0.5); letter-spacing: 0.12em; }
.footer-logo svg { width: 15px; height: 15px; }
.footer-bottom > span:nth-child(2) { margin-left: auto; font-family: var(--hand); font-size: 12px; letter-spacing: 0.02em; }
.footer-dot { opacity: 0.5; }

/* Editor dock ------------------------------------------------------------- */
.editor-dock {
  position: fixed;
  left: 50%;
  bottom: 22px;
  z-index: 6900;
  transform: translateX(-50%) translateY(20px);
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 8px 9px 8px 20px;
  background: rgba(252, 248, 240, 0.9);
  border: 1px solid rgba(58, 39, 29, 0.14);
  border-radius: 999px;
  box-shadow: 0 22px 60px rgba(63, 39, 29, 0.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  backdrop-filter: blur(20px) saturate(1.2);
  opacity: 0;
  visibility: hidden;
  transition: 0.4s var(--ease);
  max-width: calc(100vw - 30px);
}
.editor-dock.visible { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.dock-status { display: flex; align-items: center; gap: 7px; font-size: 10px; color: var(--ink-faint); white-space: nowrap; }
.dock-status b { font-weight: 600; color: var(--wine); }
.live-dot { width: 6px; height: 6px; border-radius: 50%; background: #7f9a72; animation: softPulse 2s infinite; flex-shrink: 0; }
.dock-actions { display: flex; align-items: center; gap: 2px; border-left: 1px solid var(--line); border-right: 1px solid var(--line); padding: 0 12px; }
.dock-actions button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 11px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-soft);
  font-size: 10px;
  white-space: nowrap;
  transition: 0.2s;
}
.dock-actions button svg { width: 13px; height: 13px; }
.dock-actions button:hover { background: rgba(109, 38, 50, 0.06); color: var(--wine); }
.dock-done {
  height: 38px;
  padding: 0 18px;
  border: 1px solid var(--wine);
  border-radius: 999px;
  background: var(--wine);
  color: var(--cream);
  font-size: 10px;
  letter-spacing: 0.04em;
  transition: 0.25s;
}
.dock-done:hover { background: var(--wine-deep); }

/* Modals ------------------------------------------------------------------ */
.modal {
  position: fixed;
  inset: 0;
  z-index: 8000;
  display: grid;
  place-items: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s var(--ease), visibility 0.35s;
  overflow: auto;
}
.modal.open { opacity: 1; visibility: visible; }
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(34, 24, 21, 0.54);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.modal-card {
  position: relative;
  z-index: 1;
  width: min(100%, 680px);
  max-height: calc(100svh - 48px);
  overflow: auto;
  padding: 38px;
  background: var(--paper);
  border-radius: 24px;
  box-shadow: 0 40px 100px rgba(35, 22, 18, 0.3);
  transform: translateY(16px) scale(0.985);
  transition: transform 0.45s var(--ease);
  overscroll-behavior: contain;
}
.modal.open .modal-card { transform: translateY(0) scale(1); }
.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 3;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--ink-soft);
  transition: 0.25s;
}
.modal-close svg { width: 14px; height: 14px; }
.modal-close:hover { background: rgba(58, 39, 29, 0.05); color: var(--ink); }
.modal-head { padding-right: 36px; margin-bottom: 26px; }
.modal-kicker { display: block; margin-bottom: 9px; font-size: 8px; letter-spacing: 0.22em; color: var(--coral); }
.modal-kicker.light { color: var(--blush); }
.modal-head h2, .share-card h2, .login-card h2 {
  font-family: var(--display);
  font-size: 34px;
  font-weight: 400;
  line-height: 1.25;
  color: var(--wine-deep);
  letter-spacing: 0.01em;
}
.modal-head p { margin-top: 8px; font-size: 12px; line-height: 1.8; color: var(--ink-faint); }
.modal-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.modal-actions.center { justify-content: center; }
.modal-actions .write-prompt { margin-right: auto; font-family: var(--hand); font-size: 12px; color: var(--ink-faint); }

/* Forms */
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field-row { display: grid; gap: 14px; }
.field-row.two { grid-template-columns: 1fr 1fr; }
.field-row.three { grid-template-columns: 1fr 1fr 1fr; }
.field-label { font-size: 10px; letter-spacing: 0.06em; color: var(--ink-soft); display: flex; justify-content: space-between; gap: 10px; }
.field-label.light { color: rgba(248, 240, 225, 0.58); }
.field-help { font-size: 9px; color: var(--ink-faint); }
.field-counter { color: var(--ink-faint); font-size: 9px; letter-spacing: 0; }
.text-input {
  width: 100%;
  min-height: 44px;
  padding: 10px 13px;
  border: 1px solid rgba(58, 39, 29, 0.17);
  border-radius: 10px;
  background: rgba(252, 248, 240, 0.72);
  color: var(--ink);
  font-size: 13px;
  line-height: 1.5;
  transition: border-color 0.25s, background 0.25s, box-shadow 0.25s;
}
.text-input:hover { border-color: rgba(58, 39, 29, 0.28); }
.text-input:focus { outline: 0; border-color: var(--wine); background: var(--paper-light); box-shadow: 0 0 0 3px rgba(109, 38, 50, 0.07); }
.text-input::placeholder { color: rgba(155, 138, 125, 0.75); }
.text-input.textarea { resize: vertical; min-height: 150px; padding: 12px 14px; line-height: 1.8; }
.text-input.textarea.small { min-height: 72px; }
select.text-input {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236e5f55' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 13px center;
  padding-right: 34px;
}
input[type="date"], input[type="datetime-local"] { color-scheme: light; }
.form-error { min-height: 17px; margin-top: 9px; font-size: 10px; color: #b04a3d; letter-spacing: 0.02em; }
.form-error:empty { min-height: 0; margin-top: 0; }
.form-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 4px 0 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 600;
  color: var(--wine-deep);
  letter-spacing: 0.04em;
}
.form-section-title i { font-family: var(--display); font-style: italic; font-size: 11px; font-weight: 400; color: var(--coral); }
.settings-form .form-section-title:not(:first-child) { margin-top: 24px; }
.form-section-title + .field { margin-top: 0; }
.settings-col .field + .field, .settings-col .field-row + .field, .settings-col .field + .field-row { margin-top: 15px; }
.settings-col .field-row + .field-row { margin-top: 15px; }
.together-status-field { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.status-choice {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  width: fit-content;
  padding: 4px;
  border: 1px solid rgba(58, 39, 29, 0.14);
  border-radius: 999px;
  background: rgba(252, 248, 240, 0.72);
}
.status-choice-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 32px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-faint);
  font-size: 11px;
  letter-spacing: 0.03em;
  transition: 0.25s var(--ease);
}
.status-choice-btn:hover { color: var(--wine); }
.status-choice-btn.active {
  background: var(--wine);
  color: var(--cream);
  box-shadow: 0 5px 14px rgba(109, 38, 50, 0.16);
}
.status-choice-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.6;
}
.status-choice-btn.active .status-choice-dot { background: var(--blush); opacity: 1; }
#togetherDateField { transition: opacity 0.25s; }
#togetherDateField.is-muted { opacity: 0.42; }
#togetherDateField.is-muted .text-input { background: rgba(58, 39, 29, 0.03); }
.waiting-help { color: var(--wine-soft); line-height: 1.7; }

/* Login */
.login-card {
  width: min(100%, 430px);
  padding: 46px 38px 32px;
  background:
    radial-gradient(circle at 88% 4%, rgba(237, 203, 191, 0.12), transparent 16rem),
    linear-gradient(155deg, #692732, #4a1822);
  color: var(--cream);
  text-align: center;
  overflow: hidden;
}
.login-card::before {
  content: "";
  position: absolute;
  left: -80px;
  top: -90px;
  width: 260px;
  height: 260px;
  border: 1px solid rgba(248, 240, 225, 0.08);
  border-radius: 50%;
  pointer-events: none;
}
.light-close { border-color: rgba(248, 240, 225, 0.22); color: rgba(248, 240, 225, 0.7); }
.light-close:hover { background: rgba(248, 240, 225, 0.1); color: var(--cream); }
.login-art {
  position: relative;
  width: 76px;
  height: 76px;
  margin: 0 auto 20px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(248, 240, 225, 0.22);
  border-radius: 50%;
  color: var(--blush);
}
.login-art svg { width: 23px; height: 23px; }
.login-orbit {
  position: absolute;
  inset: -9px;
  border: 1px dashed rgba(248, 240, 225, 0.16);
  border-radius: 50%;
  animation: spinSlow 30s linear infinite;
}
.login-card h2 { color: var(--cream); font-size: 32px; }
.login-desc { margin: 10px 0 25px; font-size: 12px; line-height: 1.8; color: rgba(248, 240, 225, 0.5); }
.login-card .field-label { justify-content: center; margin-bottom: 8px; }
.password-wrap { position: relative; }
.dark-input {
  height: 48px;
  padding-right: 44px;
  background: rgba(248, 240, 225, 0.08);
  border-color: rgba(248, 240, 225, 0.18);
  color: var(--cream);
  text-align: center;
  letter-spacing: 0.2em;
  font-size: 15px;
}
.dark-input::placeholder { color: rgba(248, 240, 225, 0.28); letter-spacing: 0.04em; font-size: 12px; }
.dark-input:focus { background: rgba(248, 240, 225, 0.12); border-color: rgba(248, 240, 225, 0.5); box-shadow: 0 0 0 3px rgba(248, 240, 225, 0.08); }
.password-toggle {
  position: absolute;
  right: 5px;
  top: 5px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  color: rgba(248, 240, 225, 0.45);
}
.password-toggle svg { width: 14px; height: 14px; }
.login-hint { margin-top: 11px; font-size: 10px; color: rgba(248, 240, 225, 0.42); }
.login-hint b { color: var(--blush); font-weight: 600; letter-spacing: 0.08em; }
.login-card .form-error { color: #f0b0a0; }
.login-submit { width: 100%; margin-top: 10px; background: var(--blush); color: var(--wine-deep); box-shadow: 0 14px 30px rgba(24, 8, 11, 0.2); }
.login-submit:hover { background: var(--cream); }
.login-foot { display: block; margin-top: 21px; font-size: 8px; letter-spacing: 0.06em; color: rgba(248, 240, 225, 0.26); }

/* Settings */
.settings-card { width: min(100%, 1000px); }
.settings-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 34px; }
.side-col { padding-left: 30px; border-left: 1px solid var(--line); }
.settings-side-card + .settings-side-card { margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--line); }
.side-help { font-size: 10px; line-height: 1.7; color: var(--ink-faint); margin: 8px 0 12px; }
.side-help.tiny { font-size: 9px; margin: 8px 0 6px; }
.default-password-warning { color: var(--wine-soft); line-height: 1.7; }
.default-password-warning b { color: var(--wine); letter-spacing: 0.08em; }
.copy-line { display: flex; gap: 6px; }
.copy-line .text-input { font-size: 10px; min-height: 40px; padding: 9px 11px; color: var(--ink-soft); }
.square-btn {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border: 1px solid var(--wine);
  border-radius: 10px;
  background: var(--wine);
  color: var(--cream);
  transition: 0.25s;
}
.square-btn svg { width: 15px; height: 15px; }
.square-btn:hover { background: var(--wine-deep); }
.copy-line + .outline-btn { margin-top: 9px; }
.password-form { display: flex; flex-direction: column; gap: 8px; }
.password-form .text-input { min-height: 40px; font-size: 12px; }
.settings-side-card .text-link { margin-top: 8px; }
.subtle-card { opacity: 0.88; }
.settings-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.autosave-note { display: inline-flex; align-items: center; gap: 6px; font-size: 9px; color: var(--ink-faint); }
.autosave-note svg { width: 12px; height: 12px; color: #7f9a72; }

/* Share */
.share-card { width: min(100%, 560px); padding: 40px; }
.share-card h2 { font-size: 36px; }
.share-desc { margin-top: 12px; font-size: 12px; line-height: 1.85; color: var(--ink-soft); }
.share-stamp {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 24px 0 16px;
  padding: 14px 16px;
  border: 1px dashed rgba(109, 38, 50, 0.24);
  border-radius: 12px;
  color: var(--wine);
  background: rgba(237, 203, 191, 0.16);
}
.share-stamp svg { width: 20px; height: 20px; }
.share-stamp span { font-family: var(--hand); font-size: 15px; letter-spacing: 0.04em; }
.copy-line.large .text-input { height: 48px; font-size: 11px; }
.wine-square-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0 15px;
  border: 1px solid var(--wine);
  border-radius: 10px;
  background: var(--wine);
  color: var(--cream);
  font-size: 11px;
  white-space: nowrap;
  transition: 0.25s;
}
.wine-square-btn svg { width: 13px; height: 13px; }
.wine-square-btn:hover { background: var(--wine-deep); }
.share-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
.share-actions .outline-btn, .share-actions .wine-btn { width: 100%; }
.share-footnote { display: flex; align-items: center; gap: 6px; margin-top: 20px; font-size: 9px; color: var(--ink-faint); }
.share-footnote svg { width: 11px; height: 11px; flex-shrink: 0; }

/* Upload */
.upload-card { width: min(100%, 680px); }
.drop-zone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 176px;
  padding: 22px;
  border: 1px dashed rgba(109, 38, 50, 0.3);
  border-radius: 16px;
  background: rgba(237, 203, 191, 0.13);
  text-align: center;
  transition: 0.3s var(--ease);
  cursor: pointer;
}
.drop-zone:hover, .drop-zone.dragover { border-color: var(--wine); background: rgba(237, 203, 191, 0.26); }
.drop-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  margin-bottom: 10px;
  border: 1px solid rgba(109, 38, 50, 0.24);
  border-radius: 50%;
  color: var(--wine);
}
.drop-icon svg { width: 19px; height: 19px; }
.drop-zone strong { font-family: var(--serif); font-size: 15px; font-weight: 600; color: var(--wine-deep); }
.drop-zone > span { margin-top: 4px; font-size: 11px; color: var(--ink-faint); }
.drop-zone small { margin-top: 8px; font-size: 9px; color: var(--ink-faint); opacity: 0.7; }
.upload-preview-head { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; font-size: 10px; color: var(--ink-soft); }
.upload-previews {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 9px;
  margin-top: 10px;
}
.upload-preview {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 8px;
  background: var(--paper-deep);
}
.upload-preview img { width: 100%; height: 100%; object-fit: cover; }
.upload-preview button {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(20, 15, 12, 0.65);
  color: #fff;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.upload-preview button svg { width: 9px; height: 9px; }
.upload-fields { margin-top: 17px; }
.upload-progress { margin-top: 17px; }
.progress-track { height: 4px; border-radius: 4px; background: rgba(58, 39, 29, 0.1); overflow: hidden; }
.progress-track i { display: block; width: 0; height: 100%; border-radius: 4px; background: var(--wine); transition: width 0.3s; }
.upload-progress span { display: block; margin-top: 6px; font-size: 9px; color: var(--ink-faint); }

/* Journal modal */
.journal-card { width: min(100%, 720px); }
.journal-card .field + .field, .journal-card .field-row + .field { margin-top: 15px; }
.write-prompt { font-family: var(--hand); }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s var(--ease), visibility 0.4s;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 10, 8, 0.94);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.lightbox-shell {
  position: relative;
  z-index: 1;
  width: min(1180px, 100%);
  height: min(760px, calc(100svh - 48px));
  background: #171914;
  border: 1px solid rgba(248, 240, 225, 0.1);
  border-radius: 10px;
  box-shadow: 0 50px 120px rgba(0, 0, 0, 0.5);
  transform: scale(0.98);
  transition: transform 0.45s var(--ease);
  overflow: hidden;
}
.lightbox.open .lightbox-shell { transform: scale(1); }
.lightbox-main { display: grid; grid-template-columns: minmax(0, 1fr) 310px; height: 100%; }
.lightbox-image-wrap {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 32px 28px 20px 70px;
  background:
    radial-gradient(circle at 50% 40%, rgba(237, 203, 191, 0.05), transparent 30rem),
    #12140f;
}
.lightbox-image-frame {
  position: relative;
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.lightbox-image-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 2px;
  filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.35));
}
.lightbox-index {
  position: absolute;
  top: 0;
  right: 0;
  font-size: 9px;
  letter-spacing: 0.16em;
  color: rgba(248, 240, 225, 0.4);
}
.lightbox-caption-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding-top: 16px;
}
.lightbox-caption { font-family: var(--serif); font-size: 16px; color: var(--cream); line-height: 1.5; }
.lightbox-date { display: block; margin-top: 4px; font-size: 8px; letter-spacing: 0.15em; color: rgba(248, 240, 225, 0.4); }
.lightbox-tools { display: flex; align-items: center; gap: 7px; }
.lightbox-tools button {
  height: 32px;
  padding: 0 10px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(248, 240, 225, 0.15);
  border-radius: 999px;
  background: transparent;
  color: rgba(248, 240, 225, 0.6);
  font-size: 9px;
}
.lightbox-tools button svg { width: 12px; height: 12px; }
.lightbox-tools button:hover { border-color: rgba(248, 240, 225, 0.45); color: var(--cream); }
.lightbox-side {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 38px 30px 28px;
  background: var(--paper);
  color: var(--ink);
  overflow: auto;
}
.lightbox-side .modal-kicker { color: var(--wine-soft); }
.lightbox-side h3 { font-family: var(--display); font-size: 30px; font-weight: 400; line-height: 1.3; color: var(--wine-deep); }
.lightbox-side > p { margin-top: 14px; font-family: var(--serif); font-size: 12px; line-height: 1.9; color: var(--ink-soft); }
.lightbox-edit { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
.lightbox-edit .field + .field { margin-top: 12px; }
.lightbox-edit .outline-btn { margin-top: 12px; }
.lightbox-danger { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 16px; }
.lightbox-danger .text-link { font-size: 10px; }
.lightbox-serial { margin-top: auto; padding-top: 26px; font-size: 8px; letter-spacing: 0.16em; color: var(--ink-faint); }
.lightbox-serial b { font-weight: 500; color: var(--wine); }
.lightbox-close {
  position: absolute;
  top: 24px;
  right: 24px;
  z-index: 5;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(248, 240, 225, 0.2);
  border-radius: 50%;
  background: rgba(20, 18, 15, 0.5);
  color: var(--cream);
  transition: 0.25s;
}
.lightbox-close:hover { background: rgba(248, 240, 225, 0.12); }
.lightbox-nav {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(248, 240, 225, 0.18);
  border-radius: 50%;
  background: rgba(20, 18, 15, 0.35);
  color: var(--cream);
  transform: translateY(-50%);
  transition: 0.25s;
}
.lightbox-nav:hover { background: var(--cream); color: var(--forest); }
.lightbox-nav.prev { left: 18px; }
.lightbox-nav.next { right: 328px; left: auto; }
.lightbox-nav svg { width: 16px; height: 16px; }
.lightbox-close svg { width: 15px; height: 15px; }

/* Confirm */
#confirmModal { z-index: 9500; }
.confirm-card { width: min(100%, 400px); padding: 36px; text-align: center; }
.confirm-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(154, 59, 59, 0.24);
  border-radius: 50%;
  color: #9a3b3b;
  background: rgba(154, 59, 59, 0.05);
}
.confirm-icon svg { width: 21px; height: 21px; }
.confirm-card h2 { font-family: var(--display); font-size: 27px; font-weight: 400; color: var(--wine-deep); }
.confirm-card p { margin-top: 9px; font-size: 12px; line-height: 1.8; color: var(--ink-faint); }
.confirm-card .modal-actions { justify-content: center; }

/* Toasts ------------------------------------------------------------------ */
.toast-stack {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 10002;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transform: translateX(-50%);
  pointer-events: none;
  width: min(90vw, 460px);
}
body.editor-active .toast-stack { bottom: 104px; }
.toast {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(43, 35, 31, 0.94);
  color: var(--cream);
  font-size: 11px;
  letter-spacing: 0.03em;
  box-shadow: 0 16px 36px rgba(28, 19, 16, 0.22);
  animation: toastIn 0.35s var(--ease);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.toast svg { width: 13px; height: 13px; color: var(--blush); }
.toast.out { animation: toastOut 0.3s var(--ease) forwards; }
.toast.error svg { color: #f0a494; }

.noscript-note {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: grid;
  place-items: center;
  background: var(--paper);
  font-family: var(--hand);
  font-size: 20px;
  color: var(--wine);
}

/* Reveal ------------------------------------------------------------------ */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.hero-copy, .hero-art { animation: heroRise 1s var(--ease) both; }
.hero-art { animation-delay: 0.12s; }
.hero-timers .timer-card { animation: heroRise 0.9s var(--ease) both; animation-delay: 0.22s; }
.hero-timers .timer-card:nth-child(2) { animation-delay: 0.32s; }
.hero-timers .love-note { animation: heroRise 0.9s var(--ease) both; animation-delay: 0.42s; }

/* Animations -------------------------------------------------------------- */
@keyframes spinSlow { to { transform: rotate(360deg); } }
@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  14% { transform: scale(1.18); }
  28% { transform: scale(1); }
  42% { transform: scale(1.12); }
}
@keyframes softPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(0.82); }
}
@keyframes loaderSweep {
  0% { transform: translateX(-120%); }
  60%, 100% { transform: translateX(320%); }
}
@keyframes marqueeLeft { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes heroRise {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes toastIn { from { opacity: 0; transform: translateY(12px) scale(0.97); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(8px) scale(0.97); } }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1180px) {
  .hero { padding-left: 36px; padding-right: 36px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(370px, 0.82fr); gap: 22px; }
  .hero-title { font-size: clamp(62px, 7.4vw, 92px); }
  .hero-art { height: 442px; }
  .cover-frame { width: 67%; }
  .cover-window { height: 316px; }
  .side-polaroid { width: 158px; }
  .side-photo { height: 134px; }
  .orbit-badge { width: 94px; height: 94px; }
  .section-inner { padding: 0 36px; }
  .journal-layout { grid-template-columns: 285px minmax(0, 1fr); gap: 44px; }
  .topbar { padding: 0 32px; }
}

@media (max-width: 980px) {
  :root { --nav-h: 76px; }
  .main-nav { display: none; }
  .hero { padding: calc(var(--nav-h) + 34px) 28px 30px; min-height: auto; }
  .hero-grid { grid-template-columns: 1fr; min-height: 0; gap: 36px; }
  .hero-copy { max-width: 680px; }
  .hero-title { font-size: clamp(64px, 11vw, 100px); justify-content: flex-start; }
  .hero-art { width: min(100%, 560px); height: 440px; margin: 0 auto; }
  .hero-timers { margin-top: 40px; }
  .timer-card { min-height: 174px; padding: 19px 22px 17px; }
  .section-inner { padding: 0 28px; }
  .photo-heading { grid-template-columns: 1fr; gap: 22px; }
  .photo-heading-side { flex-direction: row; align-items: center; justify-content: space-between; padding-bottom: 0; }
  .journal-heading-row { flex-direction: column; align-items: flex-start; gap: 6px; }
  .journal-heading-row .section-desc { text-align: left; padding-bottom: 0; }
  .journal-layout { grid-template-columns: 1fr; gap: 32px; }
  .journal-aside { position: static; display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; }
  .write-card { grid-column: 1 / -1; }
  .calendar-card { height: 100%; }
  .quote-card { height: 100%; }
  .settings-grid { grid-template-columns: 1fr; }
  .side-col { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); padding-top: 24px; }
  .stars-view { padding: 30px 24px 24px; }
  .sky-collage { columns: 2; column-gap: 16px; }
  .sky-header h3 { font-size: 34px; }
  .constellation-view { padding: 28px 22px 22px; }
  .constellation-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 18px; }
  .constellation-node { min-height: 146px; }
  .settings-grid .settings-col:first-child .form-section-title:first-child { margin-top: 0; }
  .lightbox-main { grid-template-columns: minmax(0, 1fr) 280px; }
  .lightbox-image-wrap { padding: 30px 20px 16px 62px; }
  .lightbox-nav.next { right: 298px; left: auto; }
  .footer-top { flex-direction: column; gap: 30px; }
  .footer-actions { width: 100%; padding-top: 0; }
  .footer-actions p { max-width: 420px; }
}

@media (max-width: 760px) {
  body.editor-active { padding-bottom: 96px; }
  .topbar { padding: 0 18px; gap: 10px; }
  .topbar.scrolled { height: 66px; }
  .brand-copy small { display: none; }
  .brand-copy strong { font-size: 17px; }
  .brand-mark { width: 34px; height: 34px; }
  .brand-mark svg { width: 18px; height: 18px; }
  .icon-text-btn { width: 38px; height: 38px; padding: 0; justify-content: center; }
  .icon-text-btn span { display: none; }
  .edit-btn { height: 38px; padding: 0 14px; font-size: 11px; }
  .edit-btn svg { width: 12px; height: 12px; }
  .hero { padding: calc(var(--nav-h) + 30px) 20px 26px; }
  .hero-eyebrow { margin-bottom: 18px; font-size: 9px; letter-spacing: 0.16em; gap: 8px; }
  .eyebrow-line { width: 22px; }
  .hero-title { font-size: clamp(52px, 15.6vw, 78px); gap: 10px; }
  .hero-title .amp { font-size: 0.48em; }
  .hero-tagline { margin-top: 18px; font-size: 15px; line-height: 1.8; }
  .hero-actions { gap: 18px; margin-top: 25px; flex-wrap: wrap; }
  .primary-link { height: 50px; padding-left: 20px; font-size: 12px; }
  .link-orb { width: 34px; height: 34px; }
  .hero-meta { margin-top: 24px; gap: 9px; font-size: 9.5px; flex-wrap: wrap; }
  .hero-art { height: 384px; margin-top: 4px; }
  .cover-frame { width: 69%; left: 4%; top: 2%; }
  .cover-window { height: 278px; }
  .side-polaroid { width: 132px; right: 2%; bottom: 3%; }
  .side-photo { height: 111px; }
  .side-polaroid figcaption { font-size: 11px; padding: 8px 3px 10px; }
  .orbit-badge { width: 78px; height: 78px; right: 0; top: -2px; }
  .orbit-ring text { font-size: 7px; }
  .orbit-heart { width: 28px; height: 28px; }
  .orbit-heart svg { width: 11px; height: 11px; }
  .art-note { font-size: 12px; left: 0; bottom: 0; }
  .tape { width: 54px; height: 16px; }
  .tape-left { left: -17px; top: 66px; }
  .tape-right { right: -17px; top: 66px; }
  .cover-frame figcaption { padding: 10px 5px 11px; }
  .cover-caption { font-size: 12px; }
  .cover-date { display: none; }
  .hero-timers { grid-template-columns: 1fr; gap: 12px; margin-top: 32px; }
  .timer-card { min-height: 162px; padding: 17px 20px 15px; border-radius: 18px; }
  .timer-days span { font-size: 56px; }
  .timer-main { margin-top: 14px; }
  .timer-clock { font-size: 11px; }
  .timer-together.is-waiting .timer-days span { font-size: 62px; }
  .waiting-copy { max-width: 190px; font-size: 12px; line-height: 1.65; }
  .status-choice { width: 100%; }
  .status-choice-btn { flex: 1; justify-content: center; }
  .love-note { font-size: 12.5px; line-height: 1.7; padding: 4px 8px 0; }
  .section-inner { padding: 0 20px; }
  .photo-section { padding: 68px 0 48px; border-radius: 28px 28px 0 0; margin-top: 8px; }
  .section-title { font-size: clamp(38px, 10vw, 46px); margin-top: 17px; }
  .section-desc { font-size: 13px; line-height: 1.8; margin-top: 15px; }
  .photo-heading-side { flex-wrap: wrap; gap: 12px; }
  .photo-count { font-size: 10px; }
  .upload-btn { height: 38px; font-size: 10px; }
  .gallery-toolbar { flex-direction: column; align-items: stretch; gap: 12px; margin-top: 30px; padding-bottom: 15px; }
  .view-switch { width: 100%; justify-content: space-between; }
  .view-btn { flex: 1; justify-content: center; padding: 0 6px; font-size: 10px; height: 36px; }
  .view-btn svg { width: 13px; height: 13px; }
  .gallery-aside { justify-content: space-between; }
  .gallery-hint { font-size: 11px; }
  .gallery-stage { min-height: 0; margin-top: 18px; }
  .film-row { padding: 8px 0; }
  .film-card { width: 232px; margin-right: 12px; }
  .film-photo { height: 155px; margin: 9px 9px 0; }
  .film-caption { padding: 9px 11px 15px; min-height: 44px; }
  .film-caption span { font-size: 11px; }
  .film-card::before, .film-card::after { height: 9px; background-size: 20px 9px; }
  .polaroid-stage { height: 426px; }
  .polaroid-card { width: 205px; padding: 10px 10px 0; }
  .polaroid-photo { height: 216px; }
  .polaroid-copy { min-height: 58px; padding: 10px 3px 13px; }
  .polaroid-copy p { font-size: 12px; }
  .polaroid-controls { margin-top: 2px; }
  .polaroid-drag-note { display: none; }
  .mosaic-view { columns: 2; column-gap: 10px; }
  .mosaic-item { margin-bottom: 10px; }
  .mosaic-quote { margin-bottom: 10px; padding: 20px 16px; }
  .mosaic-quote p { font-size: 17px; }
  .mosaic-overlay { opacity: 1; transform: none; padding: 30px 11px 10px; background: linear-gradient(transparent, rgba(10, 14, 11, 0.72)); }
  .mosaic-overlay p { font-size: 11px; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
  .mosaic-overlay span { font-size: 7px; }
  .stars-view { padding: 24px 15px 20px; border-radius: 18px; }
  .sky-header { padding: 5px 0; }
  .sky-header h3 { margin-top: 10px; font-size: 26px; }
  .sky-header h3 span, .sky-header h3 em { display: block; }
  .sky-header p { max-width: 330px; margin: 7px auto 0; font-size: 10.5px; }
  .sky-eyebrow { font-size: 7px; }
  .sky-constellation { margin-top: 16px; padding: 14px 6px 16px; }
  .sky-band-label { font-size: 7px; letter-spacing: 0.14em; }
  .sky-words { gap: 6px 9px; margin-top: 8px; }
  .sky-word { max-width: 100%; padding: 4px 6px; font-size: 13px; }
  .sky-cloud-head { margin: 22px auto 10px; font-size: 7px; letter-spacing: 0.1em; }
  .sky-collage { columns: 2; column-gap: 11px; }
  .sky-photo { margin-bottom: 14px; }
  .sky-photo:nth-child(3n + 2) { margin-top: 16px; }
  .sky-photo:nth-child(3n + 3) { margin-top: 5px; }
  .sky-photo-arrow { width: 24px; height: 24px; opacity: 0.8; transform: none; background: rgba(9, 15, 21, 0.58); }
  .sky-photo-meta { padding-top: 6px; font-size: 6px; }
  .sky-footer { margin-top: 20px; padding-top: 14px; gap: 8px; flex-wrap: wrap; font-size: 7px; }
  .view-btn { padding: 0 4px; gap: 4px; font-size: 9.5px; }
  .view-btn svg { width: 12px; height: 12px; }
  .constellation-view { padding: 24px 14px 20px; border-radius: 18px; }
  .constellation-header { padding: 5px 0; }
  .constellation-header h3 { margin-top: 10px; font-size: 26px; }
  .constellation-header p { max-width: 310px; margin: 7px auto 0; font-size: 10.5px; }
  .constellation-map { min-height: 0; margin-top: 12px; }
  .constellation-grid { gap: 24px 10px; padding: 4px 2px 8px; }
  .constellation-node { min-height: 132px; padding: 6px 4px 7px; }
  .constellation-caption { max-width: 100%; -webkit-line-clamp: 3; font-size: 13px; line-height: 1.55; }
  .constellation-thread { height: 16px; margin-top: 5px; }
  .constellation-footer { margin-top: 14px; padding-top: 14px; gap: 8px; flex-wrap: wrap; font-size: 7px; }
  .gallery-footer-note { font-size: 8px; margin-top: 20px; }
  .journal-section { padding: 70px 0 76px; }
  .journal-layout { margin-top: 36px; gap: 26px; }
  .journal-aside { grid-template-columns: 1fr; gap: 14px; }
  .quote-card { padding: 25px 22px 22px; }
  .quote-card p { font-size: 21px; }
  .write-card { order: 3; }
  .calendar-card { padding: 18px 18px 14px; }
  .calendar-cell { height: 32px; }
  .journal-feed::before { left: 31px; }
  .journal-entry { grid-template-columns: 64px minmax(0, 1fr); gap: 16px; padding-bottom: 22px; }
  .entry-date { width: 64px; padding: 8px 5px 7px; border-radius: 10px; }
  .entry-day { font-size: 27px; }
  .entry-month, .entry-year { font-size: 7px; }
  .entry-card { padding: 20px 18px 18px; border-radius: 14px; }
  .entry-card.has-photo { display: block; }
  .entry-photo { display: none; }
  .entry-title { font-size: 18px; margin-top: 10px; }
  .entry-body { font-size: 13px; line-height: 1.9; -webkit-line-clamp: 5; }
  .entry-actions { position: static; opacity: 1; margin-top: 12px; justify-content: flex-end; }
  body:not(.is-editor) .entry-actions { display: none; }
  .entry-photo-mobile { display: block; width: 100%; height: 170px; margin-top: 14px; padding: 0; border: 0; border-radius: 10px; overflow: hidden; background: var(--paper-deep); }
  .entry-photo-mobile img { width: 100%; height: 100%; object-fit: cover; }
  .load-more { font-size: 10px; }
  .site-footer { border-radius: 28px 28px 0 0; padding: 56px 0 26px; }
  .footer-inner { padding: 0 22px; }
  .footer-names h2 { font-size: clamp(38px, 10vw, 50px); }
  .footer-buttons { flex-wrap: wrap; }
  .footer-bottom { flex-wrap: wrap; gap: 8px; margin-top: 42px; font-size: 8px; }
  .footer-bottom > span:nth-child(2) { margin-left: 0; width: 100%; order: 4; }
  .editor-dock {
    left: 10px;
    right: 10px;
    bottom: 10px;
    transform: translateY(20px);
    max-width: none;
    padding: 9px;
    border-radius: 18px;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 7px;
  }
  .editor-dock.visible { transform: translateY(0); }
  .dock-status { width: 100%; padding: 0 4px; }
  .dock-status span:last-child { display: none; }
  .dock-actions { flex: 1; border: 0; padding: 0; justify-content: flex-start; gap: 0; }
  .dock-actions button { padding: 8px 9px; font-size: 9px; }
  .dock-done { height: 34px; padding: 0 14px; font-size: 9px; }
  .modal { padding: 12px; align-items: end; }
  .modal-card { max-height: calc(100svh - 24px); border-radius: 20px 20px 14px 14px; padding: 28px 20px 22px; }
  .modal-head { margin-bottom: 20px; }
  .modal-head h2, .share-card h2, .login-card h2 { font-size: 28px; }
  .login-card { padding: 38px 24px 26px; align-self: center; border-radius: 24px; }
  .settings-card { padding: 30px 20px 22px; }
  .field-row.two, .field-row.three { grid-template-columns: 1fr; }
  .settings-grid { gap: 22px; }
  .settings-actions { flex-direction: column-reverse; align-items: stretch; gap: 12px; }
  .settings-actions .wine-btn { width: 100%; }
  .modal-actions { flex-wrap: wrap; }
  .modal-actions .wine-btn, .modal-actions .outline-btn { flex: 1; }
  .modal-actions .write-prompt { width: 100%; margin-right: 0; text-align: center; }
  .share-card { padding: 30px 20px 22px; }
  .share-actions { grid-template-columns: 1fr; }
  .upload-previews { grid-template-columns: repeat(3, 1fr); }
  .lightbox { padding: 0; }
  .lightbox-shell { width: 100%; height: 100svh; border-radius: 0; border: 0; }
  .lightbox-main { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) auto; }
  .lightbox-image-wrap { padding: 62px 20px 14px; min-height: 0; }
  .lightbox-side { padding: 22px 20px; max-height: 38svh; }
  .lightbox-side h3 { font-size: 22px; }
  .lightbox-side > p { display: none; }
  .lightbox-edit { margin-top: 14px; padding-top: 14px; }
  .lightbox-serial { display: none; }
  .lightbox-close { top: 14px; right: 14px; }
  .lightbox-nav { top: 42%; width: 36px; height: 36px; }
  .lightbox-nav.prev { left: 10px; }
  .lightbox-nav.next { left: auto; right: 10px; }
  .lightbox-caption { font-size: 14px; }
  .toast-stack { bottom: 18px; }
  body.editor-active .toast-stack { bottom: 122px; }
}

@media (max-width: 400px) {
  .hero-title { font-size: 48px; }
  .hero-art { height: 340px; }
  .cover-window { height: 240px; }
  .side-polaroid { width: 118px; }
  .side-photo { height: 96px; }
  .orbit-badge { width: 68px; height: 68px; }
  .timer-days span { font-size: 50px; }
  .timer-clock { font-size: 10px; }
  .view-btn span { font-size: 9px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  .marquee { animation: none; }
  .film-row { overflow-x: auto; }
}
