:root {
  color-scheme: light;
  --ink: #24191d;
  --muted: #6f5c61;
  --paper: #fffaf2;
  --paper-strong: #fff4df;
  --surface: #ffffff;
  --line: rgba(36, 25, 29, 0.16);
  --coral: #ff5d4f;
  --fuchsia: #d91f6f;
  --teal: #009a9b;
  --emerald: #0a8f5a;
  --lemon: #f6bf26;
  --violet: #6846c7;
  --shadow: 0 18px 45px rgba(75, 38, 52, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.5;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 12px 12px, rgba(217, 31, 111, 0.11) 0 2px, transparent 2px),
    radial-gradient(circle at 42px 36px, rgba(0, 154, 155, 0.1) 0 2px, transparent 2px);
  background-size: 64px 64px;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 20;
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  padding: 10px 14px;
  transition: top 160ms ease;
}

.skip-link:focus {
  top: 16px;
}

.hero {
  position: relative;
  display: grid;
  min-height: clamp(560px, 74vh, 760px);
  overflow: hidden;
  color: #fff;
  isolation: isolate;
}

.hero-art {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(25, 13, 17, 0.76) 0%, rgba(25, 13, 17, 0.38) 52%, rgba(25, 13, 17, 0.1) 100%),
    linear-gradient(0deg, rgba(25, 13, 17, 0.5) 0%, rgba(25, 13, 17, 0) 42%);
}

.topbar {
  position: absolute;
  left: 50%;
  top: 20px;
  z-index: 5;
  display: flex;
  width: min(1120px, calc(100% - 32px));
  min-height: 58px;
  transform: translateX(-50%);
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  background: rgba(25, 13, 17, 0.34);
  padding: 10px 12px 10px 18px;
  backdrop-filter: blur(16px);
}

.brand {
  font-size: clamp(1.05rem, 1.7vw, 1.35rem);
  font-weight: 900;
  letter-spacing: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-links a {
  min-height: 38px;
  border-radius: 8px;
  padding: 9px 12px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.94rem;
  font-weight: 750;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  background: rgba(255, 255, 255, 0.14);
}

.hero-content {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 126px 0 72px;
  align-self: end;
}

.kicker,
.eyebrow {
  margin: 0 0 12px;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.kicker {
  color: #ffd768;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 780px;
  margin-bottom: 16px;
  font-size: clamp(4.2rem, 12vw, 9rem);
  line-height: 0.85;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 650px;
  margin-bottom: 26px;
  color: rgba(255, 255, 255, 0.94);
  font-size: clamp(1.1rem, 2.6vw, 1.55rem);
  font-weight: 650;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 38px;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 12px 18px;
  font-weight: 850;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button.primary {
  background: var(--lemon);
  color: var(--ink);
  box-shadow: 0 12px 26px rgba(246, 191, 38, 0.28);
}

.button.secondary {
  border-color: rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.button.compact {
  min-height: 40px;
  border-color: var(--line);
  background: var(--surface);
  color: var(--ink);
  padding: 9px 12px;
}

.hero-stats {
  display: grid;
  max-width: 580px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.hero-stats div {
  border-left: 4px solid var(--lemon);
  padding: 0 14px;
}

.hero-stats dt {
  font-size: clamp(1.7rem, 4vw, 3rem);
  font-weight: 950;
  line-height: 1;
}

.hero-stats dd {
  margin: 4px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-weight: 750;
}

.today-band,
.events-band,
.story-band,
.planner-band {
  padding: clamp(46px, 7vw, 86px) 0;
}

.today-band {
  background: var(--paper-strong);
}

.events-band {
  background: #ffffff;
}

.story-band {
  background: #fff7f8;
}

.planner-band {
  background: #f3fff8;
}

.section-inner {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.section-heading {
  margin-bottom: 24px;
}

.split-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}

.eyebrow {
  color: var(--fuchsia);
}

h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 4.8vw, 4.4rem);
  line-height: 0.98;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.14rem;
  line-height: 1.1;
  letter-spacing: 0;
}

.status-pill {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 10px 14px;
  color: var(--ink);
  font-weight: 850;
  box-shadow: var(--shadow);
}

.today-layout {
  display: grid;
  grid-template-columns: minmax(240px, 0.72fr) minmax(0, 1.28fr);
  gap: 20px;
  align-items: start;
}

.today-lead {
  border-left: 6px solid var(--fuchsia);
  padding-left: 18px;
}

.today-lead p {
  color: var(--muted);
  font-size: 1.08rem;
  font-weight: 650;
}

.progress-wrap {
  margin-top: 24px;
}

.progress-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.progress-track {
  height: 14px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(36, 25, 29, 0.1);
}

.progress-track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--coral), var(--lemon), var(--teal));
  transition: width 260ms ease;
}

.today-grid,
.event-grid,
.story-grid,
.prep-grid {
  display: grid;
  gap: 14px;
}

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

.event-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.story-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.prep-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.event-card,
.today-card,
.story-panel,
.prep-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.event-card,
.today-card {
  position: relative;
  display: flex;
  min-height: 328px;
  flex-direction: column;
  overflow: hidden;
}

.today-card {
  min-height: 250px;
}

.event-card::before,
.today-card::before,
.story-panel::before,
.prep-panel::before {
  content: "";
  display: block;
  height: 7px;
  background: var(--accent, var(--coral));
}

.event-card[data-type="Romance"],
.today-card[data-type="Romance"] {
  --accent: var(--fuchsia);
}

.event-card[data-type="Memory"],
.today-card[data-type="Memory"] {
  --accent: var(--teal);
}

.event-card[data-type="Gift"],
.today-card[data-type="Gift"] {
  --accent: var(--lemon);
}

.event-card[data-type="Experience"],
.today-card[data-type="Experience"] {
  --accent: var(--coral);
}

.event-card[data-type="Friends"],
.today-card[data-type="Friends"] {
  --accent: var(--emerald);
}

.event-card[data-type="Ritual"],
.today-card[data-type="Ritual"] {
  --accent: var(--violet);
}

.card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 16px;
}

.card-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.event-title {
  margin-bottom: 9px;
  font-size: clamp(1.02rem, 1.5vw, 1.24rem);
}

.event-summary {
  margin-bottom: 16px;
  color: var(--muted);
  font-weight: 600;
}

.event-detail,
.prep-note {
  margin-bottom: 14px;
  color: var(--ink);
  font-size: 0.94rem;
}

.prep-note {
  display: none;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

body.planner-on .prep-note {
  display: block;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
}

.chip {
  border: 1px solid rgba(36, 25, 29, 0.12);
  border-radius: 999px;
  background: rgba(36, 25, 29, 0.04);
  padding: 5px 9px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 850;
}

.ready-row {
  display: none;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

body.planner-on .ready-row {
  display: flex;
}

.ready-row input,
.planner-toggle input {
  width: 18px;
  height: 18px;
  accent-color: var(--fuchsia);
}

.locked .event-detail {
  color: var(--muted);
  font-style: italic;
}

.locked::after {
  content: "Locked";
  position: absolute;
  right: 12px;
  top: 18px;
  border-radius: 999px;
  background: rgba(36, 25, 29, 0.72);
  color: #fff;
  padding: 4px 8px;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.controls {
  display: grid;
  grid-template-columns: minmax(220px, 1.2fr) minmax(160px, 0.7fr) minmax(160px, 0.7fr);
  gap: 12px;
  margin-bottom: 18px;
}

.control-field {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.control-field input,
.control-field select {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 10px 12px;
  text-transform: none;
}

.planner-toggle {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 10px 12px;
  color: var(--ink);
  font-weight: 850;
  box-shadow: var(--shadow);
}

.story-panel,
.prep-panel {
  overflow: hidden;
  padding: 0 16px 16px;
}

.story-panel::before,
.prep-panel::before {
  margin: 0 -16px 16px;
}

.story-number {
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 950;
}

.story-panel p:last-child,
.prep-panel p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  font-weight: 600;
}

.accent-coral {
  --accent: var(--coral);
}

.accent-teal {
  --accent: var(--teal);
}

.accent-lemon {
  --accent: var(--lemon);
}

.accent-emerald {
  --accent: var(--emerald);
}

.prep-panel h3 {
  font-size: 1rem;
}

.prep-list {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 620;
}

.prep-list li + li {
  margin-top: 8px;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--ink);
  color: #fff;
  padding: 26px 16px;
  text-align: center;
}

.site-footer p {
  margin: 0 auto;
  max-width: 820px;
  color: rgba(255, 255, 255, 0.86);
  font-weight: 700;
}

.event-stage {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.65fr);
  gap: 18px;
  align-items: stretch;
}

.featured-card,
.next-panel,
.prelaunch-card,
.memory-card,
.featured-unlocked,
.locked-card,
.planner-card,
.guide-panel,
.planner-note {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.featured-card {
  min-height: 420px;
  overflow: hidden;
}

.featured-card > .featured-unlocked {
  min-height: 100%;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.featured-unlocked,
.memory-card,
.planner-card {
  position: relative;
  overflow: hidden;
}

.featured-unlocked::before,
.memory-card::before,
.planner-card::before {
  content: "";
  display: block;
  height: 7px;
  background: var(--accent, var(--coral));
}

.featured-unlocked[data-type="Romance"],
.memory-card[data-type="Romance"],
.planner-card[data-type="Romance"] {
  --accent: var(--fuchsia);
}

.featured-unlocked[data-type="Memory"],
.memory-card[data-type="Memory"],
.planner-card[data-type="Memory"] {
  --accent: var(--teal);
}

.featured-unlocked[data-type="Gift"],
.memory-card[data-type="Gift"],
.planner-card[data-type="Gift"] {
  --accent: var(--lemon);
}

.featured-unlocked[data-type="Experience"],
.memory-card[data-type="Experience"],
.planner-card[data-type="Experience"] {
  --accent: var(--coral);
}

.featured-unlocked[data-type="Friends"],
.memory-card[data-type="Friends"],
.planner-card[data-type="Friends"] {
  --accent: var(--emerald);
}

.featured-unlocked[data-type="Ritual"],
.memory-card[data-type="Ritual"],
.planner-card[data-type="Ritual"] {
  --accent: var(--violet);
}

.prelaunch-card {
  display: grid;
  min-height: 100%;
  align-content: center;
  padding: clamp(22px, 4vw, 40px);
  background:
    linear-gradient(135deg, rgba(217, 31, 111, 0.11), rgba(0, 154, 155, 0.09)),
    var(--surface);
}

.prelaunch-card h3 {
  max-width: 680px;
  margin-bottom: 12px;
  font-size: clamp(1.8rem, 4vw, 3.5rem);
}

.prelaunch-card p:last-child,
.next-panel p,
.soft-note {
  color: var(--muted);
  font-weight: 650;
}

.next-panel {
  padding: 18px;
}

.next-panel h3 {
  font-size: 1.35rem;
}

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

.locked-band {
  background: #f8fbff;
  padding: clamp(46px, 7vw, 86px) 0;
}

.locked-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.locked-card {
  min-height: 190px;
  padding: 18px;
  background:
    linear-gradient(135deg, rgba(246, 191, 38, 0.16), rgba(217, 31, 111, 0.08)),
    #fff;
}

.sealed-number {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-weight: 950;
}

.locked-card p:last-child {
  color: var(--muted);
  font-weight: 700;
}

.empty-state {
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.74);
  padding: 22px;
}

.empty-state p {
  margin-bottom: 0;
  color: var(--muted);
  font-weight: 650;
}

.media-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 6px 0 16px;
}

.media-gallery figure {
  margin: 0;
}

.media-gallery img,
.media-gallery video {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  object-fit: cover;
}

.media-gallery audio {
  width: 100%;
}

.media-gallery figcaption {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
}

.planner-hero {
  position: relative;
  min-height: 470px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(25, 13, 17, 0.88), rgba(25, 13, 17, 0.54)),
    url("assets/ranjani40-hero.png") center / cover;
  color: #fff;
}

.planner-topbar {
  position: relative;
  left: auto;
  top: 20px;
  transform: none;
  margin: 0 auto;
}

.planner-hero-inner {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 92px 0 60px;
}

.planner-hero h1 {
  max-width: 920px;
  font-size: clamp(3.2rem, 9vw, 7.5rem);
}

.planner-note {
  margin-bottom: 18px;
  padding: 16px;
  color: var(--muted);
  font-weight: 650;
}

.planner-note code,
.guide-panel code {
  color: var(--ink);
  font-weight: 850;
}

.editor-toolbar {
  display: grid;
  gap: 10px;
  margin-bottom: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 14px;
  box-shadow: var(--shadow);
}

.editor-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.file-button {
  position: relative;
  overflow: hidden;
}

.file-button input {
  position: absolute;
  inset: 0;
  cursor: pointer;
  opacity: 0;
}

.button.danger {
  border-color: rgba(217, 31, 111, 0.25);
  color: var(--fuchsia);
}

.draft-status {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 750;
}

.planner-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.editor-card {
  min-height: 0;
}

.editor-card details {
  overflow: hidden;
}

.editor-card summary {
  display: flex;
  min-height: 78px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  cursor: pointer;
  list-style: none;
}

.summary-thumb {
  display: grid;
  width: 58px;
  height: 58px;
  flex: 0 0 auto;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(36, 25, 29, 0.05);
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
}

.summary-thumb img,
.summary-thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.editor-card summary::-webkit-details-marker {
  display: none;
}

.editor-card summary strong {
  display: block;
  margin-bottom: 5px;
  font-size: 1.05rem;
}

.editor-card summary small {
  display: block;
  color: var(--muted);
  font-weight: 750;
}

.summary-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.field-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.compact-fields {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-bottom: 12px;
}

.editor-field {
  display: grid;
  gap: 6px;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.editor-field input,
.editor-field select,
.editor-field textarea {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 10px 12px;
  font-size: 0.96rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

.editor-field textarea {
  resize: vertical;
}

.planner-detail {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin: 4px 0 14px;
  padding: 12px 0;
}

.planner-detail p {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 650;
}

.planner-detail p:last-child {
  margin-bottom: 0;
}

.planner-page .ready-row,
.planner-ready {
  display: flex;
}

.editor-body {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 18px;
  align-items: start;
}

.editor-main {
  min-width: 0;
}

.wife-preview-stack {
  position: sticky;
  top: 14px;
  display: grid;
  gap: 12px;
}

.planner-public-preview {
  position: relative;
  overflow: hidden;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, #fff, rgba(255, 250, 242, 0.86));
  padding: 16px;
}

.planner-public-preview::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 7px;
  background: var(--accent, var(--coral));
}

.planner-public-preview[data-type="Romance"] {
  --accent: var(--fuchsia);
}

.planner-public-preview[data-type="Memory"] {
  --accent: var(--teal);
}

.planner-public-preview[data-type="Gift"] {
  --accent: var(--lemon);
}

.planner-public-preview[data-type="Experience"] {
  --accent: var(--coral);
}

.planner-public-preview[data-type="Friends"] {
  --accent: var(--emerald);
}

.planner-public-preview[data-type="Ritual"] {
  --accent: var(--violet);
}

.preview-label {
  margin: 8px 0 14px;
  color: var(--fuchsia);
  font-size: 0.76rem;
  font-weight: 950;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.wife-locked-preview {
  min-height: 0;
  box-shadow: none;
}

.wife-locked-preview .preview-label {
  color: var(--teal);
}

.wife-unlocked-preview .event-detail {
  white-space: pre-wrap;
}

.planner-preview-gallery {
  margin-top: 14px;
}

.gallery-placeholder {
  display: grid;
  min-height: 140px;
  place-items: center;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  font-weight: 800;
}

.preview-empty,
.preview-note,
.media-help {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 650;
}

.preview-note {
  margin: 10px 0 0;
}

.media-help {
  margin: 2px 0 0;
}

.media-path-note {
  margin: 18px 0 12px;
  border-left: 5px solid var(--teal);
  background: rgba(0, 154, 155, 0.08);
  padding: 10px 12px;
  color: var(--muted);
  font-weight: 750;
}

.media-editor {
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.media-editor + .media-editor {
  margin-top: 16px;
}

.media-editor-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.media-editor-heading h4 {
  margin: 0;
  font-size: 1rem;
}

.media-empty {
  margin: 0 0 12px;
  color: var(--muted);
  font-weight: 650;
}

.media-item {
  display: grid;
  grid-template-columns: minmax(180px, 0.34fr) minmax(0, 0.66fr);
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: rgba(36, 25, 29, 0.025);
}

.media-item + .media-item {
  margin-top: 10px;
}

.media-preview {
  display: grid;
  min-height: 160px;
  place-items: center;
  overflow: hidden;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  font-weight: 750;
  text-align: center;
}

.media-preview img,
.media-preview video {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 240px;
  object-fit: cover;
}

.media-preview audio {
  width: 92%;
}

.media-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.guide-panel {
  padding: 18px;
}

.guide-panel p {
  margin-bottom: 0;
  color: var(--muted);
  font-weight: 650;
}

@media (max-width: 1040px) {
  .event-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .story-grid,
  .prep-grid,
  .locked-grid,
  .guide-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .hero {
    min-height: 680px;
  }

  .hero::before {
    background: rgba(25, 13, 17, 0.58);
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
    padding: 12px;
  }

  .nav-links {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .nav-links a {
    white-space: nowrap;
  }

  .hero-content {
    padding-top: 150px;
    padding-bottom: 48px;
  }

  h1 {
    font-size: clamp(3.8rem, 20vw, 5.8rem);
  }

  .hero-stats,
  .today-layout,
  .event-stage,
  .today-grid,
  .event-grid,
  .timeline-grid,
  .locked-grid,
  .planner-grid,
  .guide-grid,
  .editor-body,
  .compact-fields,
  .media-item,
  .controls,
  .story-grid,
  .prep-grid {
    grid-template-columns: 1fr;
  }

  .split-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .progress-meta {
    flex-direction: column;
  }

  .event-card,
  .today-card,
  .featured-card {
    min-height: 0;
  }

  .planner-topbar {
    top: 16px;
  }

  .planner-hero-inner {
    padding-top: 120px;
  }

  .media-gallery {
    grid-template-columns: 1fr;
  }

  .editor-card summary {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .summary-badges {
    justify-content: flex-start;
  }

  .wife-preview-stack {
    position: static;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
