/**
 * metaboleve.blog — Biofilia Solar.
 *
 * Floresta profunda, marfim quente, salvia mineral e terracota traduzem
 * metabolismo, cuidado continuo e longevidade sem recorrer ao visual clinico.
 * O coral vivo e apenas ornamental; texto e controles usam tons AAA:
 *   #17251F em #FBF8F1 = 14.99:1
 *   #43534A em #F1F5EC = 7.38:1
 *   #0B3D2E em #FFFFFF = 12.20:1
 *   #8B331F em #FFFFFF = 8.10:1
 *   #FFFFFF em #092E24 = 14.71:1
 */

:root {
  color-scheme: light;
  --color-primary: #0b3d2e;
  --color-primary-strong: #092e24;
  --color-primary-soft: #d5e3cf;
  --color-accent: #8b331f;
  --color-accent-bright: #e6674b;
  --color-bg: #fbf8f1;
  --color-surface: #f1f5ec;
  --color-surface-raised: #ffffff;
  --color-text: #17251f;
  --color-text-muted: #43534a;
  --color-heading: #092e24;
  --color-border: #627269;
  --color-border-strong: #34483e;
  --color-link: #0b3d2e;
  --color-link-hover: #8b331f;
  --color-brand: #12533f;
  --color-brand-strong: #0b3d2e;
  --color-inverse: #ffffff;
  --color-inverse-muted: #eef5ed;
  --color-header-bg: #fbf8f1;
  --color-footer-bg: #092e24;
  --color-footer-text: #ffffff;
  --color-focus: #8b331f;
  --color-code-bg: #071d18;
  --color-code-text: #ffffff;
  --glow-primary: 0 0 0.01rem rgb(18 83 63 / 0.1), 0 1.5rem 4rem rgb(11 61 46 / 0.18);
  --glow-accent: 0 1rem 3rem rgb(139 51 31 / 0.2);
  --shadow-sm: 0 0.35rem 1rem rgb(9 46 36 / 0.1);
  --shadow-md: 0 1rem 2.75rem rgb(9 46 36 / 0.16);
  --shadow-lg: 0 1.75rem 4.5rem rgb(9 46 36 / 0.22);
  --radius-sm: 0.7rem;
  --radius-md: 1.15rem;
  --radius-lg: 1.8rem;
  --radius-organic: 2.4rem 1rem 2.4rem 1rem;
  --radius-pill: 999rem;
  --transition-fast: 160ms ease;
  --transition-base: 280ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

html {
  accent-color: var(--color-primary);
}

body {
  color: var(--color-text);
  background-color: var(--color-bg);
  background-image:
    radial-gradient(circle at 6% 7%, rgb(213 227 207 / 0.78), transparent 22rem),
    radial-gradient(circle at 94% 26%, rgb(230 103 75 / 0.08), transparent 25rem),
    linear-gradient(rgb(11 61 46 / 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgb(11 61 46 / 0.025) 1px, transparent 1px);
  background-size: auto, auto, 3.5rem 3.5rem, 3.5rem 3.5rem;
  font-family: "Avenir Next", "Segoe UI", Inter, system-ui, sans-serif;
  line-height: 1.75;
}

::selection {
  color: #ffffff;
  background: var(--color-primary);
}

:where(h1, h2, h3, h4, h5, h6) {
  font-family: "Avenir Next", "Segoe UI", Inter, system-ui, sans-serif;
}

:where(a) {
  color: var(--color-link);
  text-decoration-color: var(--color-accent);
}

:where(a:hover) {
  color: var(--color-link-hover);
}

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 3px solid #ffffff;
  outline-offset: 3px;
  box-shadow: 0 0 0 6px var(--color-focus), 0 0 0 10px rgb(139 51 31 / 0.22);
}

@supports not selector(:focus-visible) {
  :where(a, button, input, select, textarea, summary, [tabindex]):focus {
    outline: 3px solid #ffffff;
    outline-offset: 3px;
    box-shadow: 0 0 0 6px var(--color-focus);
  }
}

.screen-reader-text:focus,
.skip-link:focus,
.column-skip-link:focus {
  color: #ffffff;
  background: var(--color-primary-strong);
}

/* Header, primary navigation and mobile overlay ------------------------- */

.header,
.site-header {
  border-block-end: 1px solid var(--color-border-strong);
  background:
    linear-gradient(90deg, rgb(213 227 207 / 0.42), transparent 28%),
    rgb(251 248 241 / 0.97);
  box-shadow: 0 0.25rem 1.5rem rgb(9 46 36 / 0.08);
}

.header.is-scrolled,
.site-header.is-scrolled,
.header.scrolled,
.site-header.scrolled {
  box-shadow: var(--shadow-md);
}

.site-title,
.site-title a,
a.site-title {
  color: var(--color-primary-strong);
  font-weight: 950;
  letter-spacing: -0.045em;
}

.site-title a::after,
a.site-title::after {
  display: inline-block;
  margin-inline-start: 0.16em;
  color: var(--color-accent);
  content: "●";
  font-size: 0.42em;
  vertical-align: 0.42em;
}

.site-description {
  color: var(--color-text-muted);
  font-weight: 650;
}

.nav-list a,
.primary-menu a {
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  color: var(--color-text);
  font-weight: 800;
}

.nav-list a:hover,
.primary-menu a:hover,
.nav-list .current-menu-item > a,
.primary-menu .current-menu-item > a,
.nav-list a[aria-current="page"],
.primary-menu a[aria-current="page"] {
  color: var(--color-primary-strong);
  border-color: var(--color-primary);
  background: var(--color-primary-soft);
  text-decoration-color: var(--color-accent);
}

.primary-navigation .sub-menu,
.primary-nav .sub-menu,
.main-navigation .sub-menu {
  border-color: var(--color-border-strong);
  background: #ffffff;
  box-shadow: var(--shadow-md);
}

.mobile-toggle,
.mobile-nav-close {
  border: 2px solid var(--color-primary);
  border-radius: var(--radius-pill);
  color: var(--color-primary-strong);
  background: #ffffff;
  box-shadow: var(--shadow-sm);
}

.mobile-toggle:hover,
.mobile-nav-close:hover,
.mobile-toggle[aria-expanded="true"] {
  color: #ffffff;
  border-color: var(--color-accent);
  background: var(--color-accent);
}

.mobile-toggle__icon {
  height: 0.14rem;
  border-radius: var(--radius-pill);
  background: currentColor;
  transition: background-color var(--transition-fast), transform var(--transition-fast);
}

.mobile-toggle__icon::before,
.mobile-toggle__icon::after {
  height: 0.14rem;
  border-radius: var(--radius-pill);
  background: currentColor;
  transition: inset var(--transition-fast), transform var(--transition-fast);
}

.mobile-toggle[aria-expanded="true"] .mobile-toggle__icon {
  background: transparent;
}

.mobile-toggle[aria-expanded="true"] .mobile-toggle__icon::before {
  top: 0;
  transform: rotate(45deg);
}

.mobile-toggle[aria-expanded="true"] .mobile-toggle__icon::after {
  top: 0;
  transform: rotate(-45deg);
}

.mobile-nav-overlay {
  background: rgb(7 29 24 / 0.86);
  backdrop-filter: blur(0.65rem);
}

.mobile-nav-backdrop {
  background:
    radial-gradient(circle at 20% 20%, rgb(230 103 75 / 0.18), transparent 18rem),
    transparent;
}

.mobile-nav-panel {
  border-inline-start: 0.35rem solid var(--color-accent);
  color: var(--color-text);
  background:
    radial-gradient(circle at 100% 0, rgb(213 227 207 / 0.9), transparent 16rem),
    linear-gradient(155deg, #ffffff, var(--color-bg));
  box-shadow: -1.5rem 0 4rem rgb(7 29 24 / 0.38);
}

.mobile-nav-title {
  color: var(--color-primary-strong);
  font-weight: 950;
  letter-spacing: -0.03em;
}

.mobile-nav-panel .nav-list a,
.mobile-nav-panel .menu a {
  border-block-end-color: var(--color-border);
  color: var(--color-text);
}

.mobile-nav-panel .nav-list a:hover,
.mobile-nav-panel .menu a:hover,
.mobile-nav-panel .current-menu-item > a {
  color: var(--color-primary-strong);
  background: var(--color-primary-soft);
}

/* Hero and shared section headers --------------------------------------- */

.hero {
  min-height: clamp(31rem, 80svh, 49rem);
  color: #ffffff;
  background:
    radial-gradient(circle at 78% 18%, rgb(230 103 75 / 0.28), transparent 19rem),
    radial-gradient(circle at 15% 86%, rgb(123 158 113 / 0.28), transparent 24rem),
    linear-gradient(118deg, #092e24 0%, #0b3d2e 58%, #5b2419 100%);
}

.hero::before {
  top: -9rem;
  right: -5rem;
  width: clamp(20rem, 48vw, 39rem);
  border: 1px solid rgb(255 255 255 / 0.36);
  background:
    repeating-radial-gradient(circle at 50% 50%, transparent 0 1.7rem, rgb(255 255 255 / 0.1) 1.75rem 1.85rem);
  box-shadow: inset 0 0 0 2rem rgb(255 255 255 / 0.025);
}

.hero::after {
  bottom: -12rem;
  left: -9rem;
  width: clamp(21rem, 50vw, 43rem);
  border: 2.25rem solid rgb(230 103 75 / 0.16);
  background: rgb(213 227 207 / 0.07);
}

.hero__inner {
  display: grid;
  align-content: center;
  min-height: inherit;
  padding-block: clamp(4rem, 11vw, 8rem);
}

.hero__eyebrow {
  width: fit-content;
  margin-block-end: 1.15rem;
  padding: 0.5rem 0.85rem;
  border: 1px solid rgb(255 255 255 / 0.72);
  border-radius: var(--radius-pill);
  color: #ffffff;
  background: rgb(7 29 24 / 0.6);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.08);
  letter-spacing: 0.14em;
}

.hero__eyebrow::before {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  content: "";
  background: #ffc4b5;
  box-shadow: 0 0 0 0.3rem rgb(230 103 75 / 0.2);
}

.hero__title {
  max-width: 15ch;
  color: #ffffff;
  font-size: clamp(2.55rem, 1.55rem + 5vw, 6rem);
  font-weight: 950;
  line-height: 0.98;
  letter-spacing: -0.06em;
  text-shadow: 0 0.2rem 1.6rem rgb(0 0 0 / 0.24);
}

.hero__description {
  max-width: 39rem;
  color: #ffffff;
  font-size: clamp(1.05rem, 0.96rem + 0.52vw, 1.38rem);
  font-weight: 580;
  line-height: 1.75;
}

.hero__cta {
  color: var(--color-primary-strong);
  border-color: #ffffff;
  background: #ffffff;
  box-shadow: 0 0.75rem 2rem rgb(0 0 0 / 0.22);
}

.hero__cta:hover {
  color: #ffffff;
  border-color: var(--color-accent);
  background: var(--color-accent);
  box-shadow: var(--glow-accent);
}

.section__inner {
  position: relative;
  isolation: isolate;
  min-width: 0;
}

.section-title,
.page-title,
.archive-title,
.search-title {
  color: var(--color-heading);
  font-weight: 950;
}

.section-title::after,
.page-title::after,
.archive-title::after,
.search-title::after {
  display: block;
  width: clamp(4.5rem, 10vw, 7rem);
  height: 0.34rem;
  margin-block-start: 0.8rem;
  border-radius: var(--radius-pill);
  content: "";
  background: linear-gradient(90deg, var(--color-primary) 0 68%, var(--color-accent-bright) 68%);
}

.page-header,
.archive-header,
.search-header {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-organic);
  background:
    radial-gradient(circle at 91% 15%, rgb(230 103 75 / 0.14), transparent 13rem),
    radial-gradient(circle at 8% 100%, rgb(213 227 207 / 0.82), transparent 18rem),
    var(--color-surface);
  box-shadow: var(--shadow-sm);
}

.page-header::after,
.archive-header::after,
.search-header::after {
  position: absolute;
  right: -3rem;
  bottom: -4rem;
  width: 10rem;
  aspect-ratio: 1;
  border: 1.2rem solid rgb(139 51 31 / 0.09);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

/* BEM cards -------------------------------------------------------------- */

.cards-grid {
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(1.25rem, 3.5vw, 2.25rem);
}

.card {
  isolation: isolate;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  color: var(--color-text);
  background: #ffffff;
  box-shadow: var(--shadow-sm);
  transform-origin: 50% 100%;
  transition:
    border-color var(--transition-base),
    box-shadow var(--transition-base),
    transform var(--transition-base);
}

.card::before {
  position: absolute;
  z-index: 4;
  inset: 0 0 auto;
  height: 0.35rem;
  content: "";
  background: linear-gradient(90deg, var(--color-primary) 0 72%, var(--color-accent-bright) 72%);
  pointer-events: none;
}

.card::after {
  position: absolute;
  z-index: -1;
  right: -4.5rem;
  bottom: -5rem;
  width: 11rem;
  aspect-ratio: 1;
  border-radius: 50%;
  content: "";
  background: rgb(213 227 207 / 0.36);
  pointer-events: none;
}

.card:hover,
.card:focus-within {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-lg);
  transform: translateY(-0.45rem);
}

.card__media {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background:
    linear-gradient(135deg, var(--color-primary-soft), #ffffff);
}

.card__media::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, transparent 58%, rgb(9 46 36 / 0.18));
  pointer-events: none;
  transition: opacity var(--transition-base);
}

.card:hover .card__media::after,
.card:focus-within .card__media::after {
  opacity: 0.42;
}

.card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: filter 500ms ease, transform 650ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.card:hover .card__image,
.card:focus-within .card__image {
  filter: saturate(1.06) contrast(1.02);
  transform: scale(1.045);
}

.card__body {
  position: relative;
  z-index: 1;
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  padding: clamp(1.2rem, 3.5vw, 1.75rem);
}

.card__categories {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.6rem;
  color: var(--color-primary);
  font-size: 0.75rem;
  font-weight: 950;
  letter-spacing: 0.1em;
}

.card__categories a {
  position: relative;
  z-index: 3;
  padding: 0.28rem 0.58rem;
  border: 1px solid var(--color-primary);
  border-radius: var(--radius-pill);
  color: var(--color-primary);
  background: var(--color-surface);
  text-decoration: none;
}

.card__categories a:hover {
  color: #ffffff;
  background: var(--color-primary);
}

.card__title {
  margin-block: 0.85rem 0;
  color: var(--color-heading);
  font-size: clamp(1.25rem, 1.1rem + 0.68vw, 1.62rem);
  font-weight: 920;
  line-height: 1.2;
  letter-spacing: -0.035em;
}

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

.card__title a:hover {
  color: var(--color-accent);
  text-decoration-color: currentColor;
}

.card__meta {
  gap: 0.45rem 0.85rem;
  margin-block-start: 0.95rem;
  padding-block-start: 0.85rem;
  border-block-start: 1px solid rgb(98 114 105 / 0.5);
  color: var(--color-text-muted);
  font-size: 0.8rem;
  font-weight: 750;
}

.card__meta .reading-time::before {
  margin-inline-end: 0.75rem;
  color: var(--color-accent);
  content: "•";
}

.card__excerpt {
  margin-block: 0.85rem 0;
  color: var(--color-text-muted);
  line-height: 1.72;
}

.card__excerpt > :last-child {
  margin-block-end: 0;
}

.card__link {
  min-height: 2.75rem;
  margin-block-start: auto;
  padding-block-start: 1rem;
  color: var(--color-primary);
  font-size: 0.875rem;
  font-weight: 900;
  text-decoration-color: var(--color-accent);
}

.card__link span[aria-hidden="true"] {
  color: var(--color-accent);
  font-size: 1.25em;
  transition: transform var(--transition-fast);
}

.card__link:hover span[aria-hidden="true"] {
  transform: translateX(0.28rem);
}

.featured-card {
  border: 1px solid var(--color-primary);
  border-radius: var(--radius-organic);
  background: #ffffff;
  box-shadow: var(--shadow-md);
}

.featured-card::before {
  height: 0.45rem;
}

.featured-card__media {
  min-height: 17rem;
}

.featured-card__content {
  background:
    radial-gradient(circle at 100% 100%, rgb(230 103 75 / 0.1), transparent 15rem),
    linear-gradient(145deg, #ffffff, var(--color-surface));
}

.featured-card .card__title {
  font-size: clamp(1.85rem, 1.25rem + 2.65vw, 3.4rem);
  line-height: 1.06;
}

/* Article header, media and reading surface ----------------------------- */

.content-shell {
  width: 100%;
  min-width: 0;
}

.content-primary {
  min-width: 0;
}

.entry-header {
  position: relative;
  overflow: hidden;
  border-block: 1px solid var(--color-border);
  background:
    radial-gradient(circle at 86% 18%, rgb(230 103 75 / 0.13), transparent 17rem),
    radial-gradient(circle at 9% 82%, rgb(213 227 207 / 0.92), transparent 22rem),
    linear-gradient(135deg, var(--color-bg), var(--color-surface));
}

.entry-header::after {
  position: absolute;
  right: clamp(-7rem, -5vw, -3rem);
  bottom: -8rem;
  width: 17rem;
  aspect-ratio: 1;
  border: 1.5rem solid rgb(11 61 46 / 0.07);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.entry-header-inner {
  position: relative;
  z-index: 1;
}

.entry-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.7rem;
  color: var(--color-primary);
}

.entry-categories a {
  padding: 0.35rem 0.68rem;
  border: 1px solid var(--color-primary);
  border-radius: var(--radius-pill);
  color: var(--color-primary);
  background: #ffffff;
  text-decoration: none;
}

.entry-categories a:hover {
  color: #ffffff;
  background: var(--color-primary);
}

.entry-title {
  max-width: 19ch;
  color: var(--color-heading);
  font-size: clamp(2.15rem, 1.4rem + 3.8vw, 5rem);
  font-weight: 950;
  line-height: 1.02;
  letter-spacing: -0.058em;
}

.entry-title a {
  color: inherit;
  text-decoration-color: var(--color-accent);
}

.entry-meta {
  color: var(--color-text-muted);
  font-weight: 760;
}

.entry-meta a {
  color: var(--color-primary);
}

.entry-meta > :not(:last-child)::after {
  margin-inline-start: 0.85rem;
  color: var(--color-accent);
  content: "•";
}

.entry-date {
  color: var(--color-text-muted);
  font-variant-numeric: tabular-nums;
}

.entry-thumbnail {
  position: relative;
  margin-block-start: clamp(1.75rem, 5vw, 3.5rem);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-organic);
  background: var(--color-primary-soft);
  box-shadow: var(--shadow-lg);
}

.entry-thumbnail::after {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  content: "";
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.46);
  pointer-events: none;
}

.entry-thumbnail__image {
  width: 100%;
  max-height: 46rem;
  object-fit: cover;
}

.entry-content {
  position: relative;
  padding: clamp(1.25rem, 4vw, 3rem);
  border: 1px solid rgb(98 114 105 / 0.75);
  border-radius: var(--radius-lg);
  color: var(--color-text);
  background: rgb(255 255 255 / 0.94);
  box-shadow: var(--shadow-sm);
}

.entry-summary {
  padding: clamp(1.15rem, 3vw, 1.75rem);
  border-inline-start: 0.4rem solid var(--color-primary);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  color: var(--color-text);
  background: var(--color-surface);
}

.entry-footer {
  padding-block-start: clamp(1.25rem, 3vw, 2rem);
  border-block-start: 1px solid var(--color-border);
}

.entry-type {
  width: fit-content;
  padding: 0.35rem 0.68rem;
  border: 1px solid var(--color-accent);
  border-radius: var(--radius-pill);
  color: var(--color-accent);
  background: #ffffff;
}

/* Rich content, health callouts, code and responsive tables ------------- */

.content-inner {
  color: var(--color-text);
  line-height: 1.84;
}

.content-inner :where(h2, h3, h4, h5, h6),
.entry-content :where(h2, h3, h4, h5, h6) {
  color: var(--color-heading);
  font-weight: 900;
}

.content-inner h2,
.entry-content h2 {
  padding-block-end: 0.45rem;
  border-block-end: 0.22rem solid var(--color-primary-soft);
}

.content-inner :where(ul, ol) li::marker,
.entry-content :where(ul, ol) li::marker {
  color: var(--color-accent);
  font-weight: 900;
}

.content-inner a,
.entry-content a {
  color: var(--color-primary);
  text-decoration-color: var(--color-accent);
}

.content-inner a:hover,
.entry-content a:hover {
  color: var(--color-accent);
}

.content-inner :where(blockquote, .wp-block-quote),
.entry-content :where(blockquote, .wp-block-quote) {
  border-color: var(--color-border);
  border-inline-start-color: var(--color-primary);
  color: var(--color-text);
  background:
    radial-gradient(circle at 100% 0, rgb(230 103 75 / 0.09), transparent 10rem),
    var(--color-surface);
  box-shadow: var(--shadow-sm);
}

.content-inner blockquote cite,
.entry-content blockquote cite {
  color: var(--color-text-muted);
}

.content-inner .wp-block-pullquote,
.entry-content .wp-block-pullquote {
  border-color: var(--color-accent);
  color: var(--color-heading);
}

.tip-box,
.notice-box,
.highlight-stat {
  overflow: hidden;
  border: 1px solid var(--color-primary);
  border-inline-start: 0.45rem solid var(--color-accent);
  border-radius: var(--radius-organic);
  color: var(--color-text);
  background:
    radial-gradient(circle at 100% 0, rgb(213 227 207 / 0.92), transparent 11rem),
    #ffffff;
  box-shadow: var(--shadow-sm);
}

.tip-box::before {
  display: inline-grid;
  width: 2.1rem;
  height: 2.1rem;
  margin-inline-end: 0.55rem;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  content: "✓";
  background: var(--color-primary);
  font-weight: 950;
}

.tip-box-title,
.notice-title,
.highlight-stat__label {
  color: var(--color-primary-strong);
}

.highlight-stat {
  text-align: center;
}

.highlight-stat__value,
.stat-value {
  color: var(--color-accent);
  font-variant-numeric: tabular-nums;
}

.content-inner :where(code, kbd, samp),
.entry-content :where(code, kbd, samp) {
  color: var(--color-primary-strong);
  background: var(--color-primary-soft);
}

.terminal-box,
.cmd-box,
.content-inner :where(pre, .code-block),
.entry-content :where(pre, .code-block) {
  border: 1px solid #627269;
  color: #ffffff;
  background:
    linear-gradient(rgb(255 255 255 / 0.035) 1px, transparent 1px),
    #071d18;
  background-size: 100% 1.75rem;
  box-shadow: var(--shadow-md);
  scrollbar-color: #d5e3cf #071d18;
}

.terminal-box::before,
.cmd-box::before {
  display: block;
  width: 2.8rem;
  height: 0.65rem;
  margin-block-end: 1rem;
  border-radius: var(--radius-pill);
  content: "";
  background: linear-gradient(90deg, #ffb8a7 0 28%, #f7e6a3 28% 62%, #bdf5d7 62%);
}

.terminal-title,
.cmd-label {
  color: #bdf5d7;
}

.content-inner .code-block .kw,
.entry-content .code-block .kw {
  color: #ffd9cc;
}

.content-inner .code-block .fn,
.entry-content .code-block .fn {
  color: #bdf5d7;
}

.content-inner .code-block .str,
.entry-content .code-block .str {
  color: #f7e6a3;
}

.content-inner .code-block .num,
.entry-content .code-block .num {
  color: #ffc7a8;
}

.content-inner .code-block .cm,
.entry-content .code-block .cm {
  color: #c1d6ca;
}

.content-inner .code-block .op,
.entry-content .code-block .op,
.content-inner .code-block .var,
.entry-content .code-block .var {
  color: #ffe6e0;
}

.table-scroll,
.wp-block-table,
.comp-table,
.content-inner [role="table"],
.entry-content [role="table"] {
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: #ffffff;
  box-shadow: var(--shadow-sm);
  scrollbar-color: var(--color-primary) var(--color-primary-soft);
}

.content-inner table,
.entry-content table,
.comp-table table,
table.comp-table {
  border-color: var(--color-border-strong);
  color: var(--color-text);
  background: #ffffff;
}

.content-inner th,
.entry-content th,
.comp-table th {
  color: #ffffff;
  border-color: #627269;
  background: var(--color-primary);
}

.content-inner :where(td, th),
.entry-content :where(td, th),
.comp-table :where(td, th) {
  border-color: var(--color-border);
}

.content-inner tbody tr:nth-child(even),
.entry-content tbody tr:nth-child(even),
.comp-table tbody tr:nth-child(even) {
  background: var(--color-surface);
}

.content-inner tbody tr:hover,
.entry-content tbody tr:hover,
.comp-table tbody tr:hover {
  background: var(--color-primary-soft);
}

.content-inner figure img,
.entry-content figure img {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-organic);
  box-shadow: var(--shadow-sm);
}

.content-inner figcaption,
.entry-content figcaption {
  color: var(--color-text-muted);
}

/* Taxonomy, authors and navigation -------------------------------------- */

.page-links {
  padding: 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
}

.page-links__title {
  color: var(--color-heading);
  font-weight: 900;
}

.page-number,
.page-links > a {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: #ffffff;
}

.page-links > a:hover {
  color: #ffffff;
  background: var(--color-primary);
}

.tag-pill,
.article-tags a,
.tag-list a {
  color: var(--color-primary);
  border-color: var(--color-primary);
  background: #ffffff;
}

.tag-pill:hover,
.article-tags a:hover,
.tag-list a:hover {
  color: #ffffff;
  border-color: var(--color-accent);
  background: var(--color-accent);
  box-shadow: var(--glow-accent);
}

.author-box {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--color-primary);
  border-radius: var(--radius-organic);
  background:
    radial-gradient(circle at 100% 0, rgb(230 103 75 / 0.12), transparent 13rem),
    var(--color-surface);
  box-shadow: var(--shadow-sm);
}

.author-box::after {
  position: absolute;
  right: -2.5rem;
  bottom: -3rem;
  width: 8rem;
  aspect-ratio: 1;
  border: 0.8rem solid rgb(11 61 46 / 0.08);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.author-box__avatar {
  position: relative;
  z-index: 1;
}

.author-box__avatar img {
  border-color: #ffffff;
  box-shadow: 0 0 0 3px var(--color-primary), 0 0 0 7px rgb(230 103 75 / 0.32);
}

.author-box__content {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.author-box__title {
  color: var(--color-heading);
  font-weight: 920;
}

.author-box__bio {
  color: var(--color-text-muted);
}

.author-box__content > a {
  color: var(--color-primary);
  font-weight: 850;
}

.author-archive {
  position: relative;
  overflow: hidden;
  border: 1px solid #627269;
  border-radius: var(--radius-organic);
  color: #ffffff;
  background:
    radial-gradient(circle at 92% 18%, rgb(230 103 75 / 0.25), transparent 14rem),
    linear-gradient(125deg, #092e24, #0b3d2e 68%, #5b2419);
  box-shadow: var(--shadow-lg);
}

.author-archive::after {
  position: absolute;
  right: -4rem;
  bottom: -5rem;
  width: 12rem;
  aspect-ratio: 1;
  border: 1.2rem solid rgb(255 255 255 / 0.09);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.author-archive__avatar {
  position: relative;
  z-index: 1;
}

.author-archive__avatar img,
.author-archive__image {
  border: 0.25rem solid #ffffff;
  box-shadow: 0 0 0 4px #e6674b, 0 1rem 2rem rgb(0 0 0 / 0.25);
}

.author-archive__content {
  position: relative;
  z-index: 1;
}

.author-archive__eyebrow {
  color: #ffffff;
}

.author-archive__title {
  color: #ffffff;
  font-size: clamp(1.65rem, 1.25rem + 2vw, 2.75rem);
  font-weight: 950;
}

.author-archive__bio {
  color: #ffffff;
}

.author-archive__website {
  padding: 0.62rem 1rem;
  border: 2px solid #ffffff;
  border-radius: var(--radius-pill);
  color: var(--color-primary-strong);
  background: #ffffff;
  text-decoration: none;
}

.author-archive__website:hover {
  color: #ffffff;
  border-color: var(--color-accent);
  background: var(--color-accent);
}

.related-posts {
  border-block-start: 1px solid var(--color-primary);
  background:
    linear-gradient(180deg, rgb(213 227 207 / 0.56), transparent 18rem),
    var(--color-surface);
}

.pagination .page-numbers,
.posts-navigation a,
.post-navigation a {
  border-color: var(--color-primary);
  border-radius: var(--radius-sm);
  color: var(--color-primary-strong);
  background: #ffffff;
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current,
.posts-navigation a:hover,
.post-navigation a:hover {
  color: #ffffff;
  border-color: var(--color-accent);
  background: var(--color-accent);
  box-shadow: var(--glow-accent);
}

.post-navigation a {
  border-radius: var(--radius-md);
}

.post-navigation__label {
  color: var(--color-text-muted);
  font-weight: 850;
}

.post-navigation__title {
  color: var(--color-heading);
  font-weight: 900;
}

/* Search, empty state and comments -------------------------------------- */

.search-form {
  padding: 0.45rem;
  border: 1px solid var(--color-border);
  border-radius: calc(var(--radius-pill) + 0.2rem);
  background: #ffffff;
  box-shadow: var(--shadow-sm);
}

.search-form .search-field,
.comments-area :where(input[type="text"], input[type="email"], input[type="url"], textarea) {
  border-color: var(--color-border-strong);
  color: var(--color-text);
  background: #ffffff;
}

.search-form .search-field {
  border-color: transparent;
  border-radius: var(--radius-pill);
}

.search-form .search-field:hover,
.search-form .search-field:focus-visible,
.comments-area :where(input, textarea):hover,
.comments-area :where(input, textarea):focus-visible {
  border-color: var(--color-primary);
}

.search-form .search-field::placeholder,
.comments-area :where(input, textarea)::placeholder {
  color: var(--color-text-muted);
  opacity: 1;
}

.search-submit,
.form-submit .submit,
.button,
.btn {
  color: #ffffff;
  border-color: var(--color-primary);
  background: var(--color-primary);
  box-shadow: 0 0.45rem 1.2rem rgb(11 61 46 / 0.16);
}

.search-submit:hover,
.form-submit .submit:hover,
.button:hover,
.btn:hover {
  color: #ffffff;
  border-color: var(--color-accent);
  background: var(--color-accent);
}

.posts-notice {
  border-color: var(--color-border);
  border-inline-start-color: var(--color-accent);
  color: var(--color-text);
  background: var(--color-surface);
}

.error-404 {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--color-primary);
  border-radius: var(--radius-organic);
  background:
    radial-gradient(circle at 80% 20%, rgb(230 103 75 / 0.16), transparent 16rem),
    radial-gradient(circle at 10% 90%, rgb(213 227 207 / 0.9), transparent 20rem),
    var(--color-surface);
  box-shadow: var(--shadow-md);
}

.error-404__code {
  color: var(--color-primary-strong);
  text-shadow: 0.05em 0.05em 0 rgb(230 103 75 / 0.3);
}

.error-404__title {
  color: var(--color-heading);
  font-weight: 950;
}

.error-404__actions {
  align-items: center;
  justify-content: center;
}

.comments-area {
  border-block-start: 0.3rem solid var(--color-primary);
}

.comments-title,
.comment-reply-title {
  color: var(--color-heading);
  font-weight: 920;
}

.comment-body {
  border-color: var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text);
  background: #ffffff;
  box-shadow: var(--shadow-sm);
}

.comment-author .avatar {
  box-shadow: 0 0 0 2px var(--color-primary), 0 0 0 4px #ffffff;
}

.comment-metadata,
.comment-notes {
  color: var(--color-text-muted);
}

.comment-respond {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-organic);
  background:
    radial-gradient(circle at 100% 0, rgb(213 227 207 / 0.8), transparent 12rem),
    var(--color-surface);
}

.required {
  color: var(--color-accent);
}

/* Attachments, image BEM, sidebar and footer ---------------------------- */

.attachment-media,
.image-attachment__figure {
  border: 1px solid var(--color-primary);
  border-radius: var(--radius-organic);
  background:
    linear-gradient(45deg, rgb(213 227 207 / 0.5) 25%, transparent 25% 75%, rgb(213 227 207 / 0.5) 75%),
    #ffffff;
  background-size: 1.5rem 1.5rem;
  box-shadow: var(--shadow-md);
}

.image-attachment__figure {
  padding: clamp(0.5rem, 2vw, 1rem);
}

.image-attachment__image {
  width: auto;
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.attachment-caption {
  color: var(--color-text-muted);
}

.widget {
  padding: 1.15rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: #ffffff;
  box-shadow: var(--shadow-sm);
}

.widget-title {
  padding-block-end: 0.55rem;
  border-block-end: 0.2rem solid var(--color-primary-soft);
  color: var(--color-heading);
  font-weight: 900;
}

.footer,
.site-footer {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background:
    radial-gradient(circle at 12% 12%, rgb(123 158 113 / 0.24), transparent 20rem),
    radial-gradient(circle at 90% 88%, rgb(230 103 75 / 0.2), transparent 22rem),
    linear-gradient(132deg, #071d18, #092e24 65%, #391a13);
}

.footer::before,
.site-footer::before {
  position: absolute;
  top: -9rem;
  right: -8rem;
  width: 24rem;
  aspect-ratio: 1;
  border: 1px solid rgb(255 255 255 / 0.12);
  border-radius: 50%;
  content: "";
  box-shadow:
    0 0 0 2rem rgb(255 255 255 / 0.025),
    0 0 0 4rem rgb(255 255 255 / 0.018);
  pointer-events: none;
}

.footer-grid {
  position: relative;
  grid-template-columns: minmax(0, 1fr);
}

.site-footer .widget,
.footer .widget,
.footer-column {
  border-color: rgb(255 255 255 / 0.4);
  color: #ffffff;
  background: rgb(255 255 255 / 0.045);
  box-shadow: none;
}

.site-footer .widget-title,
.footer .widget-title,
.footer-title,
.site-footer a,
.footer a,
.site-info,
.footer-bottom {
  color: #ffffff;
}

.site-footer a,
.footer a {
  text-decoration-color: #ffb8a7;
}

.site-info,
.footer-bottom {
  border-block-start-color: rgb(255 255 255 / 0.46);
}

/* Reveal, card entrance and interaction states -------------------------- */

.js .reveal {
  opacity: 0;
  transform: translateY(1.5rem);
  transition: opacity 620ms ease, transform 620ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.js .reveal.visible,
.js .reveal.is-visible,
.no-js .reveal,
.reveal.visible,
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.js .card.reveal.visible:hover,
.js .card.reveal.visible:focus-within,
.js .card.reveal.is-visible:hover,
.js .card.reveal.is-visible:focus-within {
  transform: translateY(-0.45rem);
}

.cards-grid > .card:nth-child(2) {
  --card-delay: 90ms;
}

.cards-grid > .card:nth-child(3) {
  --card-delay: 180ms;
}

.cards-grid > .card:nth-child(4) {
  --card-delay: 270ms;
}

.cards-grid > .card:nth-child(5) {
  --card-delay: 360ms;
}

.cards-grid > .card:nth-child(6) {
  --card-delay: 450ms;
}

@keyframes metaboleve-fade-in-up {
  from {
    opacity: 0;
    transform: translateY(1.65rem) scale(0.985);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .no-js .card,
  .js .card.visible,
  .js .card.is-visible {
    animation: metaboleve-fade-in-up 680ms cubic-bezier(0.2, 0.7, 0.2, 1) var(--card-delay, 0ms) backwards;
  }
}

/* Responsive refinements ------------------------------------------------ */

@media (max-width: 29.999rem) {
  .hero {
    min-height: auto;
  }

  .hero__inner {
    min-height: 31rem;
  }

  .hero-actions,
  .hero__cta {
    width: 100%;
  }

  .entry-content {
    padding-inline: 1rem;
    border-radius: var(--radius-md);
  }

  .search-form {
    border-radius: var(--radius-md);
  }

  .search-submit {
    width: 100%;
  }
}

@media (max-width: 47.999rem) {
  .content-inner table,
  .entry-content table,
  .comp-table table,
  table.comp-table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-color: var(--color-primary) var(--color-primary-soft);
  }
}

@media (min-width: 30rem) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .author-box {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
  }
}

@media (min-width: 48rem) {
  .cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .featured-card {
    grid-template-columns: minmax(0, 1.08fr) minmax(19rem, 0.92fr);
  }

  .featured-card__media {
    min-height: 29rem;
  }

  .hero__inner {
    padding-inline-start: clamp(1rem, 5vw, 4.5rem);
    border-inline-start: 0.42rem solid #ffb8a7;
  }

  .author-archive {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
  }
}

@media (min-width: 64rem) {
  .cards-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .section--featured .featured-card {
    grid-template-columns: minmax(0, 1.16fr) minmax(22rem, 0.84fr);
  }

  .featured-card {
    grid-column: 1 / -1;
  }

  .content-sidebar-layout .sidebar {
    padding-block-start: 1rem;
  }

  .footer-grid {
    grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  }
}

@media (min-width: 80rem) {
  .hero__title {
    max-width: 14ch;
  }

  .hero::before {
    right: 2vw;
  }

  .cards-grid {
    gap: 2.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation: none !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }

  .js .reveal,
  .reveal,
  .reveal.visible,
  .reveal.is-visible,
  .card,
  .card:hover,
  .card:focus-within,
  .card__image,
  .card:hover .card__image,
  .card:focus-within .card__image,
  .mobile-nav-panel {
    opacity: 1 !important;
    transform: none !important;
  }
}

@media (prefers-contrast: more) {
  .card,
  .entry-content,
  .author-box,
  .comment-body,
  .widget,
  .search-form {
    border-width: 2px;
    border-color: var(--color-border-strong);
    box-shadow: none;
  }
}

@media (forced-colors: active) {
  :where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
    outline-color: CanvasText;
    box-shadow: none;
  }

  .card,
  .entry-content,
  .author-box,
  .author-archive,
  .error-404,
  .comment-body,
  .image-attachment__figure {
    border: 2px solid CanvasText;
  }

  .mobile-nav-overlay {
    background: Canvas;
  }
}

@media print {
  body,
  .entry-header,
  .entry-content,
  .page-header,
  .author-box,
  .author-archive,
  .footer,
  .site-footer {
    color: #000000;
    background: #ffffff;
    box-shadow: none;
  }

  .entry-title,
  .author-box__title,
  .author-archive__title,
  .author-archive__bio,
  .site-footer a,
  .footer a {
    color: #000000;
  }

  .card,
  .entry-content,
  .author-box,
  .author-archive {
    border: 1px solid #000000;
  }
}
