/* ==========================================================================
   Sarah Frantz — 90s Memphis-zine Ghost theme
   Flat color blocking, diagonal cuts, halftone texture, groovy type.
   ========================================================================== */

:root {
  /* Palette */
  --ink: #0a0a0a;
  --paper: #fffdf8;
  --pink: #ff2b87;
  --lime: #ddf21a;
  --teal: #51cdbc;
  --lavender: #cdb6f6;
  --lavender-ink: #6b4fc9;
  --line: #e8e3d8;
  --white: #ffffff;

  /* Selectable accent (overridden per @custom.accent_color) */
  --accent: var(--pink);
  --accent-ink: var(--ink);

  /* Type scale */
  --step--1: clamp(0.78rem, 0.74rem + 0.15vw, 0.88rem);
  --step-0: clamp(1rem, 0.95rem + 0.22vw, 1.125rem);
  --step-1: clamp(1.25rem, 1.1rem + 0.6vw, 1.6rem);
  --step-2: clamp(1.7rem, 1.35rem + 1.4vw, 2.35rem);
  --step-3: clamp(2.1rem, 1.6rem + 2.2vw, 3.2rem);
  --step-4: clamp(2.6rem, 1.9rem + 3.2vw, 4.4rem);

  /* Fonts */
  --font-display: var(--gh-font-heading, 'Baloo 2', 'Segoe UI Rounded', 'Arial Rounded MT Bold', sans-serif);
  --font-body: var(--gh-font-body, 'Space Grotesk', 'Segoe UI', Arial, sans-serif);
  --font-mono: 'Space Mono', 'Courier New', monospace;

  /* Structure */
  --radius-sm: 12px;
  --radius: 22px;
  --radius-pill: 999px;
  --content-max: 1360px;
  --article-max: 720px;

  --ease: cubic-bezier(0.2, 0.7, 0.3, 1);
}

[data-accent='Lime'] { --accent: var(--lime); --accent-ink: var(--ink); }
[data-accent='Teal'] { --accent: var(--teal); --accent-ink: var(--ink); }
[data-accent='Lavender'] { --accent: var(--lavender); --accent-ink: var(--ink); }
[data-accent='Pink'] { --accent: var(--pink); --accent-ink: var(--white); }

/* ==========================================================================
   Reset / base
   ========================================================================== */

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }
a:hover { opacity: 0.72; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -40px; left: 0;
  background: var(--ink);
  color: var(--paper);
  padding: 10px 16px;
  z-index: 100;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { top: 0; }

.wrap {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 64px);
}

.wrap--narrow { max-width: 1040px; }

.icon {
  width: 1em;
  height: 1em;
  display: inline-block;
  flex: none;
}

.display {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.01em;
}

.hand {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--pink);
}

/* ==========================================================================
   Decorative utilities
   ========================================================================== */

.stripe {
  height: 8px;
  background: repeating-linear-gradient(
    45deg,
    var(--pink) 0, var(--pink) 12px,
    var(--lime) 12px, var(--lime) 24px,
    var(--teal) 24px, var(--teal) 36px,
    var(--lavender) 36px, var(--lavender) 48px
  );
}

.halftone {
  background-image: radial-gradient(rgba(10, 10, 10, 0.22) 1.6px, transparent 1.7px);
  background-size: 10px 10px;
}

.dot {
  border-radius: 50%;
  pointer-events: none;
}

.ring {
  border-radius: 50%;
  border: 5px solid currentColor;
  background: transparent;
  pointer-events: none;
}

.squiggle-underline {
  display: block;
  width: 3.4em;
  margin-top: 0.25em;
  color: var(--teal);
}
.squiggle-underline svg { display: block; width: 100%; height: auto; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.eyebrow--pink { color: var(--pink); }
.eyebrow--teal { color: var(--teal); }
.eyebrow--lavender { color: var(--lavender-ink); }
.eyebrow--lime { color: #7a8300; }

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  font-family: var(--font-mono);
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-decoration: none;
  background: var(--ink);
  color: var(--paper);
  padding: 0.95em 1.5em;
  border: none;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: transform 0.15s var(--ease), opacity 0.15s var(--ease);
}
.btn:hover { opacity: 0.85; transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 2px var(--ink);
}

.btn--accent {
  background: var(--accent);
  color: var(--accent-ink);
}

/* ==========================================================================
   Site shell / top nav
   ========================================================================== */

.site {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-main { flex: 1; }

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: clamp(16px, 2vw, 24px) clamp(20px, 4vw, 64px);
}

.site-header__logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.15rem, 1rem + 0.6vw, 1.5rem);
  color: var(--ink);
}
.site-header__logo:hover { opacity: 1; }
.site-header__logo span { color: var(--pink); }

.site-header__nav { display: none; }

.site-header__nav ul {
  display: flex;
  align-items: center;
  gap: clamp(24px, 3vw, 40px);
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: var(--font-mono);
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  color: var(--ink);
  cursor: pointer;
}
.menu-toggle .icon { width: 24px; height: 24px; }

@media (min-width: 860px) {
  .site-header__nav { display: flex; }
  .menu-toggle { display: none; }
}

/* Mobile nav drawer */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: var(--ink);
  color: var(--paper);
  padding: 20px;
  transform: translateY(-100%);
  transition: transform 0.25s var(--ease);
  display: flex;
  flex-direction: column;
}
.mobile-nav[data-open='true'] { transform: translateY(0); }

.mobile-nav__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 40px;
}
.mobile-nav__header .display { color: var(--paper); font-size: 1.4rem; }

.mobile-nav__close {
  width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  background: none; border: none; color: var(--paper); cursor: pointer;
}
.mobile-nav__close .icon { width: 24px; height: 24px; }

.mobile-nav__links ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2rem;
}
.mobile-nav__links a { display: block; padding: 6px 0; }

.mobile-nav__social {
  display: flex;
  gap: 20px;
  margin-top: auto;
  padding-top: 30px;
}
.mobile-nav__social .icon { width: 22px; height: 22px; }

@media (min-width: 860px) {
  .mobile-nav { display: none; }
}

/* ==========================================================================
   Homepage — hero
   ========================================================================== */

.hero {
  position: relative;
  padding: clamp(48px, 4vw + 24px, 96px) clamp(20px, 4vw, 64px) clamp(56px, 5vw, 88px);
  overflow: hidden;
}

.hero__blob {
  position: absolute;
  top: -80px;
  right: -60px;
  width: clamp(320px, 40vw, 620px);
  height: clamp(320px, 40vw, 620px);
  background: var(--lavender);
  clip-path: polygon(38% 0%, 100% 0%, 100% 100%, 0% 62%);
  z-index: 0;
}

.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}

@media (min-width: 860px) {
  .hero__grid { grid-template-columns: 1.15fr 1fr; }
}

.hero__title {
  font-size: var(--step-4);
  max-width: 14ch;
  margin: 0;
}

.hero__accent {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--step-2);
  color: var(--pink);
  margin-top: 0.3em;
  display: inline-flex;
  flex-direction: column;
}

.hero__intro {
  margin-top: 1.4rem;
  max-width: 38ch;
  color: #33312e;
}

.hero__cta { margin-top: 2rem; }

.hero__figure {
  position: relative;
  justify-self: center;
  width: min(90%, 380px);
  aspect-ratio: 380 / 460;
  display: none;
}

@media (min-width: 860px) {
  .hero__figure { display: block; }
}

.hero__figure-fill {
  position: absolute;
  inset: 0;
  border-radius: 50% 50% 46% 54% / 54% 46% 54% 46%;
  background-color: var(--teal);
}

.hero__figure-inner {
  position: absolute;
  inset: 7%;
  border-radius: 50%;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero__figure-inner svg { width: 40%; height: 40%; }

.hero__figure .dot--lime {
  position: absolute;
  bottom: -3%;
  right: 8%;
  width: 8%;
  aspect-ratio: 1;
  min-width: 22px;
  background: var(--lime);
  border-radius: 8px;
  transform: rotate(18deg);
}

.hero__figure .ring--pink {
  position: absolute;
  top: 3%;
  left: -7%;
  width: 8%;
  aspect-ratio: 1;
  min-width: 26px;
  color: var(--pink);
}

/* ==========================================================================
   Section headers / dark diagonal section
   ========================================================================== */

.section {
  padding-top: clamp(56px, 5vw, 96px);
  padding-bottom: clamp(56px, 5vw, 96px);
}

.section__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: clamp(28px, 3vw, 46px);
}

.section__title {
  font-size: var(--step-2);
  margin: 0;
}

.section__link {
  font-family: var(--font-mono);
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  white-space: nowrap;
  color: var(--lime);
}

.section--dark {
  position: relative;
  background: var(--ink);
  color: var(--paper);
  clip-path: polygon(0 32px, 100% 0, 100% 100%, 0 100%);
  margin-top: -32px;
  padding-top: calc(32px + clamp(56px, 5vw, 96px));
}

.section--dark .section__title { color: var(--paper); }

/* ==========================================================================
   Post grid / cards
   ========================================================================== */

.post-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 640px) {
  .post-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .post-grid--3 { grid-template-columns: repeat(3, 1fr); }
}

.post-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.2s var(--ease);
}
.post-card:hover, .post-card:focus-visible { opacity: 1; transform: translateY(-4px); }

.post-card__media {
  aspect-ratio: 16 / 11;
  overflow: hidden;
  background-color: var(--lavender);
}
.post-card__media img { width: 100%; height: 100%; object-fit: cover; }

.post-card:nth-of-type(4n + 1) .post-card__media--fallback { background-color: var(--pink); }
.post-card:nth-of-type(4n + 1) .eyebrow { color: var(--pink); }
.post-card:nth-of-type(4n + 2) .post-card__media--fallback { background-color: var(--teal); }
.post-card:nth-of-type(4n + 2) .eyebrow { color: var(--teal); }
.post-card:nth-of-type(4n + 3) .post-card__media--fallback { background-color: var(--lavender); }
.post-card:nth-of-type(4n + 3) .eyebrow { color: var(--lavender-ink); }
.post-card:nth-of-type(4n + 4) .post-card__media--fallback { background-color: var(--lime); }
.post-card:nth-of-type(4n + 4) .eyebrow { color: #7a8300; }

.post-card__body {
  padding: 24px 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.post-card__title {
  font-size: var(--step-1);
  line-height: 1.18;
  margin: 0;
}

.post-card__excerpt {
  font-size: var(--step--1);
  color: #4a4842;
  flex: 1;
  margin: 0;
}

.post-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: var(--step--1);
  color: #6b6862;
  margin-top: 0.3rem;
}

/* ==========================================================================
   Homepage — about strip
   ========================================================================== */

.intro {
  position: relative;
  background: var(--teal);
  clip-path: polygon(0 0, 100% 32px, 100% 100%, 0 calc(100% - 32px));
  margin-top: -1px;
  padding: clamp(64px, 6vw, 120px) 0;
  overflow: hidden;
}

.intro__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
  text-align: center;
}

@media (min-width: 780px) {
  .intro__grid { grid-template-columns: 260px 1fr; text-align: left; }
}

.intro__figure {
  position: relative;
  width: clamp(170px, 22vw, 240px);
  aspect-ratio: 1;
  justify-self: center;
}

.intro__figure-fill {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background-color: var(--lavender);
}

.intro__figure-inner {
  position: absolute;
  inset: 7%;
  border-radius: 50%;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
}
.intro__figure-inner svg { width: 38%; height: 38%; }

.intro__title {
  font-size: var(--step-2);
  margin: 0 0 10px;
}

.intro__body {
  max-width: 48ch;
  margin: 0 0 24px;
  color: #16332f;
}

@media (min-width: 780px) {
  .intro__body { margin-left: 0; margin-right: 0; }
}

.intro .dot--pink { position: absolute; top: 12%; left: 8%; width: 16px; height: 16px; border-radius: 50%; background: var(--pink); }
.intro .dot--lime { position: absolute; bottom: 14%; right: 10%; width: 20px; height: 20px; border-radius: 50%; background: var(--lime); }
.intro .dot--ink { position: absolute; bottom: 20%; left: 14%; width: 10px; height: 10px; border-radius: 50%; background: var(--ink); opacity: 0.45; }

/* Collection page header (tag / author) reusing the "intro" band */

.intro--tag { background: var(--tag-color, var(--accent)); }

.intro__blob {
  position: absolute;
  top: -30px;
  right: -30px;
  width: clamp(220px, 28vw, 360px);
  height: clamp(220px, 28vw, 360px);
  background: rgba(255, 255, 255, 0.18);
  clip-path: polygon(30% 0%, 100% 0%, 100% 100%, 0% 65%);
  z-index: 0;
  pointer-events: none;
}

.intro--tag .intro__figure .ring--pink,
.intro--tag .intro__figure .dot--lime {
  position: absolute;
}
.intro--tag .intro__figure .ring--pink {
  top: 3%;
  left: -8%;
  width: 22%;
  aspect-ratio: 1;
  min-width: 24px;
  color: var(--white);
}
.intro--tag .intro__figure .dot--lime {
  bottom: -4%;
  right: 6%;
  width: 16%;
  aspect-ratio: 1;
  min-width: 20px;
  background: var(--lime);
  border-radius: 8px;
  transform: rotate(18deg);
}

.intro--tag .intro__figure-fill,
.intro--collection .intro__figure-fill {
  background-color: var(--white);
  opacity: 0.9;
}

.intro--tag .intro__figure-inner,
.intro--collection .intro__figure-inner {
  background: var(--ink);
}

.intro--tag .intro__figure-inner svg,
.intro--collection .intro__figure-inner svg {
  color: var(--white);
  width: 36%;
  height: 36%;
}

.intro__eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink);
  opacity: 0.55;
}

.intro__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: var(--step--1);
  color: #1a1a18;
}
.intro__meta a { color: var(--pink); font-weight: 700; }
.intro__meta span { display: inline-flex; align-items: center; gap: 0.4em; }
.intro__meta .icon { width: 0.9em; height: 0.9em; }

@media (max-width: 779px) { .intro__meta { justify-content: center; } }

/* ==========================================================================
   Newsletter
   ========================================================================== */

.newsletter {
  background: var(--lavender);
  padding: clamp(40px, 4vw, 60px) 0;
}

.newsletter__inner {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

@media (min-width: 780px) {
  .newsletter__inner { flex-direction: row; align-items: center; justify-content: space-between; }
}

.newsletter__intro {
  display: flex;
  align-items: center;
  gap: 20px;
}

.newsletter__illustration {
  flex: none;
  width: clamp(56px, 6vw, 72px);
  height: clamp(56px, 6vw, 72px);
}
.newsletter__illustration svg { width: 100%; height: 100%; }

.newsletter__heading {
  font-size: var(--step-1);
  margin: 0 0 6px;
}

.newsletter__copy {
  max-width: 46ch;
  font-size: var(--step--1);
  margin: 0;
  color: #2a2338;
}

.newsletter__form-wrap {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: none;
  width: 100%;
}

@media (min-width: 780px) {
  .newsletter__form-wrap { width: 460px; }
}

.newsletter-form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

@media (max-width: 539px) {
  .newsletter-form { flex-direction: column; }
}

.newsletter-form input[type='email'] {
  flex: 1;
  min-width: 0;
  padding: 0.9em 1.1em;
  border: none;
  border-radius: var(--radius-pill);
  background: var(--white);
  font-family: var(--font-body);
  font-size: var(--step--1);
  transition: opacity 0.15s var(--ease);
}

.newsletter-form button { flex: none; }

.newsletter-form.loading input[type='email'],
.newsletter-form.loading button {
  opacity: 0.6;
  pointer-events: none;
}

.newsletter-form__msg {
  display: none;
  width: 100%;
  font-family: var(--font-mono);
  font-size: var(--step--1);
}

.newsletter-form__msg--error { color: var(--pink); font-weight: 700; }
.newsletter-form__msg--success { color: #16332f; font-weight: 700; margin: 0; }

.newsletter-form.error .newsletter-form__msg--error { display: block; }

.newsletter-form.success { display: none; }
.newsletter-form.success ~ .newsletter-form__msg--success { display: block; }

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(48px, 5vw, 64px) 0 32px;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  padding-bottom: 40px;
}

@media (min-width: 640px) {
  .site-footer__grid { grid-template-columns: repeat(3, 1fr) auto; align-items: start; }
}

.site-footer__col h3 {
  font-family: var(--font-mono);
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--lime);
  margin: 0 0 14px;
}

.site-footer__col:nth-of-type(2) h3 { color: var(--teal); }

.site-footer__col nav ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: var(--step--1);
}

.site-footer__social {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: var(--step--1);
}

.site-footer__brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

@media (min-width: 640px) {
  .site-footer__brand { align-items: flex-end; }
}

.site-footer__mark {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--pink);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 16px;
}

.site-footer__tagline {
  font-family: var(--font-mono);
  font-size: var(--step--1);
  color: #d8d4c9;
  margin: 0;
}

@media (min-width: 640px) {
  .site-footer__tagline { text-align: right; }
}

.site-footer__bottom {
  font-family: var(--font-mono);
  font-size: var(--step--1);
  color: #9a9689;
  text-align: center;
  margin: 24px 0 0;
}

/* ==========================================================================
   Generic page header (post index, tag index, tag, author, error)
   ========================================================================== */

.page-header {
  padding: clamp(48px, 4vw, 80px) 0 clamp(36px, 3vw, 56px);
}

.page-header__title {
  font-size: var(--step-3);
  margin: 0.3em 0 0;
}

.page-header__desc {
  margin-top: 14px;
  max-width: 56ch;
  color: #4a4842;
}

.page-header--centered {
  text-align: center;
  padding-bottom: clamp(16px, 1.5vw, 24px);
}
.page-header--centered .squiggle-underline { margin-left: auto; margin-right: auto; }

/* ==========================================================================
   Post template
   ========================================================================== */

.post-header { padding-bottom: 8px; }

.post-header__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
  margin-top: 20px;
}

@media (min-width: 780px) {
  .post-header__grid { grid-template-columns: 1.2fr 1fr; }
}

.post-header__title { font-size: var(--step-3); margin: 10px 0 0; }

.post-header__figure {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
}
.post-header__figure img { width: 100%; height: 100%; object-fit: cover; }

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-family: var(--font-mono);
  font-size: var(--step--1);
  color: #6b6862;
  margin-top: 18px;
}
.post-meta__item { display: inline-flex; align-items: center; gap: 0.5em; }
.post-meta__item .icon { width: 0.95em; height: 0.95em; }
.post-meta a { color: var(--ink); }

.post-body { padding: clamp(40px, 4vw, 64px) clamp(20px, 4vw, 64px) clamp(56px, 5vw, 80px); }

.post-content {
  max-width: var(--article-max);
  margin: 0 auto;
}

.gh-content { font-size: 1.08rem; line-height: 1.75; color: #211f1c; }
.gh-content > * + * { margin-top: 1.5em; }
.gh-content h2, .gh-content h3 { font-family: var(--font-display); font-weight: 800; line-height: 1.15; margin-top: 1.8em; }
.gh-content h2 { font-size: var(--step-2); }
.gh-content h3 { font-size: var(--step-1); }
.gh-content a { color: var(--pink); text-decoration: underline; text-underline-offset: 3px; }
.gh-content blockquote {
  margin: 0;
  padding-left: 1.4em;
  border-left: 5px solid var(--teal);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--step-1);
  color: var(--ink);
}
.gh-content img { border-radius: var(--radius-sm); }

.gh-content .kg-image-card {
  width: 100vw;
  max-width: 960px;
  margin-left: 50%;
  transform: translateX(-50%);
}

.gh-content .kg-width-wide {
  width: 100vw;
  max-width: 1200px;
  margin-left: 50%;
  transform: translateX(-50%);
}

.gh-content .kg-width-full {
  width: 100vw;
  max-width: none;
  margin-left: 50%;
  transform: translateX(-50%);
}
.gh-content .kg-width-full img { border-radius: 0; }
.gh-content code {
  font-family: var(--font-mono);
  background: var(--line);
  padding: 0.15em 0.4em;
  border-radius: 6px;
  font-size: 0.9em;
}
.gh-content pre {
  background: var(--ink);
  color: var(--paper);
  padding: 1.2em;
  border-radius: var(--radius-sm);
  overflow-x: auto;
}
.gh-content pre code { background: none; padding: 0; }
.gh-content ul, .gh-content ol { padding-left: 1.4em; }

.share {
  max-width: var(--article-max);
  margin: clamp(48px, 4vw, 64px) auto 0;
  padding-top: 32px;
  border-top: 2px solid var(--line);
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.share__label {
  font-family: var(--font-mono);
  font-size: var(--step--1);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.share__links { display: flex; gap: 14px; }
.share__links a {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--line);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--ink);
}
.share__links a:hover { background: var(--accent); color: var(--accent-ink); opacity: 1; }
.share__links .icon { width: 18px; height: 18px; }

.post-comments {
  max-width: var(--article-max);
  margin: 48px auto 0;
}

/* ==========================================================================
   Page template
   ========================================================================== */

.page-content {
  max-width: var(--article-max);
  margin: 0 auto;
  padding: clamp(8px, 1vw, 16px) clamp(20px, 4vw, 64px) clamp(56px, 5vw, 80px);
}
.page-content > * + * { margin-top: 1.5em; }

/* ==========================================================================
   Tag index / tag / author
   ========================================================================== */

.tag-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
@media (min-width: 640px) { .tag-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .tag-grid { grid-template-columns: repeat(3, 1fr); } }

.tag-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--white);
  border-radius: var(--radius);
  padding: 22px;
}
.tag-card__icon {
  width: 42px; height: 42px; flex: none;
  border-radius: 50%;
  background: var(--lavender);
  display: flex; align-items: center; justify-content: center;
  color: var(--ink);
}
.tag-card__icon .icon { width: 18px; height: 18px; }
.tag-card__name { display: block; font-size: var(--step-1); }
.tag-card__count { display: block; font-family: var(--font-mono); font-size: var(--step--1); color: #6b6862; margin-top: 2px; }
.tag-card__link {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: var(--step--1);
  font-weight: 700;
  text-transform: uppercase;
  color: var(--pink);
  display: none;
  align-items: center;
  gap: 0.4em;
  white-space: nowrap;
}
@media (min-width: 900px) { .tag-card__link { display: inline-flex; } }

.tag-cta {
  margin-top: 56px;
  background: var(--teal);
  border-radius: var(--radius);
  padding: clamp(32px, 3vw, 44px);
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
}
@media (min-width: 700px) { .tag-cta { flex-direction: row; align-items: center; justify-content: space-between; } }
.tag-cta p { margin: 6px 0 0; color: #16332f; }

.about-links { margin-top: 40px; }
.about-links__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 18px;
}
@media (min-width: 700px) { .about-links__grid { grid-template-columns: repeat(2, 1fr); } }
.about-card {
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.about-card__icon { width: 28px; height: 28px; color: var(--pink); }
.about-card__title { font-family: var(--font-display); font-weight: 700; font-size: var(--step-0); }
.about-card__excerpt { font-size: var(--step--1); color: #6b6862; }
.about-card__link {
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: var(--step--1);
  color: var(--pink);
  display: inline-flex; align-items: center; gap: 0.4em;
}

/* ==========================================================================
   Error page
   ========================================================================== */

.error-page {
  padding-top: clamp(80px, 10vw, 140px);
  padding-bottom: clamp(80px, 10vw, 140px);
  text-align: center;
}
.error-page .icon { width: 40px; height: 40px; color: var(--pink); }
.error-page__code {
  font-size: clamp(4rem, 12vw, 8rem);
  margin: 10px 0 0;
  color: var(--lavender-ink);
}
.error-page p { max-width: 46ch; margin: 14px auto 0; color: #4a4842; }
.error-page .btn { margin-top: 28px; }

/* ==========================================================================
   Pagination
   ========================================================================== */

.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 56px;
  font-family: var(--font-mono);
  font-size: var(--step--1);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.pagination a { display: inline-flex; align-items: center; gap: 0.5em; }
.pagination__page { color: #6b6862; }
