:root {
  --bg-top: #f6f0e4;
  --bg-bottom: #d9e9ee;
  --surface: rgba(255, 249, 240, 0.82);
  --surface-strong: #fffaf2;
  --ink: #20262d;
  --muted: #5e6873;
  --accent: #0f766e;
  --accent-soft: rgba(15, 118, 110, 0.12);
  --border: rgba(75, 88, 99, 0.14);
  --shadow: rgba(31, 38, 45, 0.09);
}

* {
  box-sizing: border-box;
}

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

body {
  font-family: "Iowan Old Style", "Source Serif 4", "Noto Serif SC", "Times New Roman", serif;
  color: var(--ink);
  background:
    radial-gradient(1000px 540px at 12% -5%, rgba(255, 240, 214, 0.95) 0%, transparent 58%),
    radial-gradient(900px 520px at 88% 0%, rgba(198, 235, 232, 0.9) 0%, transparent 62%),
    linear-gradient(140deg, var(--bg-top), var(--bg-bottom));
  min-height: 100vh;
  line-height: 1.7;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.page {
  max-width: 1040px;
  margin: 0 auto;
  padding: 42px 24px 88px;
}

.site-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 34px;
}

.eyebrow {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}

.brand {
  font-size: 34px;
  letter-spacing: 0.02em;
  line-height: 1.1;
}

.tagline {
  color: var(--muted);
  font-size: 15px;
  margin-top: 6px;
}

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

.hero {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.hero-copy {
  flex: 1;
  min-width: 0;
  background: rgba(255, 252, 246, 0.56);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 24px;
  padding: 28px;
  box-shadow: 0 20px 50px var(--shadow);
  backdrop-filter: blur(10px);
}

.hero-copy h1 {
  margin-top: 0;
  margin-bottom: 14px;
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.05;
}

.hero-copy p,
.hero-copy ul,
.hero-copy ol {
  margin: 0 0 12px;
}

.hero-copy ul,
.hero-copy ol {
  padding-left: 20px;
}

.hero-panel {
  width: min(280px, 100%);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 22px;
  box-shadow: 0 18px 44px var(--shadow);
}

.hero-stat + .hero-stat {
  margin-top: 18px;
}

.hero-stat strong {
  display: block;
  font-size: 32px;
  line-height: 1;
}

.hero-stat span {
  color: var(--muted);
  font-size: 14px;
}

.feed-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 22px;
  width: 100%;
  padding: 11px 14px;
  border-radius: 999px;
  background: var(--accent);
  color: white;
  box-shadow: 0 10px 26px rgba(15, 118, 110, 0.22);
}

.feed-link:hover {
  text-decoration: none;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin: 36px 0 18px;
}

.section-heading h2 {
  margin: 0 0 6px;
  font-size: 24px;
}

.section-heading p {
  margin: 0;
  color: var(--muted);
}

.tag-cloud,
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag-cloud {
  margin-bottom: 22px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 13px;
}

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

.card,
.empty-card {
  background: var(--surface-strong);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 22px 22px 20px;
  box-shadow: 0 16px 36px var(--shadow);
  animation: fadeUp 420ms ease-out both;
}

.card h2 {
  margin: 12px 0 10px;
  font-size: 22px;
  line-height: 1.2;
}

.card p,
.empty-card {
  margin: 0;
  color: var(--muted);
}

.card-meta,
.post-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.post-nav {
  margin-bottom: 14px;
}

.post {
  background: rgba(255, 250, 242, 0.7);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 34px;
  box-shadow: 0 20px 52px var(--shadow);
}

.post h1 {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: clamp(30px, 5vw, 44px);
  line-height: 1.08;
}

.post-meta {
  margin-bottom: 24px;
}

.post h2,
.post h3 {
  margin-top: 28px;
  margin-bottom: 10px;
  line-height: 1.2;
}

.post p,
.post ul,
.post ol,
.post blockquote,
.post pre {
  margin-top: 0;
  margin-bottom: 16px;
}

.post ul,
.post ol {
  padding-left: 22px;
}

.post blockquote {
  padding: 12px 16px;
  border-left: 4px solid var(--accent);
  background: rgba(255, 255, 255, 0.48);
  border-radius: 0 14px 14px 0;
}

.post hr {
  border: 0;
  height: 1px;
  background: var(--border);
  margin: 28px 0;
}

.post img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 16px;
  border: 1px solid var(--border);
}

.post pre {
  background: #1c232a;
  color: #f4f6f8;
  padding: 16px;
  border-radius: 12px;
  overflow-x: auto;
  font-family: "JetBrains Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 14px;
}

.post code {
  font-family: "JetBrains Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.9em;
}

.meta {
  font-size: 13px;
  color: var(--muted);
}

footer {
  margin-top: 52px;
  color: var(--muted);
  font-size: 13px;
}

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

@media (prefers-reduced-motion: reduce) {
  .card,
  .empty-card {
    animation: none;
  }
}

@media (max-width: 820px) {
  .hero {
    flex-direction: column;
  }
}

@media (max-width: 720px) {
  .site-header,
  .section-heading,
  .card-meta,
  .post-meta {
    flex-direction: column;
    align-items: flex-start;
  }

  .page {
    padding: 28px 18px 72px;
  }

  .hero-copy,
  .hero-panel,
  .post {
    padding: 22px;
  }

  .brand {
    font-size: 30px;
  }
}
