:root {
  --bg: #f7f5ef;
  --surface: #ffffff;
  --surface-soft: #f0ede5;
  --text: #222426;
  --muted: #66706b;
  --border: #ded9ce;
  --accent: #2f6f73;
  --accent-strong: #1f5558;
  --accent-soft: #dcebec;
  --shadow: 0 18px 45px rgba(46, 43, 36, 0.08);
  --max: 1120px;
}

* {
  box-sizing: border-box;
}

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

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

img {
  display: block;
  max-width: 100%;
}

code {
  background: var(--surface-soft);
  border-radius: 6px;
  color: #39413d;
  font-size: 0.9em;
  padding: 0.1rem 0.35rem;
}

.site-header {
  align-items: center;
  background: rgba(247, 245, 239, 0.9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: 2rem;
  justify-content: space-between;
  padding: 1rem max(1.25rem, calc((100vw - var(--max)) / 2));
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand {
  color: var(--text);
  font-size: 1rem;
  font-weight: 750;
  text-decoration: none;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  justify-content: flex-end;
}

.site-nav a {
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.95rem;
  padding: 0.35rem 0.75rem;
  text-decoration: none;
}

.site-nav a[aria-current="page"],
.site-nav a:hover {
  background: var(--accent-soft);
  color: var(--accent-strong);
}

main {
  margin: 0 auto;
  max-width: var(--max);
  padding: 4rem 1.25rem 5rem;
}

.hero {
  align-items: center;
  display: grid;
  gap: 3rem;
  grid-template-columns: minmax(0, 1.45fr) minmax(260px, 0.55fr);
  min-height: calc(100vh - 10rem);
}

.hero-copy {
  max-width: 760px;
}

.eyebrow {
  color: var(--accent-strong);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0;
  margin: 0 0 0.65rem;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-size: clamp(2.8rem, 7vw, 5.4rem);
  line-height: 0.98;
  margin-bottom: 1.4rem;
}

h2 {
  font-size: clamp(1.45rem, 3vw, 2.15rem);
  line-height: 1.12;
  margin-bottom: 0.75rem;
}

.hero p,
.page-title p,
.section-heading p {
  color: var(--muted);
  max-width: 760px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.button {
  align-items: center;
  background: var(--text);
  border: 1px solid var(--text);
  border-radius: 999px;
  color: #fff;
  display: inline-flex;
  font-weight: 750;
  min-height: 2.65rem;
  padding: 0.45rem 1rem;
  text-decoration: none;
}

.button:nth-child(n+2) {
  background: transparent;
  color: var(--text);
}

.portrait {
  margin: 0;
}

.portrait img {
  aspect-ratio: 4 / 5;
  border: 10px solid var(--surface);
  border-radius: 28px;
  box-shadow: var(--shadow);
  object-fit: cover;
}

.section,
.page-title {
  padding: 4rem 0 0;
}

.section-heading {
  margin-bottom: 1.5rem;
}

.grid {
  display: grid;
  gap: 1rem;
}

.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.split {
  display: grid;
  gap: 2rem;
  grid-template-columns: minmax(220px, 0.65fr) minmax(0, 1.35fr);
}

.stack {
  display: grid;
  gap: 1rem;
}

.card,
.reading {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(46, 43, 36, 0.04);
}

.card {
  padding: 1.35rem;
}

.card h2 {
  font-size: 1.2rem;
}

.card h2 a {
  color: var(--text);
  text-decoration: none;
}

.card h2 a:hover {
  color: var(--accent-strong);
}

.card-meta,
.byline {
  color: var(--muted);
  font-size: 0.9rem;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
}

.tags li {
  background: var(--accent-soft);
  border-radius: 999px;
  color: var(--accent-strong);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
}

.reading-list {
  display: grid;
  gap: 1rem;
}

.article {
  margin: 0 auto;
  max-width: 860px;
}

.article-header {
  border-bottom: 1px solid var(--border);
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
}

.article-header h1 {
  font-size: clamp(2.25rem, 6vw, 4.2rem);
}

.article-meta {
  color: var(--muted);
}

.article-body {
  color: #2b2f2d;
}

.article-body h2,
.article-body h3 {
  margin-top: 2.75rem;
}

.article-body p,
.article-body li {
  font-size: 1.03rem;
}

.article-body ol {
  padding-left: 1.4rem;
}

.article-body strong {
  color: var(--text);
}

.article-figure {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  margin: 2rem 0;
  padding: 0.75rem;
}

.article-figure img {
  border-radius: 8px;
  margin: 0 auto;
}

.article-figure figcaption {
  color: var(--muted);
  font-size: 0.92rem;
  padding: 0.75rem 0.25rem 0.15rem;
  text-align: center;
}

.comments {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  margin: 4rem auto 0;
  max-width: 860px;
  padding: 1.5rem;
}

.comments[hidden] {
  display: none;
}

.comments-header {
  align-items: flex-start;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
}

.comments-auth {
  align-items: center;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 0.9rem;
  gap: 0.6rem;
  justify-content: flex-end;
}

.comments button,
.comments-form button {
  background: var(--text);
  border: 1px solid var(--text);
  border-radius: 999px;
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 750;
  padding: 0.45rem 0.8rem;
}

.comments-list {
  display: grid;
  gap: 0.85rem;
  margin: 1rem 0;
}

.comment {
  border-top: 1px solid var(--border);
  padding-top: 0.85rem;
}

.comment-author {
  align-items: center;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 0.9rem;
  gap: 0.5rem;
}

.comment-author img {
  border-radius: 999px;
  height: 28px;
  width: 28px;
}

.comment p {
  margin: 0.6rem 0;
  white-space: pre-wrap;
}

.comment-delete {
  background: transparent !important;
  color: var(--text) !important;
}

.comments-form {
  display: grid;
  gap: 0.6rem;
}

.comments-form textarea {
  border: 1px solid var(--border);
  border-radius: 10px;
  font: inherit;
  min-height: 7rem;
  padding: 0.75rem;
  resize: vertical;
}

.reading {
  display: grid;
  gap: 2rem;
  grid-template-columns: minmax(220px, 0.65fr) minmax(0, 1.35fr);
  padding: 1.5rem;
}

.notes p:last-child,
.card p:last-child,
.page-title p:last-child {
  margin-bottom: 0;
}

.site-footer {
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0 auto;
  max-width: var(--max);
  padding: 2rem 1.25rem 3rem;
}

.site-footer p {
  margin-bottom: 0.35rem;
}

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

  main {
    padding-top: 2rem;
  }

  .hero,
  .grid.two,
  .grid.three,
  .split,
  .reading {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 0;
  }

  .portrait {
    max-width: 320px;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 16px;
  }

  .site-nav {
    width: 100%;
  }

  .site-nav a {
    padding-left: 0.55rem;
    padding-right: 0.55rem;
  }

  h1 {
    font-size: 2.65rem;
  }
}
