:root {
  --bg: #f5efe3;
  --paper: rgba(255, 251, 244, 0.88);
  --ink: #1b1b19;
  --muted: #5c5a52;
  --line: rgba(27, 27, 25, 0.16);
  --accent: #0d5c63;
  --accent-soft: #d8ebe7;
  --shadow: 0 18px 40px rgba(37, 34, 28, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(13, 92, 99, 0.16), transparent 28%),
    radial-gradient(circle at right 20%, rgba(168, 125, 61, 0.18), transparent 22%),
    linear-gradient(180deg, #f7f2e8 0%, #efe5d0 100%);
  min-height: 100vh;
}

a {
  color: inherit;
}

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

.hero,
.panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
}

.hero {
  padding: 44px;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -40px -60px auto;
  width: 220px;
  height: 220px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(13, 92, 99, 0.2), rgba(13, 92, 99, 0));
}

.eyebrow,
.section-label,
.post-meta,
.hero-nav {
  font-family: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
}

.eyebrow,
.section-label {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  font-size: 0.82rem;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.02;
  font-weight: 600;
}

h1 {
  margin-top: 10px;
  max-width: 620px;
  font-size: clamp(3rem, 9vw, 5.8rem);
}

.hero-copy {
  margin: 22px 0 0;
  max-width: 620px;
  font-size: 1.16rem;
  line-height: 1.7;
  color: var(--muted);
}

.hero-nav {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-nav a {
  text-decoration: none;
  padding: 11px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.7);
}

main {
  margin-top: 24px;
  display: grid;
  gap: 24px;
}

.panel {
  padding: 32px;
}

.section-heading {
  display: grid;
  gap: 8px;
  margin-bottom: 22px;
}

.section-heading h2 {
  font-size: clamp(2rem, 5vw, 3.2rem);
}

.post-card {
  padding: 22px 0;
  border-top: 1px solid var(--line);
}

.post-card:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.post-meta {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 0.86rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.post-card h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.post-card h3 a {
  text-decoration: none;
}

.post-card p:last-child,
.about-panel p {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.78;
  font-size: 1.04rem;
}

.site-footer {
  text-align: center;
  margin-top: 20px;
  color: var(--muted);
  font-family: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 0.85rem;
}

.article-shell {
  width: min(860px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 56px;
}

.article-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
  padding: 42px;
}

.article-card p,
.article-card li {
  line-height: 1.8;
  color: var(--muted);
  font-size: 1.05rem;
}

.article-card ul {
  padding-left: 20px;
}

.article-card code {
  font-family: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
  background: var(--accent-soft);
  color: var(--ink);
  padding: 2px 6px;
  border-radius: 8px;
}

.back-link {
  display: inline-block;
  margin-bottom: 22px;
  font-family: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
  text-decoration: none;
}

@media (max-width: 720px) {
  .page-shell,
  .article-shell {
    width: min(100% - 20px, 100%);
    padding-top: 18px;
    padding-bottom: 28px;
  }

  .hero,
  .panel,
  .article-card {
    border-radius: 20px;
    padding: 22px;
  }

  .hero-copy,
  .post-card p:last-child,
  .about-panel p,
  .article-card p,
  .article-card li {
    font-size: 1rem;
  }
}
