/*
Theme Name: SuperBusy
Theme URI: https://superbusy.ai/
Author: SuperBusy
Description: Classic WordPress theme for the approved SuperBusy site.
Version: 2.0.0
Requires at least: 6.3
Requires PHP: 7.4
Text Domain: superbusy
*/
.article-layout-single { grid-template-columns: minmax(0, 44rem); justify-content: start; }
.wp-content { padding-top: 5rem; padding-bottom: 7rem; min-height: 45vh; }
.wp-content h1 { font-size: clamp(2.5rem, 5vw, 5rem); margin-bottom: 2rem; }
.wp-content p { max-width: 48rem; line-height: 1.7; }
.resource-pagination { margin: 3rem auto 5rem; }
.resource-pagination ul { display: flex; gap: 1rem; list-style: none; padding: 0; }

/* Client logos on homepage and Our Work cards */
.work-card-logo {
  position: relative;
  z-index: 2;
  flex: 0 0 auto;
  width: 140px;
  max-width: 60%;
  margin: 0 0 14px;
}

.work-card-logo img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: left center;
  filter: brightness(0) invert(1);
  opacity: 0.7;
}

.work-card-logo-placeholder {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 10px 14px;
  border: 1px dashed rgb(255 255 255 / 55%);
  color: #fff;
  font-size: 12px;
  line-height: 1.3;
  letter-spacing: .08em;
}

/* Our Work — image fills the card */
.inner-page.our-work-page .case-index-card {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  aspect-ratio: 4 / 5;
  gap: 56px;
  padding: clamp(24px, 3vw, 36px);
  overflow: hidden;
  background: #111;
  color: #fff;
}

.inner-page.our-work-page .case-index-image {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
}

.inner-page.our-work-page .case-index-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Dark gradient beneath the foreground content */
.inner-page.our-work-page .case-index-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgb(0 0 0 / 38%) 0%,
    rgb(0 0 0 / 12%) 28%,
    rgb(0 0 0 / 75%) 62%,
    rgb(0 0 0 / 96%) 100%
  );
}

/* Category at the top left */
.inner-page.our-work-page .case-index-card > .work-client {
  position: relative;
  inset: auto;
  z-index: 2;
  display: block;
  margin: 0;
  padding: 0;
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.35;
  text-shadow: 0 1px 5px rgb(0 0 0 / 50%);
}

/* Logo, heading, description and link at the bottom */
.inner-page.our-work-page .case-index-copy {
  position: relative;
  z-index: 2;
  flex: 0 0 auto;
  margin-top: auto;
  padding: 0;
}

.inner-page.our-work-page .case-index-copy h2 {
  max-width: 24ch;
  margin: 0;
  color: #fff;
  font-size: clamp(28px, 2.7vw, 38px);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -.04em;
}

.inner-page.our-work-page .case-index-copy p {
  max-width: 52ch;
  margin: 14px 0 0;
  color: #e5e5e5;
  font-size: 16px;
  line-height: 1.5;
}

.inner-page.our-work-page .case-index-link {
  margin-top: 18px;
  padding-top: 0;
  color: #fff;
}

@media (max-width: 700px) {
  .inner-page.our-work-page .case-index-card {
    gap: 48px;
    padding: 24px;
  }

  .inner-page.our-work-page .case-index-copy h2 {
    font-size: 28px;
  }

  .inner-page.our-work-page .case-index-copy p {
    font-size: 16px;
  }

  .work-card-logo {
    width: 140px;
    margin-bottom: 12px;
  }
}

/* Wide article hero */
.article-page .article-hero-grid {
  padding-block: 24px 64px;
}

.article-page .article-hero-grid.has-featured-image {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
}

.article-page .article-hero-copy {
  min-width: 0;
}

.article-page .article-hero h1 {
  max-width: 18ch;
  font-size: clamp(38px, 4.4vw, 64px);
  line-height: 1.06;
  letter-spacing: -.045em;
}

.article-page .article-hero .article-deck {
  max-width: 48ch;
  margin-top: 24px;
  font-size: 20px;
  line-height: 1.55;
}

.article-page .article-hero-media {
  margin: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #f5f5f4;
}

.article-page .article-hero-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Centred reading column */
.article-page .article-layout-single {
  display: block;
  width: min(800px, calc(100% - 96px));
  margin-inline: auto;
  padding-block: 56px 96px;
}

.article-page .article-copy {
  font-size: 18px;
  line-height: 1.75;
}

.article-page .article-copy h2 {
  margin-top: 48px;
  margin-bottom: 20px;
  font-size: clamp(28px, 3vw, 36px);
  line-height: 1.2;
  scroll-margin-top: 32px;
}

.article-page .article-copy h3 {
  margin-top: 32px;
  scroll-margin-top: 32px;
}

.article-page .article-copy img {
  max-width: 100%;
  height: auto;
}

/* Table of contents */
.article-page .resource-toc {
  margin-bottom: 48px;
  padding: 20px 24px;
  background: #f5f5f4;
  border-block: 1px solid #dedfdf;
}

.article-page .resource-toc summary {
  font-size: 17px;
  font-weight: 500;
}

.article-page .resource-toc nav {
  padding-top: 12px;
}

.article-page .resource-toc ol {
  margin: 0;
  padding-left: 20px;
}

.article-page .resource-toc a {
  display: inline-block;
  padding-block: 6px;
  color: #444;
  text-decoration: none;
}

.article-page .resource-toc a:hover {
  color: #a93208;
  text-decoration: underline;
}

/* Author card */
.article-page .resource-author {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-top: 56px;
  padding-top: 28px;
  border-top: 1px solid #dedfdf;
}

.article-page .resource-author img {
  flex: 0 0 auto;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
}

.article-page .resource-author h2 {
  margin: 0 0 8px;
  font-size: 20px;
  letter-spacing: -.02em;
}

.article-page .resource-author p {
  margin: 0;
  color: #666;
  font-size: 16px;
  line-height: 1.6;
}

/* Previous / next articles */
.article-page .post-navigation {
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid #dedfdf;
}

.article-page .post-navigation .nav-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
}

.article-page .post-navigation a {
  display: block;
  padding-block: 12px;
  text-decoration: none;
}

.article-page .post-navigation span {
  display: block;
  margin-bottom: 8px;
  color: #666;
  font-size: 14px;
}

.article-page .post-navigation strong {
  font-size: 20px;
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: -.02em;
}

.article-page .post-navigation a:hover strong {
  text-decoration: underline;
  text-underline-offset: 4px;
}

@media (max-width: 1100px) {
  .article-page .article-layout-single {
    width: min(800px, calc(100% - 64px));
  }
}

@media (max-width: 800px) {
  .article-page .article-hero-grid.has-featured-image {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .article-page .article-layout-single {
    width: calc(100% - 40px);
    padding-block: 32px 64px;
  }

  .article-page .article-hero-grid {
    padding-bottom: 40px;
  }

  .article-page .article-hero .article-deck {
    font-size: 18px;
  }

  .article-page .resource-toc {
    padding: 16px 20px;
  }

  .article-page .resource-author {
    gap: 16px;
  }

  .article-page .resource-author img {
    width: 56px;
    height: 56px;
  }

  .article-page .post-navigation .nav-links {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

body.wp-singular.page-template-default.page.wp-theme-superbusy.inner-page h1, body.wp-singular.page-template-default.page.wp-theme-superbusy.inner-page h2, body.wp-singular.page-template-default.page.wp-theme-superbusy.inner-page h3 {
    margin-top: 20px;
    margin-bottom: 20px;
}