/* /holly: romantic cyberpunk, cute not cold.
   Scoped visual exception to DESIGN.md: glow, plum and gradients live only here. */

@font-face { font-family: "Instrument Serif"; src: url("/assets/fonts/instrument-serif-latin-400-italic.woff2") format("woff2"); font-style: italic; font-weight: 400; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("/assets/fonts/instrument-serif-latin-400-normal.woff2") format("woff2"); font-style: normal; font-weight: 400; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("/assets/fonts/manrope-latin-wght-normal.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("/assets/fonts/jetbrains-mono-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }

:root {
  --night: #0B0710;
  --plum: #170D1E;
  --plum-2: #22132B;
  --ink: #FCEFF6;
  --muted: #CDB6C6;
  --pink: #FF4FA3;
  --cyan: #4FF0FF;
  --gold: #F2C879;
  --paper: #FFF2F8;
  --paper-ink: #2A0F22;
  --line: rgba(255, 79, 163, 0.28);
  --serif: "Instrument Serif", "Times New Roman", serif;
  --sans: "Manrope", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --leopard: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140' viewBox='0 0 140 140'%3E%3Cg fill='none' stroke='%23FF4FA3' stroke-width='5' stroke-linecap='round'%3E%3Cpath d='M18 22c6-8 18-6 20 3M14 34c2 8 12 12 20 7'/%3E%3Cpath d='M78 14c8-4 17 2 15 10M72 26c1 7 9 11 16 8'/%3E%3Cpath d='M112 58c7-5 17 0 16 9M108 70c3 7 12 9 18 4'/%3E%3Cpath d='M44 74c7-6 18-2 18 7M40 86c3 8 13 10 20 5'/%3E%3Cpath d='M92 106c6-6 16-3 17 6M88 118c3 7 12 9 18 4'/%3E%3Cpath d='M10 112c6-5 15-1 15 7'/%3E%3C/g%3E%3Cg fill='%23FF4FA3'%3E%3Ccircle cx='27' cy='30' r='3'/%3E%3Ccircle cx='83' cy='22' r='3'/%3E%3Ccircle cx='118' cy='65' r='3'/%3E%3Ccircle cx='51' cy='81' r='3'/%3E%3Ccircle cx='99' cy='113' r='3'/%3E%3C/g%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--night);
  color: var(--ink);
  font: 400 1.0625rem/1.65 var(--sans);
  overflow-x: hidden;
}
img, video { max-width: 100%; display: block; }
a { color: var(--cyan); text-underline-offset: 0.2em; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.05; margin: 0; }
p { margin: 0 0 0.75em; }

.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 50; padding: 0.6rem 1rem; background: var(--pink); color: var(--night); font-weight: 700; border-radius: 999px; }
.skip:focus { top: 1rem; }
.wrap { width: min(1120px, 100% - 2.5rem); margin-inline: auto; }

/* ---------- invite ---------- */
.invite {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 3rem 1.25rem;
  position: relative;
  isolation: isolate;
  background:
    radial-gradient(60rem 30rem at 50% -10%, rgba(255, 79, 163, 0.28), transparent 60%),
    radial-gradient(50rem 26rem at 50% 115%, rgba(79, 240, 255, 0.16), transparent 60%),
    var(--night);
}
.invite::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: var(--leopard);
  background-size: 140px 140px;
  opacity: 0.07;
}
.invite::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: repeating-linear-gradient(to bottom, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 4px);
  pointer-events: none;
}
.invite-card { text-align: center; max-width: 46rem; }
.transmission {
  font: 400 0.9rem/1.4 var(--mono);
  color: var(--cyan);
  margin-bottom: 1.6rem;
}
.transmission::after {
  content: "";
  display: inline-block;
  width: 0.55em;
  height: 1.05em;
  margin-left: 0.3em;
  vertical-align: -0.15em;
  background: var(--cyan);
  animation: caret 1.1s steps(1) 4; /* four blinks, then still: no endless motion */
}
@keyframes caret { 50% { opacity: 0; } }
.invite-title {
  font-style: italic;
  font-size: clamp(3rem, 10vw, 6.5rem);
  line-height: 0.95;
  text-shadow: 0 0 18px rgba(255, 79, 163, 0.55), 0 0 2px rgba(255, 255, 255, 0.6);
}
.invite-title span { display: block; }
.invite-title span:last-child { color: var(--pink); }
.invite-lede { color: var(--muted); font-size: 1.15rem; margin: 1.6rem auto 2rem; max-width: 30rem; }
.invite-actions { min-height: 4rem; }
.btn {
  --dx: 0px;
  --dy: 0px;
  --press: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.5rem;
  padding: 0 2rem;
  border-radius: 999px;
  background: var(--pink);
  color: #1A0712;
  font: 700 1.1rem/1 var(--sans);
  text-decoration: none;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.25) inset, 0 0 28px rgba(255, 79, 163, 0.55);
  transform: translate(var(--dx), var(--dy)) scale(var(--press));
  transition: transform 260ms var(--ease-out), box-shadow 200ms ease;
  position: relative;
  z-index: 2;
}
.btn:hover { color: #1A0712; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.4) inset, 0 0 40px rgba(255, 79, 163, 0.8); }
.btn:active { --press: 0.97; }
.quip { min-height: 1.6em; margin-top: 1rem; color: var(--gold); font-family: var(--serif); font-style: italic; font-size: 1.35rem; }
.welcome-back { color: var(--muted); }

/* ---------- reveal ---------- */
.reveal {
  display: grid;
  gap: 1.5rem;
  align-items: center;
  padding: 3rem 1.25rem 4rem;
  width: min(1120px, 100%);
  margin-inline: auto;
}
.reveal-stage {
  position: relative;
  width: min(100%, 30rem);
  aspect-ratio: 4 / 5;
  margin-inline: auto;
  border-radius: 28px;
  overflow: hidden;
  background: var(--night);
  box-shadow: 0 0 0 1px var(--line), 0 0 60px rgba(255, 79, 163, 0.22);
}
.reveal-stage img, .reveal-stage video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.reveal-stage video { opacity: 0; transition: opacity 200ms ease; }
.reveal-stage.has-video video { opacity: 1; }
.reveal-words { text-align: center; }
#reveal-title { font-size: clamp(2.6rem, 7vw, 5rem); font-style: italic; }
/* Focus lands here by script so screen readers start at the reveal. It is not
   interactive, so no focus ring: the scroll and announcement are the cue. */
#reveal-title:focus, #reveal-title:focus-visible { outline: none; }
#reveal-title .line { display: block; }
#reveal-title .line + .line { color: var(--pink); text-shadow: 0 0 22px rgba(255, 79, 163, 0.6); }
.reveal-dates { margin-top: 1.2rem; font: 400 1rem/1.4 var(--mono); color: var(--cyan); }
.btn-ghost {
  margin-top: 1rem;
  min-height: 2.75rem;
  padding: 0 1.2rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  font: 600 0.95rem/1 var(--sans);
  cursor: pointer;
  transition: transform 160ms var(--ease-out), border-color 160ms ease;
}
.btn-ghost:hover { border-color: var(--pink); }
.btn-ghost:active { transform: scale(0.97); }

/* the one orchestrated moment: words land with the tower */
.js .reveal.is-waiting .line { opacity: 0; transform: translateY(12px); }
.js .reveal .line { transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out); }
.js .reveal.is-landing #reveal-title .line:first-child { transition-delay: 900ms; }
.js .reveal.is-landing #reveal-title .line:last-child { transition-delay: 1900ms; }
.js .reveal.is-landing .reveal-dates { transition-delay: 2700ms; }

@media (min-width: 900px) {
  .reveal { grid-template-columns: 1fr 1fr; padding-block: 5rem; }
  .reveal-words { text-align: left; }
  .reveal-stage { width: 100%; max-height: 86vh; }
}

/* ---------- note ---------- */
.note { padding: 2rem 1.25rem 4rem; }
.note-paper {
  max-width: 38rem;
  margin-inline: auto;
  background: var(--paper);
  color: var(--paper-ink);
  padding: 2.4rem 2rem 2rem;
  border-radius: 6px 6px 22px 22px;
  transform: rotate(-0.6deg);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 79, 163, 0.25);
  position: relative;
  font-family: var(--serif);
  font-size: 1.3rem;
  line-height: 1.55;
}
.note-paper::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 14px;
  border-radius: 6px 6px 0 0;
  background: var(--pink) var(--leopard);
  background-size: 70px 70px;
  background-blend-mode: multiply;
}
.note-paper h2 { font-style: italic; font-size: 2.3rem; margin-bottom: 1rem; color: #B0115F; }
.note-paper .sign { font-style: italic; font-size: 1.5rem; margin: 1.2rem 0 0; color: #B0115F; }

/* ---------- week ---------- */
.week { padding: 3rem 0 4rem; }
.week h2, .food h2, .little h2 { font-size: clamp(2.4rem, 6vw, 3.8rem); font-style: italic; margin-bottom: 0.6rem; }
.section-lede { color: var(--muted); max-width: 44rem; margin-bottom: 1.5rem; }
.legend .status { margin-inline: 0.15rem; }

.day-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  margin: 0 -1.25rem 1.5rem;
  padding: 0.75rem 1.25rem;
  background: var(--night);
  border-bottom: 1px solid var(--line);
}
.day-nav ol { display: flex; gap: 0.5rem; margin: 0; padding: 0; list-style: none; overflow-x: auto; scrollbar-width: none; }
.day-nav a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 2.75rem;
  padding: 0 0.95rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
  font-weight: 700;
}
.day-nav a .dn { font-weight: 400; color: var(--muted); }
.day-nav a[aria-current="date"] { background: var(--pink); border-color: var(--pink); color: #1A0712; }
.day-nav a[aria-current="date"] .dn { color: #1A0712; }

.day {
  background: linear-gradient(160deg, var(--plum-2), var(--plum) 55%);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 1.6rem 1.4rem;
  margin-bottom: 1.25rem;
  scroll-margin-top: 5rem;
  overflow: hidden;
}
.day.is-today { border-color: var(--pink); box-shadow: 0 0 0 1px var(--pink), 0 0 40px rgba(255, 79, 163, 0.3); }
.today-badge { display: inline-block; margin-left: 0.6rem; padding: 0.1rem 0.6rem; border-radius: 999px; background: var(--pink); color: #1A0712; font: 700 0.8rem/1.6 var(--sans); vertical-align: middle; }

/* Photo banner: the real place, quiet. The fade into the card is a CSS mask,
   so the credited file stays the photographer's picture. */
.day-photo { margin: -1.6rem -1.4rem 0.9rem; }
.day-photo > img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent);
  mask-image: linear-gradient(to bottom, #000 55%, transparent);
}
.day-photo figcaption { padding: 0 1.4rem; margin-top: -1.4rem; position: relative; font-size: 0.8rem; color: var(--muted); }
.day-photo figcaption a { color: var(--muted); }

.day-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.sticker {
  flex: none;
  display: block;
  width: 4.75rem;
  height: 4.75rem;
  margin-top: 0.2rem;
  border-radius: 18px;
  overflow: hidden;
  position: relative;
  background: var(--night);
  box-shadow: 0 0 0 1px var(--line), 0 0 22px rgba(255, 79, 163, 0.35);
  cursor: pointer;
}
.sticker img, .sticker video { position: absolute; inset: 0; width: 100%; height: 100%; }
.sticker video { opacity: 0; transition: opacity 200ms ease; }
.sticker.is-playing video { opacity: 1; }
.day-date { font: 400 0.9rem/1.4 var(--mono); color: var(--cyan); margin-bottom: 0.4rem; }
.day h3 { font-size: clamp(2rem, 5vw, 3rem); font-style: italic; margin-bottom: 1.2rem; }
.day-grid { display: grid; gap: 1.5rem; }
.day-main .main-thing { font-family: var(--serif); font-size: clamp(1.6rem, 3.6vw, 2.2rem); line-height: 1.15; margin: 0.6rem 0 0.8rem; }
.day-main p:not(.main-thing) { color: var(--muted); }
.day-side h4 { margin: 0 0 0.5rem; font: 700 0.95rem/1.3 var(--sans); color: var(--gold); }
.day-side h4:not(:first-child) { margin-top: 1.2rem; }
.day-side ul { list-style: none; margin: 0; padding: 0; }
.day-side li { display: flex; gap: 0.6rem; align-items: baseline; padding: 0.45rem 0; border-top: 1px solid rgba(255, 79, 163, 0.12); }
.day-side li:first-child { border-top: 0; }
.hint { margin: 0.9rem 0 0; color: var(--muted); font-size: 0.97rem; }
.hint strong { color: var(--ink); }
@media (min-width: 860px) {
  .day { padding: 2rem 2.2rem; }
  .day-photo { margin: -2rem -2.2rem 1rem; }
  .day-photo > img { aspect-ratio: 21 / 9; }
  .day-photo figcaption { padding-inline: 2.2rem; }
  .sticker { width: 5.5rem; height: 5.5rem; }
  .day-grid { grid-template-columns: 1.05fr 1fr; gap: 2.5rem; }
}

.status {
  flex: none;
  display: inline-block;
  padding: 0.05rem 0.55rem;
  border-radius: 999px;
  font: 700 0.75rem/1.6 var(--sans);
  border: 1px solid currentColor;
  white-space: nowrap;
}
.status-booked { background: var(--gold); border-color: var(--gold); color: #24170A; }
.status-planned { color: var(--cyan); }
.status-optional { color: var(--muted); border-style: dashed; }

/* ---------- food ---------- */
.food { padding: 3rem 0 4rem; }
.filters { display: none; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 0.6rem; }
.js .filters { display: flex; }
.filters button {
  min-height: 2.75rem;
  padding: 0 1rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  font: 600 0.95rem/1 var(--sans);
  cursor: pointer;
  transition: transform 160ms var(--ease-out), background-color 160ms ease;
}
.filters button:active { transform: scale(0.97); }
.filters button[aria-pressed="true"] { background: var(--pink); border-color: var(--pink); color: #1A0712; }
.food-status { min-height: 1.6em; color: var(--muted); font-size: 0.95rem; }
.food-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(min(16rem, 100%), 1fr));
}
.food-card {
  background: var(--plum);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 1.25rem 1.2rem 1.1rem;
  display: flex;
  flex-direction: column;
}
.food-card[hidden] { display: none; }
.food-card h3 { font-size: 1.75rem; font-style: italic; margin-bottom: 0.4rem; }
.food-card p { color: var(--muted); }
.meta { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: auto; padding-top: 0.4rem; }
.meta span { font-size: 0.8rem; padding: 0.05rem 0.55rem; border-radius: 999px; background: rgba(255, 255, 255, 0.06); color: var(--ink); }
.meta .book { background: transparent; border: 1px solid var(--pink); color: var(--pink); }
.food-card > a { margin-top: 0.4rem; font-weight: 600; }

/* ---------- little things ---------- */
.little { padding: 3rem 0 5rem; }
.little-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(15rem, 100%), 1fr)); }
.little-grid > div { border-top: 2px solid var(--pink); padding-top: 1rem; }
.little-grid h3 { font-size: 1.7rem; font-style: italic; margin-bottom: 0.5rem; }
.little-grid p { color: var(--muted); }

/* ---------- dock and footer ---------- */
.dock { display: none; }
@media (max-width: 759px) {
  body { padding-bottom: 4.5rem; }
  .dock {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    position: fixed;
    inset: auto 0.75rem max(0.75rem, env(safe-area-inset-bottom)) 0.75rem;
    z-index: 20;
    background: rgba(23, 13, 30, 0.97);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 0.3rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  }
  .dock a {
    display: grid;
    place-items: center;
    min-height: 2.9rem;
    border-radius: 999px;
    color: var(--ink);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
  }
  .dock a:first-child { background: var(--pink); color: #1A0712; }
}
.foot { text-align: center; padding: 2rem 1.25rem 3rem; color: var(--muted); border-top: 1px solid var(--line); }
.foot .small { font-size: 0.85rem; }
.credits { max-width: 44rem; margin: 1.5rem auto; text-align: left; font-size: 0.85rem; }
.credits h2 { font-size: 1.6rem; font-style: italic; color: var(--ink); margin-bottom: 0.5rem; }
.credits ul { margin: 0 0 0.8rem; padding-left: 1.1rem; }
.credits li { margin-bottom: 0.35rem; }
.credits li:target { color: var(--ink); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal.is-waiting .line { opacity: 1; transform: none; }
}
