/* ===========================================
   WISHLIST BOOK - a small personal page
   =========================================== */

:root {
  --paper: #FBF7F2;
  --paper-warm: #F5EFE7;
  --ink: #2C2A27;
  --ink-soft: #5C5854;
  --ink-muted: #7A7672;
  --line: #E6DDD2;
  --line-dark: #D6CABB;
  --accent: #C97B6A;
  --accent-soft: #F2E3DE;
  --accent-pale: #FAF1EE;
  --accent-deep: #A85D4E;
  --polaroid-bg: #F6DCD6;
  --shadow: 0 2px 8px rgba(44, 42, 39, 0.06), 0 12px 28px rgba(44, 42, 39, 0.06);
  --shadow-soft: 0 1px 3px rgba(44, 42, 39, 0.05), 0 6px 16px rgba(44, 42, 39, 0.04);
  --radius: 14px;
  --transition: 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Lahari's theme - sage green */
body.theme-sage {
  --accent: #7C9A86;
  --accent-soft: #DEE8E2;
  --accent-pale: #F0F5F2;
  --accent-deep: #5E7D69;
  --polaroid-bg: #DCE8E1;
}

/* ---- Reset & base ---- */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background-color: var(--paper);
  min-height: 100vh;
  overflow-x: hidden;
  /* subtle paper grain */
  background-image:
    radial-gradient(circle at 1px 1px, rgba(44, 42, 39, 0.018) 1px, transparent 1px);
  background-size: 28px 28px;
}

img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; background: none; border: none; padding: 0; margin: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
input { font: inherit; color: inherit; margin: 0; }
p, h1, h2, h3, h4, h5, h6 { margin: 0; }
ul { list-style: none; margin: 0; padding: 0; }

.hidden {
  display: none !important;
}

/* ---- Shared typography ---- */
.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-deep);
  display: flex;
  align-items: center;
  gap: 14px;
}

.eyebrow::before {
  content: '';
  display: inline-block;
  width: 32px;
  height: 1px;
  background-color: var(--accent);
  flex-shrink: 0;
}

.section-head--center .eyebrow {
  justify-content: center;
}
.section-head--center .eyebrow::after {
  content: '';
  display: inline-block;
  width: 32px;
  height: 1px;
  background-color: var(--accent);
  flex-shrink: 0;
}

.section-title {
  font-family: 'Fraunces', Georgia, 'Times New Roman', serif;
  font-size: clamp(28px, 4.5vw, 44px);
  line-height: 1.15;
  font-weight: 600;
  color: var(--ink);
  margin-top: 16px;
  letter-spacing: -0.01em;
}

.section-sub {
  margin-top: 14px;
  font-size: 16px;
  color: var(--ink-soft);
  max-width: 520px;
}

/* ===========================================
   LOGIN SCREEN
   =========================================== */
.login-screen {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 24px 32px;
  position: relative;
  background-color: #F9F5F0;
  background-image:
    radial-gradient(ellipse 900px 500px at 10% -5%, #F2E6DF 0%, transparent 70%),
    radial-gradient(ellipse 700px 500px at 88% 100%, #EAEDEA 0%, transparent 70%),
    radial-gradient(circle at 1px 1px, rgba(44, 42, 39, 0.02) 1px, transparent 1px);
  background-size: auto, auto, 28px 28px;
}

.login-wrap {
  width: 100%;
  max-width: 520px;
  text-align: center;
  padding: 20px 0 40px;
}

.login-doodle {
  font-family: 'Caveat', cursive;
  font-size: 22px;
  color: #D4AFA5;
  letter-spacing: 10px;
  margin-bottom: 28px;
}

.login-wrap .eyebrow {
  justify-content: center;
  margin-bottom: 20px;
}
.login-wrap .eyebrow::after {
  content: '';
  display: inline-block;
  width: 32px;
  height: 1px;
  background-color: var(--accent);
  flex-shrink: 0;
}

.login-title {
  font-family: 'Fraunces', Georgia, 'Times New Roman', serif;
  font-size: clamp(40px, 8vw, 68px);
  line-height: 1.05;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.login-note {
  font-size: 17px;
  line-height: 1.8;
  color: var(--ink-soft);
  margin-bottom: 36px;
}

.login-card {
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 28px 28px 24px;
  text-align: left;
  box-shadow: var(--shadow);
  max-width: 440px;
  margin: 0 auto;
  position: relative;
}

/* little tape detail on the card */
.login-card::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 40px;
  width: 64px;
  height: 20px;
  background: rgba(216, 196, 170, 0.55);
  border-radius: 2px;
  transform: rotate(-2deg);
}

.field-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 10px;
}

.field-row {
  display: flex;
  gap: 10px;
  align-items: stretch;
}

.field-input {
  flex: 1;
  min-width: 0;
  height: 48px;
  padding: 0 16px;
  font-size: 16px;
  border: 1px solid #D9D2C9;
  border-radius: 6px;
  background: #FDFBF9;
  color: var(--ink);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition), background-color var(--transition);
}

.field-input::placeholder {
  color: #B8B2AA;
}

.field-input:hover {
  border-color: #C9BEB0;
}

.field-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(201, 123, 106, 0.12);
  background: #FFFFFF;
}

.btn-open {
  height: 48px;
  padding: 0 26px;
  background: var(--ink);
  color: #F9F6F2;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: 6px;
  border: 1px solid var(--ink);
  white-space: nowrap;
  transition: background-color var(--transition), transform var(--transition), box-shadow var(--transition);
  flex-shrink: 0;
}

.btn-open:hover {
  background: #3E3B37;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(44, 42, 39, 0.15);
}

.btn-open:active {
  transform: translateY(0);
  box-shadow: none;
}

.btn-open:focus-visible,
.field-input:focus-visible,
.btn-back:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.field-error {
  min-height: 1.4em;
  margin-top: 10px;
  font-size: 14px;
  color: #B85C4C;
  line-height: 1.4;
}

.field-error:empty {
  margin-top: 4px;
}

.field-hint {
  margin-top: 10px;
  font-family: 'Caveat', cursive;
  font-size: 20px;
  color: #9A948D;
  transform: rotate(-1deg);
  display: inline-block;
}

.login-profiles-peek {
  margin-top: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 14px;
  color: var(--ink-muted);
}

.peek-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}
.peek-dot--rose { background: #D89C8C; }
.peek-dot--sage { background: #96B3A0; }
.peek-name {
  font-weight: 500;
  color: var(--ink-soft);
  letter-spacing: 0.01em;
}
.peek-sep {
  font-family: 'Caveat', cursive;
  font-size: 20px;
  color: #BBAFA4;
  margin: 0 4px;
}

.login-footer {
  margin-top: auto;
  padding-top: 24px;
  font-size: 13px;
  color: #9A948D;
  letter-spacing: 0.01em;
}

/* shake animation for wrong id */
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-7px); }
  40% { transform: translateX(7px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(4px); }
}
.shake {
  animation: shake 0.32s ease-in-out;
}
/* ===========================================
   TOP BAR
   =========================================== */
.topbar {
  padding: 20px 24px;
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(251, 247, 242, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(230, 221, 210, 0.7);
}

.topbar-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 24px;
}

.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
  padding: 6px 0;
  transition: color var(--transition), transform var(--transition);
}

.btn-back:hover {
  color: var(--ink);
  transform: translateX(-2px);
}

.btn-back-arrow {
  font-size: 18px;
  line-height: 1;
  color: var(--accent);
}

.topbar-mark {
  font-family: 'Caveat', cursive;
  font-size: 22px;
  color: #A89F96;
  letter-spacing: 0.01em;
}

/* ===========================================
   HERO
   =========================================== */
.hero {
  padding: 56px 24px 40px;
  background:
    radial-gradient(ellipse 700px 420px at 0% 0%, var(--accent-pale) 0%, transparent 70%),
    radial-gradient(ellipse 500px 400px at 100% 60%, #F5F0E9 0%, transparent 70%);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.hero-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 40px;
  align-items: end;
}

.hero-left {
  padding: 10px 0 20px;
}

.hero-left .eyebrow {
  margin-bottom: 20px;
}

.hero-name {
  font-family: 'Fraunces', Georgia, 'Times New Roman', serif;
  font-size: clamp(48px, 8vw, 88px);
  line-height: 0.95;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  /* allow long names to wrap nicely */
  word-wrap: break-word;
}

.hero-born {
  font-size: 15px;
  color: var(--ink-muted);
  letter-spacing: 0.01em;
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.hero-born::before {
  content: '';
  display: inline-block;
  width: 18px;
  height: 1px;
  background: #CFC5B9;
  flex-shrink: 0;
}

.hero-quote {
  font-family: 'Caveat', cursive;
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.45;
  color: var(--accent-deep);
  max-width: 520px;
  padding-left: 18px;
  border-left: 2px solid #E8D5CF;
  transform: rotate(-0.5deg);
  min-height: 1.4em;
}

body.theme-sage .hero-quote {
  border-left-color: #CEDAD3;
}

.hero-right {
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
  padding: 10px 20px 10px 10px;
}

/* Polaroid */
.polaroid {
  background: #FFFFFF;
  padding: 14px 14px 20px 14px;
  box-shadow: 0 4px 10px rgba(44, 42, 39, 0.08), 0 18px 36px rgba(44, 42, 39, 0.1);
  transform: rotate(2.5deg);
  width: min(320px, 100%);
  transition: transform 0.3s ease;
}

.polaroid:hover {
  transform: rotate(1deg) translateY(-4px);
}

.polaroid-photo {
  aspect-ratio: 4 / 5;
  background-color: var(--polaroid-bg);
  background-image:
    radial-gradient(ellipse 70% 50% at 30% 25%, rgba(255,255,255,0.55) 0%, transparent 70%),
    radial-gradient(ellipse 50% 60% at 75% 75%, rgba(201, 123, 106, 0.18) 0%, transparent 70%),
    linear-gradient(180deg, rgba(255,255,255,0.2) 0%, rgba(44,42,39,0.03) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

body.theme-sage .polaroid-photo {
  background-image:
    radial-gradient(ellipse 70% 50% at 30% 25%, rgba(255,255,255,0.55) 0%, transparent 70%),
    radial-gradient(ellipse 50% 60% at 75% 75%, rgba(124, 154, 134, 0.2) 0%, transparent 70%),
    linear-gradient(180deg, rgba(255,255,255,0.2) 0%, rgba(44,42,39,0.03) 100%);
}

.polaroid-initial {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 120px;
  line-height: 1;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.72);
  text-shadow: 0 4px 20px rgba(44, 42, 39, 0.06);
  user-select: none;
}

.polaroid-sparkle {
  position: absolute;
  font-family: 'Caveat', cursive;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1;
  pointer-events: none;
}
.polaroid-sparkle--a { top: 18px; right: 22px; font-size: 28px; transform: rotate(12deg); }
.polaroid-sparkle--b { bottom: 24px; left: 20px; font-size: 22px; color: rgba(255,255,255,0.6); }
.polaroid-sparkle--c { top: 28px; left: 24px; font-size: 16px; color: rgba(255,255,255,0.55); }

.polaroid-caption {
  font-family: 'Caveat', cursive;
  font-size: 24px;
  color: #6A6662;
  text-align: center;
  margin-top: 14px;
  line-height: 1.2;
}

/* ===========================================
   SUMMARY STRIP
   =========================================== */
.summary-strip {
  padding: 28px 24px;
  background: var(--paper-warm);
  border-bottom: 1px solid var(--line);
}

.summary-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 32px;
}

.summary-item {
  display: flex;
  align-items: baseline;
  gap: 10px;
  min-width: 0;
}

.summary-num {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 28px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1;
  white-space: nowrap;
}

.summary-label {
  font-size: 13px;
  color: var(--ink-muted);
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.summary-divider {
  width: 1px;
  height: 28px;
  background: #D9D1C7;
  flex-shrink: 0;
}
/* ===========================================
   TIMELINE
   =========================================== */
.timeline-section {
  padding: 72px 24px 64px;
}

.timeline-inner {
  max-width: 1120px;
  margin: 0 auto;
}

.timeline-section .section-head {
  margin-bottom: 40px;
}

.timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding-left: 28px;
}

/* vertical line */
.timeline::before {
  content: '';
  position: absolute;
  left: 5px;
  top: 8px;
  bottom: 24px;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent) 0%, #DDD3C8 35%, #DDD3C8 100%);
  border-radius: 2px;
}

.timeline-card {
  position: relative;
  padding: 0 0 28px 28px;
}

.timeline-card:last-child {
  padding-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: -28px;
  top: 28px;
  width: 12px;
  height: 12px;
  background: var(--paper);
  border: 2px solid #CFC3B6;
  border-radius: 50%;
  transform: translateX(-50%);
  margin-left: 6px;
  z-index: 2;
  box-sizing: border-box;
}

.timeline-card.is-now .timeline-dot {
  width: 14px;
  height: 14px;
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
  margin-left: 6px;
}

.card {
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 24px 28px 22px;
  box-shadow: var(--shadow-soft);
  transition: transform var(--transition), box-shadow var(--transition);
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.timeline-card.is-now .card {
  border-color: #E7D6D1;
  background: linear-gradient(180deg, #FFFDFC 0%, var(--accent-pale) 100%);
  box-shadow: 0 2px 6px rgba(201, 123, 106, 0.06), 0 10px 24px rgba(201, 123, 106, 0.08);
}

body.theme-sage .timeline-card.is-now .card {
  border-color: #D5E2D9;
}

.card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.card-age {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 28px;
  line-height: 1.1;
  font-weight: 600;
  color: var(--ink);
}

.card-year {
  font-size: 13px;
  color: var(--ink-muted);
  margin-top: 5px;
  letter-spacing: 0.01em;
}

.card-tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #7A706A;
  background: #F6F1EB;
  border: 1px solid #EBE3D9;
  border-radius: 999px;
  white-space: nowrap;
  flex-shrink: 0;
}

.card-tag--now {
  color: var(--accent-deep);
  background: var(--accent-soft);
  border-color: #ECDDD8;
}

body.theme-sage .card-tag--now {
  border-color: #CDDDD3;
}

.card-wish {
  font-size: 17px;
  line-height: 1.75;
  color: #3E3B38;
  max-width: 760px;
}

.card-note {
  margin-top: 14px;
  font-family: 'Caveat', cursive;
  font-size: 21px;
  line-height: 1.45;
  color: #8A847D;
  padding-left: 2px;
}

.card-note:empty {
  display: none;
}

/* ===========================================
   THEN & NOW
   =========================================== */
.then-now-section {
  padding: 64px 24px 72px;
  background: #F4EFEB;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.then-now-inner {
  max-width: 1120px;
  margin: 0 auto;
}

.then-now-section .section-head {
  margin-bottom: 36px;
}

.section-head--center {
  text-align: center;
}

.then-now-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 24px;
  align-items: stretch;
}

.then-now-card {
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 32px 32px 28px;
  box-shadow: var(--shadow-soft);
  min-width: 0;
}

.then-now-card--then {
  background: #FDFBF9;
}

.then-now-card--now {
  background: var(--accent-pale);
  border-color: #ECDDD8;
}

body.theme-sage .then-now-card--now {
  border-color: #D5E2D9;
}

.then-now-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 14px;
  display: block;
}

.then-now-card--now .then-now-tag {
  color: var(--accent-deep);
}

.then-now-age {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 32px;
  line-height: 1.1;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 14px;
}

.then-now-text {
  font-size: 17px;
  line-height: 1.75;
  color: #4A4744;
}

.then-now-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Caveat', cursive;
  font-size: 42px;
  color: #CCBFB2;
  padding: 0 8px;
}

/* ===========================================
   FOOTER
   =========================================== */
.page-footer {
  padding: 44px 24px 56px;
  background: var(--paper);
}

.page-footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  text-align: center;
}

.footer-hand {
  font-family: 'Caveat', cursive;
  font-size: 30px;
  color: #7A746D;
  margin-bottom: 10px;
  line-height: 1.3;
}

.footer-small {
  font-size: 13px;
  color: #9A948D;
  letter-spacing: 0.02em;
}

/* ===========================================
   RESPONSIVE
   =========================================== */
@media (max-width: 980px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    gap: 24px;
  }
  .polaroid {
    width: min(280px, 100%);
  }
  .polaroid-initial {
    font-size: 100px;
  }
}

@media (max-width: 800px) {
  .hero {
    padding: 40px 20px 32px;
  }
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }
  .hero-right {
    justify-content: flex-start;
    padding: 10px 0 0;
  }
  .polaroid {
    width: min(300px, 100%);
    transform: rotate(1.5deg);
  }
  .hero-quote {
    max-width: 100%;
  }
  .then-now-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }
  .then-now-arrow {
    padding: 4px 0;
    font-size: 32px;
    transform: rotate(90deg);
  }
}

@media (max-width: 680px) {
  .summary-inner {
    flex-wrap: wrap;
    gap: 16px 24px;
  }
  .summary-divider {
    display: none;
  }
  .summary-item {
    min-width: 80px;
  }
  .card {
    padding: 20px 20px 18px;
  }
  .card-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .timeline {
    padding-left: 22px;
  }
  .timeline-card {
    padding-left: 22px;
  }
  .timeline-dot {
    left: -22px;
  }
}

@media (max-width: 540px) {
  .login-card {
    padding: 24px 20px 20px;
  }
  .field-row {
    flex-direction: column;
    align-items: stretch;
  }
  .btn-open {
    width: 100%;
  }
  .login-note br {
    display: none;
  }
  .topbar-mark {
    font-size: 20px;
  }
  .hero-name {
    font-size: 56px;
  }
  .section-title {
    font-size: 32px;
  }
  .then-now-card {
    padding: 24px 22px;
  }
  .footer-hand {
    font-size: 26px;
  }
}

@media (max-width: 400px) {
  .login-screen {
    padding: 36px 18px 24px;
  }
  .hero {
    padding: 32px 18px 28px;
  }
  .timeline-section,
  .then-now-section,
  .summary-strip,
  .page-footer {
    padding-left: 18px;
    padding-right: 18px;
  }
  .summary-item {
    min-width: 70px;
  }
  .summary-num {
    font-size: 24px;
  }
}

@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;
  }
}
/* ===========================================
   EDIT / SAVE UI
   =========================================== */
.section-head-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.save-area {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 10px;
  flex-shrink: 0;
}

.save-area-bottom {
  margin-top: 28px;
  justify-content: flex-end;
  padding-top: 8px;
}

.save-status {
  font-size: 13px;
  color: var(--ink-muted);
  min-height: 1.2em;
  min-width: 40px;
  text-align: right;
  transition: color var(--transition);
}

.save-status--ok {
  color: #5E7D69;
}

.save-status--err {
  color: #B85C4C;
}

.btn-save {
  height: 42px;
  padding: 0 24px;
  background: var(--ink);
  color: #F9F6F2;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: 6px;
  border: 1px solid var(--ink);
  white-space: nowrap;
  transition: background-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.btn-save:hover {
  background: #3E3B37;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(44, 42, 39, 0.12);
}

.btn-save:active {
  transform: translateY(0);
  box-shadow: none;
}

.btn-save:focus-visible,
.wish-input:focus-visible,
.note-input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.wish-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 10px;
}

.wish-input {
  width: 100%;
  min-height: 96px;
  padding: 14px 16px;
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  color: #3E3B38;
  background: #FDFBF9;
  border: 1px solid #DDD4C9;
  border-radius: 8px;
  resize: vertical;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition), background-color var(--transition);
}

.wish-input::placeholder {
  color: #B8B1A8;
}

.wish-input:hover {
  border-color: #CFC2B3;
}

.wish-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(201, 123, 106, 0.10);
  background: #FFFFFF;
}

body.theme-sage .wish-input:focus {
  box-shadow: 0 0 0 3px rgba(124, 154, 134, 0.12);
}

.note-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9A948D;
  margin-top: 16px;
  margin-bottom: 8px;
}

.note-input {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  font-family: 'Caveat', cursive;
  font-size: 20px;
  color: #6F6A64;
  background: transparent;
  border: none;
  border-bottom: 1px solid #E3DAD0;
  border-radius: 0;
  outline: none;
  transition: border-color var(--transition), background-color var(--transition);
}

.note-input::placeholder {
  color: #BEB7AE;
}

.note-input:hover {
  border-bottom-color: #CFC3B6;
}

.note-input:focus {
  border-bottom-color: var(--accent);
  background: rgba(255,255,255,0.5);
}

.then-now-text.is-empty {
  color: #A9A29A;
  font-style: italic;
}

@media (max-width: 800px) {
  .section-head-row {
    flex-direction: column;
    align-items: flex-start;
  }
  .save-area {
    padding-top: 0;
    width: 100%;
    justify-content: flex-start;
  }
  .save-status {
    text-align: left;
  }
  .save-area-bottom {
    justify-content: flex-start;
  }
}
/* photo polaroid */
.polaroid-photo {
  aspect-ratio: 4 / 5;
  background-color: #EFE7DF;
  position: relative;
  overflow: hidden;
}

.polaroid-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  display: block;
  filter: saturate(0.88) contrast(0.98) brightness(1.02);
}
