:root {
  color-scheme: light;
  --bg: #fbfaf7;
  --panel: #ffffff;
  --text: #1d1d1f;
  --muted: #65615a;
  --line: #ded8ce;
  --rose: #c04b76;
  --rose-strong: #8d3157;
  --blue: #246b8f;
  --mint: #3f806e;
  --sun: #f1b84b;
  --shadow: 0 18px 50px rgba(34, 25, 21, 0.09);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background:
    radial-gradient(circle at top left, rgba(192, 75, 118, 0.14), transparent 32rem),
    radial-gradient(circle at bottom right, rgba(36, 107, 143, 0.12), transparent 30rem),
    var(--bg);
}

body {
  margin: 0;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
}

a {
  color: var(--blue);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 13px max(18px, env(safe-area-inset-left)) 12px max(18px, env(safe-area-inset-left));
  border-bottom: 1px solid rgba(99, 85, 74, 0.16);
  background: rgba(251, 250, 247, 0.82);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 760;
  text-decoration: none;
}

.brand-mark {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--rose);
  box-shadow: 0 0 0 5px rgba(192, 75, 118, 0.14);
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: 14px;
}

.site-header nav a {
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 680;
  text-decoration: none;
}

main {
  width: min(100%, 860px);
  margin: 0 auto;
  padding: 22px 18px 58px;
}

.hero {
  min-height: 34vh;
  display: grid;
  align-content: end;
  padding: clamp(28px, 7vw, 58px) 0 18px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--rose-strong);
  font-size: 0.82rem;
  font-weight: 780;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  letter-spacing: 0;
}

h1 {
  max-width: 11ch;
  margin: 0;
  font-size: clamp(2.6rem, 9vw, 5.8rem);
  line-height: 0.94;
}

.hero p {
  max-width: 46rem;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: clamp(1.08rem, 2vw, 1.28rem);
}

.countdown-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin: 8px 0 28px;
}

.countdown-card {
  min-height: 176px;
  display: grid;
  align-content: space-between;
  gap: 18px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow);
}

.countdown-card.primary {
  border-color: rgba(192, 75, 118, 0.34);
  background:
    linear-gradient(135deg, rgba(192, 75, 118, 0.12), transparent 60%),
    rgba(255, 255, 255, 0.9);
}

.countdown-label {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 760;
  text-transform: uppercase;
}

.countdown-parts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 6px;
}

.countdown-parts span {
  min-width: 0;
  display: grid;
  gap: 2px;
  padding: 10px 6px;
  border: 1px solid rgba(141, 49, 87, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.62);
  text-align: center;
}

.countdown-parts strong {
  display: block;
  min-width: 2ch;
  font-variant-numeric: tabular-nums;
  font-size: clamp(1.45rem, 5vw, 2.25rem);
  font-weight: 820;
  line-height: 1;
}

.countdown-parts small {
  color: var(--rose-strong);
  font-size: 0.72rem;
  font-weight: 760;
  text-transform: uppercase;
}

.countdown-detail,
.countdown-date {
  margin: 0;
  color: var(--muted);
}

.weather-report {
  margin: 0 0 28px;
  padding: clamp(20px, 4vw, 30px);
  border: 1px solid rgba(36, 107, 143, 0.28);
  border-left: 5px solid var(--blue);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(36, 107, 143, 0.1), transparent 58%),
    rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow);
}

.weather-report-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 12px;
}

.weather-report h2 {
  margin: 0 0 12px;
  color: var(--blue);
  font-size: clamp(1.7rem, 5vw, 2.5rem);
  line-height: 1;
}

.weather-report .eyebrow {
  color: var(--blue);
}

.weather-report-body {
  max-width: 64ch;
  color: var(--text);
  font-size: clamp(1.04rem, 2vw, 1.18rem);
}

.weather-report-body p,
.weather-report-body ul {
  margin: 0;
}

.weather-visual {
  position: relative;
  flex: 0 0 auto;
  width: clamp(104px, 16vw, 150px);
  height: clamp(76px, 10vw, 104px);
  opacity: 0.9;
  pointer-events: none;
  overflow: visible;
}

.weather-sun {
  position: absolute;
  top: 7px;
  right: 20px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #f6c453;
  box-shadow: 0 0 0 8px rgba(246, 196, 83, 0.18), 0 0 26px rgba(246, 196, 83, 0.56);
  animation: sun-breathe 4.8s ease-in-out infinite;
}

.weather-moon {
  position: absolute;
  display: none;
  top: 8px;
  right: 26px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #dbeafe;
  box-shadow: inset -9px 0 0 rgba(147, 164, 183, 0.82), 0 0 22px rgba(219, 234, 254, 0.48);
}

.weather-cloud {
  position: absolute;
  display: block;
  height: 18px;
  border-radius: 999px;
  background: #dce9ef;
  border: 1px solid rgba(126, 136, 148, 0.28);
}

.weather-cloud::before,
.weather-cloud::after {
  content: "";
  position: absolute;
  bottom: 5px;
  border-radius: 50%;
  background: inherit;
  border-top: inherit;
}

.weather-cloud::before {
  left: 10px;
  width: 18px;
  height: 18px;
}

.weather-cloud::after {
  right: 9px;
  width: 24px;
  height: 24px;
}

.weather-cloud-a {
  right: 34px;
  bottom: 17px;
  width: 72px;
  animation: cloud-drift 7s ease-in-out infinite;
}

.weather-cloud-b {
  right: 4px;
  bottom: 4px;
  width: 58px;
  opacity: 0.78;
  animation: cloud-drift 8.5s ease-in-out infinite reverse;
}

.weather-drop,
.weather-flake,
.weather-mist,
.weather-wind,
.weather-bolt {
  position: absolute;
  display: none;
}

.weather-drop {
  top: 56px;
  width: 2px;
  height: 18px;
  border-radius: 999px;
  background: #60a5fa;
  transform: rotate(12deg);
  animation: rain-fall 0.95s linear infinite;
}

.weather-drop-a { right: 82px; }
.weather-drop-b { right: 60px; animation-delay: 0.18s; }
.weather-drop-c { right: 38px; animation-delay: 0.34s; }

.weather-bolt {
  right: 53px;
  top: 42px;
  width: 18px;
  height: 30px;
  background: #facc15;
  clip-path: polygon(48% 0, 100% 0, 64% 43%, 100% 43%, 32% 100%, 45% 55%, 6% 55%);
  animation: bolt-flash 3s steps(1, end) infinite;
}

.weather-flake {
  color: #93c5fd;
  font-size: 1.2rem;
  line-height: 1;
  animation: snow-fall 2.8s ease-in-out infinite;
}

.weather-flake::before { content: "*"; }
.weather-flake-a { right: 84px; top: 52px; }
.weather-flake-b { right: 58px; top: 62px; animation-delay: 0.45s; }
.weather-flake-c { right: 34px; top: 50px; animation-delay: 0.9s; }

.weather-mist,
.weather-wind {
  height: 2px;
  border-radius: 999px;
  background: rgba(101, 97, 90, 0.74);
}

.weather-mist-a { right: 18px; top: 58px; width: 94px; animation: fog-slide 5.4s ease-in-out infinite; }
.weather-mist-b { right: 34px; top: 70px; width: 70px; animation: fog-slide 6.2s ease-in-out infinite reverse; }
.weather-wind-a { right: 18px; top: 38px; width: 96px; animation: wind-run 2.4s ease-in-out infinite; }
.weather-wind-b { right: 42px; top: 58px; width: 64px; animation: wind-run 2.9s ease-in-out infinite reverse; }

.weather-sunny .weather-cloud,
.weather-sunny .weather-moon,
.weather-sunny .weather-drop,
.weather-sunny .weather-flake,
.weather-sunny .weather-mist,
.weather-sunny .weather-wind,
.weather-sunny .weather-bolt {
  display: none;
}

.weather-cloudy .weather-sun,
.weather-rain .weather-sun,
.weather-storm .weather-sun,
.weather-snow .weather-sun,
.weather-fog .weather-sun,
.weather-windy .weather-sun,
.weather-night .weather-sun {
  display: none;
}

.weather-cloudy .weather-cloud-a,
.weather-cloudy .weather-cloud-b,
.weather-rain .weather-cloud-a,
.weather-rain .weather-cloud-b,
.weather-storm .weather-cloud-a,
.weather-storm .weather-cloud-b,
.weather-snow .weather-cloud-a,
.weather-snow .weather-cloud-b,
.weather-fog .weather-cloud-a,
.weather-fog .weather-cloud-b,
.weather-windy .weather-cloud-a {
  display: block;
}

.weather-rain .weather-drop,
.weather-storm .weather-drop,
.weather-storm .weather-bolt,
.weather-snow .weather-flake,
.weather-fog .weather-mist,
.weather-windy .weather-wind,
.weather-night .weather-moon,
.weather-night .weather-cloud-a {
  display: block;
}

@keyframes sun-breathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

@keyframes cloud-drift {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(-8px); }
}

@keyframes rain-fall {
  0% { opacity: 0; transform: translateY(-8px) rotate(12deg); }
  25%, 80% { opacity: 1; }
  100% { opacity: 0; transform: translateY(10px) rotate(12deg); }
}

@keyframes bolt-flash {
  0%, 8%, 100% { opacity: 0.15; }
  4% { opacity: 1; }
}

@keyframes snow-fall {
  0%, 100% { opacity: 0.6; transform: translateY(-3px); }
  50% { opacity: 1; transform: translateY(7px); }
}

@keyframes fog-slide {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(-12px); }
}

@keyframes wind-run {
  0%, 100% { opacity: 0.5; transform: translateX(0); }
  50% { opacity: 1; transform: translateX(-18px); }
}

.note-shell,
.archive-shell {
  overflow: hidden;
  padding: clamp(22px, 5vw, 42px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.note-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 650;
}

.note-content {
  max-width: 66ch;
}

.note-content h2 {
  margin: 28px 0 8px;
  color: var(--rose-strong);
  font-size: clamp(1.35rem, 4vw, 2rem);
  line-height: 1.1;
}

.note-content h2:first-child {
  margin-top: 0;
}

.note-content p,
.note-content ul,
.note-content ol {
  margin: 0 0 16px;
}

.note-content li {
  margin: 0 0 8px;
}

.footer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

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

.archive-item {
  display: grid;
  gap: 4px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  text-decoration: none;
}

.archive-item:last-child {
  border-bottom: 0;
}

.archive-item time {
  color: var(--muted);
  font-size: 0.88rem;
}

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

@media (max-width: 560px) {
  .site-header {
    position: static;
  }

  h1 {
    max-width: 9ch;
  }

  .countdown-card {
    min-height: 156px;
  }
}
