:root {
  --paper: #f4f0e8;
  --paper-deep: #e8e1d6;
  --ink: #211b1c;
  --muted: #71696a;
  --line: rgba(33, 27, 28, 0.18);
  --wine: #782a3b;
  --wine-dark: #531c2a;
  --rose: #c98d96;
  --rose-light: #ead8d8;
  --sage: #4f604b;
  --sage-dark: #24342b;
  --blue: #536a6b;
  --white: #fffdf8;
  --sans: "Avenir Next", "Helvetica Neue", "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", sans-serif;
  --serif: "Songti SC", "STSong", "Noto Serif CJK SC", "Source Han Serif SC",
    Georgia, serif;
  --shell: min(90vw, 1440px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--paper);
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.is-locked {
  overflow: hidden;
}

img {
  display: block;
  width: 100%;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

button {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

::selection {
  color: var(--white);
  background: var(--wine);
}

.skip-link {
  position: fixed;
  z-index: 500;
  top: 12px;
  left: 12px;
  padding: 10px 18px;
  color: var(--white);
  background: var(--ink);
  transform: translateY(-150%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.page-progress {
  position: fixed;
  z-index: 200;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--wine);
  transform: scaleX(0);
  transform-origin: left center;
  pointer-events: none;
}

.site-header {
  position: fixed;
  z-index: 100;
  top: 0;
  left: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: 100%;
  height: 90px;
  padding: 0 4.5vw;
  color: var(--white);
  border-bottom: 1px solid transparent;
  transition:
    height 0.35s var(--ease),
    color 0.3s ease,
    background 0.3s ease,
    border-color 0.3s ease;
}

.site-header.is-scrolled {
  height: 72px;
  color: var(--ink);
  background: rgba(244, 240, 232, 0.94);
  border-color: var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  display: flex;
  align-items: baseline;
  justify-self: start;
  gap: 7px;
  width: max-content;
  font-family: var(--serif);
  font-size: 25px;
  line-height: 1;
}

.brand-word {
  font-style: italic;
}

.brand-amp {
  color: var(--rose);
  font-size: 12px;
  font-style: normal;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.site-header.is-scrolled .brand-amp {
  color: var(--wine);
}

.desktop-nav {
  display: flex;
  gap: 38px;
}

.desktop-nav a {
  position: relative;
  font-size: 12px;
  letter-spacing: 0.08em;
}

.desktop-nav a::after {
  position: absolute;
  right: 0;
  bottom: -7px;
  left: 0;
  height: 1px;
  content: "";
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease);
}

.desktop-nav a:hover::after,
.desktop-nav a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.edit-profile-button {
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 9px;
  padding: 8px 0;
  color: inherit;
  background: none;
  border: 0;
  border-bottom: 1px solid currentColor;
  font-size: 11px;
  letter-spacing: 0.08em;
  cursor: pointer;
}

.edit-profile-button svg,
.outline-button svg,
.filled-button svg,
.add-wish svg,
.hero-scroll svg,
.question-card button svg {
  width: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.4;
  transition: transform 0.3s var(--ease);
}

.edit-profile-button:hover svg {
  transform: rotate(-8deg);
}

.menu-toggle {
  display: none;
  justify-self: end;
  width: 44px;
  height: 44px;
  padding: 12px 3px;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 30px;
  height: 1px;
  margin: 7px 0;
  background: currentColor;
  transition: transform 0.3s var(--ease);
}

.menu-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(4px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

.mobile-menu {
  position: fixed;
  z-index: 90;
  inset: 0;
  display: flex;
  visibility: hidden;
  flex-direction: column;
  justify-content: space-between;
  padding: 125px 6vw 32px;
  color: var(--white);
  background: var(--wine-dark);
  opacity: 0;
  transform: translateY(-20px);
  transition:
    opacity 0.35s ease,
    transform 0.45s var(--ease),
    visibility 0.35s;
}

.mobile-menu.is-open {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

.mobile-menu nav {
  display: flex;
  flex-direction: column;
}

.mobile-menu nav a {
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding: 15px 0;
  font-family: var(--serif);
  font-size: clamp(33px, 9vw, 50px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.mobile-menu nav span {
  font-family: var(--sans);
  font-size: 9px;
  letter-spacing: 0.16em;
  opacity: 0.55;
}

.mobile-settings {
  padding: 15px 0;
  color: var(--white);
  background: none;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
  font-size: 12px;
  text-align: left;
  cursor: pointer;
}

.hero {
  position: relative;
  display: flex;
  min-height: 760px;
  height: 100svh;
  color: var(--white);
  overflow: hidden;
}

.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 112%;
  object-fit: cover;
  object-position: center 34%;
  transform: translateY(var(--hero-shift, 0));
  animation: hero-in 1.6s var(--ease) both;
  will-change: transform;
}

@keyframes hero-in {
  from {
    opacity: 0;
    transform: scale(1.05);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(23, 13, 16, 0.72) 0%, rgba(23, 13, 16, 0.2) 62%, rgba(23, 13, 16, 0.1) 100%),
    linear-gradient(180deg, rgba(23, 13, 16, 0.32) 0%, transparent 30%, rgba(23, 13, 16, 0.15) 55%, rgba(23, 13, 16, 0.66) 100%);
}

.hero-top {
  position: absolute;
  z-index: 2;
  top: 118px;
  right: 4.5vw;
  left: 4.5vw;
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero-top p {
  margin: 0;
}

.hero-copy {
  position: relative;
  z-index: 2;
  align-self: flex-end;
  width: 100%;
  padding: 0 7vw 22vh;
}

.hero-overline {
  margin: 0 0 22px;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0;
  animation: fade-up 0.8s 0.5s ease forwards;
}

.hero h1 {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0 0.14em;
  max-width: 1120px;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(66px, 10.5vw, 154px);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: 0;
  text-wrap: balance;
  animation: fade-up 1s 0.2s var(--ease) both;
}

.hero h1 em {
  color: #dfa5ad;
  font-family: Georgia, serif;
  font-size: 0.58em;
  font-weight: 400;
}

.hero-sentence {
  max-width: 530px;
  margin: 27px 0 0;
  font-family: var(--serif);
  font-size: clamp(16px, 1.5vw, 22px);
  line-height: 1.7;
  opacity: 0;
  animation: fade-up 0.9s 0.65s ease forwards;
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-bottom {
  position: absolute;
  z-index: 2;
  right: 4.5vw;
  bottom: 4.7vh;
  left: 4.5vw;
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  align-items: end;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.34);
  opacity: 0;
  animation: fade-up 0.9s 0.85s ease forwards;
}

.hero-since {
  display: flex;
  align-items: baseline;
  gap: 12px;
  width: max-content;
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-since strong {
  font-size: 11px;
  font-weight: 500;
}

.day-counter {
  display: flex;
  align-items: baseline;
  justify-self: center;
  gap: 9px;
  font-size: 10px;
  letter-spacing: 0.05em;
}

.day-counter strong {
  color: #f2cbd0;
  font-family: var(--serif);
  font-size: clamp(32px, 3.3vw, 48px);
  font-weight: 400;
  line-height: 1;
}

.hero-scroll {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 9px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.hero-scroll svg {
  animation: scroll-nudge 1.8s ease-in-out infinite;
}

@keyframes scroll-nudge {
  0%,
  100% {
    transform: translateY(-2px);
  }
  50% {
    transform: translateY(4px);
  }
}

.hero-side {
  position: absolute;
  z-index: 2;
  top: 50%;
  right: 1.6vw;
  margin: 0;
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
  transform: translateY(-50%);
  opacity: 0.72;
}

.love-ticker {
  padding: 13px 0 11px;
  overflow: hidden;
  color: var(--white);
  background: var(--wine);
}

.ticker-track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: ticker 28s linear infinite;
}

.ticker-track span {
  padding: 0 30px;
  font-family: var(--serif);
  font-size: 13px;
  font-style: italic;
  letter-spacing: 0.08em;
}

.ticker-track i {
  color: #e5aab2;
  font-size: 9px;
  font-style: normal;
}

@keyframes ticker {
  to {
    transform: translateX(-50%);
  }
}

.section-shell {
  width: var(--shell);
  margin: 0 auto;
}

.section-index {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 7vh;
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.section-index span {
  display: grid;
  width: 27px;
  height: 27px;
  color: var(--white);
  background: var(--wine);
  place-items: center;
  font-size: 9px;
  letter-spacing: 0;
}

.section-index p {
  margin: 0;
}

.display-title {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(43px, 5.5vw, 82px);
  font-weight: 500;
  line-height: 1.27;
  letter-spacing: 0;
}

.display-title em {
  color: var(--wine);
  font-style: normal;
}

.about {
  padding-top: 14vh;
  padding-bottom: 14vh;
}

.about-heading {
  display: grid;
  grid-template-columns: 1.5fr 0.65fr;
  gap: 8vw;
  align-items: end;
}

.about-intro {
  padding-bottom: 0.7em;
}

.about-intro p {
  margin: 0 0 1.2em;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.95;
}

.about-collage {
  position: relative;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 0 2vw;
  min-height: 760px;
  margin-top: 11vh;
}

.about-collage figure {
  position: relative;
  margin: 0;
}

.about-collage img {
  height: 100%;
  object-fit: cover;
}

.collage-main {
  grid-column: 1 / span 7;
  grid-row: 1 / span 2;
  height: 690px;
  padding: 14px 14px 52px;
  background: var(--white);
  box-shadow: 0 24px 55px rgba(35, 20, 24, 0.12);
  transform: rotate(-1.2deg);
}

.collage-main figcaption {
  display: flex;
  justify-content: space-between;
  padding-top: 13px;
  color: var(--muted);
  font-size: 8px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.collage-small {
  width: 72%;
  height: 300px;
  padding: 10px 10px 28px;
  background: var(--white);
  box-shadow: 0 18px 40px rgba(35, 20, 24, 0.12);
}

.collage-coffee {
  grid-column: 8 / span 4;
  grid-row: 1;
  margin-top: 20vh;
  justify-self: center;
  transform: rotate(3.5deg);
}

.collage-flower {
  z-index: 2;
  grid-column: 9 / span 4;
  grid-row: 2;
  margin-top: -7vh;
  justify-self: end;
  transform: rotate(-2.5deg);
}

.tape {
  position: absolute;
  top: -13px;
  left: 50%;
  width: 76px;
  height: 24px;
  background: rgba(220, 196, 167, 0.72);
  transform: translateX(-50%) rotate(2deg);
}

.collage-note {
  position: absolute;
  z-index: 3;
  bottom: 1vh;
  left: 5.5vw;
  margin: 0;
  padding: 28px 34px;
  color: var(--wine-dark);
  background: var(--rose-light);
  font-family: var(--serif);
  font-size: clamp(22px, 2.3vw, 34px);
  line-height: 1.55;
  transform: rotate(-2deg);
  box-shadow: 0 18px 35px rgba(35, 20, 24, 0.09);
}

.collage-note > span {
  position: absolute;
  top: -8px;
  left: 12px;
  color: rgba(120, 42, 59, 0.25);
  font-size: 60px;
}

.couple-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 7vh;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.fact {
  padding: 28px 2.5vw 27px 0;
}

.fact + .fact {
  padding-left: 2.5vw;
  border-left: 1px solid var(--line);
}

.fact > span {
  display: block;
  margin-bottom: 18px;
  color: var(--wine);
  font-size: 8px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.fact strong {
  display: block;
  font-family: var(--serif);
  font-size: clamp(21px, 2.3vw, 32px);
  font-weight: 500;
}

.fact p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 10px;
}

.memories {
  padding-top: 10vh;
  padding-bottom: 15vh;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 9vh;
}

.outline-button,
.filled-button {
  display: flex;
  align-items: center;
  gap: 38px;
  padding: 14px 18px 14px 22px;
  background: transparent;
  border: 1px solid var(--ink);
  font-size: 11px;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition:
    color 0.25s ease,
    background 0.25s ease;
}

.outline-button:hover,
.outline-button:focus-visible,
.filled-button:hover,
.filled-button:focus-visible {
  color: var(--white);
  background: var(--ink);
}

.filled-button {
  color: var(--white);
  background: var(--wine);
  border-color: var(--wine);
}

.memory-list {
  border-top: 1px solid var(--line);
}

.memory-item {
  display: grid;
  grid-template-columns: 130px minmax(260px, 0.92fr) minmax(280px, 1.08fr);
  gap: 3vw;
  align-items: center;
  padding: 48px 0;
  border-bottom: 1px solid var(--line);
}

.memory-item:nth-child(even) {
  grid-template-columns: 130px minmax(280px, 1.08fr) minmax(260px, 0.92fr);
}

.memory-date {
  align-self: start;
  padding-top: 4px;
}

.memory-date .day {
  display: block;
  font-family: var(--serif);
  font-size: 45px;
  line-height: 1;
}

.memory-date .month {
  display: block;
  margin-top: 7px;
  color: var(--wine);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.memory-photo {
  position: relative;
  height: 370px;
  overflow: hidden;
  background: var(--paper-deep);
}

.memory-photo img {
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease);
}

.memory-item:hover .memory-photo img {
  transform: scale(1.03);
}

.memory-photo.is-empty {
  display: grid;
  color: var(--rose-light);
  background: var(--wine-dark);
  place-items: center;
}

.memory-photo.is-empty::before {
  content: "♥";
  font-family: var(--serif);
  font-size: 54px;
}

.memory-copy {
  position: relative;
  padding-right: 2vw;
}

.memory-copy > span {
  color: var(--wine);
  font-size: 8px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.memory-copy h3 {
  margin: 12px 0 14px;
  font-family: var(--serif);
  font-size: clamp(27px, 3vw, 45px);
  font-weight: 500;
  line-height: 1.32;
}

.memory-copy p {
  max-width: 480px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.9;
}

.delete-memory {
  position: absolute;
  top: 0;
  right: 0;
  padding: 5px;
  color: var(--muted);
  background: none;
  border: 0;
  font-size: 9px;
  opacity: 0;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.memory-item:hover .delete-memory,
.delete-memory:focus-visible {
  opacity: 1;
}

.memory-item:nth-child(even) .memory-photo {
  grid-column: 3;
  grid-row: 1;
}

.memory-item:nth-child(even) .memory-copy {
  grid-column: 2;
  grid-row: 1;
}

.memory-item:nth-child(even) .memory-date {
  grid-column: 1;
  grid-row: 1;
}

.memory-empty {
  padding: 70px 0;
  color: var(--muted);
  text-align: center;
}

.wishes {
  color: var(--white);
  background: var(--sage-dark);
}

.wishes-inner {
  padding-top: 13vh;
  padding-bottom: 14vh;
}

.section-index-light span {
  color: var(--sage-dark);
  background: var(--white);
}

.wishes-heading {
  display: grid;
  grid-template-columns: 1.45fr 0.55fr;
  gap: 8vw;
  align-items: end;
  padding-bottom: 9vh;
}

.wishes .display-title em {
  color: #d6a4ab;
}

.wish-progress {
  padding-bottom: 0.4em;
}

.progress-number {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-family: var(--serif);
}

.progress-number strong {
  color: #e4b3b9;
  font-size: clamp(48px, 5vw, 76px);
  font-weight: 400;
  line-height: 1;
}

.progress-number span {
  color: rgba(255, 255, 255, 0.45);
  font-size: 17px;
}

.wish-progress p {
  margin: 9px 0 15px;
  color: rgba(255, 255, 255, 0.56);
  font-size: 10px;
}

.progress-track {
  width: 100%;
  height: 2px;
  background: rgba(255, 255, 255, 0.2);
}

.progress-track span {
  display: block;
  width: 0;
  height: 100%;
  background: #e4b3b9;
  transition: width 0.6s var(--ease);
}

.wish-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 6vw;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
}

.wish-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  min-height: 72px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
}

.wish-item input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.wish-checkbox {
  position: relative;
  display: block;
  width: 22px;
  height: 22px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  cursor: pointer;
}

.wish-checkbox::after {
  position: absolute;
  top: 2px;
  left: 7px;
  width: 5px;
  height: 11px;
  content: "";
  border-right: 1px solid var(--sage-dark);
  border-bottom: 1px solid var(--sage-dark);
  opacity: 0;
  transform: rotate(45deg) scale(0.6);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}

.wish-item input:checked + .wish-checkbox {
  background: #e4b3b9;
  border-color: #e4b3b9;
}

.wish-item input:checked + .wish-checkbox::after {
  opacity: 1;
  transform: rotate(45deg) scale(1);
}

.wish-item label {
  cursor: pointer;
}

.wish-item.is-done .wish-text {
  color: rgba(255, 255, 255, 0.4);
  text-decoration: line-through;
}

.wish-text {
  display: block;
  font-family: var(--serif);
  font-size: clamp(16px, 1.45vw, 21px);
  line-height: 1.5;
  transition: color 0.2s ease;
}

.delete-wish {
  padding: 8px;
  color: rgba(255, 255, 255, 0.42);
  background: none;
  border: 0;
  font-size: 16px;
  cursor: pointer;
  opacity: 0;
  transition:
    opacity 0.2s ease,
    color 0.2s ease;
}

.wish-item:hover .delete-wish,
.delete-wish:focus-visible {
  color: var(--white);
  opacity: 1;
}

.add-wish {
  max-width: 680px;
  margin-top: 7vh;
}

.add-wish > label {
  display: block;
  margin-bottom: 10px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.add-wish > div {
  display: grid;
  grid-template-columns: 1fr 52px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
}

.add-wish input {
  width: 100%;
  padding: 13px 0;
  color: var(--white);
  background: transparent;
  border: 0;
  outline: 0;
}

.add-wish input::placeholder {
  color: rgba(255, 255, 255, 0.34);
}

.add-wish button {
  display: grid;
  padding: 0;
  color: var(--white);
  background: none;
  border: 0;
  place-items: center;
  cursor: pointer;
}

.add-wish button:hover svg {
  transform: translateX(4px);
}

.today {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 7vw;
  padding-top: 14vh;
  padding-bottom: 14vh;
}

.today-photo {
  position: relative;
  align-self: stretch;
  min-height: 720px;
  overflow: hidden;
}

.today-photo img {
  height: 100%;
  object-fit: cover;
}

.today-photo p {
  position: absolute;
  right: 18px;
  bottom: 18px;
  left: 18px;
  margin: 0;
  color: var(--white);
  font-family: var(--serif);
  font-size: 13px;
  font-style: italic;
  text-align: right;
}

.today-content {
  align-self: center;
}

.today-content .section-index {
  margin-bottom: 5vh;
}

.today-content .display-title {
  font-size: clamp(39px, 4.8vw, 70px);
}

.question-card {
  margin-top: 6vh;
  padding: 30px 34px 26px;
  background: var(--rose-light);
}

.question-card > span,
.anniversary-card span {
  color: var(--wine);
  font-size: 8px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.question-card p {
  min-height: 3.2em;
  margin: 22px 0 26px;
  font-family: var(--serif);
  font-size: clamp(21px, 2.25vw, 31px);
  line-height: 1.58;
}

.question-card button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 0 0 4px;
  color: var(--wine);
  background: none;
  border: 0;
  border-bottom: 1px solid currentColor;
  font-size: 10px;
  cursor: pointer;
}

.question-card button:hover svg {
  transform: rotate(35deg);
}

.anniversary-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
  padding: 28px 30px;
  color: var(--white);
  background: var(--wine-dark);
}

.anniversary-card span {
  color: #e1abb2;
}

.anniversary-card p {
  max-width: 330px;
  margin: 12px 0 0;
  font-size: 12px;
  line-height: 1.7;
}

.anniversary-card p strong {
  color: #f1c3c8;
  font-family: var(--serif);
  font-size: 40px;
  font-weight: 400;
}

.anniversary-card p b {
  font-weight: 500;
}

.mini-calendar {
  display: grid;
  width: 92px;
  height: 102px;
  flex: 0 0 auto;
  color: var(--ink);
  background: var(--white);
  place-items: center;
  align-content: center;
}

.mini-calendar span {
  color: var(--wine);
  font-size: 8px;
  letter-spacing: 0.14em;
}

.mini-calendar strong {
  font-family: var(--serif);
  font-size: 44px;
  font-weight: 400;
  line-height: 1.15;
}

.notes {
  padding-top: 8vh;
  padding-bottom: 14vh;
}

.notes-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 8vh;
}

.notes-heading .section-index {
  margin-bottom: 5vh;
}

.note-wall {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  align-items: start;
}

.note-card {
  position: relative;
  min-height: 240px;
  padding: 34px 30px 26px;
  border-radius: 1px;
  box-shadow: 0 13px 30px rgba(33, 27, 28, 0.08);
}

.note-card:nth-child(3n + 1) {
  background: #e9d7d8;
  transform: rotate(-1deg);
}

.note-card:nth-child(3n + 2) {
  margin-top: 34px;
  color: var(--white);
  background: var(--sage);
  transform: rotate(1deg);
}

.note-card:nth-child(3n + 3) {
  background: #e2ddd0;
  transform: rotate(-0.4deg);
}

.note-card::before {
  position: absolute;
  top: 16px;
  right: 20px;
  color: currentColor;
  content: "♥";
  font-size: 10px;
  opacity: 0.25;
}

.note-card blockquote {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(19px, 1.8vw, 25px);
  line-height: 1.65;
}

.note-card footer {
  display: flex;
  justify-content: space-between;
  margin-top: 34px;
  font-size: 8px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.65;
}

.delete-note {
  position: absolute;
  right: 12px;
  bottom: 10px;
  padding: 5px;
  color: currentColor;
  background: none;
  border: 0;
  font-size: 10px;
  opacity: 0;
  cursor: pointer;
}

.note-card:hover .delete-note,
.delete-note:focus-visible {
  opacity: 0.7;
}

.closing {
  position: relative;
  display: grid;
  height: 78vh;
  min-height: 560px;
  color: var(--white);
  overflow: hidden;
  place-items: center;
}

.closing img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.closing-overlay {
  position: absolute;
  inset: 0;
  background: rgba(31, 20, 21, 0.48);
}

.closing-copy {
  position: relative;
  z-index: 2;
  text-align: center;
}

.closing-copy > span {
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.closing-copy > p {
  margin: 22px 0 30px;
  font-family: var(--serif);
  font-size: clamp(33px, 5vw, 70px);
  line-height: 1.45;
}

.closing-signature {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--serif);
  font-size: 15px;
}

.closing-signature i {
  color: #e0a9b0;
  font-family: Georgia, serif;
  font-size: 10px;
  font-style: normal;
}

.site-footer {
  padding: 70px 4.5vw 22px;
  color: var(--white);
  background: var(--ink);
}

.footer-main {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 6vw;
  padding-bottom: 10vh;
}

.footer-brand {
  width: max-content;
  font-family: var(--serif);
  font-size: clamp(42px, 5vw, 74px);
  font-style: italic;
  line-height: 1;
}

.footer-brand em {
  color: #dfa5ad;
  font-size: 13px;
  font-style: normal;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-main p {
  margin: 0;
  color: rgba(255, 255, 255, 0.45);
  font-size: 11px;
}

.footer-main button {
  padding: 8px 0;
  color: rgba(255, 255, 255, 0.7);
  background: none;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
  font-size: 10px;
  cursor: pointer;
}

.footer-bottom {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.43);
  font-size: 8px;
  letter-spacing: 0.1em;
}

.footer-bottom span:nth-child(2) {
  justify-self: center;
}

.app-dialog {
  width: min(700px, calc(100vw - 40px));
  max-height: 90vh;
  padding: 0;
  color: var(--ink);
  background: var(--paper);
  border: 0;
  border-radius: 0;
  box-shadow: 0 35px 100px rgba(20, 10, 14, 0.35);
  overflow-y: auto;
}

.app-dialog::backdrop {
  background: rgba(25, 14, 17, 0.68);
  backdrop-filter: blur(7px);
}

.app-dialog[open] {
  animation: dialog-in 0.45s var(--ease) both;
}

@keyframes dialog-in {
  from {
    opacity: 0;
    transform: translateY(22px) scale(0.985);
  }
}

.app-dialog form {
  padding: clamp(28px, 5vw, 54px);
}

.settings-dialog {
  width: min(750px, calc(100vw - 40px));
}

.dialog-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 34px;
}

.dialog-heading > div > span {
  color: var(--wine);
  font-size: 8px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.dialog-heading h2 {
  margin: 8px 0 0;
  font-family: var(--serif);
  font-size: clamp(30px, 4vw, 45px);
  font-weight: 500;
  line-height: 1.2;
}

.dialog-close {
  position: relative;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 50%;
  cursor: pointer;
}

.dialog-close span {
  position: absolute;
  top: 19px;
  left: 11px;
  width: 17px;
  height: 1px;
  background: var(--ink);
}

.dialog-close span:first-child {
  transform: rotate(45deg);
}

.dialog-close span:last-child {
  transform: rotate(-45deg);
}

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

.app-dialog label {
  display: block;
  margin-bottom: 25px;
}

.app-dialog label > span,
.photo-picker legend {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.06em;
}

.app-dialog input:not([type="radio"]):not([type="file"]),
.app-dialog select,
.app-dialog textarea {
  width: 100%;
  padding: 9px 0 11px;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  outline: none;
  font-size: 14px;
  transition: border-color 0.2s ease;
}

.app-dialog textarea {
  resize: vertical;
}

.app-dialog input:focus,
.app-dialog select:focus,
.app-dialog textarea:focus {
  border-color: var(--ink);
}

.photo-picker {
  margin: 3px 0 30px;
  padding: 0;
  border: 0;
}

.photo-options {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}

.photo-option {
  position: relative;
  display: flex !important;
  height: 105px;
  flex-direction: column;
  justify-content: flex-end;
  margin: 0 !important;
  padding: 5px;
  overflow: hidden;
  background: var(--paper-deep);
  border: 1px solid transparent;
  cursor: pointer;
}

.photo-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.photo-option img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-option > span:last-child {
  position: relative;
  z-index: 1;
  padding: 4px 6px;
  color: var(--white);
  background: rgba(20, 12, 14, 0.56);
  font-size: 8px;
  letter-spacing: 0.08em;
  text-align: center;
}

.photo-option:has(input:checked) {
  border-color: var(--wine);
  box-shadow: inset 0 0 0 2px var(--paper);
}

.photo-option:has(input:focus-visible) {
  outline: 2px solid var(--wine);
  outline-offset: 3px;
}

.photo-none {
  position: absolute;
  inset: 0;
  display: grid;
  color: var(--wine);
  background: var(--rose-light);
  place-items: center;
}

.dialog-submit {
  width: 100%;
  padding: 15px 20px;
  color: var(--white);
  background: var(--wine);
  border: 0;
  font-size: 11px;
  letter-spacing: 0.08em;
  cursor: pointer;
}

.dialog-submit:hover {
  background: var(--wine-dark);
}

.data-tools {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-top: 42px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.data-tools h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 500;
}

.data-tools p {
  max-width: 310px;
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.6;
}

.data-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
}

.data-actions button,
.reset-button {
  padding: 8px 10px;
  color: var(--muted);
  background: none;
  border: 1px solid var(--line);
  font-size: 9px;
  cursor: pointer;
}

.data-actions button:hover,
.reset-button:hover {
  color: var(--ink);
  border-color: var(--ink);
}

.reset-button {
  margin-top: 17px;
  color: var(--wine);
}

.toast {
  position: fixed;
  z-index: 400;
  right: 22px;
  bottom: 22px;
  max-width: 340px;
  padding: 13px 18px;
  color: var(--white);
  background: var(--ink);
  font-size: 11px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition:
    opacity 0.25s ease,
    transform 0.25s var(--ease);
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.noscript-note,
.memory-empty {
  padding: 60px 0;
  color: var(--muted);
  text-align: center;
}

.reveal,
.media-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.85s ease,
    transform 0.85s var(--ease);
}

.reveal.is-visible,
.media-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.media-reveal img {
  transform: scale(1.035);
  transition: transform 1.2s var(--ease);
}

.media-reveal.is-visible img {
  transform: scale(1);
}

:focus-visible {
  outline: 2px solid var(--wine);
  outline-offset: 4px;
}

@media (max-width: 1050px) {
  .about-heading,
  .wishes-heading {
    gap: 5vw;
  }

  .memory-item,
  .memory-item:nth-child(even) {
    grid-template-columns: 95px minmax(220px, 0.9fr) minmax(240px, 1.1fr);
    gap: 2.5vw;
  }

  .note-wall {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 820px) {
  :root {
    --shell: calc(100vw - 40px);
  }

  .site-header {
    grid-template-columns: 1fr auto;
    height: 76px;
    padding: 0 20px;
  }

  .site-header.is-scrolled {
    height: 66px;
  }

  .desktop-nav,
  .edit-profile-button {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .hero {
    min-height: 710px;
  }

  .hero-top {
    top: 96px;
    right: 6vw;
    left: 6vw;
  }

  .hero-date {
    display: none;
  }

  .hero-copy {
    padding: 0 6vw 24vh;
  }

  .hero h1 {
    gap: 0 0.1em;
    font-size: clamp(55px, 16vw, 100px);
    line-height: 1.05;
  }

  .hero-sentence {
    max-width: 340px;
    margin-top: 20px;
    font-size: 15px;
  }

  .hero-bottom {
    right: 6vw;
    bottom: 3.5vh;
    left: 6vw;
    grid-template-columns: 1fr auto;
  }

  .hero-since {
    display: none;
  }

  .day-counter {
    justify-self: start;
  }

  .day-counter strong {
    font-size: 31px;
  }

  .hero-scroll span {
    display: none;
  }

  .hero-scroll svg {
    width: 23px;
  }

  .hero-side {
    display: none;
  }

  .about {
    padding-top: 10vh;
    padding-bottom: 10vh;
  }

  .about-heading,
  .wishes-heading,
  .today {
    grid-template-columns: 1fr;
  }

  .about-heading {
    gap: 4vh;
  }

  .display-title {
    font-size: clamp(37px, 10vw, 56px);
    line-height: 1.33;
  }

  .about-collage {
    display: flex;
    min-height: 0;
    flex-direction: column;
    gap: 28px;
    margin-top: 8vh;
  }

  .collage-main {
    width: 92%;
    height: 480px;
    padding: 10px 10px 42px;
    transform: rotate(-1deg);
  }

  .collage-small {
    width: 62%;
    height: 230px;
  }

  .collage-coffee {
    align-self: flex-end;
    margin-top: -30px;
  }

  .collage-flower {
    align-self: flex-start;
    margin-top: -70px;
  }

  .collage-note {
    position: relative;
    bottom: auto;
    left: auto;
    align-self: center;
    margin-top: 4px;
    padding: 23px 27px;
    font-size: 22px;
  }

  .couple-facts {
    grid-template-columns: 1fr;
    margin-top: 7vh;
  }

  .fact,
  .fact + .fact {
    padding: 22px 0;
    border-left: 0;
  }

  .fact + .fact {
    border-top: 1px solid var(--line);
  }

  .fact > span {
    margin-bottom: 10px;
  }

  .section-heading,
  .notes-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .section-heading {
    margin-bottom: 6vh;
  }

  .memory-item,
  .memory-item:nth-child(even) {
    display: grid;
    grid-template-columns: 58px 1fr;
    gap: 17px;
    padding: 34px 0;
  }

  .memory-date {
    grid-column: 1;
    grid-row: 1;
  }

  .memory-date .day {
    font-size: 35px;
  }

  .memory-date .month {
    font-size: 7px;
  }

  .memory-photo,
  .memory-item:nth-child(even) .memory-photo {
    grid-column: 2;
    grid-row: 1;
    height: 260px;
  }

  .memory-copy,
  .memory-item:nth-child(even) .memory-copy {
    grid-column: 1 / -1;
    grid-row: 2;
    padding: 2px 0 0 75px;
  }

  .memory-copy h3 {
    margin-top: 8px;
    font-size: 30px;
  }

  .delete-memory {
    top: 4px;
    right: 0;
    opacity: 0.6;
  }

  .wishes-inner {
    padding-top: 10vh;
    padding-bottom: 10vh;
  }

  .wishes-heading {
    gap: 5vh;
  }

  .wish-list {
    grid-template-columns: 1fr;
  }

  .wish-item {
    min-height: 66px;
  }

  .delete-wish {
    opacity: 0.6;
  }

  .today {
    gap: 6vh;
    padding-top: 10vh;
    padding-bottom: 10vh;
  }

  .today-photo {
    min-height: 0;
    height: 58vh;
  }

  .question-card,
  .anniversary-card {
    margin-top: 4vh;
  }

  .question-card {
    padding: 25px 24px;
  }

  .anniversary-card {
    padding: 24px 22px;
  }

  .mini-calendar {
    width: 76px;
    height: 88px;
    margin-left: 16px;
  }

  .mini-calendar strong {
    font-size: 36px;
  }

  .notes {
    padding-top: 6vh;
    padding-bottom: 10vh;
  }

  .notes-heading {
    margin-bottom: 6vh;
  }

  .note-wall {
    grid-template-columns: 1fr;
    gap: 24px;
    width: 92%;
    margin: 0 auto;
  }

  .note-card:nth-child(3n + 2) {
    margin-top: 0;
  }

  .closing {
    height: 68vh;
    min-height: 500px;
  }

  .closing-copy > p {
    font-size: clamp(28px, 8.5vw, 44px);
  }

  .site-footer {
    padding: 50px 20px 20px;
  }

  .footer-main {
    grid-template-columns: 1fr;
    gap: 20px;
    padding-bottom: 7vh;
  }

  .footer-main button {
    justify-self: start;
  }

  .footer-bottom {
    grid-template-columns: 1fr auto;
    gap: 10px;
  }

  .footer-bottom span:nth-child(2) {
    justify-self: start;
    grid-row: 2;
  }

  .footer-bottom a {
    grid-column: 2;
    grid-row: 1 / span 2;
  }

  .app-dialog {
    width: calc(100vw - 24px);
    max-height: 92vh;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .photo-options {
    grid-template-columns: repeat(3, 1fr);
  }

  .photo-option:nth-child(4),
  .photo-option:nth-child(5) {
    height: 88px;
  }

  .data-tools {
    align-items: flex-start;
    flex-direction: column;
  }

  .toast {
    right: 12px;
    bottom: 12px;
    left: 12px;
    max-width: none;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .brand {
    font-size: 23px;
  }

  .hero h1 {
    font-size: clamp(49px, 15.6vw, 76px);
  }

  .hero-overline {
    font-size: 8px;
  }

  .love-ticker span {
    padding: 0 21px;
    font-size: 12px;
  }

  .collage-main {
    height: 390px;
  }

  .collage-small {
    width: 68%;
    height: 190px;
  }

  .couple-facts {
    margin-top: 4vh;
  }

  .memory-photo {
    height: 220px;
  }

  .memory-copy {
    padding-left: 4px;
  }

  .wish-item {
    min-height: 62px;
  }

  .anniversary-card p {
    font-size: 11px;
  }

  .anniversary-card p strong {
    font-size: 34px;
  }

  .question-card p {
    min-height: 4em;
  }

  .note-wall {
    width: 100%;
  }

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

  .photo-option:nth-child(4),
  .photo-option:nth-child(5) {
    height: 84px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal,
  .media-reveal {
    opacity: 1;
    transform: none;
  }
}
