@font-face {
  font-family: "Noto Sans SC";
  src: url("assets/fonts/noto-sans-sc-variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Manrope";
  src: url("assets/fonts/manrope-variable.woff2") format("woff2");
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --canvas: #faf7f3;
  --surface: #fffdfb;
  --surface-soft: #fbf5f1;
  --blush: #f1ddd8;
  --blush-deep: #c98e87;
  --rose: #b97d76;
  --ink: #433834;
  --ink-soft: #665852;
  --muted: #918179;
  --muted-light: #b3a29a;
  --line: #ebe1da;
  --line-soft: #f3eae4;
  --content: 1280px;
  --radius-lg: 34px;
  --radius-md: 26px;
  --shadow-card: 0 22px 55px rgba(82, 61, 49, 0.055);
}

* {
  box-sizing: border-box;
}

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

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 3%, rgba(239, 216, 210, 0.44), transparent 25rem),
    radial-gradient(circle at 94% 23%, rgba(242, 226, 216, 0.5), transparent 29rem),
    linear-gradient(180deg, #fcf9f5 0%, var(--canvas) 42%, #fbf7f3 100%);
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.is-dialog-open {
  overflow: hidden;
}

::selection {
  color: #503f39;
  background: #ecd2cc;
}

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

button,
input,
textarea {
  font: inherit;
}

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

button {
  color: inherit;
}

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

:focus-visible {
  outline: 2px solid rgba(185, 125, 118, 0.86);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  padding: 9px 14px;
  color: #fff;
  background: #574843;
  border-radius: 999px;
  font-size: 12px;
  transform: translateY(-160%);
  transition: transform 180ms ease;
}

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

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

.page-shell {
  position: relative;
  z-index: 2;
  width: min(calc(100% - 72px), var(--content));
  margin: 0 auto;
  padding-top: 28px;
}

.eyebrow {
  margin: 0;
  color: #aa847c;
  font-family: "Manrope", "Noto Sans SC", sans-serif;
  font-size: 9.5px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

/* Header */

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 38px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand-mark {
  display: block;
  width: 34px;
  height: 34px;
  color: #b8847e;
}

.brand-mark svg {
  width: 100%;
  height: 100%;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-name {
  color: #5b4b45;
  font-family: "Manrope", sans-serif;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.17em;
}

.brand-sub {
  margin-top: 4px;
  color: #aa978d;
  font-family: "Manrope", sans-serif;
  font-size: 7.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.topbar-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: #9c8980;
  font-family: "Manrope", sans-serif;
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
}

.topbar-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #ca958e;
  box-shadow: 0 0 0 4px rgba(202, 149, 142, 0.12);
}

.masthead {
  position: relative;
  margin-top: 65px;
  text-align: center;
  animation: rise-in 800ms both;
}

.masthead-eyebrow {
  color: #b1887f;
}

.hero-title {
  margin: 15px 0 0;
  color: #443832;
  font-size: clamp(50px, 4.9vw, 70px);
  font-weight: 500;
  line-height: 1.18;
  letter-spacing: 0.035em;
}

.ampersand {
  display: inline-block;
  margin: 0 0.075em;
  color: #c78f88;
  font-family: "Manrope", sans-serif;
  font-size: 0.78em;
  font-weight: 400;
  letter-spacing: 0;
  transform: translateY(-0.045em);
}

.hero-signature {
  margin: 14px 0 0;
  color: #8e7c73;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.13em;
}

.hero-sparkle {
  position: absolute;
  top: 52px;
  right: calc(50% - 238px);
  width: 23px;
  height: 23px;
  color: #d1aaa3;
  opacity: 0.8;
  transform: rotate(9deg);
}

.hero-sparkle svg {
  width: 100%;
  height: 100%;
}

.main-nav {
  display: flex;
  width: fit-content;
  margin: 27px auto 0;
  padding: 6px;
  gap: 2px;
  border: 1px solid rgba(235, 225, 218, 0.9);
  border-radius: 999px;
  background: rgba(255, 252, 249, 0.78);
  box-shadow: 0 10px 35px rgba(93, 70, 57, 0.045);
  backdrop-filter: blur(18px);
}

.nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 10px 17px;
  border: 0;
  border-radius: 999px;
  color: #7d6d66;
  background: transparent;
  font-size: 12px;
  line-height: 1;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition:
    color 200ms ease,
    background-color 200ms ease;
}

.nav-link svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  stroke: currentColor;
  stroke-width: 1.55;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav-link:hover {
  color: #8d5e58;
  background: #fbf2ed;
}

.nav-link.is-active {
  color: #8c5a54;
  background: #f2ded9;
}

/* Shared card */

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 0.9fr) minmax(0, 1.35fr);
  gap: 20px;
  margin-top: 40px;
}

.card {
  position: relative;
  height: 500px;
  overflow: hidden;
  border: 1px solid rgba(235, 225, 218, 0.9);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

.card-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #9a7a72;
  font-family: "Manrope", "Noto Sans SC", sans-serif;
  font-size: 8.5px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.16em;
}

.card-heart {
  width: 18px;
  height: 18px;
  color: #b9847d;
}

.card-heart svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  stroke-width: 1.45;
}

/* Countdown */

.countdown-card {
  display: flex;
  flex-direction: column;
  padding: 27px 27px 25px;
  background:
    radial-gradient(circle at 104% -6%, rgba(255, 255, 255, 0.72), transparent 39%),
    linear-gradient(145deg, #f4e1dd 0%, #f8efe9 54%, #f2e7e1 100%);
  border-color: #ead7d1;
}

.countdown-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 120 120' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.025;
  mix-blend-mode: multiply;
}

.countdown-main {
  position: relative;
  z-index: 1;
  margin-top: 34px;
}

.countdown-label {
  margin: 0;
  color: #90716a;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.14em;
}

.days-line {
  display: flex;
  align-items: flex-end;
  margin: 2px 0 0 -3px;
  line-height: 1;
}

.days-line strong {
  color: #4a3b35;
  font-family: "Manrope", sans-serif;
  font-size: clamp(82px, 7.65vw, 108px);
  font-weight: 300;
  line-height: 0.98;
  letter-spacing: -0.075em;
  font-variant-numeric: tabular-nums;
}

.days-line > span {
  margin: 0 0 12px 9px;
  color: #a57870;
  font-size: 21px;
  font-weight: 400;
  letter-spacing: 0.06em;
}

.countdown-caption {
  margin: 9px 0 0;
  color: #9b8179;
  font-size: 10.5px;
  line-height: 1.6;
  letter-spacing: 0.045em;
}

.today-time {
  position: relative;
  z-index: 1;
  margin-top: 31px;
  padding: 13px 15px 12px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 19px;
  background: rgba(255, 252, 249, 0.35);
}

.today-time-label {
  margin: 0;
  color: #9b7d75;
  font-size: 9.5px;
  letter-spacing: 0.07em;
}

.time-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
}

.time-cell {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.time-cell span {
  min-width: 32px;
  color: #654b46;
  font-family: "Manrope", sans-serif;
  font-size: 24px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.time-cell small {
  color: #a5877f;
  font-size: 9px;
  font-weight: 400;
}

.time-colon {
  margin-bottom: 3px;
  color: #b69a92;
  font-family: "Manrope", sans-serif;
  font-size: 16px;
}

.anniversary-next {
  position: relative;
  z-index: 1;
  margin-top: auto;
}

.anniversary-next-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #92766e;
  font-size: 9.5px;
  letter-spacing: 0.055em;
}

.anniversary-next-head strong {
  color: #86564f;
  font-family: "Manrope", "Noto Sans SC", sans-serif;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.progress-track {
  height: 3px;
  margin-top: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.52);
}

.progress-track span {
  position: relative;
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #d1a29b, #b67a74);
  transition: width 700ms ease;
}

.countdown-blossom {
  position: absolute;
  right: -30px;
  bottom: -33px;
  width: 145px;
  height: 145px;
  color: rgba(161, 111, 103, 0.11);
  pointer-events: none;
}

.countdown-blossom svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.2;
}

/* Couple portrait card */

.couple-card {
  display: flex;
  flex-direction: column;
  padding: 27px 23px 22px;
  background:
    radial-gradient(circle at 50% 34%, rgba(246, 233, 227, 0.7), transparent 55%),
    #fffdfb;
  text-align: center;
}

.couple-topline {
  color: #a4887f;
}

.couple-topline > span:last-child {
  color: #b4968d;
  font-family: "Noto Sans SC", sans-serif;
  font-size: 8px;
  font-weight: 400;
  letter-spacing: 0.12em;
}

.couple-avatars {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 4px;
  margin-top: 37px;
}

.portrait {
  width: 120px;
  margin: 0;
}

.portrait-frame {
  width: 118px;
  height: 154px;
  padding: 4px;
  overflow: hidden;
  border: 1px solid #eaded7;
  border-radius: 63px 63px 18px 18px;
  background: #fffaf7;
  box-shadow: 0 13px 28px rgba(91, 65, 52, 0.08);
}

.portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 58px 58px 14px 14px;
}

.portrait figcaption {
  margin-top: 9px;
}

.portrait figcaption strong {
  display: block;
  color: #554640;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.08em;
}

.portrait figcaption span {
  display: block;
  margin-top: 2px;
  color: #b29b91;
  font-family: "Manrope", sans-serif;
  font-size: 7px;
  font-weight: 600;
  letter-spacing: 0.19em;
}

.heart-connector {
  display: grid;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  margin-top: 61px;
  place-items: center;
  border-radius: 50%;
  color: #b77d76;
  background: #f1ded9;
}

.heart-connector svg {
  width: 13px;
  height: 13px;
  stroke: currentColor;
  stroke-width: 1.55;
}

.couple-quote {
  margin: 31px 0 0;
  color: #6a5b54;
  font-size: 13px;
  line-height: 2;
  letter-spacing: 0.055em;
}

.couple-footer {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: auto;
  color: #b3a097;
  font-family: "Manrope", sans-serif;
  font-size: 7px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.06em;
}

.tiny-line {
  height: 1px;
  flex: 1;
  background: #eadfd8;
}

/* Carousel */

.carousel-card {
  display: flex;
  flex-direction: column;
  padding: 10px;
  background: #fffdfb;
}

.carousel-media {
  position: relative;
  height: 342px;
  flex: 0 0 auto;
  overflow: hidden;
  border-radius: 26px;
  background: #d9c4b8;
  touch-action: pan-y;
}

.carousel-slides,
.carousel-slide {
  position: absolute;
  inset: 0;
}

.carousel-slide {
  margin: 0;
  opacity: 0;
  transition: opacity 700ms ease;
}

.carousel-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(45, 30, 23, 0.16) 0%, transparent 30%),
    linear-gradient(0deg, rgba(55, 36, 28, 0.18) 0%, transparent 35%);
  pointer-events: none;
}

.carousel-slide.is-active {
  opacity: 1;
  z-index: 1;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.76) sepia(0.04) contrast(0.98) brightness(1.01);
  transform: scale(1.012);
  transition: transform 6s ease;
}

.carousel-slide.is-active img {
  transform: scale(1);
}

.carousel-topline {
  position: absolute;
  top: 17px;
  right: 17px;
  left: 17px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}

.photo-label,
.slide-count {
  padding: 7px 11px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  color: #76645c;
  background: rgba(255, 250, 246, 0.78);
  font-family: "Manrope", sans-serif;
  font-size: 7.5px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.15em;
  backdrop-filter: blur(10px);
}

.slide-count {
  color: #6c5a53;
  font-size: 8px;
  letter-spacing: 0.12em;
}

.carousel-stamp {
  position: absolute;
  right: 16px;
  bottom: 15px;
  z-index: 2;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;
  color: #b57872;
  background: rgba(255, 251, 247, 0.85);
  box-shadow: 0 8px 18px rgba(68, 44, 34, 0.12);
  backdrop-filter: blur(8px);
}

.carousel-stamp svg {
  width: 13px;
  height: 13px;
  margin-bottom: -9px;
  stroke: currentColor;
  stroke-width: 1.6;
}

.carousel-stamp span {
  margin-top: -7px;
  font-family: "Manrope", sans-serif;
  font-size: 6.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.carousel-body {
  display: flex;
  min-height: 138px;
  flex: 1;
  align-items: stretch;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 12px 6px 14px;
}

.carousel-copy {
  align-self: center;
  min-width: 0;
}

.slide-date {
  margin: 0;
  color: #ad9188;
  font-family: "Manrope", "Noto Sans SC", sans-serif;
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
}

.slide-title {
  margin: 5px 0 0;
  color: #493c37;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.035em;
}

.slide-description {
  margin: 4px 0 0;
  color: #8f7e76;
  font-size: 11.5px;
  line-height: 1.65;
  letter-spacing: 0.02em;
}

.carousel-controls {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  padding: 5px 0 2px;
}

.slide-dots {
  display: flex;
  align-items: center;
  gap: 4px;
}

.slide-dot {
  width: 17px;
  height: 3px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #e8ddd6;
  cursor: pointer;
  transition:
    width 220ms ease,
    background-color 220ms ease;
}

.slide-dot.is-active {
  width: 28px;
  background: #c98e87;
}

.slide-arrows {
  display: flex;
  gap: 6px;
}

.round-button {
  display: grid;
  width: 35px;
  height: 35px;
  padding: 0;
  place-items: center;
  border: 1px solid #e9ded7;
  border-radius: 50%;
  color: #71615a;
  background: #fff9f5;
  cursor: pointer;
  transition:
    color 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease,
    transform 180ms ease;
}

.round-button:hover {
  color: #965f59;
  border-color: #dfcbc3;
  background: #f6e8e3;
  transform: translateY(-1px);
}

.round-button svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Quiet note */

.quiet-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  max-width: 900px;
  margin: 44px auto 46px;
  padding: 0 18px;
  color: #8a7971;
  text-align: center;
}

.quiet-note p {
  margin: 0;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.8;
  letter-spacing: 0.1em;
}

.quiet-line {
  width: 92px;
  height: 1px;
  flex: 1;
  max-width: 120px;
  background: linear-gradient(90deg, transparent, #ddcdc4);
}

.quiet-line:last-child {
  background: linear-gradient(90deg, #ddcdc4, transparent);
}

.quiet-flower {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  color: #d0a8a1;
}

.quiet-flower svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.15;
}

/* Journal and wishes */

.lower-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.56fr) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 17px;
}

.section-header .eyebrow {
  margin-bottom: 4px;
}

.section-header h2 {
  margin: 0;
  color: #483b36;
  font-size: 28px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 0.035em;
}

.section-meta {
  margin: 0 0 4px;
  color: #a29188;
  font-size: 10px;
  line-height: 1.5;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.section-meta strong {
  color: #9c675f;
  font-family: "Manrope", sans-serif;
  font-size: 13px;
  font-weight: 600;
}

.journal-feature {
  display: grid;
  grid-template-columns: 41% 59%;
  min-height: 306px;
  overflow: hidden;
  border: 1px solid rgba(235, 225, 218, 0.92);
  border-radius: 30px;
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

.journal-media {
  position: relative;
  min-height: 100%;
  overflow: hidden;
}

.journal-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 55%, rgba(51, 35, 28, 0.16)),
    linear-gradient(90deg, rgba(255, 245, 239, 0.04), rgba(255, 245, 239, 0.02));
  pointer-events: none;
}

.journal-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.72) sepia(0.06) contrast(0.98) brightness(1.015);
  transition: transform 900ms ease;
}

.journal-feature:hover .journal-media img {
  transform: scale(1.018);
}

.journal-photo-date {
  position: absolute;
  bottom: 17px;
  left: 17px;
  z-index: 1;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  color: #74645c;
  background: rgba(255, 250, 246, 0.82);
  font-family: "Manrope", sans-serif;
  font-size: 7px;
  font-weight: 600;
  letter-spacing: 0.13em;
  backdrop-filter: blur(9px);
}

.journal-copy {
  display: flex;
  flex-direction: column;
  padding: 28px 29px 24px;
}

.journal-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  color: #b09389;
  font-family: "Manrope", "Noto Sans SC", sans-serif;
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.13em;
}

.journal-meta span + span::before {
  content: "·";
  margin-right: 16px;
  color: #cebcb2;
}

.journal-copy h3 {
  margin: 15px 0 10px;
  color: #4f403a;
  font-size: 21px;
  font-weight: 500;
  line-height: 1.55;
  letter-spacing: 0.025em;
}

.journal-excerpt {
  margin: 0;
  color: #8a7a72;
  font-size: 12.5px;
  line-height: 1.9;
  letter-spacing: 0.015em;
}

.journal-author {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 16px;
  color: #a28e85;
  font-size: 9.5px;
}

.future-author {
  color: #a28e85;
}

.author-avatar {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  color: #a46c65;
  background: #f1ded9;
  font-size: 9px;
}

.journal-author svg {
  width: 13px;
  height: 13px;
  margin-left: auto;
  stroke: #cb9992;
  stroke-width: 1.45;
}

.journal-notes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 14px;
}

.note-card {
  position: relative;
  display: flex;
  min-height: 158px;
  flex-direction: column;
  overflow: hidden;
  padding: 20px 22px 17px;
  border: 1px solid #eee4dc;
  border-radius: 24px;
  background: #fbf7f2;
  box-shadow: 0 12px 30px rgba(85, 64, 52, 0.028);
}

.note-card::after {
  content: "“";
  position: absolute;
  right: 18px;
  bottom: -10px;
  color: rgba(170, 132, 124, 0.1);
  font-family: Georgia, serif;
  font-size: 78px;
  line-height: 1;
  pointer-events: none;
}

.note-card-blush {
  border-color: #eddad4;
  background: #f7e8e4;
}

.note-card > svg {
  position: absolute;
  top: 18px;
  right: 19px;
  width: 22px;
  height: 22px;
  stroke: #cb9c94;
  stroke-width: 1.2;
}

.note-date {
  color: #b1968c;
  font-family: "Manrope", sans-serif;
  font-size: 7.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
}

.note-card p {
  max-width: 315px;
  margin: 12px 0 14px;
  color: #675850;
  font-size: 13.5px;
  line-height: 1.8;
  letter-spacing: 0.02em;
}

.note-card-blush p {
  max-width: 290px;
  padding-right: 18px;
}

.note-author {
  align-self: flex-end;
  margin-top: auto;
  color: #aa9389;
  font-size: 9px;
}

/* Wishlist */

.wish-card {
  display: flex;
  min-height: 478px;
  flex-direction: column;
  padding: 23px 24px 20px;
  border: 1px solid rgba(235, 225, 218, 0.94);
  border-radius: 30px;
  background:
    radial-gradient(circle at 105% -4%, rgba(245, 225, 219, 0.56), transparent 34%),
    var(--surface);
  box-shadow: var(--shadow-card);
}

.wish-intro {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.wish-intro h3 {
  margin: 0;
  color: #4c3e38;
  font-size: 19px;
  font-weight: 500;
  line-height: 1.68;
  letter-spacing: 0.025em;
}

.wish-intro p {
  margin: 8px 0 0;
  color: #9b8980;
  font-size: 10px;
  line-height: 1.7;
}

.wish-progress {
  display: grid;
  width: 62px;
  height: 62px;
  flex: 0 0 62px;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(
    #ca9089 0 var(--wish-progress-deg, 50%),
    #f1e6e0 var(--wish-progress-deg, 50%) 100%
  );
  transition: background 400ms ease;
}

.wish-progress-inner {
  display: grid;
  width: 50px;
  height: 50px;
  place-items: center;
  border-radius: 50%;
  background: #fffdfb;
}

.wish-progress-inner strong {
  color: #8d5d57;
  font-family: "Manrope", sans-serif;
  font-size: 11px;
  font-weight: 600;
}

.wish-overall-track {
  height: 3px;
  margin-top: 15px;
  overflow: hidden;
  border-radius: 999px;
  background: #f2e8e2;
}

.wish-overall-track span {
  display: block;
  width: 50%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #d7a49d, #bd7e77);
  transition: width 450ms ease;
}

.wish-list {
  display: flex;
  flex-direction: column;
  margin: 11px 0 0;
  padding: 0;
  list-style: none;
}

.wish-list li + li {
  border-top: 1px solid #f3ebe5;
}

.wish-item {
  display: grid;
  width: 100%;
  grid-template-columns: 21px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  padding: 11px 4px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition: background-color 180ms ease;
}

.wish-item:hover {
  background: #fbf5f0;
}

.wish-check {
  display: grid;
  width: 19px;
  height: 19px;
  place-items: center;
  border: 1px solid #deccc3;
  border-radius: 50%;
  background: #fffdfb;
  transition:
    border-color 180ms ease,
    background-color 180ms ease,
    transform 180ms ease;
}

.wish-check svg {
  width: 11px;
  height: 11px;
  opacity: 0;
  stroke: white;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  transform: scale(0.75);
  transition:
    opacity 160ms ease,
    transform 160ms ease;
}

.wish-label {
  overflow: hidden;
  color: #66564f;
  font-size: 12.5px;
  line-height: 1.55;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color 180ms ease;
}

.wish-number {
  color: #c0ada3;
  font-family: "Manrope", sans-serif;
  font-size: 7.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  transition: opacity 180ms ease;
}

.wish-item.is-done .wish-check {
  border-color: #c98d86;
  background: #c98d86;
}

.wish-item.is-done .wish-check svg {
  opacity: 1;
  transform: scale(1);
}

.wish-item.is-done .wish-label {
  color: #a7978f;
}

.wish-item.is-done .wish-number {
  opacity: 0.48;
}

.wish-foot {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: auto 0 0;
  padding-top: 12px;
  color: #ad9a90;
  font-size: 9px;
  line-height: 1.6;
}

.wish-foot svg {
  width: 13px;
  height: 13px;
  flex: 0 0 auto;
  stroke: #c89a93;
  stroke-width: 1.35;
}

/* Footer */

.site-footer {
  margin-top: 72px;
  padding: 44px 0 30px;
  border-top: 1px solid #ece2db;
  text-align: center;
}

.footer-mark {
  position: relative;
  width: 42px;
  height: 24px;
  margin: 0 auto;
}

.footer-circle {
  position: absolute;
  top: 3px;
  width: 19px;
  height: 19px;
  border: 1px solid #cfa7a0;
  border-radius: 50%;
}

.footer-circle:first-child {
  left: 4px;
}

.footer-circle:last-child {
  right: 4px;
  border-color: #c8b8ae;
}

.footer-names {
  margin: 8px 0 0;
  color: #64554e;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
}

.footer-names span {
  margin: 0 5px;
  color: #c39a93;
}

.footer-line {
  margin: 8px 0 0;
  color: #9b8981;
  font-size: 11.5px;
  line-height: 1.8;
  letter-spacing: 0.065em;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 38px;
  color: #b0a097;
  font-size: 8px;
  letter-spacing: 0.075em;
}

.footer-bottom p {
  margin: 0;
}

.footer-bottom a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: color 180ms ease;
}

.footer-bottom a:hover {
  color: #8c635d;
}

.footer-bottom svg {
  width: 12px;
  height: 12px;
  stroke: currentColor;
  stroke-width: 1.35;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Message dialog */

.message-dialog {
  position: fixed;
  width: min(514px, calc(100vw - 30px));
  max-height: 89vh;
  margin: auto;
  padding: 32px;
  overflow-y: auto;
  border: 1px solid rgba(235, 224, 217, 0.95);
  border-radius: 32px;
  color: var(--ink);
  background: #fffbf8;
  box-shadow: 0 30px 90px rgba(61, 43, 35, 0.2);
}

.message-dialog::backdrop {
  background: rgba(68, 55, 48, 0.32);
  backdrop-filter: blur(6px);
}

.message-dialog[open] {
  animation: dialog-in 260ms ease both;
}

.dialog-glow {
  position: absolute;
  top: -80px;
  right: -60px;
  width: 230px;
  height: 230px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(239, 210, 203, 0.65), transparent 68%);
  pointer-events: none;
}

.dialog-header {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.dialog-header h2 {
  margin: 7px 0 0;
  color: #493c36;
  font-size: 25px;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: 0.03em;
}

.dialog-close {
  display: grid;
  width: 35px;
  height: 35px;
  padding: 0;
  place-items: center;
  border: 1px solid #e8ddd6;
  border-radius: 50%;
  color: #89776e;
  background: rgba(255, 252, 249, 0.82);
  cursor: pointer;
  transition:
    color 180ms ease,
    background-color 180ms ease;
}

.dialog-close:hover {
  color: #915f58;
  background: #f7eae5;
}

.dialog-close svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
}

.dialog-copy {
  margin: 10px 0 0;
  color: #97857c;
  font-size: 12px;
  line-height: 1.8;
}

.message-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 22px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.form-field > span {
  color: #8a7770;
  font-size: 10px;
  letter-spacing: 0.06em;
}

.form-field input,
.form-field textarea {
  width: 100%;
  border: 1px solid #e9dfd8;
  border-radius: 14px;
  color: #4f413b;
  background: #fcf8f5;
  outline: none;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease;
}

.form-field input {
  height: 43px;
  padding: 0 14px;
}

.form-field textarea {
  min-height: 92px;
  padding: 11px 14px;
  line-height: 1.7;
  resize: vertical;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: #b7a69d;
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: #d3a19a;
  background: #fffdfb;
  box-shadow: 0 0 0 4px rgba(206, 157, 149, 0.1);
}

.form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 1px;
}

.char-count {
  color: #b19f96;
  font-family: "Manrope", sans-serif;
  font-size: 8px;
  letter-spacing: 0.08em;
}

.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 9px 17px;
  border: 0;
  border-radius: 999px;
  color: #fffaf7;
  background: #c48881;
  font-size: 11px;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition:
    background-color 180ms ease,
    transform 180ms ease;
}

.primary-button:hover {
  background: #b37972;
  transform: translateY(-1px);
}

.primary-button svg {
  width: 13px;
  height: 13px;
  stroke: currentColor;
  stroke-width: 1.5;
}

.message-wall {
  margin-top: 26px;
}

.message-wall-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 10px;
  color: #a48c82;
  font-family: "Manrope", sans-serif;
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.14em;
}

.message-wall-line {
  height: 1px;
  flex: 1;
  background: #f0e6df;
}

.message-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.message-entry {
  padding: 12px 14px 11px;
  border: 1px solid #f0e4dd;
  border-radius: 15px;
  background: #faf4f0;
}

.message-entry.is-new {
  animation: note-in 350ms ease both;
}

.message-entry-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.message-entry-head strong {
  color: #7d6159;
  font-size: 10.5px;
  font-weight: 500;
}

.message-entry-head span {
  color: #b29f96;
  font-family: "Manrope", sans-serif;
  font-size: 7px;
  letter-spacing: 0.07em;
}

.message-entry p {
  margin: 4px 0 0;
  color: #75645d;
  font-size: 11.5px;
  line-height: 1.72;
  overflow-wrap: anywhere;
}

.toast {
  position: fixed;
  bottom: 26px;
  left: 50%;
  z-index: 200;
  padding: 9px 16px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 999px;
  color: #fffaf7;
  background: rgba(65, 52, 47, 0.9);
  box-shadow: 0 12px 30px rgba(55, 38, 30, 0.2);
  font-size: 11px;
  line-height: 1.5;
  letter-spacing: 0.04em;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 14px);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
  backdrop-filter: blur(8px);
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.is-loading {
  opacity: 0.55;
  pointer-events: none;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes note-in {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Tablet */

@media (max-width: 1180px) {
  .page-shell {
    width: min(calc(100% - 56px), 1080px);
  }

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

  .carousel-card {
    display: grid;
    height: 410px;
    grid-column: 1 / -1;
    grid-template-columns: minmax(0, 1.46fr) minmax(0, 0.92fr);
  }

  .carousel-media {
    height: 100%;
  }

  .carousel-body {
    display: flex;
    min-height: 0;
    flex-direction: column;
    justify-content: space-between;
    padding: 32px 24px 20px 25px;
  }

  .carousel-copy {
    max-width: 330px;
  }

  .slide-title {
    font-size: 22px;
  }

  .carousel-controls {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
  }

  .days-line strong {
    font-size: clamp(88px, 8.8vw, 108px);
  }

  .carousel-stamp {
    right: 18px;
    bottom: 18px;
  }
}

@media (max-width: 1100px) {
  .lower-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

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

  .wish-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 22px;
  }

  .wish-list li + li {
    border-top: 0;
  }

  .wish-list li:nth-child(n + 3) {
    border-top: 1px solid #f3ebe5;
  }

  .wish-foot {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid #f3ebe5;
  }
}

/* Mobile */

@media (max-width: 760px) {
  .page-shell {
    width: calc(100% - 30px);
    padding-top: 18px;
  }

  .brand-mark {
    width: 31px;
    height: 31px;
  }

  .brand-name {
    font-size: 9.5px;
  }

  .brand-sub {
    font-size: 7px;
  }

  .topbar-note {
    font-size: 7.5px;
    letter-spacing: 0.12em;
  }

  .masthead {
    margin-top: 44px;
  }

  .masthead-eyebrow {
    font-size: 8px;
    letter-spacing: 0.16em;
  }

  .hero-title {
    margin-top: 13px;
    font-size: clamp(40px, 11.2vw, 52px);
    letter-spacing: 0.02em;
  }

  .ampersand {
    margin: 0 0.045em;
  }

  .hero-signature {
    margin-top: 12px;
    font-size: 12px;
    letter-spacing: 0.07em;
  }

  .hero-sparkle {
    display: none;
  }

  .main-nav {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    margin-top: 23px;
    padding: 7px;
    border-radius: 22px;
    gap: 3px;
  }

  .nav-link {
    flex-direction: column;
    gap: 5px;
    min-height: 56px;
    padding: 8px 2px;
    border-radius: 16px;
    font-size: 9.5px;
    letter-spacing: 0;
  }

  .nav-link svg {
    width: 16px;
    height: 16px;
  }

  .nav-link span {
    white-space: nowrap;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 24px;
  }

  .card {
    height: auto;
    border-radius: 28px;
  }

  .countdown-card {
    min-height: 0;
    padding: 23px 22px 22px;
  }

  .card-topline {
    font-size: 8px;
    letter-spacing: 0.13em;
  }

  .countdown-main {
    margin-top: 30px;
  }

  .countdown-label {
    font-size: 11px;
  }

  .days-line strong {
    font-size: clamp(78px, 22vw, 96px);
  }

  .days-line > span {
    margin-bottom: 10px;
    font-size: 19px;
  }

  .countdown-caption {
    font-size: 10px;
  }

  .today-time {
    margin-top: 27px;
  }

  .anniversary-next {
    margin-top: 25px;
  }

  .couple-card {
    min-height: 426px;
    padding: 23px 20px 20px;
  }

  .couple-avatars {
    margin-top: 30px;
  }

  .portrait {
    width: 112px;
  }

  .portrait-frame {
    width: 110px;
    height: 144px;
  }

  .heart-connector {
    margin-top: 55px;
  }

  .couple-quote {
    margin-top: 27px;
    font-size: 12.5px;
  }

  .carousel-card {
    display: flex;
    height: auto;
    grid-column: auto;
    padding: 9px;
  }

  .carousel-media {
    height: 280px;
    min-height: 0;
    border-radius: 22px;
  }

  .carousel-body {
    display: flex;
    min-height: 0;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 17px;
    padding: 17px 10px 10px;
  }

  .carousel-copy {
    max-width: none;
  }

  .slide-title {
    font-size: 20px;
  }

  .slide-description {
    font-size: 11px;
  }

  .carousel-controls {
    width: 100%;
    flex-direction: row;
    align-items: center;
    padding: 0;
  }

  .carousel-topline {
    top: 13px;
    right: 13px;
    left: 13px;
  }

  .photo-label,
  .slide-count {
    padding: 6px 9px;
    font-size: 6.5px;
  }

  .carousel-stamp {
    right: 13px;
    bottom: 13px;
    width: 43px;
    height: 43px;
  }

  .quiet-note {
    gap: 8px;
    margin: 31px auto 33px;
    padding: 0 8px;
  }

  .quiet-note p {
    max-width: 290px;
    font-size: 12px;
    line-height: 1.9;
    letter-spacing: 0.05em;
  }

  .quiet-line {
    display: none;
  }

  .quiet-flower {
    width: 14px;
    height: 14px;
    flex-basis: 14px;
  }

  .section-header {
    align-items: center;
    margin-bottom: 13px;
  }

  .section-header h2 {
    font-size: 24px;
  }

  .section-meta {
    font-size: 9px;
  }

  .journal-feature {
    grid-template-columns: 1fr;
    min-height: 0;
    border-radius: 26px;
  }

  .journal-media {
    height: 225px;
    min-height: 0;
  }

  .journal-copy {
    padding: 23px 22px 21px;
  }

  .journal-copy h3 {
    margin: 13px 0 9px;
    font-size: 19px;
  }

  .journal-excerpt {
    font-size: 12px;
  }

  .journal-author {
    padding-top: 17px;
  }

  .journal-notes {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 10px;
  }

  .note-card {
    min-height: 137px;
    padding: 18px 20px 16px;
    border-radius: 22px;
  }

  .note-card p {
    font-size: 13px;
  }

  .wish-card {
    padding: 21px 20px 18px;
    border-radius: 26px;
  }

  .wish-intro h3 {
    font-size: 18px;
  }

  .wish-progress {
    width: 56px;
    height: 56px;
    flex-basis: 56px;
  }

  .wish-progress-inner {
    width: 45px;
    height: 45px;
  }

  .wish-list {
    display: flex;
    margin-top: 9px;
  }

  .wish-list li:nth-child(n + 3) {
    border-top: 0;
  }

  .wish-list li + li {
    border-top: 1px solid #f3ebe5;
  }

  .wish-item {
    padding: 11px 3px;
  }

  .wish-label {
    font-size: 12px;
  }

  .wish-foot {
    margin-top: 13px;
    padding-top: 13px;
    border-top: 1px solid #f3ebe5;
  }

  .site-footer {
    margin-top: 52px;
    padding: 36px 0 24px;
  }

  .footer-line {
    font-size: 10.5px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 10px;
    margin-top: 29px;
    font-size: 7.5px;
  }

  .message-dialog {
    padding: 25px 21px;
    border-radius: 26px;
  }

  .dialog-header h2 {
    font-size: 22px;
  }

  .dialog-copy {
    font-size: 11px;
  }

  .message-form {
    margin-top: 19px;
  }

  .form-field input,
  .form-field textarea {
    font-size: 16px;
  }

  .toast {
    bottom: 20px;
    max-width: calc(100vw - 34px);
    white-space: nowrap;
  }
}

@media (max-width: 370px) {
  .brand-copy {
    display: none;
  }

  .nav-link {
    gap: 4px;
    font-size: 8px;
  }

  .hero-title {
    font-size: 39px;
  }

  .countdown-card {
    padding-inline: 19px;
  }

  .days-line strong {
    font-size: 76px;
  }

  .portrait {
    width: 105px;
  }

  .portrait-frame {
    width: 103px;
    height: 136px;
  }
}

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

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