:root {
  color-scheme: light;
  --ink: #332b2a;
  --ink-soft: #6f6563;
  --muted: #9c918e;
  --paper: rgba(255, 252, 247, 0.82);
  --paper-solid: #fffdf8;
  --line: rgba(123, 103, 100, 0.13);
  --violet: #a78bca;
  --violet-soft: #eee6f8;
  --rose: #e8b8c4;
  --cream: #f8efe5;
  --shadow: 0 22px 48px rgba(105, 82, 74, 0.13);
  --radius-xl: 22px;
  --radius-lg: 18px;
  --serif: "Times New Roman", "Noto Serif SC", "Songti SC", serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.65;
  background:
    radial-gradient(circle at 11% 10%, rgba(196, 178, 218, 0.3), transparent 24%),
    radial-gradient(circle at 88% 20%, rgba(236, 190, 202, 0.24), transparent 26%),
    linear-gradient(115deg, #f6eee8 0%, #eee1dc 45%, #f8efe8 100%);
  overflow-x: hidden;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.22) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.18) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.2), transparent 72%);
  content: "";
}

body::after {
  position: fixed;
  inset: auto 0 0;
  z-index: -1;
  height: 18vh;
  background: linear-gradient(180deg, transparent, rgba(211, 198, 190, 0.32));
  content: "";
}

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

button {
  color: inherit;
  font: inherit;
}

.page-glow {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.page-glow::before,
.page-glow::after {
  position: absolute;
  width: 340px;
  height: 340px;
  border-radius: 999px;
  filter: blur(28px);
  opacity: 0.38;
  content: "";
}

.page-glow::before {
  top: -110px;
  left: -90px;
  background: #d8c7ec;
}

.page-glow::after {
  right: -120px;
  bottom: 8%;
  background: #ffd7df;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  width: min(1180px, calc(100% - 56px));
  margin: 0 auto;
  padding: 28px 0 10px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 190px;
}

.brand-mark {
  position: relative;
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(171, 151, 199, 0.7), rgba(171, 151, 199, 0.18)),
    rgba(255, 255, 255, 0.45);
  box-shadow: 22px 16px 0 rgba(102, 87, 116, 0.18);
}

.brand-text,
.tiny-label,
.top-meta,
.est,
.calendar-foot,
.feature-card small,
.photo-head span {
  color: var(--muted);
  font-family: var(--serif);
  letter-spacing: 0.16em;
}

.brand-text {
  font-size: 13px;
}

.top-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  letter-spacing: 0.03em;
}

.top-meta time {
  margin-left: 14px;
  color: #685d5b;
  font-style: italic;
}

.weather-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--violet);
  box-shadow: -12px 0 0 rgba(255, 255, 255, 0.72);
}

.home-shell {
  width: min(1180px, calc(100% - 56px));
  margin: 0 auto;
  padding: clamp(36px, 5vw, 72px) 0 28px;
}

.hero-copy {
  position: relative;
  min-height: 178px;
}

.tiny-label {
  margin: 0 0 18px;
  font-size: 12px;
}

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

h1 {
  max-width: 720px;
  margin-bottom: 0;
  color: #2f2928;
  font-family: var(--serif);
  font-size: clamp(38px, 5.1vw, 64px);
  font-weight: 400;
  line-height: 1.28;
  letter-spacing: 0.02em;
}

h1 em,
h1 span {
  color: #9b86ba;
  font-style: italic;
}

.est {
  position: absolute;
  right: 10px;
  bottom: 20px;
  font-size: 14px;
}

.dashboard {
  display: grid;
  grid-template-columns: minmax(320px, 0.78fr) minmax(480px, 1.28fr);
  gap: 26px;
  align-items: stretch;
}

.right-stack {
  display: grid;
  gap: 26px;
}

.panel,
.feature-card {
  border: 1px solid rgba(255, 255, 255, 0.72);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.88), rgba(255, 252, 247, 0.66)),
    var(--paper);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(18px) saturate(135%);
}

.calendar-card {
  min-height: 424px;
  padding: 24px 26px 20px;
  border-radius: var(--radius-xl);
}

.calendar-head {
  display: grid;
  grid-template-columns: 36px 1fr 36px;
  align-items: center;
  margin-bottom: 24px;
  text-align: center;
}

.calendar-head strong {
  color: #5e5350;
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 400;
  letter-spacing: 0.12em;
}

.calendar-head button {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.52);
  cursor: pointer;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 12px 10px;
  color: #756966;
  text-align: center;
}

.calendar-grid > span {
  color: #9c908c;
  font-size: 13px;
}

.calendar-grid time,
.calendar-grid i {
  display: grid;
  min-height: 42px;
  place-items: center;
  border-radius: 12px;
  font-family: var(--serif);
  font-style: normal;
}

.calendar-grid time {
  position: relative;
}

.calendar-grid b {
  display: block;
  margin-top: -6px;
  color: var(--violet);
  font-family: var(--sans);
  font-size: 12px;
  line-height: 1;
}

.calendar-grid .active {
  color: #fff;
  background: linear-gradient(145deg, #b59bd4, #9b81c3);
  box-shadow: 0 12px 24px rgba(155, 129, 195, 0.28);
}

.calendar-foot {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px dashed rgba(118, 99, 95, 0.22);
  font-size: 13px;
}

.calendar-foot strong {
  color: #665c58;
  font-weight: 400;
}

.couple-card {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 92px;
  padding: 18px 24px;
  border-radius: var(--radius-lg);
}

.person {
  display: flex;
  align-items: center;
  gap: 12px;
}

.person strong {
  display: block;
  color: #5f5350;
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 400;
}

.person small {
  display: inline-flex;
  padding: 1px 9px 2px;
  border-radius: 999px;
  color: #8f7ab0;
  background: var(--violet-soft);
  font-size: 12px;
}

.avatar {
  width: 42px;
  height: 42px;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  box-shadow: 0 8px 20px rgba(97, 74, 70, 0.14);
}

.avatar-one {
  background:
    radial-gradient(circle at 38% 30%, #f9eee2 0 10%, transparent 11%),
    radial-gradient(circle at 62% 58%, #7d665d 0 9%, transparent 10%),
    linear-gradient(135deg, #c9b7a8, #f2dfd2);
}

.avatar-two {
  background:
    radial-gradient(circle at 42% 46%, #4f4743 0 9%, transparent 10%),
    radial-gradient(circle at 68% 35%, #9e8372 0 11%, transparent 12%),
    linear-gradient(135deg, #efe2d3, #b9a492);
}

.divider {
  width: 1px;
  height: 36px;
  background: var(--line);
}

.couple-card p {
  margin: 0 0 0 auto;
  color: var(--muted);
  font-family: var(--serif);
  text-align: right;
  letter-spacing: 0.14em;
}

.couple-card p span {
  display: block;
  font-size: 12px;
}

.couple-card p b {
  color: #9478ba;
  font-size: 28px;
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0.02em;
}

.photo-card {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(240px, 1fr);
  gap: 26px;
  min-height: 296px;
  padding: 28px 30px;
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.photo-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.photo-head p {
  margin: 0;
  color: #5d5350;
  font-weight: 680;
}

.photo-head span {
  font-size: 12px;
  font-style: italic;
  letter-spacing: 0.03em;
}

.photo-copy h2 {
  margin-bottom: 8px;
  color: #6d615e;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 400;
}

.photo-copy > p {
  max-width: 560px;
  margin-bottom: 18px;
  color: #746965;
  font-family: var(--serif);
  font-size: 17px;
}

.photo-copy a {
  display: inline-flex;
  padding: 7px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #7b6896;
  background: rgba(255, 255, 255, 0.45);
  font-size: 14px;
}

.photo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.photo-add,
.photo-clear {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  font-size: 14px;
}

.photo-add {
  color: #fff;
  background: linear-gradient(145deg, #a78bca, #9273b8);
  box-shadow: 0 10px 22px rgba(146, 115, 184, 0.22);
}

.photo-clear {
  color: #7b6896;
  background: rgba(255, 255, 255, 0.52);
}

.photo-board {
  position: relative;
  align-self: center;
  min-height: 178px;
  padding: 18px;
  border: 1px dashed rgba(130, 110, 106, 0.2);
  border-radius: 20px;
  background:
    radial-gradient(circle at 18% 22%, rgba(255, 255, 255, 0.78), transparent 11%),
    radial-gradient(circle at 82% 76%, rgba(167, 139, 202, 0.16), transparent 32%),
    linear-gradient(145deg, rgba(250, 235, 229, 0.78), rgba(245, 226, 235, 0.62));
}

.photo-board::before {
  position: absolute;
  right: 18px;
  bottom: 14px;
  color: rgba(116, 97, 93, 0.34);
  font-family: var(--serif);
  font-size: 13px;
  font-style: italic;
  letter-spacing: 0.08em;
  content: "PHOTO";
}

.photo-empty {
  position: absolute;
  inset: 18px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 6px;
  color: #8f7ab0;
  text-align: center;
}

.photo-empty[hidden] {
  display: none;
}

.photo-empty span {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid rgba(143, 122, 176, 0.24);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.56);
  font-size: 30px;
  line-height: 1;
}

.photo-empty strong {
  color: #655957;
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 400;
}

.photo-empty small {
  color: #a79a96;
}

.photo-item {
  position: relative;
  z-index: 1;
  display: inline-block;
  width: calc(50% - 8px);
  height: 82px;
  margin: 0 8px 12px 0;
  padding: 7px 7px 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 16px 28px rgba(100, 78, 73, 0.14);
  transform: rotate(var(--tilt));
  vertical-align: top;
}

.photo-item img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 8px;
  object-fit: cover;
}

.photo-item button {
  position: absolute;
  top: -7px;
  right: -7px;
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  color: #fff;
  background: rgba(111, 93, 90, 0.72);
  cursor: pointer;
  line-height: 1;
}

.feature-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.feature-card {
  position: relative;
  min-height: 226px;
  padding: 24px 20px 20px;
  border-radius: 16px;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(255, 250, 244, 0.78)),
    var(--paper-solid);
  box-shadow: 0 28px 56px rgba(105, 82, 74, 0.18);
}

.index {
  color: #9b8d8a;
  font-family: var(--serif);
  font-size: 13px;
  font-style: italic;
}

.feature-icon {
  position: absolute;
  top: 28px;
  right: 28px;
  color: #9d89c3;
  font-size: 32px;
  line-height: 1;
}

.feature-card strong {
  display: block;
  margin-top: 64px;
  color: #332d2c;
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 400;
  line-height: 1.1;
}

.feature-card em {
  display: block;
  margin-top: 4px;
  color: #9a8d8a;
  font-family: var(--serif);
  font-size: 13px;
}

.feature-card small {
  position: absolute;
  right: 20px;
  bottom: 18px;
  left: 20px;
  display: flex;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px dashed rgba(118, 99, 95, 0.24);
  font-size: 12px;
  letter-spacing: 0.12em;
}

.feature-card small b {
  color: #5e5350;
  font-weight: 400;
  letter-spacing: 0.04em;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  width: min(1180px, calc(100% - 56px));
  margin: 8px auto 0;
  padding: 26px 0 34px;
  border-top: 1px solid rgba(123, 103, 100, 0.12);
  color: #b0a39f;
  font-family: var(--serif);
  font-size: 13px;
  font-style: italic;
}

@media (max-width: 1040px) {
  .dashboard {
    grid-template-columns: 1fr;
  }

  .feature-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .topbar,
  .home-shell,
  .footer {
    width: min(100% - 32px, 1180px);
  }

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

  .top-meta {
    flex-wrap: wrap;
  }

  .top-meta time {
    margin-left: 0;
  }

  .hero-copy {
    min-height: auto;
    padding-bottom: 28px;
  }

  .est {
    position: static;
    margin-top: 20px;
  }

  .couple-card,
  .photo-head,
  .footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .couple-card p {
    margin-left: 0;
    text-align: left;
  }

  .divider {
    display: none;
  }

  .photo-card {
    grid-template-columns: 1fr;
  }

  .photo-board {
    min-height: 190px;
  }

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

@media (max-width: 520px) {
  .home-shell {
    padding-top: 28px;
  }

  h1 {
    font-size: 34px;
  }

  .calendar-card,
  .photo-card {
    padding: 20px 18px;
  }

  .calendar-grid {
    gap: 8px 4px;
  }

  .calendar-grid time,
  .calendar-grid i {
    min-height: 36px;
  }

  .feature-strip {
    grid-template-columns: 1fr;
  }

  .feature-card {
    min-height: 190px;
  }
}
