/* OneHelix Hub archive */
:root {
  --oh-bg: #f7f9fa;
  --oh-surface: #ffffff;
  --oh-ink: #08131b;
  --oh-accent: #009494;
  --oh-support: #ccffff;
  --oh-navy: #102b3f;
  --oh-muted: #414c54;
  --oh-border: rgba(16, 43, 63, 0.14);
  --oh-radius: 4px;
  --oh-container: 1140px;
}

.oh-hub,
.oh-hub * {
  box-sizing: border-box;
}

.oh-hub {
  margin: 0;
  background: var(--oh-bg);
  color: var(--oh-ink);
  font-family: "Sora", sans-serif;
  font-weight: 400;
}

.oh-hub__container {
  width: min(calc(100% - 40px), var(--oh-container));
  margin-inline: auto;
}

.oh-hub__hero {
  position: relative;
  overflow: hidden;
  padding: 84px 0 88px;
  background: var(--oh-navy);
  color: var(--oh-surface);
}

.oh-hub__hero::after {
  position: absolute;
  right: max(20px, calc((100vw - var(--oh-container)) / 2));
  bottom: 0;
  width: min(300px, 30vw);
  height: 8px;
  background: var(--oh-support);
  content: "";
}

.oh-hub__title {
  max-width: 900px;
  margin: 0;
  color: var(--oh-surface);
  font-family: "Sora", sans-serif;
  font-size: clamp(42px, 6vw, 72px);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.08;
}

.oh-hub__articles {
  padding: 72px 0 88px;
}

.oh-hub__section-heading {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 40px;
}

.oh-hub__section-heading h2,
.oh-hub__empty h2 {
  margin: 0;
  color: var(--oh-ink);
  font-family: "Sora", sans-serif;
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.oh-hub__heading-rule {
  width: 100%;
  height: 1px;
  background: var(--oh-border);
}

.oh-post-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px 32px;
}

.oh-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--oh-border);
  border-radius: var(--oh-radius);
  background: var(--oh-surface);
}

.oh-card--featured {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.85fr);
}

.oh-card--standard {
  display: flex;
  flex-direction: column;
}

.oh-card__media {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--oh-support);
}

.oh-card--featured .oh-card__media {
  min-height: 430px;
}

.oh-card--standard .oh-card__media {
  aspect-ratio: 16 / 9;
}

.oh-card__image,
.oh-card__placeholder {
  display: block;
  width: 100%;
  height: 100%;
}

.oh-card__image {
  object-fit: cover;
  transition: transform 180ms ease;
}

.oh-card__placeholder {
  min-height: 260px;
  background:
    linear-gradient(135deg, transparent 49.5%, rgba(0, 148, 148, 0.32) 50%, transparent 50.5%),
    var(--oh-support);
}

.oh-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  padding: 32px;
}

.oh-card--featured .oh-card__body {
  justify-content: center;
  padding: 40px;
  background: var(--oh-support);
}

.oh-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-bottom: 16px;
  color: var(--oh-muted);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
}

.oh-card__category {
  color: var(--oh-accent);
  font-weight: 600;
  text-decoration: none;
}

.oh-card__category::after {
  margin-left: 12px;
  color: var(--oh-muted);
  content: "/";
  font-weight: 400;
}

.oh-card__title {
  margin: 0 0 16px;
  color: var(--oh-ink);
  font-family: "Sora", sans-serif;
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.25;
}

.oh-card--featured .oh-card__title {
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.18;
}

.oh-card__title a {
  color: inherit;
  text-decoration: none;
}

.oh-card__excerpt {
  margin: 0 0 24px;
  color: var(--oh-muted);
  font-size: 16px;
  line-height: 1.65;
}

.oh-card__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  color: var(--oh-accent);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}

.oh-card__link span {
  transition: transform 150ms ease;
}

.oh-card__media:hover .oh-card__image,
.oh-card__media:focus-visible .oh-card__image {
  transform: scale(1.025);
}

.oh-card__title a:hover,
.oh-card__title a:focus-visible,
.oh-card__category:hover,
.oh-card__category:focus-visible,
.oh-card__link:hover,
.oh-card__link:focus-visible {
  color: var(--oh-navy);
}

.oh-card__link:hover span,
.oh-card__link:focus-visible span {
  transform: translateX(3px);
}

.oh-hub a:focus-visible {
  outline: 3px solid var(--oh-accent);
  outline-offset: 4px;
}

.oh-pagination {
  margin-top: 56px;
}

.oh-pagination .navigation.pagination {
  margin: 0;
}

.oh-pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.oh-pagination .page-numbers {
  display: inline-flex;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border: 1px solid var(--oh-border);
  border-radius: var(--oh-radius);
  background: var(--oh-surface);
  color: var(--oh-ink);
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
}

.oh-pagination .page-numbers.current,
.oh-pagination a.page-numbers:hover,
.oh-pagination a.page-numbers:focus-visible {
  border-color: var(--oh-accent);
  background: var(--oh-accent);
  color: var(--oh-surface);
}

.oh-pagination .prev,
.oh-pagination .next {
  padding-inline: 18px;
}

.oh-hub__empty {
  padding: 40px;
  border-left: 4px solid var(--oh-accent);
  border-radius: var(--oh-radius);
  background: var(--oh-support);
}

@media (max-width: 900px) {
  .oh-card--featured {
    grid-template-columns: 1fr;
  }

  .oh-card--featured .oh-card__media {
    min-height: 0;
    aspect-ratio: 16 / 9;
  }
}

@media (max-width: 700px) {
  .oh-hub__container {
    width: min(calc(100% - 32px), var(--oh-container));
  }

  .oh-hub__hero {
    padding: 60px 0 64px;
  }

  .oh-hub__articles {
    padding: 56px 0 64px;
  }

  .oh-hub__section-heading {
    margin-bottom: 32px;
  }

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

  .oh-card--featured {
    grid-column: auto;
  }

  .oh-card__body,
  .oh-card--featured .oh-card__body {
    padding: 24px;
  }

  .oh-card--featured .oh-card__title {
    font-size: 28px;
  }

  .oh-pagination {
    margin-top: 40px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .oh-card__image,
  .oh-card__link span {
    transition: none;
  }
}
