:root {
  color-scheme: light;
  --ink: #17211c;
  --muted: #66716c;
  --paper: #fbfaf4;
  --line: #d8ddce;
  --leaf: #527f62;
  --gold: #b1782d;
  --rose: #b96d65;
  --sky: #dbeaf0;
  --daily-image: url("https://images.unsplash.com/photo-1490730141103-6cac27aaab94?auto=format&fit=crop&w=1800&q=80");
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    linear-gradient(145deg, rgba(219, 234, 240, 0.92), rgba(251, 250, 244, 0.82) 45%, rgba(244, 223, 202, 0.62)),
    var(--daily-image) center / cover fixed;
}

body.has-daily-image {
  background:
    linear-gradient(145deg, rgba(219, 234, 240, 0.86), rgba(251, 250, 244, 0.72) 44%, rgba(244, 223, 202, 0.5)),
    var(--daily-image) center / cover fixed;
}

.page-shell {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
  padding: 42px 0 56px;
}

.hero {
  min-height: 54vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  align-items: end;
  gap: 28px;
  padding: 40px 0;
}

.kicker {
  margin: 0 0 18px;
  font-size: 0.82rem;
  line-height: 1;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0;
  font-weight: 800;
}

h1 {
  margin: 0;
  max-width: 820px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(4rem, 12vw, 9.5rem);
  line-height: 0.9;
  letter-spacing: 0;
}

.subtitle {
  max-width: 620px;
  margin: 24px 0 0;
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  line-height: 1.7;
  color: #304238;
}

.date-panel {
  align-self: end;
  min-height: 180px;
  border-left: 1px solid rgba(23, 33, 28, 0.22);
  padding-left: 24px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  gap: 12px;
}

.date-panel span {
  color: var(--muted);
  font-weight: 700;
}

.date-panel time {
  font-size: 1.05rem;
  font-weight: 900;
  color: var(--leaf);
}

.archive-link {
  width: fit-content;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(23, 33, 28, 0.18);
  border-radius: 8px;
  padding: 0 14px;
  color: var(--ink);
  background: rgba(251, 250, 244, 0.64);
  font-weight: 850;
  text-decoration: none;
}

.quotes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.quote-card,
.empty {
  min-height: 440px;
  border: 1px solid rgba(23, 33, 28, 0.14);
  border-radius: 8px;
  background: rgba(251, 250, 244, 0.9);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 70px rgba(47, 61, 54, 0.12);
}

.quote-card {
  position: relative;
  padding: 28px;
  display: flex;
  flex-direction: column;
}

.quote-index {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--gold);
  font-weight: 900;
}

blockquote {
  margin: 30px 0 0;
}

.zh {
  margin: 0;
  font-family: Georgia, "Noto Serif SC", serif;
  font-size: 1.55rem;
  line-height: 1.58;
}

.en {
  margin: 20px 0 0;
  color: #42504a;
  font-size: 1rem;
  line-height: 1.75;
}

footer {
  margin-top: auto;
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 0.92rem;
  border-top: 1px solid var(--line);
}

footer span,
footer strong {
  overflow-wrap: anywhere;
}

footer strong {
  color: var(--ink);
}

.note {
  margin: 18px 0 0;
  color: #747d77;
  font-size: 0.94rem;
  line-height: 1.7;
}

.empty {
  grid-column: 1 / -1;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 28px;
}

.empty p {
  margin: 0 0 10px;
  font-size: 1.4rem;
  font-weight: 800;
}

.empty span {
  color: var(--muted);
}

.archive-page {
  background:
    linear-gradient(145deg, rgba(219, 234, 240, 0.88), rgba(251, 250, 244, 0.9) 42%, rgba(244, 223, 202, 0.6)),
    var(--daily-image) center / cover fixed;
}

.archive-header {
  min-height: 34vh;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  padding: 38px 0;
}

.archive-list {
  display: grid;
  gap: 22px;
}

.archive-day {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr);
  gap: 0;
  overflow: hidden;
  border: 1px solid rgba(23, 33, 28, 0.14);
  border-radius: 8px;
  background: rgba(251, 250, 244, 0.9);
  box-shadow: 0 18px 70px rgba(47, 61, 54, 0.12);
}

.archive-media {
  min-height: 420px;
  display: flex;
  align-items: end;
  padding: 24px;
  background:
    linear-gradient(140deg, rgba(82, 127, 98, 0.8), rgba(177, 120, 45, 0.4)),
    #6f8779;
  background-position: center;
  background-size: cover;
}

.archive-media time {
  padding: 10px 12px;
  border-radius: 8px;
  color: white;
  background: rgba(23, 33, 28, 0.42);
  font-weight: 900;
}

.archive-quotes {
  display: grid;
  gap: 1px;
  background: var(--line);
}

.archive-quote {
  padding: 24px;
  background: rgba(251, 250, 244, 0.96);
}

.archive-quote span {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--gold);
  font-weight: 900;
}

.archive-quote .zh {
  margin-top: 20px;
  font-size: 1.28rem;
}

.archive-quote footer {
  margin-top: 18px;
  padding-top: 18px;
}

.archive-quote small {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.7;
}

@media (max-width: 860px) {
  .hero {
    min-height: 48vh;
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .date-panel {
    min-height: auto;
    border-left: 0;
    border-top: 1px solid rgba(23, 33, 28, 0.22);
    padding: 18px 0 0;
  }

  .quotes {
    grid-template-columns: 1fr;
  }

  .archive-header {
    min-height: 28vh;
    align-items: start;
    flex-direction: column;
  }

  .archive-day {
    grid-template-columns: 1fr;
  }

  .archive-media {
    min-height: 260px;
  }

  .quote-card,
  .empty {
    min-height: 360px;
  }
}

@media (max-width: 520px) {
  .page-shell {
    width: min(100% - 24px, 1120px);
    padding-top: 26px;
  }

  h1 {
    font-size: clamp(3.35rem, 19vw, 5.4rem);
  }

  .quote-card {
    padding: 22px;
  }

  .zh {
    font-size: 1.34rem;
  }
}
