/* WordPress-only screens: blog overview, articles, pages, 404. Tokens and components come from app.css. */

/* Inner page hero, clears the fixed header */
.drb-hero {
  padding-top: calc(var(--header) + clamp(3rem, 7vw, 6rem));
  padding-bottom: clamp(2rem, 4vw, 3.5rem);
}
.drb-hero .pill {
  margin-bottom: 1.4rem;
}
.drb-hero__title {
  max-width: 18ch;
}
.drb-hero .lede {
  margin-top: 1.4rem;
}

.drb-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 2rem;
}
.drb-filter a {
  padding: 0.5rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--white);
  font-size: 0.88rem;
  transition:
    background 0.3s,
    color 0.3s,
    border-color 0.3s;
}
.drb-filter a[aria-current="page"] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--white);
}
@media (hover: hover) {
  .drb-filter a:not([aria-current="page"]):hover {
    border-color: var(--ink);
  }
}

.drb-posts {
  padding-top: 0;
  background: transparent;
}

/* Featured article */
.drb-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
  margin-bottom: clamp(3rem, 6vw, 5rem);
}
.drb-feature__img {
  display: block;
  aspect-ratio: 16 / 10;
}
.drb-feature__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
  transition: transform 1.2s var(--ease);
}
.drb-feature__body {
  display: grid;
  gap: 1.1rem;
  align-content: center;
}
.drb-feature__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.8rem, 3.2vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.drb-feature__excerpt {
  color: var(--text);
  line-height: 1.7;
  max-width: 38rem;
}
.drb-feature__more {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  font-weight: 500;
}
@media (hover: hover) {
  .drb-feature:hover .drb-feature__img img {
    transform: scale(1.04);
  }
  .drb-feature:hover .arrow-link__circle {
    background: var(--ink);
    color: var(--white);
    transform: rotate(45deg);
  }
}

.drb-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 1.1rem;
  font-size: 0.9rem;
  color: var(--text);
}
.drb-meta .pill {
  margin: 0;
}

.drb-pagination {
  margin-top: 2.5rem;
}
.drb-pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.drb-pagination .page-numbers {
  min-width: 2.8rem;
  height: 2.8rem;
  padding-inline: 0.9rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid var(--line);
}
.drb-pagination .current {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--white);
}

/* Article */
.drb-hero--article {
  padding-bottom: clamp(2rem, 4vw, 3rem);
}
.drb-article__head {
  display: grid;
  gap: 1.6rem;
  justify-items: start;
}
.drb-article__title {
  max-width: 22ch;
  font-size: clamp(2.1rem, 4.6vw, 4.2rem);
}
.drb-back {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.92rem;
  font-weight: 500;
}
.drb-back .round-btn {
  width: 2.6rem;
  height: 2.6rem;
}
.drb-back svg {
  width: 1.05rem;
  height: 1.05rem;
}
@media (hover: hover) {
  .drb-back:hover .round-btn {
    background: var(--ink);
    border-color: var(--ink);
    color: var(--white);
  }
}
.drb-article__figure {
  margin: 0 0 clamp(2.5rem, 5vw, 4.5rem);
  aspect-ratio: 21 / 9;
}
.drb-article__figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 25%;
}

/* Long-form text */
.drb-prose {
  max-width: 44rem;
  margin-inline: auto;
  font-size: clamp(1.02rem, 1.15vw, 1.1rem);
  line-height: 1.85;
  color: #333;
}
.drb-prose > * + * {
  margin-top: 1.3em;
}
.drb-prose h2,
.drb-prose h3 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.drb-prose h2 {
  font-size: clamp(1.55rem, 2.4vw, 2.1rem);
  line-height: 1.12;
  margin-top: 2.2em;
}
.drb-prose h3 {
  font-size: clamp(1.25rem, 1.8vw, 1.5rem);
  line-height: 1.2;
  margin-top: 1.9em;
}
.drb-prose h2 + *,
.drb-prose h3 + * {
  margin-top: 0.7em;
}
.drb-prose a {
  color: var(--navy);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}
.drb-prose strong {
  color: var(--ink);
  font-weight: 600;
}
.drb-prose ul,
.drb-prose ol {
  padding-left: 1.3em;
}
.drb-prose ul {
  list-style: none;
  padding-left: 0;
}
.drb-prose ul li {
  position: relative;
  padding-left: 1.5em;
}
.drb-prose ul li::before {
  content: "/";
  position: absolute;
  left: 0.2em;
  color: var(--coral);
}
.drb-prose ol {
  list-style: decimal;
}
.drb-prose li + li {
  margin-top: 0.5em;
}
.drb-prose blockquote {
  position: relative;
  padding-top: 1.6rem;
  font-family: var(--font-display);
  font-size: 1.3em;
  line-height: 1.35;
  color: var(--ink);
}
.drb-prose blockquote::before {
  content: "“";
  position: absolute;
  top: -0.35em;
  left: 0;
  font-size: 2.6em;
  line-height: 1;
  color: var(--coral);
}
.drb-prose img {
  border-radius: 18px;
  height: auto;
}
.drb-prose figure {
  margin-block: 2em;
}
.drb-prose figcaption {
  margin-top: 0.6rem;
  font-size: 0.85rem;
  color: var(--text);
}
.drb-prose .alignleft,
.drb-prose .alignright {
  max-width: 45%;
}
.drb-prose .alignleft {
  float: left;
  margin: 0.3em 1.5em 1em 0;
}
.drb-prose .alignright {
  float: right;
  margin: 0.3em 0 1em 1.5em;
}
.drb-prose::after {
  content: "";
  display: table;
  clear: both;
}

/* Authors */
.drb-author {
  max-width: 44rem;
  margin: clamp(3rem, 6vw, 5rem) auto 0;
  display: grid;
  grid-template-columns: 9rem 1fr;
  gap: 1.6rem;
  align-items: center;
  padding: clamp(1.4rem, 3vw, 2rem);
  border-radius: var(--radius);
  background: var(--sand);
  overflow: hidden;
}
.drb-author img {
  width: 100%;
  align-self: end;
  margin-bottom: calc(clamp(1.4rem, 3vw, 2rem) * -1);
}
.drb-author div {
  display: grid;
  gap: 0.7rem;
  justify-items: start;
}
.drb-author--one {
  grid-template-columns: auto 1fr;
  align-items: start;
}
.drb-author__initials {
  display: grid;
  place-items: center;
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 50%;
  background: var(--navy);
  color: var(--bg);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.3rem;
}
.drb-author__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--ink);
}
.drb-author p:not(.drb-author__name) {
  color: var(--text);
  line-height: 1.7;
}

/* Closing CTA */
.drb-cta__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.6fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: end;
}
.drb-cta__title {
  margin-top: 1.2rem;
  max-width: 16ch;
}
.drb-cta__title .accent {
  color: var(--pink);
}
.drb-cta .lede {
  margin-top: 1.4rem;
  color: var(--text-light);
}
.drb-cta__actions {
  display: grid;
  gap: 1rem;
  justify-items: start;
}
.drb-cta__phone {
  font-size: 0.92rem;
  color: var(--text-light);
  border-bottom: 1px solid var(--line-light);
}
.drb-cta .pill--line {
  border-color: var(--line-light);
  color: var(--text-light);
}

.drb-404 {
  min-height: 70vh;
}
.drb-404__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.2rem;
}

/* Blog pages follow the homepage breakpoints */
@media (max-width: 960px) {
  .drb-feature,
  .drb-cta__inner {
    grid-template-columns: 1fr;
  }
  .drb-article__figure {
    aspect-ratio: 4 / 3;
  }
}
@media (max-width: 560px) {
  .drb-author,
  .drb-author--one {
    grid-template-columns: 1fr;
  }
  .drb-author img {
    width: 11rem;
    order: 2;
  }
  .drb-404__actions .btn {
    width: 100%;
    justify-content: space-between;
  }
}

/* WordPress core classes that may appear in post content */
.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}
.wp-block-image img {
  max-width: 100%;
}
