/* ============================================================
   Golden Days — a living journal
   ============================================================ */

:root {
  --paper: #faf7f3;
  --paper-2: #fffaf7;
  --paper-3: #f3e7e2;
  --card: #fffdfb;
  --ink: #3b3333;
  --ink-soft: #514647;
  --muted: #7c6c6d;
  --faint: #a99596;
  --gold: #d8b98a;
  --gold-deep: #b88c7d;
  --honey: #e8d3b4;
  --butter: #f0d9d2;
  --butter-soft: #f7e8e2;
  --rose: #d9a7a0;
  --rose-deep: #b97c74;
  --rose-soft: #f7e7e0;
  --mauve: #8a6f72;
  --champagne: #e8d3b4;
  --sage: #7a816b;
  --sage-soft: #ebeee3;
  --line: #eadcd6;
  --line-strong: #decfc8;
  --danger: #a84231;
  --danger-soft: #f7e2dc;
  --shadow-sm: 0 8px 24px rgba(122, 92, 84, 0.08);
  --shadow-md: 0 20px 50px rgba(122, 92, 84, 0.12);
  --shadow-lg: 0 36px 90px rgba(90, 64, 60, 0.18);
  --radius: 18px;
  --radius-lg: 28px;
  --font-serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", "Songti SC", "STSong", "Noto Serif CJK SC", "Source Han Serif SC", "SimSun", serif;
  --font-sans: "Avenir Next", "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-mono: "SFMono-Regular", "Cascadia Mono", "Roboto Mono", Consolas, monospace;
  --pad: clamp(20px, 6vw, 96px);
  --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: 92px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(ellipse at 88% -8%, rgba(232, 211, 180, 0.58), transparent 48%),
    radial-gradient(ellipse at -12% 18%, rgba(247, 231, 224, 0.78), transparent 40%),
    linear-gradient(180deg, #faf7f3 0%, #f8f1ed 55%, #faf7f3 100%);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.7;
  overflow-x: hidden;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.is-locked { overflow: hidden; }

img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; }
p, h1, h2, h3, figure, figcaption { margin: 0; }
fieldset { margin: 0; padding: 0; border: 0; }
[hidden] { display: none !important; }
::selection { background: rgba(217, 167, 160, 0.35); color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--gold-deep);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 4000;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-size: 12px;
  transform: translateY(-160%);
  transition: transform 0.3s var(--ease);
}
.skip-link:focus { transform: translateY(0); }

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

.icon {
  width: 1.05em;
  height: 1.05em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.paper-grain {
  position: fixed;
  inset: -40%;
  z-index: 3000;
  pointer-events: none;
  opacity: 0.035;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 220 220' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.88' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.6s steps(2) infinite;
}

@keyframes grain {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-1%, 1.2%); }
  50% { transform: translate(1.2%, -0.8%); }
  75% { transform: translate(-0.8%, -1.2%); }
  100% { transform: translate(1%, 1%); }
}

.pollen {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.55;
}

main,
.site-head,
.site-foot { position: relative; z-index: 2; }

/* ---------- type helpers ---------- */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 9px;
  line-height: 1.4;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow--dark { color: rgba(68, 52, 24, 0.62); }
.eyebrow__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 3px rgba(227, 176, 75, 0.16);
}

.section-title {
  margin-top: 14px;
  font-family: var(--font-serif);
  font-size: clamp(2.7rem, 4.6vw, 5.2rem);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.05em;
}

.section {
  padding: clamp(90px, 12vh, 150px) var(--pad);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.65fr);
  gap: 5vw;
  align-items: end;
  max-width: 1560px;
  margin: 0 auto clamp(40px, 5vw, 70px);
}
.section-head--split { align-items: end; }
.section-note {
  max-width: 360px;
  margin-left: auto;
  font-size: 13px;
  line-height: 2;
  color: var(--muted);
}
.section-head--split .section-note { margin-bottom: 8px; }

/* ---------- buttons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 50px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.05em;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.35s ease, color 0.35s ease, border-color 0.35s ease, transform 0.35s var(--ease), box-shadow 0.35s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn .icon { font-size: 16px; }

.btn--gold {
  background: linear-gradient(135deg, #f0d3cc, var(--rose) 55%, #c98f86);
  border-color: rgba(150, 90, 85, 0.2);
  color: #4a2b2c;
  box-shadow: 0 10px 24px rgba(150, 90, 85, 0.2);
}
.btn--gold:hover {
  background: linear-gradient(135deg, #f6ded8, #d9a7a0 55%, #c4867c);
  box-shadow: 0 14px 30px rgba(150, 90, 85, 0.28);
}
.btn--line {
  border-color: var(--line-strong);
  background: rgba(255, 253, 248, 0.5);
  color: var(--ink-soft);
}
.btn--line:hover { background: var(--rose-soft); border-color: var(--rose-deep); }
.btn--ghost {
  background: #f5e9e4;
  border-color: transparent;
  color: var(--ink-soft);
}
.btn--ghost:hover { background: #efddd7; }
.btn--danger {
  background: var(--danger-soft);
  border-color: #ecc8bd;
  color: var(--danger);
}
.btn--danger:hover { background: #f2d3ca; }
.btn--small { min-height: 40px; padding: 0 16px; font-size: 11px; }
.btn--small .icon { font-size: 14px; }

.icon-btn {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 253, 248, 0.55);
  color: var(--ink-soft);
  cursor: pointer;
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s var(--ease);
}
.icon-btn:hover { background: #fff3d3; border-color: #d7ba82; transform: rotate(8deg); }
.icon-btn .icon { font-size: 18px; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 0 3px;
  border: 0;
  border-bottom: 1px solid currentColor;
  background: none;
  color: var(--ink-soft);
  font-size: 11px;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: color 0.3s ease, gap 0.3s ease;
}
.text-link:hover { color: var(--gold-deep); gap: 10px; }

/* ---------- header ---------- */
.site-head {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  padding: 0 var(--pad);
  border-bottom: 1px solid transparent;
  transition: height 0.45s var(--ease), background 0.45s ease, border-color 0.45s ease, box-shadow 0.45s ease;
}
.site-head.is-scrolled {
  height: 70px;
  background: rgba(251, 246, 234, 0.82);
  border-color: var(--line);
  box-shadow: 0 10px 30px rgba(112, 84, 32, 0.06);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand__sun {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f8e5df, #d9a7a0);
  color: #6c4547;
  box-shadow: 0 6px 16px rgba(150, 90, 85, 0.2);
}
.brand__sun .icon { font-size: 20px; stroke-width: 1.8; }
.brand__text { display: flex; flex-direction: column; line-height: 1.2; }
.brand__text strong {
  font-family: var(--font-serif);
  font-size: 19px;
  font-style: normal;
  font-weight: 400;
  letter-spacing: 0.04em;
}
.brand__text small {
  margin-top: 3px;
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.site-nav { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 36px); }
.site-nav a {
  position: relative;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--muted);
  transition: color 0.3s ease;
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -7px;
  width: 100%;
  height: 1px;
  background: var(--gold-deep);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.45s var(--ease);
}
.site-nav a:hover { color: var(--ink); }
.site-nav a:hover::after { transform: scaleX(1); transform-origin: left; }

.head-actions { display: flex; align-items: center; gap: 10px; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.98fr);
  gap: clamp(30px, 4vw, 70px);
  align-items: center;
  max-width: 1600px;
  min-height: calc(100vh - 80px);
  min-height: calc(100svh - 80px);
  margin: 0 auto;
  padding: clamp(48px, 7vh, 90px) var(--pad) clamp(80px, 10vh, 130px);
}
.hero__copy { position: relative; z-index: 2; max-width: 780px; }
.hero__copy > * { animation: riseIn 0.9s var(--ease) both; }
.hero__copy > :nth-child(1) { animation-delay: 0.04s; }
.hero__copy > :nth-child(2) { animation-delay: 0.12s; }
.hero__copy > :nth-child(3) { animation-delay: 0.22s; }
.hero__copy > :nth-child(4) { animation-delay: 0.3s; }
.hero__copy > :nth-child(5) { animation-delay: 0.38s; }
.hero__copy > :nth-child(6) { animation-delay: 0.44s; }

@keyframes riseIn {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero__title {
  margin-top: 22px;
  font-family: var(--font-serif);
  font-size: clamp(3.4rem, 6.2vw, 6rem);
  font-weight: 400;
  line-height: 1.13;
  letter-spacing: -0.065em;
}
.marker {
  position: relative;
  display: inline-block;
  color: var(--rose-deep);
  font-style: italic;
  padding: 0 0.04em;
  background: linear-gradient(180deg, transparent 64%, rgba(217, 167, 160, 0.3) 64%, rgba(217, 167, 160, 0.3) 92%, transparent 92%);
}
.marker::after {
  content: "";
  position: absolute;
  left: 0.04em;
  right: -0.03em;
  bottom: 0.03em;
  height: 1px;
  background: linear-gradient(90deg, var(--gold-deep), transparent);
  opacity: 0.55;
}

.hero__lede {
  margin-top: clamp(24px, 3.4vh, 36px);
  max-width: 510px;
  font-size: 14.5px;
  line-height: 2.05;
  color: var(--muted);
}
.hero__lede strong {
  font-weight: 500;
  color: var(--ink);
  border-bottom: 1px solid var(--gold);
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 34px; }

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 38px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  color: var(--faint);
}
.hero__meta b { font-weight: 500; color: var(--ink-soft); }
.meta-dot { width: 3px; height: 3px; border-radius: 50%; background: var(--line-strong); }
.author-split {
  display: inline-flex;
  align-items: center;
  padding: 2px 9px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.55);
  color: var(--muted);
  font-size: 8px;
  letter-spacing: 0.05em;
  white-space: nowrap;
}
.demo-note { margin-top: 12px; font-size: 10px; color: var(--faint); }
.demo-note button {
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  background: none;
  color: var(--muted);
  font-size: inherit;
  cursor: pointer;
}
.demo-note button:hover { color: var(--gold-deep); border-color: var(--gold-deep); }

.hero__visual {
  position: relative;
  justify-self: end;
  width: 100%;
  max-width: 640px;
  aspect-ratio: 1 / 0.98;
}
.rose-disc {
  position: absolute;
  top: 7%;
  left: 7%;
  width: 76%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 32%, #fffaf7 0%, #f7e5df 48%, #edcfc9 100%);
  box-shadow: 0 40px 90px rgba(150, 90, 85, 0.18), inset -20px -24px 50px rgba(150, 90, 85, 0.08);
  animation: roseFloat 9s ease-in-out infinite alternate;
}
@keyframes roseFloat {
  from { transform: translateY(0); }
  to { transform: translateY(-10px); }
}
.hero__rose {
  position: absolute;
  top: -3%;
  right: -4%;
  z-index: 1;
  width: 46%;
  aspect-ratio: 1 / 0.98;
  background: url("../img/flowers/pale-rose.webp") center / contain no-repeat;
  filter: drop-shadow(0 18px 30px rgba(150, 90, 85, 0.2));
  transform: rotate(6deg);
  pointer-events: none;
  animation: roseFloat 11s ease-in-out infinite alternate;
}
.sun-ring {
  position: absolute;
  border: 1px solid rgba(185, 124, 116, 0.22);
  border-radius: 50%;
  pointer-events: none;
}
.sun-ring--1 { top: 1%; left: 1%; width: 88%; aspect-ratio: 1; transform: rotate(-18deg) scaleY(0.85); }
.sun-ring--2 { top: 12%; left: 12%; width: 66%; aspect-ratio: 1; border-style: dashed; opacity: 0.7; }

.botanical {
  position: absolute;
  left: 4%;
  bottom: 0;
  width: 54%;
  height: auto;
  fill: none;
  stroke: #b88984;
  stroke-width: 1.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.36;
  pointer-events: none;
}

.collage { position: absolute; inset: 0; }

.snap {
  position: absolute;
  display: block;
  width: 45%;
  padding: 9px 9px 11px;
  border: 1px solid #eee0c6;
  border-radius: 3px;
  background: #fffdf8;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  transform: rotate(var(--r, 0deg));
  transition: transform 0.55s var(--ease), box-shadow 0.55s ease, z-index 0s;
}
.snap:hover {
  transform: rotate(0deg) translateY(-7px) scale(1.015);
  box-shadow: var(--shadow-lg);
  z-index: 20 !important;
}
.snap::before {
  content: "";
  position: absolute;
  top: -9px;
  left: 50%;
  width: 64px;
  height: 18px;
  transform: translateX(-50%) rotate(-2deg);
  background: rgba(236, 208, 138, 0.55);
  box-shadow: 0 1px 4px rgba(90, 60, 20, 0.08);
}
.snap img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: var(--paper-3);
  filter: saturate(1.03) sepia(0.04);
}
.snap__caption {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 3px 1px;
}
.snap__date {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
}
.snap__place {
  max-width: 62%;
  overflow: hidden;
  font-family: var(--font-serif);
  font-size: 10px;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}
.snap--1 { top: 5%; left: 0; z-index: 3; --r: -7deg; }
.snap--2 { top: 28%; right: 0; z-index: 4; --r: 5deg; width: 42%; }
.snap--3 { bottom: 1%; left: 25%; z-index: 5; --r: -2.5deg; width: 40%; }
.snap--empty {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 5;
  border: 1px dashed #d9c39a;
  background: linear-gradient(135deg, rgba(255, 253, 248, 0.9), rgba(251, 233, 185, 0.5));
  color: var(--muted);
  cursor: pointer;
}
.snap--empty .snap__empty-inner { padding: 16px; text-align: center; }
.snap--empty .icon { margin: 0 auto 10px; font-size: 26px; color: var(--gold-deep); }
.snap--empty b { display: block; font-family: var(--font-serif); font-size: 16px; font-weight: 400; }
.snap--empty small { font-size: 9px; letter-spacing: 0.1em; }

.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.24em;
  color: var(--faint);
}
.scroll-hint i {
  position: relative;
  display: block;
  width: 1px;
  height: 32px;
  overflow: hidden;
  background: var(--line-strong);
}
.scroll-hint i::after {
  content: "";
  position: absolute;
  top: -100%;
  left: 0;
  width: 1px;
  height: 100%;
  background: var(--gold-deep);
  animation: scrollLine 2.4s var(--ease-soft) infinite;
}
@keyframes scrollLine {
  0% { transform: translateY(0); }
  55% { transform: translateY(200%); }
  100% { transform: translateY(200%); }
}

/* ---------- anniversary ---------- */
.anniversary { position: relative; padding: 0 var(--pad) clamp(70px, 9vw, 110px); }
.anniversary__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(30px, 4vw, 70px);
  align-items: center;
  max-width: 1600px;
  margin: 0 auto;
  padding: clamp(34px, 4.5vw, 62px);
  overflow: hidden;
  border: 1px solid rgba(185, 124, 116, 0.18);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 84% 8%, rgba(255, 255, 255, 0.5), transparent 34%),
    radial-gradient(circle at 12% 110%, rgba(255, 238, 234, 0.7), transparent 36%),
    linear-gradient(135deg, #f6e6e0 0%, #efd3cc 55%, #e7c1ba 100%);
  box-shadow: 0 28px 70px rgba(150, 90, 85, 0.18);
}
.anniversary__inner::before {
  content: "";
  position: absolute;
  top: -130px;
  right: -90px;
  width: 340px;
  height: 340px;
  border: 1px solid rgba(126, 81, 13, 0.16);
  border-radius: 50%;
  box-shadow: 0 0 0 38px rgba(255, 250, 225, 0.12), 0 0 0 76px rgba(255, 250, 225, 0.08);
  pointer-events: none;
}
.anniversary__intro { position: relative; z-index: 1; }
.anniversary__intro h2 {
  margin: 14px 0 24px;
  font-family: var(--font-serif);
  font-size: clamp(1.9rem, 2.35vw, 2.65rem);
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -0.04em;
  color: #4a3134;
}
.anniversary__intro .text-link { color: #7a4b55; border-color: rgba(122, 75, 85, 0.4); }

.anniversary__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.stat-card {
  padding: 22px 20px 20px;
  border: 1px solid rgba(185, 124, 116, 0.16);
  border-radius: 16px;
  background: rgba(255, 251, 248, 0.62);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.stat-card--highlight { background: rgba(255, 251, 248, 0.86); box-shadow: 0 14px 32px rgba(150, 90, 85, 0.12); }
.stat-card__label {
  display: block;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(74, 49, 52, 0.62);
}
.stat-card p { display: flex; align-items: baseline; gap: 5px; margin: 14px 0 6px; }
.stat-card strong {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 3.6vw, 4.2rem);
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: -0.05em;
  color: #3f2d0e;
  font-variant-numeric: tabular-nums;
}
.stat-card em { font-size: 11px; font-style: normal; color: rgba(72, 50, 13, 0.65); }
.stat-card small { display: block; font-size: 9px; line-height: 1.7; color: rgba(72, 50, 13, 0.56); }

/* ---------- hobbies ---------- */
.hobbies { background: linear-gradient(180deg, transparent, rgba(255, 250, 240, 0.4)); }
.hobby-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  max-width: 1560px;
  margin: 0 auto;
}
.hobby-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 218px;
  padding: 26px 24px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 253, 248, 0.78);
  text-align: left;
  cursor: pointer;
  transition: transform 0.45s var(--ease), border-color 0.45s ease, background 0.45s ease, box-shadow 0.45s ease;
}
.hobby-card:hover {
  transform: translateY(-6px);
  border-color: #d9b96f;
  background: #fffaf0;
  box-shadow: var(--shadow-md);
}
.hobby-card.is-active {
  border-color: var(--gold-deep);
  background: linear-gradient(140deg, #fff9e6, #fbe9b9);
  box-shadow: 0 16px 36px rgba(186, 124, 28, 0.12);
}
.hobby-card__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.hobby-card__icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 1px solid #dfe5d2;
  border-radius: 50%;
  background: var(--sage-soft);
  color: var(--sage);
}
.hobby-card__icon .icon { font-size: 25px; }
.hobby-card__count { font-family: var(--font-mono); font-size: 8px; letter-spacing: 0.08em; color: var(--faint); }
.hobby-card__count b { font-family: var(--font-serif); font-size: 21px; font-weight: 400; color: var(--ink-soft); }
.hobby-card h3 {
  margin-top: 22px;
  font-family: var(--font-serif);
  font-size: 1.55rem;
  font-weight: 400;
  letter-spacing: -0.02em;
}
.hobby-card p { margin-top: 6px; font-size: 12px; line-height: 1.8; color: var(--muted); }
.hobby-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 20px;
  font-size: 9px;
  color: var(--faint);
}
.hobby-card__foot span:last-child { font-family: var(--font-mono); letter-spacing: 0.06em; }
.hobby-card__arrow { transition: transform 0.4s var(--ease); }
.hobby-card:hover .hobby-card__arrow { transform: translateX(4px); }

/* ---------- gallery ---------- */
.gallery {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: radial-gradient(ellipse at 90% 4%, rgba(217, 167, 160, 0.18), transparent 32%), #fffaf7;
}
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  max-width: 1560px;
  margin: 0 auto 36px;
}
.filter-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.filter-chip {
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.6);
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
.filter-chip:hover { background: #fff4d8; color: var(--ink); }
.filter-chip.is-active { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.filter-select { margin-left: auto; }
.filter-select select {
  height: 36px;
  padding: 0 32px 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card) 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='%237d7260' stroke-width='1.6'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 13px center;
  color: var(--ink-soft);
  font-size: 10px;
  appearance: none;
  cursor: pointer;
}
.filter-clear {
  height: 34px;
  padding: 0 4px;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  background: none;
  color: var(--muted);
  font-size: 10px;
  cursor: pointer;
}
.filter-clear:hover { color: var(--gold-deep); border-color: var(--gold-deep); }

.gallery-grid { column-count: 3; column-gap: 20px; max-width: 1560px; margin: 0 auto; }
.photo-card {
  position: relative;
  display: block;
  width: 100%;
  margin: 0 0 20px;
  padding: 9px 9px 12px;
  break-inside: avoid;
  border: 1px solid #efe3cd;
  border-radius: 14px;
  background: var(--card);
  box-shadow: var(--shadow-sm);
  text-align: left;
  cursor: pointer;
  transform: rotate(var(--rotate, 0deg));
  transition: transform 0.5s var(--ease), box-shadow 0.5s ease;
}
.photo-card:nth-child(4n + 2) { --rotate: 0.5deg; }
.photo-card:nth-child(4n + 4) { --rotate: -0.45deg; }
.photo-card:hover { transform: rotate(0deg) translateY(-5px); box-shadow: var(--shadow-md); }
.photo-card__image { position: relative; display: block; overflow: hidden; border-radius: 9px; background: var(--paper-3); }
.photo-card__image img {
  width: 100%;
  height: auto;
  display: block;
  filter: saturate(1.04) sepia(0.045);
  transition: transform 0.9s var(--ease);
}
.photo-card:hover .photo-card__image img { transform: scale(1.025); }
.photo-card__date {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  padding: 4px 8px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.84);
  box-shadow: 0 2px 10px rgba(60, 42, 12, 0.12);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  white-space: nowrap;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.photo-card__body { display: block; padding: 11px 4px 1px; }
.photo-card__title { display: block; font-family: var(--font-serif); font-size: 1.02rem; line-height: 1.45; color: var(--ink); }
.photo-card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; margin-top: 4px; font-size: 9px; color: var(--faint); }
.photo-card__meta .icon { font-size: 10px; }
.photo-card__author { color: var(--muted); }
.photo-card__count {
  position: absolute;
  right: 16px;
  bottom: 14px;
  padding: 2px 6px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.06em;
}

.empty-state {
  max-width: 520px;
  margin: 30px auto 0;
  padding: 44px 26px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  background: rgba(255, 253, 248, 0.55);
  text-align: center;
}
.empty-state__sun {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: var(--butter-soft);
  color: var(--gold-deep);
}
.empty-state__sun .icon { font-size: 24px; }
.empty-state h3 { font-family: var(--font-serif); font-size: 1.5rem; font-weight: 400; }
.empty-state p { margin: 8px 0 20px; font-size: 12px; color: var(--muted); }

/* ---------- meetings ---------- */
.meetings { background: linear-gradient(180deg, rgba(255, 250, 240, 0.35), transparent); }
.meeting-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 14px; }
.meeting-meta .section-note { margin: 0; text-align: right; }

.timeline { position: relative; max-width: 1080px; margin: 0 auto; }
.timeline::before {
  content: "";
  position: absolute;
  top: 8px;
  bottom: 30px;
  left: 85px;
  width: 1px;
  background: linear-gradient(180deg, var(--line-strong), rgba(232, 220, 196, 0.2));
}
.month-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 12px 0 22px;
  padding-left: 108px;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.2em;
  color: var(--faint);
}
.month-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.meeting {
  position: relative;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 34px;
  padding-bottom: 30px;
}
.meeting::before {
  content: "";
  position: absolute;
  top: 11px;
  left: 81px;
  z-index: 2;
  width: 9px;
  height: 9px;
  border: 2px solid var(--paper);
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 1px var(--gold-deep);
}
.meeting__date { padding-top: 2px; text-align: right; color: var(--muted); }
.meeting__day {
  display: block;
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--ink);
}
.meeting__month {
  display: block;
  margin-top: 5px;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.meeting__year { display: block; margin-top: 2px; font-size: 8px; color: var(--faint); }

.meeting__card {
  position: relative;
  padding: 24px 26px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 253, 248, 0.8);
  transition: border-color 0.4s ease, box-shadow 0.4s ease, transform 0.4s var(--ease);
}
.meeting__card:hover { border-color: #ddc38b; box-shadow: var(--shadow-sm); transform: translateY(-2px); }

/* 天气背景：实景照片 + 浅色蒙层，保证文字可读 */
.meeting__card--sunny {
  border-color: #ead9b2;
  background-color: #fffaf0;
  background-image:
    linear-gradient(120deg, rgba(255, 253, 248, 0.9), rgba(250, 240, 236, 0.8)),
    url("../img/weather/sunny.jpg");
  background-size: cover;
  background-position: center 38%;
  background-repeat: no-repeat;
}
.meeting__card--cloudy {
  border-color: #dfe4df;
  background-color: #fbfaf5;
  background-image:
    linear-gradient(120deg, rgba(255, 253, 248, 0.92), rgba(242, 244, 239, 0.84)),
    url("../img/weather/cloudy.jpg");
  background-size: cover;
  background-position: center 42%;
  background-repeat: no-repeat;
}
.meeting__card--rainy {
  border-color: #d8e2e4;
  background-color: #f7fbfa;
  background-image:
    linear-gradient(120deg, rgba(252, 253, 251, 0.91), rgba(237, 242, 242, 0.82)),
    url("../img/weather/rainy.jpg");
  background-size: cover;
  background-position: center 56%;
  background-repeat: no-repeat;
}
.meeting__card--snowy {
  border-color: #e0ebed;
  background-color: #fbfdfd;
  background-image:
    linear-gradient(120deg, rgba(255, 254, 251, 0.91), rgba(238, 245, 246, 0.82)),
    url("../img/weather/snowy.jpg");
  background-size: cover;
  background-position: center 42%;
  background-repeat: no-repeat;
}

.meeting__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding-right: 38px;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.08em;
  color: var(--faint);
}
.meeting__meta span { display: inline-flex; align-items: center; gap: 4px; }
.meeting__meta .icon { font-size: 11px; }
.meeting__time { display: inline-flex; align-items: center; gap: 5px; }
.meeting__period {
  padding: 2px 6px;
  border: 1px solid rgba(185, 124, 116, 0.24);
  border-radius: 999px;
  background: rgba(247, 231, 224, 0.82);
  color: var(--rose-deep);
  font-family: var(--font-sans);
  font-size: 8px;
  font-style: normal;
  letter-spacing: 0.04em;
}
.meeting__meta .sep { width: 3px; height: 3px; border-radius: 50%; background: var(--line-strong); }
.author-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: 9px;
  letter-spacing: 0;
}
.author-chip::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
}
.author-chip--me::before { background: var(--sage); }
.demo-chip {
  padding: 2px 6px;
  border: 1px solid #e7d3a5;
  border-radius: 999px;
  background: #fdf3d6;
  color: #9a7024;
  font-size: 7px;
  letter-spacing: 0.08em;
}
.meeting__title {
  margin-top: 10px;
  padding-right: 40px;
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 1.7vw, 1.6rem);
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: -0.02em;
}
.meeting__note {
  margin-top: 8px;
  max-width: 760px;
  font-size: 13px;
  line-height: 2;
  color: var(--muted);
  white-space: pre-wrap;
}
.meeting__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.tag {
  padding: 3px 9px;
  border: 1px solid #dfe5d2;
  border-radius: 999px;
  background: var(--sage-soft);
  color: #5d6b47;
  font-size: 9px;
}
.meeting__photos { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 16px; }
.meeting__comments {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 14px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: .04em;
  cursor: pointer;
}
.meeting__comments:hover { color: var(--gold-deep); }
.meeting__comments .icon { font-size: 12px; color: var(--gold-deep); }
.meeting__thumb {
  width: 88px;
  height: 70px;
  padding: 0;
  border: 1px solid #e9dcc3;
  border-radius: 8px;
  background: var(--paper-3);
  overflow: hidden;
  cursor: pointer;
}
.meeting__thumb img { width: 100%; height: 100%; object-fit: cover; filter: saturate(1.04) sepia(0.05); transition: transform 0.5s var(--ease); }
.meeting__thumb:hover img { transform: scale(1.06); }
.meeting__thumb--more {
  display: grid;
  place-items: center;
  color: var(--gold-deep);
  background: var(--butter-soft);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .03em;
}
.meeting__edit {
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--card);
  color: var(--muted);
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.3s ease, background 0.3s ease, color 0.3s ease;
}
.meeting__card:hover .meeting__edit,
.meeting__edit:focus-visible { opacity: 1; }
.meeting__edit:hover { background: var(--butter-soft); color: var(--ink); }
.meeting__edit .icon { font-size: 14px; }

.load-more-wrap { display: flex; justify-content: center; margin-top: 34px; }

/* ---------- year ---------- */
.year-section {
  padding: clamp(80px, 10vh, 120px) var(--pad);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(ellipse at 8% 10%, rgba(255, 255, 255, 0.55), transparent 30%),
    linear-gradient(135deg, #f7e9e4, #f0d8d1 55%, #e9c9c2);
}
.year-head { max-width: 1560px; margin: 0 auto 44px; }
.year-head h2 {
  margin: 12px 0 8px;
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 4vw, 4.4rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.05em;
  color: #4a3134;
}
.year-head h2 span { font-style: italic; color: #7a4b55; }
.year-head > p:last-child { font-size: 12px; color: rgba(74, 49, 52, 0.6); }

.year-months {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 8px;
  max-width: 1560px;
  margin: 0 auto;
}
.month {
  min-height: 96px;
  padding: 12px 8px 10px;
  border-top: 1px solid rgba(122, 75, 85, 0.22);
  color: rgba(74, 49, 52, 0.65);
}
.month.is-current {
  background: transparent;
  border-top-color: #7a4b55;
  box-shadow: inset 0 -2px 0 rgba(122, 75, 85, 0.28);
}
.month.is-current .month__name { color: #4a3134; }
.month__name { display: block; font-family: var(--font-mono); font-size: 8px; letter-spacing: 0.12em; }
.month__count { display: block; margin-top: 3px; font-family: var(--font-serif); font-size: 1.2rem; color: #4a3134; }
.month__dots { display: flex; flex-wrap: wrap; gap: 3px; margin-top: 10px; }
.month__dot { width: 6px; height: 6px; border-radius: 50%; background: #a56f72; opacity: 0.75; }
.month__more { font-family: var(--font-mono); font-size: 7px; color: rgba(74, 49, 52, 0.55); }

/* ---------- closing ---------- */
.closing {
  position: relative;
  padding: clamp(110px, 15vh, 190px) var(--pad);
  overflow: hidden;
  text-align: center;
}
.closing__sun {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin: 0 auto 22px;
  border-radius: 50%;
  background: var(--butter-soft);
  color: var(--gold-deep);
}
.closing__sun .icon { font-size: 28px; }
.closing h2 {
  margin: 18px 0 34px;
  font-family: var(--font-serif);
  font-size: clamp(3rem, 5.4vw, 6rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.06em;
}
.closing .eyebrow { justify-content: center; }

/* ---------- footer ---------- */
.site-foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  padding: 44px var(--pad) 34px;
  border-top: 1px solid var(--line);
  background: rgba(255, 250, 240, 0.5);
}
.site-foot__left { display: flex; align-items: flex-start; gap: 22px; }
.foot-mark { font-family: var(--font-serif); font-size: 30px; font-style: italic; line-height: 1; }
.foot-mark span { color: var(--gold-deep); }
.site-foot__left p,
.site-foot__right p { font-size: 9px; line-height: 1.9; letter-spacing: 0.04em; color: var(--faint); }
.site-foot__right { text-align: right; }
.site-foot__right .text-link { margin-bottom: 10px; font-size: 9px; }

/* ---------- forms / modals ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}
.modal.is-open { opacity: 1; visibility: visible; }
.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(53, 41, 22, 0.36);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
}
.modal__scroll {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  width: 100%;
  height: 100%;
  padding: clamp(18px, 4vh, 48px) 16px;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.modal__card {
  width: min(720px, 100%);
  max-height: calc(100vh - 40px);
  max-height: calc(100dvh - 40px);
  height: max-content;
  margin: auto;
  padding: clamp(26px, 4vw, 40px);
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid #ede0c8;
  border-radius: 24px;
  background: radial-gradient(circle at 88% 3%, rgba(247, 217, 138, 0.28), transparent 26%), var(--card);
  box-shadow: var(--shadow-lg);
  transform: translateY(24px) scale(0.99);
  opacity: 0;
  transition: transform 0.5s var(--ease), opacity 0.5s ease;
}
.modal.is-open .modal__card { transform: translateY(0) scale(1); opacity: 1; }

.modal__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
.modal__head-actions { display: flex; align-items: center; gap: 8px; }
.modal__head-actions .btn { min-height: 38px; }
.modal__head h2 {
  margin-top: 8px;
  font-family: var(--font-serif);
  font-size: clamp(1.9rem, 3vw, 2.5rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.04em;
}
.modal__close {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: none;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 253, 248, 0.6);
  color: var(--muted);
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease, transform 0.3s var(--ease);
}
.modal__close:hover { background: var(--ink); color: var(--paper); transform: rotate(90deg); }
.modal__close .icon { font-size: 16px; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.field { display: flex; flex-direction: column; gap: 7px; margin-top: 15px; }
.field > span,
.group-label,
.field-group legend {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fffaf0;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 13px;
  line-height: 1.6;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input::placeholder,
.field textarea::placeholder { color: #b5a891; }
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: 0;
  border-color: #d8b36a;
  background: #fffdf7;
  box-shadow: 0 0 0 3px rgba(227, 176, 75, 0.13);
}
.field-counter { align-self: flex-end; font-family: var(--font-mono); font-size: 8px; color: var(--faint); }

.field-group { margin-top: 22px; }
.field-group legend { margin-bottom: 10px; }
.group-label { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.group-label small { font-size: 8px; color: var(--faint); text-transform: none; letter-spacing: 0.04em; }

.chip-picker { display: flex; flex-wrap: wrap; gap: 7px; }
.pick-chip {
  min-height: 34px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fffaf0;
  color: var(--muted);
  font-size: 10px;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.pick-chip:hover { background: #fff2d1; color: var(--ink); }
.pick-chip.is-active { border-color: var(--gold-deep); background: var(--butter-soft); color: #5c4212; }
.pick-chip--weather.is-active { background: #eef1e2; border-color: var(--sage); color: #53613d; }

.author-picker { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.author-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fffaf0;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}
.author-option:hover { background: #fff4d8; }
.author-option.is-active { border-color: var(--gold-deep); background: var(--butter-soft); box-shadow: 0 0 0 3px rgba(227, 176, 75, 0.1); }
.author-avatar {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 50%;
  font-family: var(--font-serif);
  font-size: 15px;
  background: #f8e4b8;
  color: #8d5c12;
}
.author-option--me .author-avatar { background: var(--sage-soft); color: var(--sage); }
.author-option b { display: block; font-size: 11px; font-weight: 500; color: var(--ink-soft); }
.author-option small { display: block; margin-top: 1px; font-size: 8px; color: var(--faint); }

.dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 24px 16px;
  border: 1px dashed #d8c39a;
  border-radius: 14px;
  background: #fffaf0;
  color: var(--muted);
  text-align: center;
  cursor: pointer;
  transition: background 0.3s ease, border-color 0.3s ease;
}
.dropzone:hover,
.dropzone.is-drag { background: #fff3d3; border-color: var(--gold-deep); }
.dropzone .icon { font-size: 27px; color: var(--gold-deep); margin-bottom: 3px; }
.dropzone span { font-size: 12px; }
.dropzone small { font-size: 9px; color: var(--faint); }

.photo-preview {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  max-height: 300px;
  margin-top: 10px;
  padding-right: 2px;
  overflow-y: auto;
}
.photo-preview__item {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 9px;
  aspect-ratio: 1;
  background: var(--paper-3);
}
.photo-preview__item img { width: 100%; height: 100%; object-fit: cover; }
.photo-preview__remove {
  position: absolute;
  top: 5px;
  right: 5px;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 50%;
  background: rgba(45, 32, 12, 0.7);
  color: #fff;
  cursor: pointer;
}
.photo-preview__remove .icon { font-size: 11px; }

.form-hint {
  margin: 12px 0 2px;
  padding: 8px 12px;
  border-radius: 9px;
  background: #fdf3d6;
  font-size: 10px;
  color: #876220;
}
.modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

/* ---------- settings ---------- */
.settings__rule { margin: 28px 0; border: 0; border-top: 1px solid var(--line); }
.settings__block h3 { font-family: var(--font-serif); font-size: 1.3rem; font-weight: 400; }
.settings__block p { margin: 7px 0 14px; font-size: 11px; line-height: 1.9; color: var(--muted); }
.settings__buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.settings__block code {
  padding: 1px 4px;
  border-radius: 4px;
  background: var(--rose-soft);
  color: var(--rose-deep);
  font-family: var(--font-mono);
  font-size: 0.9em;
}
.hobby-manager { display: flex; flex-direction: column; gap: 7px; margin: 14px 0 12px; }
.hobby-manager__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 30px;
  gap: 8px;
  align-items: center;
}
.hobby-manager__row input,
.hobby-add input {
  width: 100%;
  min-width: 0;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fffaf0;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 12px;
}
.hobby-manager__row input:focus,
.hobby-add input:focus {
  outline: 0;
  border-color: #d8b36a;
  box-shadow: 0 0 0 3px rgba(227, 176, 75, 0.12);
}
.hobby-manager__used {
  font-family: var(--font-mono);
  font-size: 8px;
  color: var(--faint);
  white-space: nowrap;
}
.hobby-manager__delete {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}
.hobby-manager__delete:hover { border-color: #e1b4a7; background: var(--danger-soft); color: var(--danger); }
.hobby-manager__delete .icon { font-size: 13px; }
.hobby-add { display: flex; gap: 7px; margin-bottom: 10px; }
.hobby-add input { flex: 1; }
.hobby-add .btn { flex: none; }
.storage-note { margin-top: 12px; font-family: var(--font-mono); font-size: 8px; color: var(--faint); }
.backup-status {
  margin-top: 5px;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.04em;
  color: var(--faint);
}
.backup-status.is-stale { color: #9a5b1e; }
.settings__block .backup-status { margin-top: 6px; font-size: 8px; color: var(--faint); }
.site-foot__right .backup-status { margin-top: 3px; }
.settings__foot {
  margin-top: 30px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.18em;
  color: var(--faint);
  text-align: center;
}
label.btn { cursor: pointer; }

/* ---------- lightbox ---------- */
.lightbox__scroll {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 100%;
  padding: 28px 18px;
  overflow-y: auto;
}
.lightbox__card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  width: min(1120px, 100%);
  overflow: hidden;
  border: 1px solid #e9dcc3;
  border-radius: 24px;
  background: var(--card);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.45s ease, transform 0.45s var(--ease);
}
.lightbox.is-open .lightbox__card { opacity: 1; transform: translateY(0); }
.lightbox__close { position: absolute; top: 14px; right: 14px; z-index: 5; }
.lightbox__media {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 430px;
  padding: 26px;
  background: radial-gradient(circle at 50% 40%, rgba(255, 255, 255, 0.5), transparent 42%), #f3e6cc;
}
.lightbox__media > img {
  max-width: 100%;
  max-height: 72vh;
  width: auto;
  border-radius: 7px;
  box-shadow: 0 18px 40px rgba(70, 48, 12, 0.2);
  filter: saturate(1.04) sepia(0.045);
}
.lightbox__media > img[hidden] { display: none; }
.lightbox__placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  text-align: center;
}
.lightbox__placeholder[hidden] { display: none; }
.lightbox__placeholder-mark {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  margin-bottom: 4px;
  border-radius: 50%;
  background: var(--butter-soft);
  color: var(--gold-deep);
}
.lightbox__placeholder-mark .icon { font-size: 28px; }
.lightbox__placeholder b { font-family: var(--font-serif); font-size: 1.6rem; font-weight: 400; color: var(--ink-soft); }
.lightbox__placeholder small { font-family: var(--font-mono); font-size: 8px; letter-spacing: .12em; color: var(--faint); }
.lightbox__thumbs {
  position: absolute;
  left: 50%;
  bottom: 12px;
  display: flex;
  justify-content: flex-start;
  gap: 6px;
  max-width: calc(100% - 110px);
  padding: 4px;
  overflow-x: auto;
  transform: translateX(-50%);
  scrollbar-width: thin;
}
.lightbox__thumb { flex: 0 0 38px; }
.lightbox__thumb {
  width: 38px;
  height: 38px;
  padding: 0;
  overflow: hidden;
  border: 2px solid rgba(255, 253, 248, 0.8);
  border-radius: 6px;
  background: var(--paper-3);
  cursor: pointer;
  opacity: 0.65;
}
.lightbox__thumb.is-active { opacity: 1; border-color: var(--gold-deep); }
.lightbox__thumb img { width: 100%; height: 100%; object-fit: cover; }
.lightbox__arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(70, 48, 12, 0.16);
  border-radius: 50%;
  background: rgba(255, 253, 248, 0.82);
  color: var(--ink-soft);
  cursor: pointer;
  transform: translateY(-50%);
  transition: background 0.3s ease;
}
.lightbox__arrow:hover { background: #fff6dd; }
.lightbox__arrow--prev { left: 10px; }
.lightbox__arrow--next { right: 10px; }
.lightbox__arrow[hidden] { display: none; }

.lightbox__info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(28px, 4vw, 50px);
}
.lightbox__card--sunny .lightbox__info {
  background-color: #fffaf0;
  background-image:
    linear-gradient(145deg, rgba(255, 253, 248, 0.93), rgba(250, 240, 236, 0.86)),
    url("../img/weather/sunny.jpg");
  background-size: cover;
  background-position: center 38%;
}
.lightbox__card--cloudy .lightbox__info {
  background-color: #fbfaf5;
  background-image:
    linear-gradient(145deg, rgba(255, 253, 248, 0.93), rgba(242, 244, 239, 0.87)),
    url("../img/weather/cloudy.jpg");
  background-size: cover;
  background-position: center 42%;
}
.lightbox__card--rainy .lightbox__info {
  background-color: #f7fbfa;
  background-image:
    linear-gradient(145deg, rgba(252, 253, 251, 0.93), rgba(237, 242, 242, 0.86)),
    url("../img/weather/rainy.jpg");
  background-size: cover;
  background-position: center 56%;
}
.lightbox__card--snowy .lightbox__info {
  background-color: #fbfdfd;
  background-image:
    linear-gradient(145deg, rgba(255, 254, 251, 0.93), rgba(238, 245, 246, 0.86)),
    url("../img/weather/snowy.jpg");
  background-size: cover;
  background-position: center 42%;
}
.lightbox__info h2 {
  margin: 12px 0 18px;
  font-family: var(--font-serif);
  font-size: clamp(1.9rem, 3vw, 2.8rem);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.04em;
}
.lightbox__meta { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 9px; color: var(--muted); }
.lightbox__meta span { display: inline-flex; align-items: center; gap: 5px; }
.lightbox__meta .icon { font-size: 12px; color: var(--gold-deep); }
.lightbox__meta b { font-weight: 400; }
.lightbox__note { margin-top: 22px; font-size: 13px; line-height: 2.05; color: var(--muted); white-space: pre-wrap; }
.lightbox__demo { margin-top: 14px; font-size: 9px; color: #9a7024; }
.lightbox__actions { display: flex; gap: 8px; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); }
#lightboxComments b { margin-left: 2px; font-family: var(--font-mono); font-size: 8px; font-weight: 400; color: var(--gold-deep); }

/* ---------- annotations ---------- */
.meeting__annotation {
  position: absolute;
  top: 18px;
  right: -17px;
  z-index: 5;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid #dfc78f;
  border-radius: 50% 50% 50% 7px;
  background: #fffaf0;
  color: var(--gold-deep);
  box-shadow: 0 7px 16px rgba(105, 75, 25, 0.14);
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s ease, box-shadow 0.25s ease;
}
.meeting__annotation::after {
  content: "";
  position: absolute;
  left: -4px;
  top: 11px;
  width: 8px;
  height: 8px;
  background: inherit;
  border-left: 1px solid #dfc78f;
  border-bottom: 1px solid #dfc78f;
  transform: rotate(45deg);
}
.meeting__annotation:hover { transform: translateY(-1px) scale(1.04); box-shadow: 0 10px 20px rgba(105, 75, 25, 0.2); }
.meeting__annotation.has-comments { background: var(--butter-soft); }
.meeting__annotation .icon { font-size: 14px; }
.meeting__annotation-count {
  position: absolute;
  top: -6px;
  right: -6px;
  display: grid;
  place-items: center;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--gold-deep);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 7px;
}
.comment-popover {
  position: fixed;
  z-index: 2300;
  display: flex;
  flex-direction: column;
  width: min(350px, calc(100vw - 24px));
  max-height: min(560px, calc(100vh - 24px));
  border: 1px solid #e9dcc3;
  border-radius: 16px;
  background: var(--card);
  box-shadow: 0 24px 60px rgba(35, 25, 12, 0.28);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
}
.comment-popover.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
.comment-popover::after {
  content: "";
  position: absolute;
  right: -7px;
  top: 33px;
  width: 12px;
  height: 12px;
  border-right: 1px solid #e9dcc3;
  border-bottom: 1px solid #e9dcc3;
  background: var(--card);
  transform: rotate(-45deg);
}
.comment-popover.is-right::after { right: auto; left: -7px; transform: rotate(135deg); }
.comment-popover__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 18px 18px 12px;
  border-bottom: 1px solid var(--line);
}
.comment-popover__head h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  font-family: var(--font-serif);
  font-size: 1.55rem;
  font-weight: 400;
  letter-spacing: -0.03em;
}
.comment-popover__close {
  display: grid;
  place-items: center;
  flex: none;
  width: 28px;
  height: 28px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--card);
  color: var(--muted);
  cursor: pointer;
}
.comment-popover__close:hover { background: var(--butter-soft); color: var(--ink); }
.comment-popover__close .icon { font-size: 12px; }
.comment-popover__body {
  overflow-y: auto;
  padding: 14px 18px 18px;
}
.comment-popover .comments__list { margin-top: 0; }
.comment-popover .comments__empty { margin-top: 0; }
.comment-popover .comment-form { margin-top: 16px; }

/* ---------- comments ---------- */
.comment-bubble {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 2100;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 48px;
  padding: 0 13px 0 15px;
  border: 1px solid rgba(164, 111, 27, 0.28);
  border-radius: 999px;
  background: linear-gradient(145deg, #f7dfa8, #e8bc63);
  color: #4d3813;
  box-shadow: 0 14px 30px rgba(88, 57, 9, 0.24);
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s ease, opacity 0.25s ease;
}
.comment-bubble:hover { transform: translateY(-2px); box-shadow: 0 18px 34px rgba(88, 57, 9, 0.28); }
.comment-bubble[hidden] { display: none; }
.comment-bubble .icon { font-size: 18px; }
.comment-bubble__label { font-size: 10px; letter-spacing: .04em; }
.comment-bubble__count {
  display: inline-grid;
  place-items: center;
  min-width: 21px;
  height: 21px;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.82);
  color: #7d5416;
  font-family: var(--font-mono);
  font-size: 9px;
}

.comment-drawer__backdrop {
  position: fixed;
  inset: 0;
  z-index: 2150;
  background: rgba(35, 25, 12, 0.28);
}
.comment-drawer__backdrop[hidden] { display: none; }

.comment-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 2200;
  display: flex;
  flex-direction: column;
  width: min(390px, 100vw);
  background: var(--paper);
  box-shadow: -24px 0 60px rgba(35, 25, 12, 0.24);
  transform: translateX(102%);
  visibility: hidden;
  transition: transform 0.42s var(--ease), visibility 0.42s var(--ease);
}
.comment-drawer.is-open { transform: translateX(0); visibility: visible; }
.comment-drawer__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 28px 22px 18px;
  border-bottom: 1px solid var(--line);
}
.comment-drawer__head h2 {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 8px;
  font-family: var(--font-serif);
  font-size: 1.9rem;
  font-weight: 400;
  letter-spacing: -0.03em;
}
.comment-drawer__close {
  display: grid;
  place-items: center;
  flex: none;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--card);
  color: var(--muted);
  cursor: pointer;
}
.comment-drawer__close:hover { background: var(--butter-soft); color: var(--ink); }
.comment-drawer__close .icon { font-size: 14px; }
.comment-drawer__body {
  flex: 1;
  overflow-y: auto;
  padding: 18px 22px calc(24px + env(safe-area-inset-bottom, 0px));
}
.comment-drawer .comments__list { margin-top: 0; }
.comment-drawer .comments__empty { margin-top: 0; }
.comment-drawer .comment-form { margin-top: 20px; }
.comment-drawer__pick { margin-bottom: 16px; }
.comment-drawer__pick[hidden] { display: none; }
.comment-drawer__pick label {
  display: block;
  margin-bottom: 5px;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: .12em;
  color: var(--faint);
}
.comment-drawer__pick select {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffaf0;
  color: var(--ink-soft);
  font-family: var(--font-sans);
  font-size: 11px;
}
.comment-drawer__pick select:focus { outline: 0; border-color: #d8b36a; box-shadow: 0 0 0 3px rgba(227, 176, 75, .1); }

.comments__head { display: flex; align-items: center; gap: 8px; }
.comments__head h3 {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.18em;
  color: var(--ink-soft);
}
.comments__count {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--butter-soft);
  color: #8c641f;
  font-family: var(--font-mono);
  font-size: 8px;
}
.comments__list { display: flex; flex-direction: column; gap: 16px; margin-top: 16px; }
.comments__empty { margin-top: 12px; font-size: 10px; color: var(--faint); }
.comment { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 9px; }
.comment__body { min-width: 0; }
.comment__avatar {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--butter-soft);
  color: #8c641f;
  font-family: var(--font-serif);
  font-size: 12px;
}
.comment--her .comment__avatar { background: var(--rose-soft, #f4e2dc); color: #a7685a; }
.comment__head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; }
.comment__name { font-size: 10px; color: var(--ink-soft); }
.comment__time { font-family: var(--font-mono); font-size: 7px; color: var(--faint); }
.comment__text { margin-top: 4px; font-size: 11px; line-height: 1.8; color: var(--muted); white-space: pre-wrap; overflow-wrap: anywhere; }
.comment__edited { font-family: var(--font-mono); font-size: 7px; color: var(--faint); }
.comment__actions { display: flex; flex-wrap: wrap; gap: 11px; margin-top: 6px; }
.comment__action {
  padding: 0;
  border: 0;
  background: none;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .04em;
  cursor: pointer;
}
.comment__action:hover { color: var(--gold-deep); text-decoration: underline; }
.comment__action--danger:hover { color: var(--danger); }
.comment__action--save {
  padding: 3px 9px;
  border: 1px solid #d8b36a;
  border-radius: 999px;
  background: var(--butter-soft);
  color: #8c641f;
}
.comment__action--save:hover { text-decoration: none; background: #f7dfa8; }
.comment__edit { margin-top: 6px; }
.comment__edit textarea {
  display: block;
  width: 100%;
  min-height: 58px;
  resize: vertical;
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fffdf8;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 11px;
  line-height: 1.7;
}
.comment__edit textarea:focus { outline: 0; border-color: #d8b36a; box-shadow: 0 0 0 3px rgba(227, 176, 75, .1); }
.comment__edit-foot { display: flex; align-items: center; justify-content: flex-end; gap: 9px; margin-top: 6px; }
.comment__replies {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 12px 0 0 10px;
  padding-left: 12px;
  border-left: 1px solid var(--line);
}
.comment--reply { grid-template-columns: 24px minmax(0, 1fr); }
.comment--reply .comment__avatar { width: 24px; height: 24px; font-size: 9px; }
.comment-form {
  margin-top: 16px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper-2);
}
.comment-form__who { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.comment-who {
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: 9px;
  cursor: pointer;
}
.comment-who.is-active { border-color: #d8b36a; background: var(--butter-soft); color: var(--ink); }
.comment-form textarea {
  display: block;
  width: 100%;
  min-height: 62px;
  resize: vertical;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf8;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 11px;
  line-height: 1.7;
}
.comment-form textarea:focus { outline: 0; border-color: #d8b36a; box-shadow: 0 0 0 3px rgba(227, 176, 75, .1); }
.comment-form__foot { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; margin-top: 8px; }
.comment-form__replying { font-family: var(--font-mono); font-size: 8px; color: var(--muted); }
.comment-form__replying b { font-weight: 400; color: var(--ink-soft); }
.comment-form__cancel {
  padding: 0;
  border: 0;
  background: none;
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 8px;
  cursor: pointer;
}
.comment-form__cancel:hover { color: var(--ink-soft); }
.comment-form__foot .btn { margin-left: auto; }
.comment-form__foot .btn[disabled] { opacity: .5; cursor: default; }

/* ---------- auth ---------- */
.auth { z-index: 5000; }
.auth__card { width: min(430px, 100%); padding: 34px 30px 28px; }
.auth__card h2 {
  margin: 12px 0 10px;
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -0.04em;
}
.auth__lede { margin-bottom: 20px; font-size: 12px; line-height: 1.9; color: var(--muted); }
.auth__card form { display: flex; flex-direction: column; gap: 14px; }
.auth__submit { width: 100%; margin-top: 4px; }
.auth__error { color: var(--danger); font-size: 11px; line-height: 1.7; }
.auth__note { margin-top: 16px; font-size: 9px; line-height: 1.8; color: var(--faint); }

/* ---------- confirm ---------- */
.confirm { z-index: 3000; }
.confirm__card { width: min(430px, 100%); text-align: center; }
.confirm__icon {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: var(--butter-soft);
  color: var(--gold-deep);
}
.confirm__icon .icon { font-size: 25px; }
.confirm__card h2 { font-family: var(--font-serif); font-size: 1.8rem; font-weight: 400; }
.confirm__card p { margin-top: 8px; font-size: 12px; line-height: 1.9; color: var(--muted); }
.confirm__card .modal__actions { justify-content: center; }

/* ---------- toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 4000;
  max-width: calc(100vw - 32px);
  padding: 11px 18px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 999px;
  background: rgba(51, 45, 36, 0.94);
  color: var(--paper);
  font-size: 11px;
  letter-spacing: 0.02em;
  box-shadow: var(--shadow-md);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px);
  transition: opacity 0.3s ease, transform 0.3s var(--ease);
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .hero { grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr); }
  .hero__title { font-size: clamp(3.2rem, 6vw, 5.6rem); }
  .hero__visual { max-width: 540px; }
  .anniversary__inner { grid-template-columns: 0.8fr 1.2fr; }
}

@media (max-width: 980px) {
  .site-nav { display: none; }
  .hero { grid-template-columns: 1fr; min-height: 0; padding-top: 52px; padding-bottom: 90px; }
  .hero__copy { max-width: 680px; }
  .hero__title { font-size: clamp(3.5rem, 8.6vw, 6.2rem); }
  .hero__visual { justify-self: center; width: min(100%, 520px); margin-top: 18px; }
  .scroll-hint { display: none; }

  .anniversary__inner { grid-template-columns: 1fr; gap: 26px; }
  .anniversary__intro h2 { max-width: 520px; }
  .anniversary__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

  .section-head { grid-template-columns: 1fr; gap: 18px; }
  .section-note { margin-left: 0; }
  .section-head--split .section-note { margin-bottom: 0; }
  .hobby-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery-grid { column-count: 2; }

  .meeting-meta { align-items: flex-start; }
  .meeting-meta .section-note { text-align: left; }
  .year-months { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .site-foot { align-items: flex-start; }
}

@media (max-width: 720px) {
  :root { --pad: 20px; --radius: 15px; }
  html { scroll-padding-top: 82px; }

  .site-head { height: 70px; }
  .site-head.is-scrolled { height: 62px; }
  .brand__sun { width: 33px; height: 33px; }
  .brand__sun .icon { font-size: 18px; }
  .brand__text strong { font-size: 17px; }
  .brand__text small { font-size: 6px; }
  .head-actions .icon-btn { width: 36px; height: 36px; }
  .head-actions .btn--small { min-height: 36px; padding: 0 13px; font-size: 10px; }
  .head-actions .btn--small .icon { font-size: 13px; }

  .hero { padding-top: 34px; padding-bottom: 66px; gap: 20px; }
  .hero__title { font-size: clamp(2.75rem, 12.4vw, 4rem); line-height: 1.16; }
  .hero__lede { font-size: 13px; line-height: 2; }
  .hero__actions { margin-top: 26px; }
  .hero__meta { margin-top: 28px; font-size: 8px; gap: 8px 12px; }
  .hero__meta .meta-dot { display: none; }
  .hero__visual { width: min(100%, 410px); aspect-ratio: 1 / 1.04; }
  .snap { padding: 7px 7px 9px; }
  .snap__caption { padding-top: 7px; }
  .snap__date { font-size: 7px; }
  .snap__place { font-size: 9px; }
  .snap--1 { top: 3%; left: 0; width: 47%; }
  .snap--2 { top: 27%; right: 0; width: 44%; }
  .snap--3 { left: 22%; bottom: 0; width: 43%; }
  .botanical { opacity: 0.28; }

  .anniversary { padding-bottom: 60px; }
  .anniversary__inner { padding: 26px 20px; border-radius: 22px; }
  .anniversary__intro h2 { font-size: 1.85rem; margin: 10px 0 16px; }
  .anniversary__grid { grid-template-columns: 1fr; gap: 8px; }
  .stat-card { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 14px; padding: 15px 16px; }
  .stat-card__label { grid-column: 1; }
  .stat-card p { grid-column: 2; grid-row: 1 / span 2; margin: 0; }
  .stat-card strong { font-size: 2.4rem; }
  .stat-card small { grid-column: 1; }
  .stat-card--highlight { background: rgba(255, 252, 241, 0.85); }

  .section { padding-top: 76px; padding-bottom: 76px; }
  .section-title { font-size: clamp(2.3rem, 10vw, 3.3rem); }
  .section-note { font-size: 12px; }
  .hobby-grid { grid-template-columns: 1fr; gap: 10px; }
  .hobby-card { min-height: 0; padding: 20px; }
  .hobby-card h3 { margin-top: 16px; }
  .hobby-card__foot { padding-top: 14px; }

  .filter-bar { gap: 8px; margin-bottom: 24px; }
  .filter-select { margin-left: 0; }
  .filter-select select { height: 34px; font-size: 9px; }
  .filter-clear { height: 32px; }
  .gallery-grid { column-count: 2; column-gap: 12px; }
  .photo-card { margin-bottom: 12px; padding: 6px 6px 9px; border-radius: 11px; }
  .photo-card__image { border-radius: 7px; }
  .photo-card__date { top: 7px; left: 7px; font-size: 7px; padding: 3px 6px; }
  .photo-card__title { font-size: 0.92rem; }
  .photo-card__meta { font-size: 8px; }
  .photo-card__count { right: 10px; bottom: 10px; }

  .timeline::before { left: 51px; }
  .meeting { grid-template-columns: 40px minmax(0, 1fr); gap: 18px; }
  .meeting::before { left: 47px; }
  .meeting__day { font-size: 1.5rem; }
  .meeting__month { font-size: 7px; }
  .meeting__card { padding: 18px 17px; }
  .meeting__meta { padding-right: 72px; }
  .meeting__title { font-size: 1.2rem; padding-right: 28px; }
  .meeting__note { font-size: 12px; }
  .meeting__edit { opacity: 1; top: 10px; right: 10px; width: 28px; height: 28px; }
  .meeting__annotation { top: 12px; right: 46px; bottom: auto; width: 30px; height: 30px; }
  .meeting__annotation::after { display: none; }
  .meeting__annotation .icon { font-size: 13px; }
  .meeting__thumb { width: 72px; height: 58px; }
  .month-divider { padding-left: 66px; margin-bottom: 16px; }

  .year-section { padding-top: 68px; padding-bottom: 68px; }
  .year-months { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
  .month { min-height: 78px; padding: 9px 6px; }
  .month__count { font-size: 1rem; }
  .month__dots { margin-top: 6px; }

  .closing { padding-top: 90px; padding-bottom: 100px; }
  .closing h2 { font-size: clamp(2.5rem, 11vw, 3.6rem); }

  .site-foot { display: block; padding-top: 30px; }
  .site-foot__right { margin-top: 22px; text-align: left; }
  .site-foot__left { gap: 14px; }
  .foot-mark { font-size: 24px; }

  .modal__scroll { padding: 10px 10px 24px; }
  .modal__card { padding: 22px 18px; border-radius: 19px; }
  .modal__head { margin-bottom: 18px; }
  .form-grid { grid-template-columns: 1fr 1fr; gap: 9px; }
  .form-grid--three { grid-template-columns: 1fr; }
  .field { margin-top: 12px; }
  .field input, .field textarea { font-size: 12px; padding: 10px 12px; }
  .photo-preview { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .modal__actions { margin-top: 20px; padding-top: 16px; }
  .modal__actions .btn { flex: 1; }
  .settings__buttons .btn { flex: 1 1 auto; }

  .lightbox__scroll { padding: 10px; }
  .lightbox__card { grid-template-columns: 1fr; border-radius: 18px; }
  .lightbox__media { min-height: 300px; padding: 28px 18px 44px; }
  .lightbox__media > img { max-height: 50vh; }
  .lightbox__info { max-height: none; overflow: visible; padding: 24px 20px 26px; }
  .lightbox__info h2 { font-size: 1.8rem; margin: 10px 0 14px; }
  .lightbox__note { font-size: 12px; margin-top: 16px; }
  .lightbox__close { top: 10px; right: 10px; }
  .lightbox__thumbs { bottom: 8px; max-width: calc(100% - 60px); }
  .lightbox__thumb { width: 32px; height: 32px; flex-basis: 32px; }
  .photo-preview { max-height: 240px; }
  .comment-bubble { right: 18px; bottom: 18px; }
  .comment-popover {
    left: 12px !important;
    right: 12px;
    top: auto !important;
    bottom: 12px;
    width: auto;
    max-height: 72vh;
  }
  .comment-popover::after { display: none; }
  .comment-popover__head { padding: 16px 16px 10px; }
  .comment-popover__head h2 { font-size: 1.4rem; }
  .comment-popover__body { padding: 12px 16px 16px; }
  .comment-drawer__head { padding: 24px 18px 16px; }
  .comment-drawer__head h2 { font-size: 1.7rem; }
  .comment-drawer__body { padding: 16px 18px calc(20px + env(safe-area-inset-bottom, 0px)); }

  .toast { bottom: 18px; font-size: 10px; }
}

@media (max-width: 460px) {
  .gallery-grid { column-count: 1; }
  .photo-card { max-width: 420px; margin-left: auto; margin-right: auto; }
  .hero__title { font-size: 2.55rem; }
  .hero__actions { gap: 8px; }
  .hero__actions .btn { flex: 1; padding: 0 14px; }
  .hero__meta { line-height: 1.9; }
  .head-actions .btn--small span { display: none; }
  .head-actions .btn--small { width: 36px; padding: 0; }
  .form-grid { grid-template-columns: 1fr; }
  .year-months { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 380px) {
  .hero__title { font-size: 2.25rem; }
  .modal__head h2 { font-size: 1.55rem; }
  .modal__head-actions .btn--small { padding: 0 10px; font-size: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .paper-grain { animation: none; }
  .rose-disc { animation: none; }
}
