/* Tripsi Ghost theme v2 — blog mockup layout */

@font-face {
  font-family: 'Fredoka';
  src: url('../fonts/Fredoka-Light.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Fredoka';
  src: url('../fonts/Fredoka-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Fredoka';
  src: url('../fonts/Fredoka-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Fredoka';
  src: url('../fonts/Fredoka-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Fredoka';
  src: url('../fonts/Fredoka-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --background: #ffffff;
  --foreground: #1c1c1c;
  --muted: #f5f5f5;
  --muted-foreground: #7d7d7d;
  --border: #ececec;
  --brand: #ff0026;
  --brand-foreground: #ffffff;
  --brand-soft: #fff1f3;
  --secondary: #29db6b;
  --ring: #ff0026;
  --radius: 1rem;
  --font-display: 'Fredoka', ui-rounded, system-ui, sans-serif;
  --font-sans: -apple-system, BlinkMacSystemFont, 'SF Pro Text', system-ui, 'Segoe UI', sans-serif;
  --gh-font-heading: var(--font-display);
  --gh-font-body: var(--font-sans);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --max: 72rem;
  --content: 42rem;
  --header-h: 4.5rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--gh-font-body);
  font-size: 1.05rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

::selection {
  background: var(--brand);
  color: var(--brand-foreground);
}

h1,
h2,
h3 {
  font-family: var(--gh-font-heading);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.12;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 100;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  background: var(--brand);
  color: var(--brand-foreground);
}
.skip-link:focus {
  top: 1rem;
}

/* —— Ghost announcement bar (injected by {{ghost_head}}) —— */

#announcement-bar-root {
  position: relative;
  z-index: 60;
  width: 100%;
}

#announcement-bar-root:empty {
  display: none;
}

#announcement-bar-root .gh-announcement-bar {
  font-family: var(--font-sans) !important;
  font-weight: 560;
  letter-spacing: -0.01em;
}

#announcement-bar-root .gh-announcement-bar.accent {
  background-color: var(--brand) !important;
  color: var(--brand-foreground) !important;
}

#announcement-bar-root .gh-announcement-bar a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

/* —— Header —— */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in oklab, var(--background) 88%, transparent);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 10px 30px -24px rgba(0, 0, 0, 0.35);
}

.site-header__inner {
  display: grid;
  grid-template-columns: minmax(0, auto) minmax(0, 1fr) minmax(0, auto);
  align-items: center;
  column-gap: 0.75rem;
  width: min(100% - 1.25rem, var(--max));
  margin-inline: auto;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1;
  justify-self: start;
  min-width: 0;
  z-index: 1;
}

.logo-mark {
  width: 0.95em;
  height: 0.95em;
  flex-shrink: 0;
  color: var(--brand);
}

.wordmark {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.site-nav {
  display: none;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.25rem 1.75rem;
  font-size: 0.95rem;
  color: var(--muted-foreground);
}

@media (min-width: 900px) {
  .site-nav {
    display: flex;
  }
}

.site-nav a {
  position: relative;
  padding: 0.35rem 0;
  transition: color 0.2s ease;
  white-space: nowrap;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--foreground);
}

.site-nav a.is-active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  border-radius: 999px;
  background: var(--brand);
}

.site-header__actions {
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 0.45rem;
  flex-shrink: 0;
  min-width: 0;
}

.site-header__cta-short {
  display: none;
}

@media (max-width: 899px) {
  .site-header__inner {
    grid-template-columns: auto 1fr;
    column-gap: 0.5rem;
  }

  .site-nav {
    display: none;
  }

  .site-header__actions {
    gap: 0.35rem;
  }

  .site-header__cta-full {
    display: none;
  }

  .site-header__cta-short {
    display: inline;
  }

  .site-header__actions .btn {
    max-width: none;
    padding-inline: 0.85rem;
  }
}

@media (max-width: 380px) {
  .icon-btn {
    display: none;
  }
}

@media (min-width: 900px) {
  .site-header__actions {
    gap: 0.65rem;
  }

  .site-header__actions .btn {
    max-width: none;
  }
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--background);
}

.lang-switch__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.1rem;
  height: 1.7rem;
  padding: 0 0.55rem;
  border-radius: 999px;
  color: var(--muted-foreground);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: background 0.2s ease, color 0.2s ease;
}

.lang-switch__btn:hover {
  color: var(--foreground);
}

.lang-switch__btn.is-active {
  background: var(--brand);
  color: var(--brand-foreground);
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 999px;
  color: var(--foreground);
  transition: background 0.2s ease;
}

.icon-btn:hover {
  background: var(--muted);
}

.icon-search {
  width: 1.15rem;
  height: 1.15rem;
}

/* —— Buttons —— */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: 0;
  border-radius: 999px;
  font-weight: 560;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease;
  outline: none;
}

.btn:focus-visible,
.icon-btn:focus-visible,
.circle-btn:focus-visible,
.cat-pill:focus-visible {
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--ring) 45%, transparent);
}

.btn:active {
  transform: scale(0.98);
}

.btn--sm {
  height: 2.35rem;
  padding: 0 1.05rem;
  font-size: 0.875rem;
}

.btn--md {
  height: 2.75rem;
  padding: 0 1.35rem;
  font-size: 0.95rem;
}

.btn--brand {
  background: var(--brand);
  color: var(--brand-foreground);
  box-shadow: 0 10px 24px -12px rgba(255, 0, 38, 0.55);
}

.btn--brand:hover {
  background: color-mix(in oklab, var(--brand) 90%, #000);
  transform: translateY(-1px);
}

.btn--outline {
  border: 1px solid var(--border);
  background: var(--background);
  color: var(--foreground);
}

.btn--outline:hover {
  border-color: color-mix(in oklab, var(--brand) 35%, var(--border));
}

.circle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--background);
  color: var(--foreground);
  flex-shrink: 0;
  transition: transform 0.25s var(--ease), border-color 0.2s ease, background 0.2s ease;
}

.circle-btn:hover {
  transform: translateX(2px);
  border-color: color-mix(in oklab, var(--brand) 40%, var(--border));
}

.circle-btn--on-dark {
  border-color: transparent;
  background: #fff;
  color: var(--foreground);
}

.icon-arrow {
  width: 1rem;
  height: 1rem;
}

/* —— Layout —— */

.site-main {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
  padding: 1.5rem 0 4rem;
}

@media (min-width: 768px) {
  .site-main {
    padding-top: 2rem;
  }
}

/* —— Blog hero —— */

.blog-hero {
  position: relative;
  display: grid;
  gap: 2rem;
  align-items: center;
  padding: 1.5rem 0 2.5rem;
  overflow: hidden;
}

.blog-hero::before {
  content: '';
  position: absolute;
  inset: -10% -5% auto;
  height: 120%;
  background:
    radial-gradient(ellipse 50% 40% at 70% 30%, color-mix(in oklab, var(--brand) 6%, transparent), transparent 70%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='800' height='400' fill='none'%3E%3Cpath d='M0 280c80-40 160-80 240-60s160 80 240 70 160-70 240-50 160 60 240 40' stroke='%23d4d4d4' stroke-width='1.2' opacity='.55'/%3E%3Cpath d='M0 220c90-30 170-20 250 10s150 40 230 10 170-70 250-50' stroke='%23e5e5e5' stroke-width='1' opacity='.7'/%3E%3Ccircle cx='120' cy='240' r='4' fill='%23ff0026'/%3E%3Cpath d='M120 240c40-30 90-20 130 10' stroke='%23ff0026' stroke-width='1.5' stroke-dasharray='3 5' opacity='.7'/%3E%3C/svg%3E")
      center / cover no-repeat;
  pointer-events: none;
  z-index: 0;
}

.blog-hero > * {
  position: relative;
  z-index: 1;
}

@media (min-width: 960px) {
  .blog-hero {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 2.5rem;
    min-height: 28rem;
    padding: 2rem 0 3rem;
  }
}

.eyebrow {
  margin: 0 0 0.85rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand);
}

.blog-hero__title {
  margin: 0;
  max-width: 14ch;
  font-size: clamp(2.4rem, 5.5vw, 3.75rem);
}

.blog-hero__title::after {
  content: '';
}

.blog-hero__lede {
  margin: 1.1rem 0 0;
  max-width: 34rem;
  color: var(--muted-foreground);
  font-size: 1.05rem;
  text-wrap: pretty;
}

.blog-hero__community {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-top: 1.75rem;
  color: var(--muted-foreground);
  font-size: 0.9rem;
}

.avatar-stack {
  display: flex;
}

.avatar-stack img {
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 999px;
  object-fit: cover;
  border: 2px solid #fff;
  margin-left: -0.55rem;
}

.avatar-stack img:first-child {
  margin-left: 0;
}

.featured-card {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 1.5rem;
  min-height: 22rem;
  color: #fff;
  isolation: isolate;
  box-shadow: 0 24px 50px -28px rgba(0, 0, 0, 0.45);
  transition: transform 0.4s var(--ease);
}

.featured-card:hover {
  transform: translateY(-4px);
}

.featured-card__img,
.featured-card__placeholder {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.featured-card__placeholder {
  background:
    linear-gradient(145deg, #2a2a2a, #555),
    radial-gradient(circle at 70% 20%, color-mix(in oklab, var(--brand) 40%, transparent), transparent 50%);
}

.featured-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 28%, rgba(0, 0, 0, 0.72) 100%);
  z-index: 1;
}

.featured-card__badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 2;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: #fff;
  color: var(--brand);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.featured-card__content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 1.35rem 1.35rem 1.5rem;
}

.featured-card__content h2 {
  margin: 0;
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  max-width: 18ch;
}

.featured-card__content p {
  margin: 0.55rem 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.92rem;
  max-width: 34ch;
}

.featured-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  margin-top: 1rem;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.88);
}

.featured-card__author {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.featured-card__author img {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 999px;
  object-fit: cover;
}

.featured-card__arrow {
  position: absolute;
  right: 1.1rem;
  bottom: 1.1rem;
  z-index: 2;
}

/* —— Archive hero —— */

.archive-hero {
  max-width: 40rem;
  padding: 1rem 0 2rem;
}

.archive-hero__title {
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 3.25rem);
}

.archive-hero__lede {
  margin: 0.85rem 0 0;
  color: var(--muted-foreground);
}

.author-avatar {
  width: 4.5rem;
  height: 4.5rem;
  margin-bottom: 1rem;
  border-radius: 999px;
  object-fit: cover;
  border: 2px solid var(--border);
}

/* —— Category filters —— */

.cat-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 0.5rem 0 1.75rem;
}

.cat-pill {
  display: inline-flex;
  align-items: center;
  height: 2.35rem;
  padding: 0 1rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--background);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--foreground);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.cat-pill:hover {
  border-color: color-mix(in oklab, var(--brand) 35%, var(--border));
}

.cat-pill.is-active {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--brand-foreground);
}

/* —— Post feed —— */

.post-feed {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

@media (min-width: 720px) {
  .post-feed {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.75rem;
  }
}

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

.post-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.post-card__media {
  display: block;
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 11;
  border-radius: 1.15rem;
  background: var(--muted);
}

.post-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s var(--ease);
}

.post-card:hover .post-card__media img {
  transform: scale(1.04);
}

.post-card__placeholder {
  display: block;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at 25% 20%, color-mix(in oklab, var(--brand) 16%, transparent), transparent 55%),
    radial-gradient(circle at 80% 80%, color-mix(in oklab, var(--secondary) 18%, transparent), transparent 50%),
    var(--muted);
}

.post-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.55rem;
  padding: 1rem 0.15rem 0.25rem;
}

.post-card__tag {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand);
}

.post-card__title {
  margin: 0;
  font-size: 1.2rem;
}

.post-card__title a:hover {
  color: var(--brand);
}

.post-card__excerpt {
  margin: 0;
  flex: 1;
  color: var(--muted-foreground);
  font-size: 0.92rem;
  text-wrap: pretty;
}

.post-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.65rem;
}

.post-card__meta-text {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  font-size: 0.8rem;
  color: var(--muted-foreground);
}

.empty-state {
  grid-column: 1 / -1;
  color: var(--muted-foreground);
}

/* —— Newsletter —— */

.newsletter {
  margin-top: 3.5rem;
}

.newsletter__inner {
  display: grid;
  gap: 1.25rem;
  align-items: center;
  padding: 1.25rem;
  border-radius: 1.5rem;
  background: var(--brand-soft);
  overflow: hidden;
}

@media (min-width: 900px) {
  .newsletter__inner {
    grid-template-columns: auto 1fr auto auto;
    padding: 1.15rem 1.15rem 1.15rem 1.5rem;
  }
}

.newsletter__icon {
  color: var(--foreground);
}

.icon-mail {
  width: 3rem;
  height: 3rem;
}

.newsletter__copy h2 {
  margin: 0;
  font-size: 1.35rem;
}

.newsletter__copy p {
  margin: 0.35rem 0 0;
  color: var(--muted-foreground);
  font-size: 0.92rem;
  max-width: 34ch;
}

.newsletter__form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  position: relative;
}

.newsletter__form input {
  height: 2.75rem;
  min-width: min(100%, 14rem);
  flex: 1;
  padding: 0 1rem;
  border-radius: 999px;
  border: 1px solid color-mix(in oklab, var(--brand) 12%, var(--border));
  background: #fff;
  font: inherit;
  font-size: 0.92rem;
}

.newsletter__form input:focus {
  outline: none;
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--ring) 35%, transparent);
}

.newsletter__success,
.newsletter__error {
  width: 100%;
  margin: 0;
  font-size: 0.82rem;
}

.newsletter__success {
  color: var(--secondary);
}

.newsletter__error {
  color: var(--brand);
}

.newsletter__photo {
  display: none;
  width: 7.5rem;
  height: 5.5rem;
  border-radius: 1rem;
  overflow: hidden;
}

.newsletter__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (min-width: 900px) {
  .newsletter__photo {
    display: block;
  }
}

/* —— Pagination —— */

.pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 2.5rem;
}

.pagination__status {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

/* —— Article —— */

.article {
  width: min(100%, var(--content));
  margin-inline: auto;
  padding-top: 1rem;
}

.article__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.article__back {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted-foreground);
  transition: color 0.2s ease;
}

.article__back:hover {
  color: var(--brand);
}

.article__header {
  margin-bottom: 2rem;
}

.article__title {
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 3.25rem);
}

.article__excerpt {
  margin: 1rem 0 0;
  color: var(--muted-foreground);
  font-size: 1.12rem;
}

.article__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin-top: 1.25rem;
  font-size: 0.9rem;
  color: var(--muted-foreground);
}

.share-menu {
  position: relative;
}

.share-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--background);
  color: var(--foreground);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
}

.share-link:hover {
  color: var(--brand);
  border-color: color-mix(in oklab, var(--brand) 35%, var(--border));
}

.share-icon {
  width: 0.95em;
  height: 0.95em;
}

.share-menu__panel {
  position: absolute;
  top: calc(100% + 0.45rem);
  right: 0;
  z-index: 30;
  min-width: 11.5rem;
  padding: 0.35rem;
  border: 1px solid var(--border);
  border-radius: 0.9rem;
  background: var(--background);
  box-shadow: 0 18px 40px -24px rgba(0, 0, 0, 0.45);
}

.share-menu__item {
  display: flex;
  width: 100%;
  align-items: center;
  padding: 0.55rem 0.75rem;
  border: 0;
  border-radius: 0.65rem;
  background: transparent;
  color: var(--foreground);
  font: inherit;
  font-size: 0.875rem;
  text-align: left;
  cursor: pointer;
  text-decoration: none;
}

.share-menu__item:hover {
  background: var(--muted);
  color: var(--brand);
}

.article__feature {
  margin: 0 0 2.5rem;
}

.article__feature img {
  width: 100%;
  border-radius: 1.25rem;
}

.article__feature figcaption {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
  text-align: center;
}

.article__footer {
  display: grid;
  gap: 1.5rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tag-list a {
  display: inline-flex;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: var(--muted);
  font-size: 0.8rem;
  color: var(--muted-foreground);
}

.tag-list a:hover {
  color: var(--brand);
  background: color-mix(in oklab, var(--brand) 10%, var(--muted));
}

.gh-content {
  font-size: 1.0625rem;
  line-height: 1.75;
}

.gh-content > * + * {
  margin-top: 1.25em;
}

.gh-content h2,
.gh-content h3,
.gh-content h4 {
  margin-top: 1.75em;
  margin-bottom: 0.5em;
}

.gh-content a {
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.gh-content blockquote {
  margin: 0;
  padding-left: 1.15rem;
  border-left: 3px solid var(--brand);
  color: var(--muted-foreground);
}

.gh-content pre {
  overflow-x: auto;
  padding: 1rem 1.15rem;
  border-radius: var(--radius);
  background: var(--muted);
  font-size: 0.9rem;
}

.gh-content :not(pre) > code {
  padding: 0.15em 0.4em;
  border-radius: 0.35rem;
  background: var(--muted);
}

.gh-content figure {
  margin: 1.75em 0;
}

.gh-content figcaption {
  margin-top: 0.65rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
  text-align: center;
}

.gh-content hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 2.5em 0;
}

.gh-content ul,
.gh-content ol {
  padding-left: 1.25em;
}

.gh-content img,
.gh-content video {
  border-radius: 1rem;
}

.kg-width-wide {
  position: relative;
  width: min(100vw - 2.5rem, 56rem);
  max-width: none;
  margin-left: 50%;
  transform: translateX(-50%);
}

.kg-width-full {
  position: relative;
  width: 100vw;
  max-width: none;
  margin-left: 50%;
  transform: translateX(-50%);
}

.kg-width-full img,
.kg-width-wide img {
  width: 100%;
}

.error-page {
  display: grid;
  gap: 1rem;
  justify-items: start;
  padding: 3rem 0;
}

/* —— Footer —— */

.site-footer {
  margin-top: 2rem;
  border-top: 1px solid var(--border);
  background: var(--background);
}

.site-footer__inner {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  width: min(100% - 2rem, var(--max));
  margin: 0 auto;
  padding: 3.5rem 0 2rem;
}

@media (min-width: 860px) {
  .site-footer__inner {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    gap: 3rem;
  }
}

.site-footer__brand p {
  margin: 1rem 0 0;
  max-width: 36ch;
  color: var(--muted-foreground);
  font-size: 0.95rem;
  line-height: 1.55;
  text-wrap: pretty;
}

.site-footer__social {
  display: flex;
  gap: 0.55rem;
  margin-top: 1.25rem;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.15rem;
  height: 2.15rem;
  padding: 0 0.55rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.social-link:hover {
  color: var(--brand);
  border-color: color-mix(in oklab, var(--brand) 35%, var(--border));
}

.site-footer__links {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

@media (min-width: 860px) {
  .site-footer__links {
    align-items: flex-end;
    text-align: right;
  }
}

.site-footer__nav,
.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.35rem;
  font-size: 0.92rem;
  color: var(--muted-foreground);
}

@media (min-width: 860px) {
  .site-footer__nav,
  .site-footer__legal {
    justify-content: flex-end;
  }
}

.site-footer__legal {
  color: color-mix(in oklab, var(--muted-foreground) 80%, transparent);
  font-size: 0.875rem;
}

.site-footer__nav a:hover,
.site-footer__legal a:hover {
  color: var(--brand);
}

.site-footer__copy {
  margin: 0;
  font-size: 0.875rem;
  color: color-mix(in oklab, var(--muted-foreground) 80%, transparent);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .featured-card,
  .post-card__media img,
  .btn,
  .circle-btn {
    transition: none !important;
  }
  .featured-card:hover,
  .btn--brand:hover {
    transform: none;
  }
}
