/* ==========================================================================
   Ociate Ghost theme
   Tokens mirror the product design system (assets/css/app.css in the app
   repo): warm neutral canvas, terracotta/purple/sage accents, Fraunces
   display + Plus Jakarta Sans body, the same radius and motion scales.
   ========================================================================== */

:root {
  --bg: #FAF9F7;
  --surface: #FFFFFF;
  --surface-muted: #F1EFEC;
  --surface-inverse: #211E1C;
  --surface-inverse-muted: #2B2825;
  --text-on-inverse: #F2F0ED;
  --text-on-inverse-muted: #A8A29C;
  --border: #E7E4E0;
  --text-primary: #2A2724;
  --text-secondary: #827C76;
  --text-tertiary: #B2ACA6;

  --terracotta: #C4654A;
  --terracotta-deep: #A8523A;
  --purple: #8B7BB5;
  --sage: #5B8F6A;

  /* Ghost injects --gh-font-heading/--gh-font-body when an admin picks
     custom fonts in Design settings; the brand fonts are the defaults. */
  --font-display: var(--gh-font-heading, 'Fraunces', 'Iowan Old Style', Georgia, serif);
  --font-body: var(--gh-font-body, 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif);
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;

  --radius-tag: 4px;
  --radius-control: 6px;
  --radius-card: 8px;
  --radius-panel: 12px;
  --radius-hero: 16px;
  --radius-pill: 20px;

  --motion-fast: 200ms;
  --motion-base: 400ms;
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);

  --shadow-card: 0 1px 2px rgba(42, 39, 36, 0.05), 0 8px 32px -12px rgba(42, 39, 36, 0.12);
  --shadow-card-hover: 0 2px 4px rgba(42, 39, 36, 0.06), 0 12px 40px -8px rgba(42, 39, 36, 0.18);

  --container: 1120px;
  --container-narrow: 720px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111114;
    --surface: #1A1A1F;
    --surface-muted: #27272C;
    --surface-inverse: #0A0A0C;
    --surface-inverse-muted: #18181C;
    --text-on-inverse: #FAFAFA;
    --text-on-inverse-muted: #A1A1AA;
    --border: #43434B;
    --text-primary: #FAFAFA;
    --text-secondary: #A1A1AA;
    --text-tertiary: #71717A;

    --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 32px -12px rgba(0, 0, 0, 0.5);
    --shadow-card-hover: 0 2px 4px rgba(0, 0, 0, 0.35), 0 12px 40px -8px rgba(0, 0, 0, 0.6);
  }
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  background: rgba(196, 101, 74, 0.22);
}

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

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

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

.oc-main {
  flex: 1;
}

.oc-container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
}

.oc-container--narrow {
  max-width: var(--container-narrow);
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.oc-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.oc-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: 4rem;
}

.oc-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-width: 0;
}

.oc-brand__logo {
  height: 1.75rem;
  width: auto;
}

.oc-brand__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: var(--radius-control);
  background: var(--terracotta);
  color: #fff;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
}

.oc-brand__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.oc-nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

.oc-nav .nav,
.oc-mobile-nav .nav,
.oc-footer__nav .nav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 0.25rem;
}

.oc-nav .nav a {
  display: inline-block;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--motion-fast) var(--ease-out-quart),
    background-color var(--motion-fast) var(--ease-out-quart);
}

.oc-nav .nav a:hover {
  color: var(--text-primary);
  background: var(--surface-muted);
}

.oc-nav .nav .nav-current a {
  color: var(--terracotta);
  background: color-mix(in srgb, var(--terracotta) 10%, transparent);
}

.oc-header__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Mobile nav */

.oc-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0 0.45rem;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-control);
  cursor: pointer;
}

.oc-menu-toggle span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--text-primary);
  transition: transform var(--motion-fast) var(--ease-out-quart);
}

.oc-mobile-nav {
  border-top: 1px solid var(--border);
  padding: 1rem clamp(1.25rem, 4vw, 2.5rem) 1.25rem;
}

.oc-mobile-nav .nav {
  flex-direction: column;
  gap: 0;
  margin-bottom: 0.75rem;
}

.oc-mobile-nav .nav a {
  display: block;
  padding: 0.65rem 0;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border);
}

@media (max-width: 767px) {
  .oc-nav {
    display: none;
  }

  .oc-menu-toggle {
    display: flex;
  }

  .oc-header__actions .oc-button {
    display: none;
  }
}

@media (min-width: 768px) {
  .oc-mobile-nav {
    display: none !important;
  }
}

/* --------------------------------------------------------------------------
   Buttons + tags
   -------------------------------------------------------------------------- */

.oc-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 0;
  border-radius: var(--radius-control);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.55rem 1.1rem;
  cursor: pointer;
  transition: background-color var(--motion-fast) var(--ease-out-quart),
    box-shadow var(--motion-fast) var(--ease-out-quart),
    transform var(--motion-fast) var(--ease-out-quart);
}

.oc-button--primary {
  background: linear-gradient(180deg, var(--terracotta) 0%, var(--terracotta-deep) 100%);
  color: #fff;
  box-shadow: 0 2px 6px rgba(196, 101, 74, 0.35);
}

.oc-button--primary:hover {
  box-shadow: 0 4px 12px rgba(196, 101, 74, 0.45);
  transform: translateY(-1px);
}

.oc-button--primary:active {
  transform: scale(0.99);
  box-shadow: none;
}

.oc-button--sm {
  padding: 0.4rem 0.85rem;
  font-size: 0.85rem;
}

.oc-button--lg {
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  border-radius: 10px;
}

.oc-tag {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-tag);
  background: color-mix(in srgb, var(--terracotta) 10%, transparent);
  color: var(--terracotta);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background-color var(--motion-fast) var(--ease-out-quart);
}

.oc-tag:hover {
  background: color-mix(in srgb, var(--terracotta) 18%, transparent);
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.oc-hero {
  padding: clamp(3rem, 9vw, 6rem) 0 clamp(2rem, 5vw, 3.5rem);
}

.oc-hero__eyebrow {
  margin: 0 0 0.75rem;
  color: var(--terracotta);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.oc-hero__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.1rem, 5.5vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  max-width: 22ch;
}

.oc-hero__description {
  margin: 1.25rem 0 0;
  max-width: 55ch;
  color: var(--text-secondary);
  font-size: 1.05rem;
}

.oc-hero--archive {
  padding-bottom: 1.5rem;
}

.oc-hero--error {
  padding: clamp(5rem, 15vw, 9rem) 0;
  text-align: center;
}

.oc-hero--error .oc-hero__title,
.oc-hero--error .oc-hero__description {
  margin-left: auto;
  margin-right: auto;
}

.oc-hero--error a {
  color: var(--terracotta);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.oc-hero__author {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.oc-hero__avatar {
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 50%;
  object-fit: cover;
}

/* --------------------------------------------------------------------------
   Feed / cards
   -------------------------------------------------------------------------- */

.oc-feed .oc-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(21rem, 100%), 1fr));
  gap: clamp(1.25rem, 3vw, 2rem);
  padding-bottom: clamp(2rem, 5vw, 3.5rem);
}

.oc-card {
  grid-column: span 1;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-panel);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: box-shadow var(--motion-fast) var(--ease-out-quart),
    transform var(--motion-fast) var(--ease-out-quart);
}

.oc-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
}

.oc-card__image-link {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--surface-muted);
}

.oc-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--motion-base) var(--ease-out-expo);
}

.oc-card:hover .oc-card__image {
  transform: scale(1.03);
}

.oc-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.7rem;
  padding: 1.4rem 1.5rem 1.5rem;
}

.oc-card__meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.oc-card__date,
.oc-card__reading {
  color: var(--text-tertiary);
  font-size: 0.8rem;
  font-weight: 500;
}

.oc-card__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.35rem;
  line-height: 1.25;
  letter-spacing: -0.015em;
}

.oc-card__title a {
  transition: color var(--motion-fast) var(--ease-out-quart);
}

.oc-card__title a:hover {
  color: var(--terracotta);
}

.oc-card__excerpt {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.oc-card__foot {
  margin-top: auto;
  padding-top: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.oc-card__more {
  color: var(--terracotta);
  font-size: 0.85rem;
  font-weight: 600;
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity var(--motion-fast) var(--ease-out-quart),
    transform var(--motion-fast) var(--ease-out-quart);
}

.oc-card:hover .oc-card__more {
  opacity: 1;
  transform: translateX(0);
}

/* Featured (first on home): spans full width, image beside text */

.oc-card--feature {
  grid-column: 1 / -1;
  border-radius: var(--radius-hero);
}

@media (min-width: 900px) {
  .oc-card--feature {
    flex-direction: row;
    align-items: stretch;
  }

  .oc-card--feature .oc-card__image-link {
    flex: 0 0 58%;
    aspect-ratio: auto;
    min-height: 22rem;
  }

  .oc-card--feature .oc-card__body {
    justify-content: center;
    padding: 2.5rem;
  }

  .oc-card--feature .oc-card__title {
    font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  }

  .oc-card--feature .oc-card__excerpt {
    font-size: 1.05rem;
  }
}

/* --------------------------------------------------------------------------
   Pagination
   -------------------------------------------------------------------------- */

.oc-pagination {
  padding-bottom: clamp(3rem, 7vw, 5rem);
}

.oc-pagination .pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.oc-pagination .page-number {
  color: var(--text-tertiary);
  font-size: 0.85rem;
}

.oc-pagination .newer-posts,
.oc-pagination .older-posts {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--terracotta);
  padding: 0.5rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-control);
  background: var(--surface);
  transition: border-color var(--motion-fast) var(--ease-out-quart),
    box-shadow var(--motion-fast) var(--ease-out-quart);
}

.oc-pagination .newer-posts:hover,
.oc-pagination .older-posts:hover {
  border-color: color-mix(in srgb, var(--terracotta) 40%, var(--border));
  box-shadow: var(--shadow-card);
}

/* --------------------------------------------------------------------------
   Article
   -------------------------------------------------------------------------- */

.oc-article {
  padding: clamp(3rem, 8vw, 5rem) 0 0;
}

.oc-article__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  color: var(--text-tertiary);
  font-size: 0.85rem;
  font-weight: 500;
}

.oc-article__dot {
  color: var(--text-tertiary);
}

.oc-article__title {
  margin: 1.1rem 0 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 5vw, 3.1rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.oc-article__excerpt {
  margin: 1.25rem 0 0;
  color: var(--text-secondary);
  font-size: 1.15rem;
  line-height: 1.55;
}

.oc-article__byline {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-top: 1.75rem;
}

.oc-author {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.oc-author__avatar {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  object-fit: cover;
}

.oc-author__avatar--initial {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-muted);
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
}

.oc-author__name {
  font-size: 0.9rem;
  font-weight: 600;
}

.oc-article__feature {
  margin: clamp(2rem, 5vw, 3rem) auto 0;
}

.oc-article__feature img {
  width: 100%;
  border-radius: var(--radius-hero);
}

.oc-article__feature figcaption {
  margin-top: 0.75rem;
  text-align: center;
  color: var(--text-tertiary);
  font-size: 0.85rem;
}

.oc-article__footer {
  padding: 2rem 0 3rem;
}

.oc-article__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* --------------------------------------------------------------------------
   Post content (Koenig)
   -------------------------------------------------------------------------- */

.oc-content {
  padding-top: clamp(2rem, 5vw, 3rem);
  font-size: 1.08rem;
  line-height: 1.75;
}

.oc-content > * + * {
  margin-top: 1.4em;
}

.oc-content h2,
.oc-content h3,
.oc-content h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.2;
  margin-top: 2.2em;
  margin-bottom: 0;
}

.oc-content h2 {
  font-size: 1.75rem;
}

.oc-content h3 {
  font-size: 1.35rem;
}

.oc-content h4 {
  font-size: 1.1rem;
}

.oc-content h2 + *,
.oc-content h3 + *,
.oc-content h4 + * {
  margin-top: 0.75em;
}

.oc-content a {
  color: var(--terracotta);
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--terracotta) 35%, transparent);
  text-underline-offset: 3px;
  transition: text-decoration-color var(--motion-fast) var(--ease-out-quart);
}

.oc-content a:hover {
  text-decoration-color: var(--terracotta);
}

.oc-content strong {
  font-weight: 700;
}

.oc-content ul,
.oc-content ol {
  padding-left: 1.4em;
}

.oc-content li + li {
  margin-top: 0.4em;
}

.oc-content blockquote {
  margin: 2em 0;
  padding: 0.25em 0 0.25em 1.4em;
  border-left: 3px solid var(--terracotta);
  font-family: var(--font-display);
  font-size: 1.25rem;
  line-height: 1.5;
  color: var(--text-primary);
}

.oc-content hr {
  margin: 3em auto;
  border: 0;
  height: 1px;
  width: 100%;
  background: var(--border);
}

.oc-content code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  background: var(--surface-muted);
  border-radius: var(--radius-tag);
  padding: 0.15em 0.4em;
}

.oc-content pre {
  background: var(--surface-inverse);
  color: var(--text-on-inverse);
  border-radius: var(--radius-panel);
  padding: 1.25rem 1.5rem;
  overflow-x: auto;
  font-size: 0.9rem;
  line-height: 1.6;
}

.oc-content pre code {
  background: none;
  padding: 0;
  font-size: inherit;
  color: inherit;
}

.oc-content img {
  border-radius: var(--radius-card);
}

.oc-content figure {
  margin: 2em 0;
}

.oc-content figcaption {
  margin-top: 0.75rem;
  text-align: center;
  color: var(--text-tertiary);
  font-size: 0.85rem;
}

/* Koenig width variants (required by Ghost) */

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

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

.kg-width-full img {
  border-radius: 0;
  width: 100%;
}

/* Koenig galleries */

.kg-gallery-container {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.kg-gallery-row {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 0.6rem;
}

.kg-gallery-image img {
  display: block;
  margin: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-card);
}

/* Koenig bookmark cards */

.kg-bookmark-card {
  width: 100%;
}

.kg-bookmark-container {
  display: flex;
  border: 1px solid var(--border);
  border-radius: var(--radius-panel);
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow-card);
  color: var(--text-primary);
  text-decoration: none;
  transition: box-shadow var(--motion-fast) var(--ease-out-quart);
}

.oc-content .kg-bookmark-container {
  text-decoration: none;
}

.kg-bookmark-container:hover {
  box-shadow: var(--shadow-card-hover);
}

.kg-bookmark-content {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  padding: 1.1rem 1.25rem;
  min-width: 0;
}

.kg-bookmark-title {
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.35;
  color: var(--text-primary);
}

.kg-bookmark-description {
  margin-top: 0.35rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.kg-bookmark-metadata {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
  font-size: 0.8rem;
  color: var(--text-tertiary);
}

.kg-bookmark-icon {
  width: 1rem;
  height: 1rem;
  border-radius: 2px;
}

.kg-bookmark-author,
.kg-bookmark-publisher {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.kg-bookmark-thumbnail {
  position: relative;
  flex-shrink: 0;
  min-width: 32%;
  max-height: 100%;
}

.kg-bookmark-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
}

/* Koenig cards: gentle brand overrides on top of Ghost's injected card CSS */

.oc-content .kg-callout-card {
  border-radius: var(--radius-panel);
}

.oc-content .kg-button-card .kg-btn,
.oc-content .kg-btn-accent {
  border-radius: var(--radius-control);
  font-family: var(--font-body);
  font-weight: 600;
}

.oc-content .kg-bookmark-container {
  border-radius: var(--radius-panel);
  border-color: var(--border);
  box-shadow: var(--shadow-card);
}

.oc-content .kg-bookmark-title,
.oc-content .kg-bookmark-description,
.oc-content .kg-bookmark-metadata {
  color: var(--text-primary);
}

.oc-content .kg-bookmark-description {
  color: var(--text-secondary);
}

/* --------------------------------------------------------------------------
   Subscribe CTA
   -------------------------------------------------------------------------- */

.oc-cta {
  padding: clamp(1.5rem, 4vw, 2.5rem) 0 clamp(3rem, 7vw, 5rem);
}

.oc-cta__panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding: clamp(1.75rem, 4vw, 2.75rem) clamp(1.75rem, 4vw, 3rem);
  border-radius: var(--radius-hero);
  background-image: linear-gradient(145deg, #3D3230 0%, #2A2321 100%);
  color: var(--text-on-inverse);
}

.oc-cta__headline {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  letter-spacing: -0.015em;
  color: #fff;
}

.oc-cta__description {
  margin: 0.5rem 0 0;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.98rem;
  max-width: 42ch;
}

/* --------------------------------------------------------------------------
   Related posts
   -------------------------------------------------------------------------- */

.oc-related {
  border-top: 1px solid var(--border);
  padding: clamp(2.5rem, 6vw, 4rem) 0;
}

.oc-related__heading {
  margin: 0 0 1.75rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.5rem;
  letter-spacing: -0.015em;
}

.oc-related__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(21rem, 100%), 1fr));
  gap: clamp(1.25rem, 3vw, 2rem);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.oc-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: clamp(2rem, 5vw, 3rem) 0;
}

.oc-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
}

.oc-footer__tagline {
  margin: 0.75rem 0 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
  max-width: 34ch;
}

.oc-footer__nav .nav {
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
}

.oc-footer__nav .nav a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  transition: color var(--motion-fast) var(--ease-out-quart);
}

.oc-footer__nav .nav a:hover {
  color: var(--text-primary);
}

.oc-footer__meta {
  margin: 0;
  width: 100%;
  color: var(--text-tertiary);
  font-size: 0.8rem;
}

.oc-footer__meta a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* --------------------------------------------------------------------------
   Reduced motion
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
