:root,
[data-theme=dark] {
  --bg: #0d0c0a;
  --bg2: #141210;
  --bg3: #1c1916;
  --surface: #201e1a;
  --border: #2e2b25;
  --gold: #c9a84c;
  --gold-dim: #8a6e2e;
  --cream: #f0e6d3;
  --cream-dim: #a89880;
  --flame: #e8736a;
  --flame2: #f0a04a;
  --text: #ddd3c0;
  --text-dim: #7a6f62;
  --accent: #5d8a6e;
  --noise-opacity: 0.45;
  --photo-brightness: 0.28;
  --photo-saturate: 0.6;
  --portrait-filter: sepia(.25) contrast(1.05);
  --media-filter: sepia(.2) brightness(.8);
  --media-filter-hover: sepia(0) brightness(.9);
  --map-filter: sepia(.5) brightness(.6);
  --rel-avatar-filter: sepia(.3) brightness(.85);
}

[data-theme=light] {
  --bg: #f5f0e8;
  --bg2: #ede7db;
  --bg3: #e4dcd0;
  --surface: #faf7f2;
  --border: #d4cab8;
  --gold: #8a6415;
  --gold-dim: #b8922a;
  --cream: #2a1f12;
  --cream-dim: #5a4a38;
  --flame: #c0504a;
  --flame2: #c87820;
  --text: #3d3228;
  --text-dim: #8a7a6a;
  --accent: #3a6a50;
  --noise-opacity: 0.25;
  --photo-brightness: 0.55;
  --photo-saturate: 0.5;
  --portrait-filter: sepia(.15) contrast(1.02);
  --media-filter: sepia(.1) brightness(.95);
  --media-filter-hover: sepia(0) brightness(1.0);
  --map-filter: sepia(.3) brightness(.85);
  --rel-avatar-filter: sepia(.2) brightness(.92);
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme]) {
    --bg: #f5f0e8;
    --bg2: #ede7db;
    --bg3: #e4dcd0;
    --surface: #faf7f2;
    --border: #d4cab8;
    --gold: #8a6415;
    --gold-dim: #b8922a;
    --cream: #2a1f12;
    --cream-dim: #5a4a38;
    --flame: #c0504a;
    --flame2: #c87820;
    --text: #3d3228;
    --text-dim: #8a7a6a;
    --accent: #3a6a50;
    --noise-opacity: 0.25;
    --photo-brightness: 0.55;
    --photo-saturate: 0.5;
    --portrait-filter: sepia(.15) contrast(1.02);
    --media-filter: sepia(.1) brightness(.95);
    --media-filter-hover: sepia(0) brightness(1.0);
    --map-filter: sepia(.3) brightness(.85);
    --rel-avatar-filter: sepia(.2) brightness(.92);
  }
}
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: "EB Garamond", Georgia, serif;
  font-size: 17px;
  line-height: 1.7;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  opacity: var(--noise-opacity);
}

::-webkit-scrollbar {
  width: 5px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 2px;
}

.wrap {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

section {
  padding: 60px 0;
  border-bottom: 1px solid var(--border);
}
section:last-child {
  border-bottom: none;
}

#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  padding: 0;
  border-bottom: 1px solid var(--border);
}
#hero .bg-photo {
  position: absolute;
  inset: 0;
  background: url("./images/i1.jpeg") center/cover no-repeat;
  filter: brightness(var(--photo-brightness)) saturate(var(--photo-saturate));
  transform: scale(1.03);
  transition: transform 8s ease;
}
#hero:hover .bg-photo {
  transform: scale(1);
}
#hero .vignette {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13, 12, 10, 0.98) 0%, rgba(13, 12, 10, 0.5) 50%, rgba(13, 12, 10, 0.2) 100%);
}
[data-theme=light] #hero .vignette {
  background: linear-gradient(to top, rgba(245, 240, 232, 0.96) 0%, rgba(245, 240, 232, 0.45) 50%, rgba(245, 240, 232, 0.15) 100%);
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme]) #hero .vignette {
    background: linear-gradient(to top, rgba(245, 240, 232, 0.96) 0%, rgba(245, 240, 232, 0.45) 50%, rgba(245, 240, 232, 0.15) 100%);
  }
}
#hero .content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  gap: 48px;
  padding: 0 48px 52px;
}

.portrait-wrap {
  flex-shrink: 0;
  position: relative;
}
.portrait-wrap img {
  width: 160px;
  height: 200px;
  object-fit: cover;
  object-position: top center;
  border: 2px solid var(--gold-dim);
  filter: var(--portrait-filter);
  display: block;
}
.portrait-wrap::before {
  content: "";
  position: absolute;
  inset: -6px;
  border: 1px solid rgba(201, 168, 76, 0.2);
}

.hero-text {
  flex: 1;
}

.hero-label {
  font-family: "Cormorant SC", serif;
  font-size: 11px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.hero-label::before {
  content: "";
  display: block;
  width: 30px;
  height: 1px;
  background: var(--gold);
}

h1.name {
  font-family: "Playfair Display", serif;
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  font-weight: 700;
  color: var(--cream);
  line-height: 1.05;
  margin-bottom: 10px;
}

.dates {
  font-family: "Cormorant SC", serif;
  font-size: 1rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cream-dim);
  margin-bottom: 16px;
}
.dates .sep {
  color: var(--gold);
  margin: 0 10px;
}

.tagline {
  font-style: italic;
  font-size: 1.1rem;
  color: var(--cream-dim);
  max-width: 520px;
  line-height: 1.55;
  border-left: 2px solid var(--gold-dim);
  padding-left: 16px;
  margin-bottom: 24px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  font-family: "Cormorant SC", serif;
  color: var(--text-dim);
}
.hero-meta span {
  padding: 4px 14px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
}

.stats-strip {
  display: flex;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg2);
}

.stat-item {
  flex: 1;
  text-align: center;
  padding: 18px 12px;
  border-right: 1px solid var(--border);
}
.stat-item:last-child {
  border-right: none;
}

.stat-num {
  font-family: "Playfair Display", serif;
  font-size: 1.7rem;
  color: var(--gold);
  display: block;
  line-height: 1;
  margin-bottom: 4px;
}

.stat-label {
  font-family: "Cormorant SC", serif;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
}

#quick-actions {
  padding: 40px 0;
  border-bottom: 1px solid var(--border);
}

.actions-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

.action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.25s ease;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}
.action-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 60%, rgba(201, 168, 76, 0.06));
  opacity: 0;
  transition: opacity 0.25s;
}
.action-btn:hover {
  border-color: var(--gold-dim);
  transform: translateY(-2px);
}
.action-btn:hover::before {
  opacity: 1;
}
.action-btn.candle:hover {
  border-color: var(--flame);
}
.action-btn.candle .a-icon {
  color: var(--flame2);
}

.a-icon {
  font-size: 1.5rem;
  color: var(--gold);
  display: block;
  line-height: 1;
}

.a-label {
  font-family: "Cormorant SC", serif;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cream-dim);
  text-align: center;
}

.a-count {
  font-size: 0.7rem;
  color: var(--text-dim);
  font-family: "EB Garamond", Georgia, serif;
}

.sec-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 36px;
}
.sec-header::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, var(--border), transparent);
}
.sec-header h2 {
  font-family: "Playfair Display", serif;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--cream);
  white-space: nowrap;
}

.sec-num {
  font-family: "Cormorant SC", serif;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  padding: 3px 10px;
  border: 1px solid var(--gold-dim);
}

.pull-right {
  float: right;
  display: block;
  text-align: right;
}

.timeline {
  position: relative;
  padding-left: 28px;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, var(--gold-dim), transparent);
}

.t-item {
  position: relative;
  margin-bottom: 32px;
}
.t-item::before {
  content: "";
  position: absolute;
  left: -33px;
  top: 6px;
  width: 10px;
  height: 10px;
  border: 1px solid var(--gold);
  background: var(--bg);
  transform: rotate(45deg);
}

.t-year {
  font-family: "Cormorant SC", serif;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 4px;
}

.t-title {
  font-family: "Playfair Display", serif;
  font-size: 1rem;
  color: var(--cream);
  margin-bottom: 4px;
}

.t-desc {
  font-size: 0.9rem;
  color: var(--text-dim);
  line-height: 1.6;
}

.rel-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.rel-card {
  background: var(--surface);
  border: 1px solid var(--border);
  transition: border-color 0.2s;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.rel-avatar {
  width: 52px;
  height: 52px;
  background: var(--bg3);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
  overflow: hidden;
}
.rel-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: var(--rel-avatar-filter);
}

.rel-name {
  font-family: "Playfair Display", serif;
  font-size: 0.95rem;
  color: var(--cream);
}

.rel-role {
  font-size: 0.78rem;
  color: var(--text-dim);
  font-style: italic;
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
}

.media-item {
  aspect-ratio: 1;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  background: var(--bg3);
}
.media-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: var(--media-filter);
  transition: transform 0.4s ease, filter 0.4s ease;
}
.media-item:hover img {
  transform: scale(1.05);
  filter: var(--media-filter-hover);
}
.media-item.tall {
  grid-row: span 2;
}
.media-item .media-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13, 12, 10, 0.8), transparent 50%);
  opacity: 0;
  transition: opacity 0.3s;
  display: flex;
  align-items: flex-end;
  padding: 12px;
}
.media-item .media-overlay span {
  font-size: 0.75rem;
  color: var(--cream-dim);
  font-style: italic;
}
.media-item:hover .media-overlay {
  opacity: 1;
}

.messages-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.message-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold-dim);
  padding: 22px 24px;
  position: relative;
}
.message-card.candle-msg {
  border-left-color: var(--flame);
}
.message-card.donate-msg {
  border-left-color: var(--accent);
}

.msg-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 10px;
}

.msg-author {
  font-family: "Playfair Display", serif;
  font-size: 0.95rem;
  color: var(--cream);
}

.msg-location {
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-top: 2px;
}

.msg-date {
  font-size: 0.75rem;
  color: var(--text-dim);
  font-style: italic;
  text-align: right;
}

.msg-type-badge {
  font-family: "Cormorant SC", serif;
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 2px 8px;
  border: 1px solid currentColor;
  margin-bottom: 6px;
  display: inline-block;
}

.badge-candle {
  color: var(--flame);
}

.badge-message {
  color: var(--gold);
}

.badge-donate {
  color: var(--accent);
}

.msg-body {
  font-size: 0.92rem;
  color: var(--text-dim);
  line-height: 1.65;
  font-style: italic;
}

.ain-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.ain-card {
  background: var(--surface);
  border: 1px solid var(--border);
  transition: border-color 0.2s;
  padding: 24px;
  display: flex;
  gap: 18px;
  align-items: flex-start;
}
.ain-card:hover {
  border-color: var(--gold-dim);
}

.ain-icon {
  font-size: 1.8rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.ain-title {
  font-family: "Playfair Display", serif;
  font-size: 1rem;
  color: var(--cream);
  margin-bottom: 4px;
}

.ain-desc {
  font-size: 0.83rem;
  color: var(--text-dim);
  line-height: 1.55;
}

.ain-cta {
  display: inline-block;
  margin-top: 10px;
  font-family: "Cormorant SC", serif;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  border-bottom: 1px solid var(--gold-dim);
  cursor: pointer;
  transition: color 0.2s;
}
.ain-cta:hover {
  color: var(--cream);
}

.location-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}

.map-placeholder {
  aspect-ratio: 4/3;
  background: var(--bg3);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.map-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: var(--map-filter);
}
.map-placeholder .map-pin {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 14px;
  height: 14px;
  background: var(--flame);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(232, 115, 106, 0.25), 0 0 0 8px rgba(232, 115, 106, 0.1);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% {
    box-shadow: 0 0 0 4px rgba(232, 115, 106, 0.25), 0 0 0 8px rgba(232, 115, 106, 0.1);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(232, 115, 106, 0.2), 0 0 0 16px rgba(232, 115, 106, 0.05);
  }
}
.location-field {
  margin-bottom: 16px;
}

.lf-label {
  font-family: "Cormorant SC", serif;
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 4px;
}

.lf-value {
  font-size: 0.95rem;
  color: var(--cream);
}

.loc-actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.loc-btn {
  padding: 8px 18px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-dim);
  font-family: "Cormorant SC", serif;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  cursor: pointer;
  transition: all 0.2s;
  text-transform: uppercase;
}
.loc-btn:hover {
  border-color: var(--gold-dim);
  color: var(--gold);
}
.loc-btn.primary {
  border-color: var(--gold-dim);
  color: var(--gold);
}
.loc-btn.primary:hover {
  background: var(--gold);
  color: var(--bg);
}

.remb-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.remb-card {
  background: var(--surface);
  border: 1px solid var(--border);
  transition: border-color 0.2s;
  padding: 24px;
}
.remb-card h3 {
  font-family: "Playfair Display", serif;
  font-size: 1rem;
  color: var(--cream);
  margin-bottom: 14px;
}

.reminder-list {
  list-style: none;
}
.reminder-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.88rem;
  color: var(--text-dim);
}
.reminder-list li:last-child {
  border-bottom: none;
}

.r-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold-dim);
  flex-shrink: 0;
}
.r-dot.red {
  background: var(--flame);
}
.r-dot.green {
  background: var(--accent);
}

.r-date {
  font-family: "Cormorant SC", serif;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-left: auto;
}

.notif-card {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-left: 3px solid var(--flame);
  padding: 16px 18px;
  margin-bottom: 12px;
  font-size: 0.88rem;
  color: var(--text-dim);
}
.notif-card .n-time {
  font-size: 0.72rem;
  color: var(--text-dim);
  margin-top: 4px;
  font-style: italic;
}

.poem-block {
  border: 1px solid var(--border);
  padding: 36px 44px;
  background: var(--bg2);
  text-align: center;
  position: relative;
}
.poem-block::before, .poem-block::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 1px;
  background: var(--gold-dim);
}
.poem-block::before {
  top: 0;
}
.poem-block::after {
  bottom: 0;
}

.poem-text {
  font-family: "Playfair Display", serif;
  font-style: italic;
  font-size: 1.1rem;
  color: var(--cream);
  line-height: 1.9;
  margin-bottom: 16px;
}

.poem-attr {
  font-size: 0.8rem;
  color: var(--gold);
  letter-spacing: 0.1em;
}

.candle-section {
  text-align: center;
  padding: 40px 0 20px;
  border-bottom: 1px solid var(--border);
}

.candles-row {
  display: flex;
  justify-content: center;
  gap: 28px;
  margin-top: 24px;
}

.candle {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}
.candle::after {
  content: "";
  position: absolute;
  bottom: 38px;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 30px;
  background: radial-gradient(circle, rgba(240, 160, 74, 0.3), transparent 70%);
  border-radius: 50%;
  animation: glow 1.5s ease-in-out infinite alternate;
}

.flame-wrap {
  width: 20px;
  height: 28px;
  position: relative;
}

.flame {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 12px;
  height: 22px;
  background: linear-gradient(to top, var(--flame2), var(--flame), #fff5e0);
  border-radius: 50% 50% 30% 30%;
  filter: blur(1px);
  animation: flicker 1.5s ease-in-out infinite alternate;
  transform-origin: bottom center;
}
.flame::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 5px;
  height: 9px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 50%;
}

@keyframes flicker {
  0% {
    transform: translateX(-50%) scaleX(1) scaleY(1) rotate(-1deg);
  }
  25% {
    transform: translateX(-50%) scaleX(0.9) scaleY(1.05) rotate(1deg);
  }
  50% {
    transform: translateX(-50%) scaleX(1.05) scaleY(0.97) rotate(-2deg);
  }
  75% {
    transform: translateX(-50%) scaleX(0.95) scaleY(1.03) rotate(1.5deg);
  }
  100% {
    transform: translateX(-50%) scaleX(1) scaleY(1) rotate(-0.5deg);
  }
}
@keyframes glow {
  0% {
    opacity: 0.6;
    transform: translateX(-50%) scale(1);
  }
  100% {
    opacity: 1;
    transform: translateX(-50%) scale(1.3);
  }
}
.candle-body {
  width: 16px;
  height: 42px;
  background: linear-gradient(to bottom, #e8e0d0, #c8c0b0);
  border-radius: 2px;
}

.candle-base {
  width: 22px;
  height: 4px;
  background: var(--border);
  border-radius: 1px;
}

.candle-name {
  font-size: 0.68rem;
  color: var(--text-dim);
  margin-top: 6px;
  text-align: center;
  font-style: italic;
  max-width: 60px;
}

footer {
  text-align: center;
  padding: 40px 24px;
  font-family: "Cormorant SC", serif;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  color: var(--text-dim);
  border-top: 1px solid var(--border);
  position: relative;
  z-index: 1;
}
footer a {
  color: var(--gold-dim);
  text-decoration: none;
}

@media (max-width: 960px) {
  .rel-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .ain-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 768px) {
  section {
    padding: 44px 0;
  }

  #hero {
    min-height: 90vh;
  }
  #hero .content {
    flex-direction: column;
    align-items: flex-start;
    padding: 0 20px 36px;
    gap: 20px;
  }

  .portrait-wrap img {
    width: 110px;
    height: 138px;
  }

  h1.name {
    font-size: clamp(2rem, 8vw, 3rem);
  }

  .stats-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-left: 1px solid var(--border);
  }
  .stats-strip .stat-item {
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
  }
  .stats-strip .stat-item:nth-child(4), .stats-strip .stat-item:nth-child(5) {
    border-bottom: none;
  }
  .stats-strip .stat-item:nth-child(4) {
    grid-column: 1/2;
    margin-left: 50%;
  }
  .stats-strip .stat-item:nth-child(5) {
    grid-column: 2/3;
  }

  .actions-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .actions-grid > *:last-child:nth-child(5) {
    grid-column: 1/-1;
  }

  .rel-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .media-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .media-grid .media-item.tall {
    grid-row: span 1;
  }

  .msg-header {
    flex-direction: column;
    gap: 6px;
  }
  .msg-header .msg-date {
    text-align: left;
  }

  .location-block {
    grid-template-columns: 1fr;
  }
  .location-block .map-placeholder {
    order: -1;
  }

  .loc-actions {
    flex-direction: column;
  }

  .loc-btn {
    width: 100%;
    text-align: center;
  }

  .remb-grid {
    grid-template-columns: 1fr;
  }

  .ain-grid {
    grid-template-columns: 1fr;
  }

  .poem-block {
    padding: 28px 20px;
  }

  .candles-row {
    gap: 16px;
  }

  .theme-toggle {
    top: 12px;
    right: 12px;
  }
}
@media (max-width: 600px) {
  section {
    padding: 36px 0;
  }

  .stats-strip {
    grid-template-columns: repeat(2, 1fr);
  }
  .stats-strip .stat-item:nth-child(4) {
    grid-column: auto;
    margin-left: 0;
  }
  .stats-strip .stat-item:nth-child(5) {
    grid-column: auto;
  }
  .stats-strip .stat-item:nth-last-child(-n+2) {
    border-bottom: none;
  }
  .stats-strip .stat-item:nth-child(5):last-child {
    grid-column: 1/-1;
  }

  .stat-num {
    font-size: 1.4rem;
  }

  .stat-label {
    font-size: 0.62rem;
  }

  #hero {
    min-height: 85vh;
  }
  #hero .content {
    padding: 0 16px 32px;
  }

  .portrait-wrap img {
    width: 96px;
    height: 120px;
  }

  .tagline {
    font-size: 0.95rem;
  }

  .actions-grid {
    gap: 8px;
  }

  .action-btn {
    padding: 14px 8px;
  }

  .a-count {
    display: none;
  }

  .rel-grid {
    grid-template-columns: 1fr;
  }

  .media-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .poem-block {
    padding: 22px 16px;
  }

  .poem-text {
    font-size: 1rem;
  }

  .candles-row {
    gap: 12px;
    flex-wrap: wrap;
  }
}
@media (max-width: 420px) {
  .wrap {
    padding: 0 14px;
  }

  section {
    padding: 28px 0;
  }

  #hero .content {
    gap: 14px;
    padding: 0 14px 28px;
  }

  .stats-strip .stat-item {
    padding: 12px 8px;
  }

  .actions-grid {
    grid-template-columns: 1fr;
  }

  .hero-meta span {
    font-size: 0.65rem;
    padding: 3px 10px;
  }

  .poem-block {
    padding: 18px 12px;
  }

  .theme-toggle {
    top: 8px;
    right: 8px;
  }
}
.theme-toggle {
  position: fixed;
  top: 50px;
  right: 30px;
  z-index: 200;
  display: flex;
  align-items: center;
  gap: 0;
  background: none;
  border: none;
  padding: 3px;
  transition: border-color 0.2s;
}
.theme-toggle .tt-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 6px 7px;
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--text-dim);
  font-family: "Cormorant SC", serif;
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: color 0.2s;
  white-space: nowrap;
  outline: none;
}
.theme-toggle .tt-btn .tt-icon {
  font-size: 0.9rem;
  line-height: 1;
  display: block;
}
.theme-toggle .tt-btn .tt-label {
  display: none;
}
@media (min-width: 480px) {
  .theme-toggle .tt-btn .tt-label {
    display: block;
  }
}
.theme-toggle .tt-btn[aria-pressed=true] {
  color: var(--bg);
  z-index: 1;
}
.theme-toggle .tt-btn[aria-pressed=true]::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gold);
  z-index: -1;
  transition: background 0.2s;
}
.theme-toggle .tt-btn[aria-pressed=false]:hover {
  color: var(--gold);
}
.theme-toggle .tt-sep {
  width: 10px;
  height: 18px;
  background: var(--border);
  flex-shrink: 0;
  transition: opacity 0.2s;
}
.theme-toggle .tt-sep.hidden {
  opacity: 0;
}

#google_translate_element {
  display: inline-flex;
  align-items: center;
  margin-right: 10px;
  font-family: "Cormorant SC", serif !important;
  font-size: 0.68rem !important;
}
#google_translate_element .goog-te-gadget {
  font-family: inherit !important;
  font-size: inherit !important;
  color: var(--text-dim) !important;
  white-space: nowrap;
}
#google_translate_element .goog-te-gadget > span:last-child {
  display: none !important;
}

.goog-te-gadget-simple,
#google_translate_element select,
.goog-te-combo {
  appearance: none !important;
  -webkit-appearance: none !important;
  background: var(--surface) !important;
  color: var(--text-dim) !important;
  border: 1px solid var(--border) !important;
  border-radius: 0 !important;
  padding: 6px 28px 6px 11px !important;
  font-family: "Cormorant SC", serif !important;
  font-size: 0.68rem !important;
  letter-spacing: 0.14em !important;
  text-transform: uppercase !important;
  cursor: pointer !important;
  outline: none !important;
  box-shadow: none !important;
  transition: border-color 0.2s, color 0.2s !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%238a6e2e'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 10px center !important;
}
.goog-te-gadget-simple:hover,
#google_translate_element select:hover,
.goog-te-combo:hover {
  border-color: var(--gold-dim) !important;
  color: var(--gold) !important;
}
.goog-te-gadget-simple:focus,
#google_translate_element select:focus,
.goog-te-combo:focus {
  border-color: var(--gold-dim) !important;
  color: var(--gold) !important;
}
.goog-te-gadget-simple option,
#google_translate_element select option,
.goog-te-combo option {
  background: var(--surface) !important;
  color: var(--text) !important;
  font-family: "Cormorant SC", serif !important;
}

.goog-te-gadget-simple {
  background: var(--surface) !important;
  border: 1px solid var(--border) !important;
  padding: 5px 10px !important;
}
.goog-te-gadget-simple a,
.goog-te-gadget-simple a:link,
.goog-te-gadget-simple a:visited {
  color: var(--text-dim) !important;
  text-decoration: none !important;
  font-family: "Cormorant SC", serif !important;
  font-size: 0.68rem !important;
  letter-spacing: 0.14em !important;
}
.goog-te-gadget-simple a span:first-child,
.goog-te-gadget-simple a:link span:first-child,
.goog-te-gadget-simple a:visited span:first-child {
  margin-left: 5px;
}
.goog-te-gadget-simple a span:nth-child(3),
.goog-te-gadget-simple a:link span:nth-child(3),
.goog-te-gadget-simple a:visited span:nth-child(3) {
  margin-left: 5px;
  opacity: 0.1;
}
.goog-te-gadget-simple a span:last-child,
.goog-te-gadget-simple a:link span:last-child,
.goog-te-gadget-simple a:visited span:last-child {
  margin-left: 10px;
  color: var(--gold-dim) !important;
}
.goog-te-gadget-simple a:hover {
  color: var(--gold) !important;
}
.goog-te-gadget-simple img {
  display: none !important;
}
.goog-te-gadget-simple .goog-te-menu-value span:last-child {
  color: var(--gold-dim) !important;
}

.goog-te-menu-frame,
.skiptranslate iframe {
  border: 1px solid var(--border) !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45) !important;
  border-radius: 0 !important;
}

.goog-te-banner-frame,
#goog-gt-tt,
.goog-tooltip,
.goog-tooltip:hover,
.goog-text-highlight {
  display: none !important;
  box-shadow: none !important;
}

body {
  top: 0 !important;
  position: static !important;
}

@media (prefers-color-scheme: light) {
  [data-theme=light] .goog-te-combo,
[data-theme=light] #google_translate_element select,
:root:not([data-theme]) .goog-te-combo,
:root:not([data-theme]) #google_translate_element select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23b8922a'/%3E%3C/svg%3E") !important;
  }
}

[data-theme=light] .goog-te-combo,
[data-theme=light] #google_translate_element select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23b8922a'/%3E%3C/svg%3E") !important;
}

.video {
  aspect-ratio: 16/9;
  width: 100%;
  height: auto;
}

.tt-font .tt-icon {
  font-size: 0.72rem;
  font-family: "Cormorant SC", serif;
  letter-spacing: 0.04em;
  font-style: normal;
  color: var(--gold-dim) !important;
}
.tt-font .tt-icon b {
  font-size: 1.72rem;
}