/* ---------------------------------------------------------------
   sage-ghost — minimal editorial Ghost theme
   --------------------------------------------------------------- */

/* Design tokens
   --------------------------------------------------------------- */
:root {
  /* Palette */
  --bg: #f7f1eb;
  --bg-soft: #efe7dc;
  --surface: #fff;
  --ink: #161311;
  --ink-soft: #4a443e;
  --ink-mute: #7a716a;
  --line: rgba(22, 19, 17, 0.08);
  --line-strong: rgba(22, 19, 17, 0.16);
  --accent: #4f7259;
  --accent-hover: #3f5d47;
  --accent-ink: #fff;
  --highlight: #f7e6c4;

  /* Typography */
  --font-serif: "Lora", Georgia, "Times New Roman", serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-display: "Lora", Georgia, serif;

  /* Scale */
  --step--2: clamp(0.69rem, 0.66rem + 0.16vw, 0.78rem);
  --step--1: clamp(0.83rem, 0.80rem + 0.19vw, 0.94rem);
  --step-0:  clamp(1rem, 0.96rem + 0.21vw, 1.13rem);
  --step-1:  clamp(1.2rem, 1.14rem + 0.32vw, 1.41rem);
  --step-2:  clamp(1.44rem, 1.34rem + 0.49vw, 1.76rem);
  --step-3:  clamp(1.73rem, 1.57rem + 0.78vw, 2.2rem);
  --step-4:  clamp(2.07rem, 1.83rem + 1.22vw, 2.75rem);
  --step-5:  clamp(2.49rem, 2.11rem + 1.89vw, 3.43rem);
  --step-6:  clamp(2.99rem, 2.42rem + 2.86vw, 4.29rem);

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 6rem;
  --space-10: 8rem;

  /* Layout */
  --container: 1240px;
  --container-narrow: 720px;
  --container-prose: 850px;
  --container-wide: 1440px;
  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 18px;
  --radius-pill: 999px;

  /* Motion */
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --dur: 200ms;
}

/* Reset + base
   --------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html, body { height: 100%; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  font-size: var(--step-0);
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; transition: color var(--dur) var(--ease); }
a:hover { color: var(--accent); }
::selection { background: var(--accent); color: #fff; }
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--ink);
}
h1 { font-size: var(--step-5); }
h2 { font-size: var(--step-4); }
h3 { font-size: var(--step-2); }
h4 { font-size: var(--step-1); }

/* Layout primitives
   --------------------------------------------------------------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--space-6); }
.container--narrow { max-width: var(--container-narrow); }
.container--wide { max-width: var(--container-wide); }

.eyebrow {
  font-family: var(--font-sans);
  font-size: var(--step--2);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.divider {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 0 0 var(--space-7) 0;
}

/* Buttons
   --------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.75em 1.4em;
  font-family: var(--font-sans);
  font-size: var(--step--1);
  font-weight: 500;
  line-height: 1;
  border-radius: var(--radius-pill);
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease), transform var(--dur) var(--ease);
  white-space: nowrap;
}
.btn:hover { color: inherit; transform: translateY(-1px); }
.btn--primary { background: var(--accent); color: var(--accent-ink); }
.btn--primary:hover { background: var(--accent-hover); color: var(--accent-ink); }
.btn--ghost { background: transparent; color: var(--ink); border: 1px solid var(--line-strong); }
.btn--ghost:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

/* Icon button */
.icon-btn {
  width: 40px; height: 40px;
  display: inline-grid; place-items: center;
  border-radius: var(--radius-pill);
  color: var(--ink);
  transition: background var(--dur) var(--ease);
}
.icon-btn:hover { background: var(--bg-soft); color: var(--ink); }
.icon-btn svg { width: 20px; height: 20px; }

/* Header
   --------------------------------------------------------------- */
.site-header {
  padding: var(--space-5) 0;
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  transition: box-shadow var(--dur) var(--ease);
}
.site-header.is-scrolled {
  box-shadow: 0 1px 0 var(--line);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
}
.site-logo {
  font-family: var(--font-display);
  font-size: var(--step-3);
  font-weight: 600;
  font-style: italic;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.site-logo img { max-height: 36px; width: auto; }

.site-nav {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.site-nav__list {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  list-style: none;
  padding: 0;
  margin: 0 var(--space-5) 0 0;
}
.site-nav__list a {
  font-size: var(--step--1);
  font-weight: 500;
  color: var(--ink);
}
.site-nav__list a:hover { color: var(--accent); }

.menu-toggle { display: none; }

@media (max-width: 860px) {
  .site-nav__list { display: none; }
  .menu-toggle {
    display: inline-grid;
    width: 40px; height: 40px;
    place-items: center;
    border-radius: var(--radius-pill);
  }
  .menu-toggle:hover { background: var(--bg-soft); }
  .site-nav.is-open .site-nav__list {
    display: flex;
    position: absolute;
    top: 100%; right: var(--space-6);
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-3);
    padding: var(--space-5);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    margin: 0;
    box-shadow: 0 12px 40px rgba(0,0,0,0.08);
  }
}

/* Hero
   --------------------------------------------------------------- */
.hero {
  padding: var(--space-8) 0 var(--space-5);
}
.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--space-7);
  align-items: end;
}
.hero__title {
  font-size: var(--step-6);
  max-width: 18ch;
  margin-bottom: var(--space-4);
}
.hero__desc {
  font-size: var(--step-1);
  color: var(--ink-soft);
  max-width: 55ch;
}
.hero__aside {
  width: 100%;
  max-width: 420px;
  justify-self: end;
  align-self: end;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding-bottom: var(--space-2);
}
.hero__cta-text {
  font-size: var(--step--1);
  color: var(--ink-soft);
  line-height: 1.5;
  margin: 0;
}
.hero__aside .subscribe-form { width: 100%; }

@media (max-width: 800px) {
  .hero__inner {
    grid-template-columns: 1fr;
    gap: var(--space-6);
    align-items: stretch;
  }
  .hero__aside { justify-self: stretch; max-width: 460px; padding-bottom: 0; }
}

/* Newsletter form
   --------------------------------------------------------------- */
/* The form is a column container. The visible pill is an inner row.
   Ghost's portal script can mutate the form (add success/error state)
   without distorting the pill shape.
   The !important on padding overrides Ghost's injected
   padding: 128px 0 on .error/.success states. */
form.subscribe-form,
form.subscribe-form.error,
form.subscribe-form.success {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  max-width: 460px;
  width: 100%;
  padding: 0 !important;
  margin: 0 !important;
}
.subscribe-form__pill {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: 6px;
  background: var(--surface);
  border-radius: 999px;
  height: 56px;
  box-sizing: border-box;
  box-shadow: 0 1px 0 rgba(0,0,0,0.04), 0 8px 24px rgba(0,0,0,0.05);
}
.subscribe-form input[type="email"] {
  flex: 1 1 auto;
  min-width: 0;
  height: 100%;
  padding: 0 var(--space-4);
  font: inherit;
  font-size: var(--step--1);
  background: transparent;
  border: 0;
  color: var(--ink);
}
.subscribe-form input[type="email"]::placeholder { color: var(--ink-mute); }
.subscribe-form input[type="email"]:focus { outline: none; }
.subscribe-form__pill input[type="email"]:-webkit-autofill,
.subscribe-form__pill input[type="email"]:-webkit-autofill:hover,
.subscribe-form__pill input[type="email"]:-webkit-autofill:focus,
.subscribe-form__pill input[type="email"]:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 100px var(--surface) inset !important;
  -webkit-text-fill-color: var(--ink) !important;
  caret-color: var(--ink);
  transition: background-color 9999s ease-in-out 0s;
}
.subscribe-form button { flex: 0 0 auto; }

.subscribe-form__msg {
  font-size: var(--step--2);
  line-height: 1.4;
  padding: 0 var(--space-4);
  color: var(--ink-soft);
}
.subscribe-form__msg:empty { display: none; }
.subscribe-form [data-members-error] { color: #b54a32; }
.subscribe-form:not(.success) [data-members-success] { display: none; }

.subscribe-form__inbox {
  padding: 0 var(--space-4);
}
.subscribe-form__inbox a {
  display: inline-flex;
  align-items: center;
  gap: 0.3em;
  font-size: var(--step--1);
  font-weight: 500;
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.subscribe-form__inbox a:hover { color: var(--accent-hover); }

/* Post grid
   --------------------------------------------------------------- */
.post-feed {
  display: grid;
  gap: var(--space-7) var(--space-6);
  grid-template-columns: repeat(3, 1fr);
  padding-bottom: var(--space-8);
}
.post-feed > .post-card--featured { grid-column: 1 / -1; }

@media (max-width: 960px) {
  .post-feed { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .post-feed { grid-template-columns: 1fr; gap: var(--space-7); }
}

/* Post card
   --------------------------------------------------------------- */
.post-card { display: flex; flex-direction: column; gap: var(--space-4); }
.post-card__media {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--bg-soft);
}
.post-card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 600ms var(--ease);
}
.post-card:hover .post-card__media img { transform: scale(1.03); }

.post-card__meta {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
  font-size: var(--step--2);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
  font-weight: 600;
}
.post-card__meta .dot { opacity: 0.4; }
.post-card__meta a:hover { color: var(--accent); }

.post-card__title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: var(--step-2);
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.post-card__title a { background-image: linear-gradient(currentColor, currentColor); background-position: 0 100%; background-repeat: no-repeat; background-size: 0% 1px; transition: background-size 300ms var(--ease); }
.post-card__title a:hover { background-size: 100% 1px; color: var(--ink); }

.post-card__excerpt {
  color: var(--ink-soft);
  font-size: var(--step-0);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.post-card__byline {
  font-size: var(--step--2);
  color: var(--ink-soft);
  margin-top: var(--space-2);
}
.post-card__byline a { font-weight: 600; color: var(--ink); }
.post-card--featured .post-card__byline { margin-top: var(--space-4); }

/* Featured card (first post on homepage) */
.post-card--featured {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
  gap: var(--space-7);
}
.post-card--featured .post-card__media { aspect-ratio: 5 / 4; border-radius: var(--radius-lg); }
.post-card--featured .post-card__title { font-size: var(--step-4); }
.post-card--featured .post-card__excerpt { font-size: var(--step-1); -webkit-line-clamp: 4; }

@media (max-width: 800px) {
  .post-card--featured { grid-template-columns: 1fr; gap: var(--space-5); }
  .post-card--featured .post-card__title { font-size: var(--step-3); }
}

/* Tag pill on cards */
.tag-pill {
  display: inline-block;
  font-size: var(--step--2);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Pagination
   --------------------------------------------------------------- */
.pagination {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-7) 0 var(--space-8);
}
.pagination__count {
  font-size: var(--step--1);
  color: var(--ink-soft);
}

/* Popular tags grid (footer-of-home) */
.tag-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-4);
  padding: var(--space-7) 0;
}
.tag-grid__item {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-soft);
}
.tag-grid__item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 600ms var(--ease);
}
.tag-grid__item:hover img { transform: scale(1.05); }
.tag-grid__label {
  position: absolute;
  left: 50%; bottom: var(--space-4);
  transform: translateX(-50%);
  padding: 0.5em 1.1em;
  background: #fff;
  color: var(--ink);
  font-size: var(--step--2);
  font-weight: 600;
  letter-spacing: 0.06em;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}

@media (max-width: 860px) { .tag-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 520px) { .tag-grid { grid-template-columns: repeat(2, 1fr); } }

/* Section header (with eyebrow + line) */
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  padding-top: var(--space-7);
  border-top: 1px solid var(--line);
  margin-bottom: var(--space-5);
}

/* Footer
   --------------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: var(--space-8) 0 var(--space-6);
}
.site-footer--minimal { padding: var(--space-5) 0; }
.site-footer--minimal .site-footer__bottom { border: 0; padding: 0; }
.site-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(auto-fit, minmax(140px, 1fr));
  gap: var(--space-6);
  margin-bottom: var(--space-7);
}
.site-footer__brand { max-width: 360px; }
.site-footer__tagline {
  color: var(--ink-soft);
  margin: var(--space-3) 0 var(--space-5);
  font-size: var(--step--1);
  line-height: 1.6;
}
.site-footer__col h4 {
  font-family: var(--font-sans);
  font-size: var(--step--1);
  font-weight: 600;
  margin-bottom: var(--space-3);
}
.site-footer__col ul { list-style: none; padding: 0; display: grid; gap: var(--space-2); }
.site-footer__col a {
  font-size: var(--step--1);
  color: var(--ink-soft);
}
.site-footer__col a:hover { color: var(--accent); }

.site-footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--line);
  padding-top: var(--space-5);
  font-size: var(--step--2);
  color: var(--ink-soft);
}

@media (max-width: 860px) {
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .site-footer__brand { grid-column: 1 / -1; max-width: none; }
}

/* Post page — split header
   --------------------------------------------------------------- */
.post-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
  align-items: center;
  padding: var(--space-7) 0 var(--space-8);
}
.post-hero__text { max-width: 30rem; }
.post-hero__meta {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--step--2);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: var(--space-5);
}
.post-hero__title {
  font-size: var(--step-5);
  margin-bottom: var(--space-5);
}
.post-hero__excerpt {
  color: var(--ink-soft);
  font-size: var(--step-1);
  margin-bottom: var(--space-5);
}
.post-hero__byline {
  display: flex;
  gap: var(--space-3);
  align-items: center;
  font-size: var(--step--1);
}
.post-hero__byline a { font-weight: 600; }
.post-hero__byline .read-time { color: var(--ink-soft); }

.post-hero__media {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-soft);
}
.post-hero__media img { width: 100%; height: 100%; object-fit: cover; }

.post-hero__caption {
  text-align: right;
  font-size: var(--step--2);
  color: var(--ink-soft);
  margin-top: var(--space-2);
}

@media (max-width: 800px) {
  .post-hero { grid-template-columns: 1fr; padding-top: var(--space-5); gap: var(--space-6); }
  .post-hero__media { aspect-ratio: 4 / 3; }
  .post-hero__title { font-size: var(--step-4); }
}

/* Post content (prose)
   --------------------------------------------------------------- */
.prose {
  max-width: var(--container-prose);
  margin: 0 auto;
  padding: var(--space-6) 0;
  font-size: var(--step-1);
  line-height: 1.75;
  color: var(--ink);
}
.prose > * + * { margin-top: 1.25em; }
.prose h2 { font-size: var(--step-3); margin-top: 2em; }
.prose h3 { font-size: var(--step-2); margin-top: 1.8em; }
.prose p { color: var(--ink); }
.prose a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.prose a:hover { color: var(--accent-hover); }
.prose blockquote {
  border-left: 3px solid var(--accent);
  padding-left: var(--space-5);
  font-family: var(--font-serif);
  font-size: var(--step-2);
  font-style: italic;
  color: var(--ink-soft);
  line-height: 1.4;
}
.prose code {
  font-size: 0.92em;
  background: var(--bg-soft);
  padding: 0.15em 0.4em;
  border-radius: var(--radius-sm);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}
.prose pre {
  background: var(--ink);
  color: #f6f1ea;
  padding: var(--space-5);
  border-radius: var(--radius);
  overflow-x: auto;
  font-size: var(--step--1);
  line-height: 1.6;
}
.prose pre code { background: transparent; padding: 0; color: inherit; }
.prose img { border-radius: var(--radius); }
.prose hr { margin: var(--space-7) 0; border: 0; border-top: 1px solid var(--line); }
.prose ul, .prose ol { padding-left: 1.5em; }
.prose li + li { margin-top: 0.4em; }
.prose figure { margin: var(--space-6) 0; }
.prose figure figcaption {
  text-align: center;
  font-size: var(--step--1);
  color: var(--ink-soft);
  margin-top: var(--space-3);
}

/* Ghost card classes */
.kg-width-wide { width: min(110%, calc(100vw - 4rem)); margin-left: 50%; transform: translateX(-50%); }
.kg-width-full { width: calc(100vw - 2rem); margin-left: 50%; transform: translateX(-50%); }
.kg-bookmark-card,
.kg-bookmark-publisher { position: relative; width: 100%; }
.kg-bookmark-container {
    display: flex;
    color: var(--ink);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    text-decoration: none;
    transition: background var(--dur) var(--ease);
}
.kg-bookmark-container:hover { background: var(--bg-soft); color: var(--ink); }
.kg-bookmark-content {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    padding: var(--space-5);
    gap: var(--space-3);
}
.kg-bookmark-title { font-weight: 600; font-size: var(--step-0); line-height: 1.3; }
.kg-bookmark-description {
    color: var(--ink-soft);
    font-size: var(--step--1);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.kg-bookmark-metadata {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    margin-top: auto;
    font-size: var(--step--2);
    color: var(--ink-soft);
}
.kg-bookmark-icon { width: 18px; height: 18px; border-radius: 3px; }
.kg-bookmark-author,
.kg-bookmark-publisher { font-weight: 500; color: var(--ink-soft); }
.kg-bookmark-publisher::before { content: "·"; margin: 0 var(--space-2); opacity: 0.5; }
.kg-bookmark-thumbnail {
    flex: 0 0 30%;
    min-height: 160px;
    position: relative;
}
.kg-bookmark-thumbnail img {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
}
@media (max-width: 600px) {
    .kg-bookmark-container { flex-direction: column-reverse; }
    .kg-bookmark-thumbnail { width: 100%; min-height: 200px; }
}
.kg-callout-card { padding: var(--space-5); border-radius: var(--radius); display: flex; gap: var(--space-4); }
.kg-callout-emoji { font-size: var(--step-2); }
.kg-callout-card-grey { background: var(--bg-soft); }
.kg-callout-card-green { background: color-mix(in srgb, var(--accent) 14%, var(--bg)); }

/* Author block on post page */
.post-author {
  display: flex;
  gap: var(--space-4);
  align-items: center;
  max-width: var(--container-prose);
  margin: var(--space-8) auto 0;
  padding: var(--space-6) 0;
  border-top: 1px solid var(--line);
}
.post-author__avatar {
  width: 56px; height: 56px;
  border-radius: var(--radius-pill);
  object-fit: cover;
  flex: none;
  background: var(--bg-soft);
}
.post-author__name { font-weight: 600; }
.post-author__bio { color: var(--ink-soft); font-size: var(--step--1); margin-top: 0.2em; }

/* Related posts */
.related {
  border-top: 1px solid var(--line);
  padding: var(--space-8) 0;
}
.related__head {
  display: flex; justify-content: space-between; align-items: end;
  margin-bottom: var(--space-5);
}

/* Comments — Ghost iframe injected by {{comments}} */
.post-comments {
  max-width: var(--container-prose);
  margin: 0 auto;
  padding: var(--space-7) 0;
  border-top: 1px solid var(--line);
}

/* Newsletter callout at the end of a post */
.post-newsletter {
  border-top: 1px solid var(--line);
  padding: var(--space-8) var(--space-5);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-3);
}
.post-newsletter .subscribe-form { align-items: stretch; }
.post-newsletter__text {
  color: var(--ink-soft);
  font-size: var(--step-0);
  max-width: 42ch;
  margin: 0;
}

/* Tag / author archive header */
.archive-head {
  padding: var(--space-8) 0;
  text-align: center;
  border-bottom: 1px solid var(--line);
  margin-bottom: var(--space-7);
}
.archive-head__eyebrow { margin-bottom: var(--space-3); }
.archive-head__title { font-size: var(--step-5); margin-bottom: var(--space-4); }
.archive-head__bio { color: var(--ink-soft); max-width: 50ch; margin: 0 auto; }
.archive-head__avatar {
  width: 96px; height: 96px;
  border-radius: var(--radius-pill);
  object-fit: cover;
  margin: 0 auto var(--space-4);
  border: 1px solid var(--line);
}

/* Error page */
.error {
  text-align: center;
  padding: var(--space-10) 0;
}
.error__code {
  font-family: var(--font-serif);
  font-size: clamp(6rem, 18vw, 12rem);
  line-height: 1;
  color: var(--accent);
  margin-bottom: var(--space-4);
}

/* Utilities */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.hidden { display: none !important; }
