:root {
  --bg: #f7f3ea;
  --text: #2d2a26;
  --muted: #5e554b;
  --primary: #e76f51;
  --primary-2: #f4a261;
  --card: rgba(255, 252, 245, 0.78);
  --line: rgba(45, 42, 38, 0.14);
  --shadow: 0 18px 44px rgba(80, 48, 32, 0.14);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Outfit", "Segoe UI", sans-serif;
  background: radial-gradient(circle at 20% 10%, #fff8ec 0%, var(--bg) 45%, #f0e7db 100%);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

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

.bg-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(2px);
  z-index: -2;
  animation: float 9s ease-in-out infinite;
}

.orb-a {
  width: 280px;
  height: 280px;
  background: rgba(231, 111, 81, 0.2);
  top: -60px;
  right: -50px;
}

.orb-b {
  width: 240px;
  height: 240px;
  background: rgba(244, 162, 97, 0.22);
  bottom: -70px;
  left: -40px;
  animation-delay: 1.2s;
}

.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -3;
  opacity: 0.2;
  background-image: linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 42px 42px;
  -webkit-mask-image: radial-gradient(circle at center, black 35%, transparent 88%);
  mask-image: radial-gradient(circle at center, black 35%, transparent 88%);
}

.site-header {
  width: min(1040px, 92%);
  margin: 20px auto 0;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  backdrop-filter: blur(6px);
  background: rgba(255, 250, 242, 0.75);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 12px;
  z-index: 9;
}

.brand {
  font-family: "Ma Shan Zheng", cursive;
  font-size: 1.5rem;
}

nav {
  display: flex;
  gap: 16px;
  color: var(--muted);
  font-size: 0.95rem;
}

nav a {
  padding: 6px 10px;
  border-radius: 999px;
  transition: 0.2s ease;
}

nav a:hover {
  color: var(--text);
  background: rgba(231, 111, 81, 0.13);
}

main {
  width: min(1040px, 92%);
  margin: 28px auto 0;
  padding-bottom: 40px;
}

h1,
h2,
p {
  margin: 0;
}

.hero {
  padding: 52px 18px 22px;
}

.tag {
  display: inline-block;
  font-size: 0.86rem;
  color: var(--muted);
  margin-bottom: 12px;
  padding: 6px 12px;
  border: 1px dashed var(--line);
  border-radius: 999px;
}

h1 {
  font-family: "Ma Shan Zheng", cursive;
  font-size: clamp(2.2rem, 6.2vw, 4.4rem);
  line-height: 1.1;
  letter-spacing: 0.2px;
}

.subtitle {
  margin-top: 14px;
  color: var(--muted);
  font-size: clamp(1.02rem, 2.5vw, 1.28rem);
}

.cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 26px;
}

.btn {
  padding: 11px 16px;
  border-radius: 14px;
  font-weight: 500;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  box-shadow: 0 10px 22px rgba(231, 111, 81, 0.34);
}

.btn-ghost {
  border: 1px solid var(--line);
  background: rgba(255, 250, 242, 0.84);
}

.card,
#notes,
#contact {
  margin-top: 28px;
}

.card {
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 22px;
}

h2 {
  font-size: clamp(1.25rem, 3vw, 1.62rem);
  margin-bottom: 14px;
}

.card p {
  color: var(--muted);
  line-height: 1.75;
}

.card p + p {
  margin-top: 10px;
}

.notes-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.note-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  background: rgba(255, 252, 246, 0.9);
  transition: transform 0.2s ease;
}

.note-card:hover {
  transform: translateY(-3px);
}

.note-card span {
  font-size: 0.84rem;
  color: var(--primary);
  font-weight: 600;
}

.note-card p {
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.7;
}

.fav-list {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.9;
}

.updates-feed {
  display: grid;
  gap: 12px;
}

.update-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 252, 246, 0.95);
  padding: 14px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.update-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(80, 48, 32, 0.13);
}

.update-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.avatar-dot {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  box-shadow: 0 8px 18px rgba(231, 111, 81, 0.28);
}

.update-name {
  font-weight: 700;
  color: var(--text);
}

.update-meta {
  margin-top: 2px;
  font-size: 0.84rem;
  color: var(--muted);
}

.update-text {
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.75;
}

.update-tags {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.update-tags span {
  font-size: 0.82rem;
  padding: 4px 10px;
  border-radius: 999px;
  color: var(--primary);
  border: 1px solid rgba(231, 111, 81, 0.34);
  background: rgba(231, 111, 81, 0.08);
}

.update-foot {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
  color: #6d6358;
  font-size: 0.9rem;
}

.subscribe-form {
  margin-top: 14px;
}

.subscribe-form label {
  display: block;
  color: var(--muted);
  margin-bottom: 8px;
}

.subscribe-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.subscribe-row input {
  flex: 1 1 220px;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 250, 242, 0.9);
  font: inherit;
  color: var(--text);
}

.subscribe-row button {
  min-height: 42px;
  padding: 10px 16px;
  border: 0;
  border-radius: 12px;
  font: inherit;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  cursor: pointer;
}

.subscribe-row button:hover {
  filter: brightness(0.97);
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.contact-links a {
  border: 1px solid var(--line);
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 250, 242, 0.84);
}

.contact-links a:hover {
  border-color: rgba(231, 111, 81, 0.45);
  color: var(--primary);
}

.site-footer {
  width: min(1040px, 92%);
  margin: 2px auto 28px;
  color: var(--muted);
  font-size: 0.93rem;
  text-align: center;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.show {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 {
  transition-delay: 0.08s;
}

.delay-2 {
  transition-delay: 0.15s;
}

.delay-3 {
  transition-delay: 0.22s;
}

.delay-4 {
  transition-delay: 0.28s;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}

@media (max-width: 720px) {
  .site-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  nav {
    flex-wrap: wrap;
    gap: 8px;
  }

  .hero {
    padding-top: 36px;
  }

  .card {
    padding: 18px;
  }
}
