/**
 * protegeja.blog — Midnight Assurance.
 *
 * Direção: instituição de confiança, proteção patrimonial e elegância
 * editorial. A composição usa midnight navy, marfim quente e ouro heritage;
 * o ouro médio é decorativo, enquanto todo texto usa pares auditados AAA.
 *
 * Paleta:
 *   Midnight #0B1F33 | Midnight deep #071522 | Ivory #FAF7F0
 *   Paper #FFFDFC | Parchment #EFE7DA | Slate ink #30495D
 *   Heritage gold #B88732 | Gold light #F6D58A | Gold ink #63400C
 *
 * Tipografia:
 *   Títulos — "Bodoni 72", Didot, Iowan Old Style, Palatino, Georgia, serif.
 *   Corpo/UI — Inter (já enfileirada pelo tema), system-ui, sans-serif.
 *   Código — JetBrains Mono (já enfileirada pelo tema), monospace.
 *
 * Breakpoints mobile-first: 480px, 768px e 1024px.
 *
 * Logo no header escuro:
 *   A .custom-logo-link vira uma placa marfim deliberada, com borda ouro.
 *   A imagem usa fundo transparente e mix-blend-mode:multiply apenas dentro
 *   da placa isolada: o branco opaco do PNG se funde ao marfim sem apagar a
 *   marca. Em arte transparente clara, um contorno drop-shadow midnight
 *   preserva a silhueta; arte transparente escura permanece nítida sem chip
 *   adicional. O CSS não presume a transparência do arquivo de origem.
 *
 * Contrastes WCAG (texto normal):
 *   #0B1F33 em #FAF7F0 = 15.60:1
 *   #30495D em #FAF7F0 = 8.77:1
 *   #30495D em #EFE7DA = 7.65:1
 *   #63400C em #FFFDFC = 9.13:1
 *   #63400C em #DCE5EA = 7.24:1
 *   #FFFDFC em #0B1F33 = 16.46:1
 *   #DCE5EA em #0B1F33 = 13.07:1
 *   #F6D58A em #0B1F33 = 11.77:1
 *   #071522 em #F6D58A = 12.99:1
 */

:root {
  color-scheme: only light;
  --font-display: "Bodoni 72", Didot, "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --font-body: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --midnight: #0B1F33;
  --midnight-deep: #071522;
  --midnight-raised: #18324A;
  --ivory: #FAF7F0;
  --paper: #FFFDFC;
  --parchment: #EFE7DA;
  --slate-ink: #30495D;
  --gold: #B88732;
  --gold-light: #F6D58A;
  --gold-ink: #63400C;
  --mist: #DCE5EA;
  --color-bg: var(--ivory);
  --color-surface: var(--parchment);
  --color-surface-raised: var(--paper);
  --color-text: var(--midnight);
  --color-text-muted: var(--slate-ink);
  --color-heading: var(--midnight);
  --color-link: var(--midnight);
  --color-link-hover: var(--gold-ink);
  --color-brand: var(--gold);
  --color-brand-strong: var(--midnight);
  --color-accent: var(--gold-ink);
  --color-border: #71818D;
  --color-border-strong: #4C6275;
  --color-inverse: var(--paper);
  --color-inverse-muted: var(--mist);
  --color-header-bg: #0B1F33;
  --color-footer-bg: var(--midnight-deep);
  --color-footer-text: var(--paper);
  --color-focus: var(--gold-light);
  --color-code-bg: var(--midnight-deep);
  --color-code-text: var(--paper);
  --space-2xs: 0.25rem;
  --space-xs: clamp(0.5rem, 0.46rem + 0.2vw, 0.625rem);
  --space-sm: clamp(0.75rem, 0.67rem + 0.4vw, 1rem);
  --space-md: clamp(1rem, 0.84rem + 0.8vw, 1.5rem);
  --space-lg: clamp(1.5rem, 1.18rem + 1.6vw, 2.5rem);
  --space-xl: clamp(2.25rem, 1.65rem + 3vw, 4rem);
  --space-2xl: clamp(3.5rem, 2.35rem + 5.75vw, 7rem);
  --radius-sm: 0.3rem;
  --radius-md: 0.55rem;
  --radius-lg: 0.85rem;
  --radius-pill: 999rem;
  --shadow-sm: 0 0.4rem 1.1rem rgb(7 21 34 / 0.1);
  --shadow-md: 0 1.15rem 2.8rem rgb(7 21 34 / 0.16);
  --shadow-lg: 0 2rem 5rem rgb(7 21 34 / 0.24);
  --shadow-card-hover: 0 1.7rem 3.8rem rgb(7 21 34 / 0.2);
  --transition-fast: 180ms ease;
  --transition-base: 260ms cubic-bezier(0.2, 0.72, 0.2, 1);
}

body {
  color: var(--color-text);
  background:
    radial-gradient(circle at 6% 0%, rgb(184 135 50 / 0.1), transparent 25rem),
    linear-gradient(90deg, transparent 0 49.9%, rgb(11 31 51 / 0.025) 50%, transparent 50.1%),
    var(--color-bg);
  background-size: auto, 6rem 6rem, auto;
  font-family: var(--font-body);
  line-height: 1.75;
  text-rendering: optimizeLegibility;
}

:where(h1, h2, h3, h4, h5, h6) {
  color: var(--color-heading);
  font-family: var(--font-display);
  font-weight: 700;
}

:where(p, li) {
  text-wrap: pretty;
}

::selection {
  color: var(--paper);
  background: var(--midnight);
}

a {
  color: var(--color-link);
  text-decoration-color: var(--gold-ink);
  text-decoration-thickness: 0.1em;
  text-underline-offset: 0.22em;
  transition: color var(--transition-fast), text-decoration-color var(--transition-fast);
}

a:hover {
  color: var(--color-link-hover);
  text-decoration-color: currentColor;
}

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 3px solid var(--midnight);
  outline-offset: 3px;
  box-shadow: 0 0 0 7px var(--gold-light);
}

:where(.header, .hero, .site-footer, .footer) :where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline-color: var(--gold-light);
  box-shadow: 0 0 0 7px var(--paper);
}

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

/* Header, logo and primary navigation ---------------------------------- */

.header,
.site-header {
  border-block-end: 1px solid rgb(246 213 138 / 0.5);
  color: var(--paper);
  background:
    linear-gradient(90deg, rgb(246 213 138 / 0.035) 1px, transparent 1px) 0 0 / 5rem 100%,
    rgb(11 31 51 / 0.975);
  box-shadow: 0 0.25rem 1.4rem rgb(7 21 34 / 0.18);
  -webkit-backdrop-filter: blur(1rem) saturate(1.1);
  backdrop-filter: blur(1rem) saturate(1.1);
}

.header.is-scrolled,
.site-header.is-scrolled,
.header.scrolled,
.site-header.scrolled {
  background: rgb(7 21 34 / 0.985);
  box-shadow: 0 0.8rem 2rem rgb(7 21 34 / 0.28);
}

.header-inner {
  gap: var(--space-sm);
}

.site-branding {
  min-width: 0;
  gap: var(--space-sm);
}

body.has-text-logo .site-branding::before {
  display: block;
  width: 1.15rem;
  height: 1.4rem;
  flex: 0 0 auto;
  clip-path: polygon(50% 0, 93% 16%, 87% 66%, 50% 100%, 13% 66%, 7% 16%);
  content: "";
  background: linear-gradient(145deg, var(--gold-light), var(--gold));
  box-shadow: 0 0 0 1px rgb(255 253 252 / 0.24);
}

.custom-logo-link {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  max-width: min(18rem, 58vw);
  align-items: center;
  padding: 0.32rem 0.6rem;
  overflow: hidden;
  border: 1px solid rgb(246 213 138 / 0.35);
  border-radius: 0.4rem;
  background: transparent;
  box-shadow:
    0 0 0 1px rgb(246 213 138 / 0.16),
    0 0.45rem 1.1rem rgb(7 21 34 / 0.28);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast);
}

.custom-logo-link::after {
  position: absolute;
  inset: 0;
  border: 1px solid rgb(255 253 252 / 0.62);
  border-radius: inherit;
  content: "";
  pointer-events: none;
}

.custom-logo-link:hover {
  border-color: var(--gold-light);
  box-shadow:
    0 0 0 1px rgb(246 213 138 / 0.3),
    0 0.7rem 1.6rem rgb(7 21 34 / 0.34);
  transform: translateY(-0.08rem);
}

.header .custom-logo,
.site-header .custom-logo {
  display: block;
  width: auto;
  max-width: min(15rem, 60vw);
  height: auto;
  max-height: 52px;
  object-fit: contain;
  background: transparent;
  filter:
    drop-shadow(0 0 0.6px rgb(246 213 138 / 0.55))
    drop-shadow(0 0 2.2px rgb(246 213 138 / 0.22) 0.72));
  mix-blend-mode: multiply;
}

@supports not (mix-blend-mode: multiply) {
  .custom-logo-link {
    background: rgb(11 31 51 / 0.45);
  }
}

body.has-site-logo .site-description {
  display: none;
}

body.has-text-logo .site-description {
  display: none;
}

.site-title,
.site-title a,
a.site-title {
  color: var(--paper);
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.035em;
}

.site-title:hover,
.site-title a:hover,
a.site-title:hover {
  color: var(--gold-light);
}

.site-description {
  color: var(--mist);
  font-weight: 600;
}

.header .nav-list a,
.header .primary-menu a {
  position: relative;
  border-radius: var(--radius-sm);
  color: var(--paper);
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: color var(--transition-fast), background-color var(--transition-fast), box-shadow var(--transition-fast);
}

.header .nav-list a:hover,
.header .primary-menu a:hover,
.header .nav-list .current-menu-item > a,
.header .primary-menu .current-menu-item > a,
.header .nav-list .current-menu-parent > a,
.header .primary-menu .current-menu-parent > a,
.header .nav-list .current-menu-ancestor > a,
.header .primary-menu .current-menu-ancestor > a,
.header .nav-list .current_page_item > a,
.header .primary-menu .current_page_item > a,
.header .nav-list .current_page_ancestor > a,
.header .primary-menu .current_page_ancestor > a,
.header .nav-list a[aria-current="page"],
.header .primary-menu a[aria-current="page"] {
  color: var(--gold-light);
  background: rgb(246 213 138 / 0.1);
  box-shadow: inset 0 -0.18rem 0 var(--gold-light);
  text-decoration: none;
}

.header .primary-navigation .sub-menu,
.header .primary-nav .sub-menu,
.header .main-navigation .sub-menu {
  border-color: var(--gold);
  color: var(--midnight);
  background: var(--paper);
  box-shadow: var(--shadow-lg);
}

.header .primary-navigation .sub-menu a,
.header .primary-nav .sub-menu a,
.header .main-navigation .sub-menu a {
  color: var(--midnight);
  background: transparent;
  box-shadow: none;
}

.header .primary-navigation .sub-menu a:hover,
.header .primary-nav .sub-menu a:hover,
.header .main-navigation .sub-menu a:hover,
.header .primary-navigation .sub-menu .current-menu-item > a,
.header .primary-nav .sub-menu .current-menu-item > a,
.header .main-navigation .sub-menu .current-menu-item > a {
  color: var(--gold-ink);
  background: var(--parchment);
  box-shadow: inset 0.2rem 0 0 var(--gold);
}

.mobile-toggle {
  color: var(--paper);
  border-color: var(--gold-light);
  border-radius: var(--radius-sm);
  background: rgb(255 253 252 / 0.06);
  transition: color var(--transition-fast), background-color var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast);
}

.mobile-toggle:hover {
  color: var(--midnight-deep);
  border-color: var(--gold-light);
  background: var(--gold-light);
  transform: translateY(-0.08rem);
}

.mobile-toggle__icon,
.mobile-toggle-icon,
.hamburger {
  display: grid;
  height: 1.25rem;
  align-content: space-between;
  background: transparent;
}

.mobile-toggle__icon::before,
.mobile-toggle__icon::after,
.mobile-toggle-icon::before,
.mobile-toggle-icon::after,
.hamburger::before,
.hamburger::after {
  display: none;
}

.mobile-toggle__icon > span,
.mobile-toggle-icon > span,
.hamburger > span {
  display: block;
  width: 100%;
  height: 0.125rem;
  background-color: currentColor;
}

.mobile-nav-overlay {
  background: rgb(7 21 34 / 0.9);
  -webkit-backdrop-filter: blur(0.7rem);
  backdrop-filter: blur(0.7rem);
}

.mobile-nav-backdrop {
  background:
    radial-gradient(circle at 15% 15%, rgb(246 213 138 / 0.12), transparent 26rem),
    linear-gradient(135deg, rgb(11 31 51 / 0.16), transparent);
}

.mobile-nav-panel {
  border-inline-start: 0.22rem solid var(--gold);
  color: var(--midnight);
  background:
    linear-gradient(145deg, rgb(184 135 50 / 0.11), transparent 14rem),
    var(--paper);
  box-shadow: -1.5rem 0 4rem rgb(7 21 34 / 0.46);
}

.mobile-nav-header {
  padding-block-end: var(--space-sm);
  border-block-end: 1px solid var(--color-border);
}

.mobile-nav-title {
  color: var(--midnight);
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 1.2rem + 0.75vw, 1.75rem);
  font-weight: 700;
}

.mobile-nav-close {
  color: var(--midnight);
  border-color: var(--midnight);
  background: var(--paper);
  transition: color var(--transition-fast), background-color var(--transition-fast), transform var(--transition-fast);
}

.mobile-nav-close:hover {
  color: var(--paper);
  border-color: var(--midnight);
  background: var(--midnight);
  transform: rotate(3deg);
}

.mobile-navigation,
.mobile-nav-panel .nav-list,
.mobile-nav-panel .menu {
  color: var(--midnight);
}

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

.mobile-nav-panel .nav-list a:hover,
.mobile-nav-panel .menu a:hover,
.mobile-nav-panel .current-menu-item > a,
.mobile-nav-panel .current-menu-parent > a,
.mobile-nav-panel .current-menu-ancestor > a,
.mobile-nav-panel a[aria-current="page"] {
  color: var(--gold-ink);
  background: var(--parchment);
  box-shadow: inset 0.22rem 0 0 var(--gold);
}

.mobile-nav-panel .sub-menu,
.mobile-nav-panel .nav-list .sub-menu {
  border-inline-start-color: var(--gold);
}

/* Hero and shared editorial hierarchy ---------------------------------- */

.hero {
  min-height: clamp(27rem, 76svh, 47rem);
  padding-block: var(--space-2xl);
  color: var(--paper);
  background:
    radial-gradient(circle at 82% 28%, rgb(246 213 138 / 0.12), transparent 23rem),
    linear-gradient(118deg, var(--midnight-deep) 0%, var(--midnight) 54%, var(--midnight-raised) 100%);
  box-shadow: inset 0 -0.28rem 0 var(--gold);
}

.hero::before {
  inset: 0;
  width: auto;
  aspect-ratio: auto;
  border: 0;
  border-radius: 0;
  background:
    linear-gradient(115deg, transparent 0 64%, rgb(246 213 138 / 0.055) 64% 64.12%, transparent 64.12%),
    linear-gradient(65deg, transparent 0 74%, rgb(255 253 252 / 0.045) 74% 74.12%, transparent 74.12%);
}

.hero::after {
  top: 50%;
  right: clamp(-9rem, -7vw, -4rem);
  bottom: auto;
  left: auto;
  width: clamp(19rem, 42vw, 35rem);
  aspect-ratio: 0.86;
  border: 1px solid rgb(246 213 138 / 0.48);
  border-radius: 0;
  clip-path: polygon(50% 0, 94% 15%, 87% 68%, 50% 100%, 13% 68%, 6% 15%);
  background: rgb(246 213 138 / 0.018);
  box-shadow: inset 0 0 0 1.1rem rgb(255 253 252 / 0.025);
  transform: translateY(-44%) rotate(6deg);
}

.hero__inner,
.hero-inner {
  position: relative;
  z-index: 1;
  width: min(100% - (var(--site-gutter) * 2), var(--wide-width));
  margin-inline: auto;
}

.hero__inner::before {
  display: block;
  width: clamp(3.5rem, 10vw, 7rem);
  height: 0.2rem;
  margin-block-end: var(--space-md);
  content: "";
  background: linear-gradient(90deg, var(--gold-light), var(--gold));
}

.hero__eyebrow,
.hero-kicker,
.hero .eyebrow {
  color: var(--gold-light);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.hero__title,
.hero-title,
.hero h1 {
  max-width: 13ch;
  color: var(--paper);
  font-family: var(--font-display);
  font-size: clamp(3rem, 1.65rem + 6.7vw, 7rem);
  font-weight: 700;
  line-height: 0.94;
  letter-spacing: -0.055em;
  text-wrap: balance;
}

.hero__description,
.hero-description,
.hero p {
  max-width: 40rem;
  color: var(--mist);
}

.hero__description,
.hero-description {
  font-size: clamp(1.05rem, 0.94rem + 0.55vw, 1.35rem);
  line-height: 1.75;
}

.hero a:not(.button):not(.btn) {
  color: var(--gold-light);
}

.hero a:not(.button):not(.btn):hover {
  color: var(--paper);
}

.hero-actions {
  margin-block-start: var(--space-lg);
}

.hero__cta,
.hero .button,
.hero .btn {
  color: var(--midnight-deep);
  border-color: var(--gold-light);
  border-radius: var(--radius-sm);
  background: var(--gold-light);
  box-shadow: 0 0.75rem 1.8rem rgb(7 21 34 / 0.32);
}

.hero__cta:hover,
.hero .button:hover,
.hero .btn:hover {
  color: var(--paper);
  border-color: var(--paper);
  background: transparent;
  box-shadow: 0 1rem 2.2rem rgb(7 21 34 / 0.38);
}

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

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

.section-title,
.archive-title,
.search-title,
.page-title {
  position: relative;
  max-width: 23ch;
  padding-inline-start: clamp(0.8rem, 2vw, 1.25rem);
  color: var(--midnight);
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.035em;
}

.section-title::before,
.archive-title::before,
.search-title::before,
.page-title::before {
  position: absolute;
  inset-block: 0.08em;
  inset-inline-start: 0;
  width: 0.2rem;
  content: "";
  background: linear-gradient(var(--gold-light), var(--gold-ink));
}

.section-kicker,
.archive-kicker {
  color: var(--gold-ink);
  font-weight: 800;
}

.button,
.btn,
.wp-element-button,
.wp-block-button__link,
.search-submit,
.form-submit .submit {
  border-color: var(--midnight);
  border-radius: var(--radius-sm);
  color: var(--paper);
  background: var(--midnight);
  box-shadow: 0 0.4rem 1rem rgb(7 21 34 / 0.14);
  font-weight: 800;
  transition:
    color var(--transition-fast),
    background-color var(--transition-fast),
    border-color var(--transition-fast),
    box-shadow var(--transition-fast),
    transform var(--transition-fast);
}

.button:hover,
.btn:hover,
.wp-element-button:hover,
.wp-block-button__link:hover,
.search-submit:hover,
.form-submit .submit:hover {
  color: var(--midnight-deep);
  border-color: var(--gold-light);
  background: var(--gold-light);
  box-shadow: 0 0.75rem 1.5rem rgb(7 21 34 / 0.2);
  transform: translateY(-0.12rem);
}

.button--secondary,
.btn-secondary,
.is-style-outline > .wp-block-button__link {
  color: var(--midnight);
  border-color: var(--midnight);
  background: transparent;
}

.button--secondary:hover,
.btn-secondary:hover,
.is-style-outline > .wp-block-button__link:hover {
  color: var(--paper);
  background: var(--midnight);
}

/* Cards: complete BEM contract ----------------------------------------- */

.cards-grid,
.posts-grid,
.related-posts-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(1.25rem, 3vw, 2rem);
}

.card,
.post-card {
  --stagger-delay: 0ms;
  position: relative;
  isolation: isolate;
  display: flex;
  min-width: 0;
  overflow: hidden;
  flex-direction: column;
  border: 1px solid var(--color-border);
  border-block-start: 0.24rem solid var(--midnight);
  border-radius: var(--radius-md);
  color: var(--midnight);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
  transition:
    border-color var(--transition-base),
    box-shadow var(--transition-base),
    transform var(--transition-base);
}

.card::before,
.post-card::before {
  position: absolute;
  z-index: 4;
  top: -0.24rem;
  right: clamp(1rem, 4vw, 1.5rem);
  width: clamp(2.75rem, 10vw, 4.5rem);
  height: 0.24rem;
  content: "";
  background: var(--gold);
}

.card:hover,
.card:focus-within,
.post-card:hover,
.post-card:focus-within {
  border-color: var(--color-border-strong);
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-0.42rem);
}

.card__media,
.card-media,
.post-card__media {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border-block-end: 1px solid var(--color-border);
  background:
    linear-gradient(135deg, rgb(11 31 51 / 0.12), rgb(184 135 50 / 0.14)),
    var(--mist);
}

.card__media::after,
.card-media::after,
.post-card__media::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, transparent 62%, rgb(7 21 34 / 0.2));
  pointer-events: none;
}

.card__image,
.card__media img,
.card-media img,
.post-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.86) contrast(1.04);
  transition: filter 420ms ease, transform 520ms cubic-bezier(0.2, 0.72, 0.2, 1);
}

.card:hover .card__image,
.card:focus-within .card__image,
.card:hover .card__media img,
.card:focus-within .card__media img,
.post-card:hover .post-card__media img,
.post-card:focus-within .post-card__media img {
  filter: saturate(1) contrast(1.05);
  transform: scale(1.05);
}

.card__body,
.card-body,
.post-card__content {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  padding: clamp(1.25rem, 4vw, 1.75rem);
}

.card__categories,
.card-category {
  color: var(--gold-ink);
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.5;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.card__categories a,
.card-category a {
  position: relative;
  z-index: 2;
  color: inherit;
  text-decoration-color: currentColor;
}

.card__title,
.card-title,
.post-card__title {
  margin-block: 0.7rem 0;
  color: var(--midnight);
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 1.2rem + 0.85vw, 1.8rem);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.028em;
  text-wrap: balance;
}

.card__title a,
.card-title a,
.post-card__title a {
  color: inherit;
  text-decoration: none;
}

.card__title a:hover,
.card-title a:hover,
.post-card__title a:hover {
  color: var(--gold-ink);
}

.card__meta,
.card-meta,
.post-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.75rem;
  margin-block-start: var(--space-sm);
  color: var(--slate-ink);
  font-size: 0.8rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  line-height: 1.55;
}

.card__meta > * + *::before,
.card-meta > * + *::before,
.post-card__meta > * + *::before {
  margin-inline-end: 0.75rem;
  content: "•";
  color: var(--gold-ink);
}

.card__excerpt,
.card-excerpt,
.post-card__excerpt {
  margin-block-start: var(--space-sm);
  color: var(--slate-ink);
  line-height: 1.72;
}

.card__excerpt > :last-child,
.card-excerpt > :last-child,
.post-card__excerpt > :last-child {
  margin-block-end: 0;
}

.card__link {
  position: relative;
  z-index: 2;
  display: inline-flex;
  min-height: 2.75rem;
  align-self: flex-start;
  align-items: center;
  gap: 0.45rem;
  margin-block-start: auto;
  padding-block-start: var(--space-sm);
  color: var(--midnight);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-decoration-color: var(--gold-ink);
}

.card__link > span[aria-hidden="true"] {
  display: inline-block;
  color: var(--gold-ink);
  transition: transform var(--transition-fast);
}

.card__link:hover {
  color: var(--gold-ink);
}

.card__link:hover > span[aria-hidden="true"],
.card__link:focus-visible > span[aria-hidden="true"] {
  transform: translateX(0.38rem);
}

.featured-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  border: 1px solid var(--gold);
  border-block-start-width: 0.3rem;
  border-radius: var(--radius-lg);
  background: var(--midnight);
  box-shadow: var(--shadow-lg);
}

.featured-card::before {
  width: clamp(4rem, 20vw, 9rem);
  height: 0.3rem;
  top: -0.3rem;
  background: var(--gold-light);
}

.featured-card .card__media,
.featured-card__media {
  min-height: clamp(16rem, 54vw, 25rem);
  border-block-end-color: var(--gold);
}

.featured-card .card__body,
.featured-card__content {
  justify-content: center;
  background:
    radial-gradient(circle at 100% 0%, rgb(246 213 138 / 0.12), transparent 18rem),
    var(--midnight);
}

.featured-card > .card__body:only-child {
  grid-column: 1 / -1;
  min-height: clamp(18rem, 48vw, 28rem);
}

.featured-card .card__categories,
.featured-card .card-category {
  color: var(--gold-light);
}

.featured-card .card__title,
.featured-card .card-title,
.featured-card__title {
  color: var(--paper);
  font-size: clamp(2rem, 1.4rem + 2.6vw, 3.5rem);
  line-height: 1.06;
}

.featured-card .card__title a:hover,
.featured-card .card-title a:hover {
  color: var(--gold-light);
}

.featured-card .card__meta,
.featured-card .card-meta,
.featured-card .card__excerpt,
.featured-card .card-excerpt {
  color: var(--mist);
}

.featured-card .card__meta a,
.featured-card .card-meta a,
.featured-card .card__excerpt a,
.featured-card .card-excerpt a {
  color: var(--gold-light);
}

.featured-card .card__meta a:hover,
.featured-card .card-meta a:hover,
.featured-card .card__excerpt a:hover,
.featured-card .card-excerpt a:hover {
  color: var(--paper);
}

.featured-card .card__meta > * + *::before,
.featured-card .card-meta > * + *::before {
  color: var(--gold-light);
}

.featured-card .card__link {
  color: var(--gold-light);
  text-decoration-color: currentColor;
}

.featured-card .card__link > span[aria-hidden="true"] {
  color: inherit;
}

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

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

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

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

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

.cards-grid .card:nth-child(7) {
  --stagger-delay: 420ms;
}

.cards-grid .card:nth-child(8) {
  --stagger-delay: 490ms;
}

.cards-grid .card:nth-child(9) {
  --stagger-delay: 560ms;
}

.cards-grid .card:nth-child(10) {
  --stagger-delay: 630ms;
}

.cards-grid .card:nth-child(11) {
  --stagger-delay: 700ms;
}

.cards-grid .card:nth-child(12) {
  --stagger-delay: 770ms;
}

.cards-grid .card:nth-child(n + 13) {
  --stagger-delay: 840ms;
}

/* Entry, archive and article hierarchy --------------------------------- */

.entry-header {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-block-end: 0.22rem solid var(--gold);
  color: var(--paper);
  background:
    radial-gradient(circle at 88% 20%, rgb(246 213 138 / 0.1), transparent 20rem),
    linear-gradient(120deg, var(--midnight-deep), var(--midnight-raised));
}

.entry-header::after {
  position: absolute;
  z-index: -1;
  right: clamp(-8rem, -5vw, -3rem);
  bottom: -10rem;
  width: clamp(18rem, 38vw, 30rem);
  aspect-ratio: 0.86;
  border: 1px solid rgb(246 213 138 / 0.3);
  clip-path: polygon(50% 0, 94% 15%, 87% 68%, 50% 100%, 13% 68%, 6% 15%);
  content: "";
  transform: rotate(8deg);
}

.entry-header-inner {
  position: relative;
  width: min(100% - (var(--site-gutter) * 2), var(--content-width));
  margin-inline: auto;
  padding-inline-start: clamp(0.9rem, 3vw, 1.5rem);
  border-inline-start: 0.22rem solid var(--gold-light);
}

.page-header,
.archive-header,
.search-header,
.author-hero,
.not-found-hero {
  border-block: 1px solid var(--color-border);
  background:
    radial-gradient(circle at 92% 10%, rgb(184 135 50 / 0.12), transparent 20rem),
    var(--paper);
}

.archive-header-inner,
.search-header-inner {
  position: relative;
}

.entry-categories {
  color: var(--gold-ink);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.entry-header .entry-categories {
  color: var(--gold-light);
}

.entry-categories a {
  color: inherit;
}

.entry-title {
  max-width: 21ch;
  color: var(--midnight);
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 1.4rem + 4.2vw, 5.4rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.05em;
  text-wrap: balance;
}

.entry-header .entry-title {
  color: var(--paper);
}

.entry-title a {
  color: inherit;
  text-decoration: none;
}

.entry-title a:hover {
  color: var(--gold-light);
}

.entry-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 1rem;
  color: var(--slate-ink);
  font-size: 0.86rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.entry-header .entry-meta {
  color: var(--mist);
}

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

.entry-header .entry-meta a {
  color: var(--gold-light);
}

.entry-date {
  color: inherit;
  font-variant-numeric: tabular-nums;
}

.entry-thumbnail,
.single-featured-image,
.post-thumbnail {
  position: relative;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-lg);
  background: var(--mist);
  box-shadow: var(--shadow-lg);
}

.entry-thumbnail::after,
.single-featured-image::after {
  position: absolute;
  right: clamp(1rem, 3vw, 2rem);
  bottom: -0.25rem;
  width: clamp(4rem, 18%, 9rem);
  height: 0.25rem;
  content: "";
  background: var(--gold);
}

.entry-thumbnail__image,
.entry-thumbnail img,
.single-featured-image img {
  width: 100%;
  max-height: 46rem;
  object-fit: cover;
}

.entry-content,
.content-inner {
  color: var(--midnight);
  font-size: clamp(1rem, 0.96rem + 0.22vw, 1.125rem);
  line-height: 1.8;
}

.entry-summary {
  padding: clamp(1.15rem, 3vw, 1.6rem);
  border: 1px solid var(--color-border);
  border-inline-start: 0.3rem solid var(--gold-ink);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  color: var(--midnight);
  background: var(--paper);
  line-height: 1.78;
}

.entry-footer {
  padding-block-start: var(--space-md);
  border-block-start: 1px solid var(--color-border);
}

.entry-type {
  display: inline-flex;
  padding: 0.28rem 0.68rem;
  border: 1px solid var(--midnight);
  border-radius: var(--radius-pill);
  color: var(--midnight);
  background: var(--paper);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

body.single .entry-content > p:first-of-type::first-letter {
  float: left;
  margin: 0.08em 0.12em 0 0;
  color: var(--midnight);
  font-family: var(--font-display);
  font-size: 3.55em;
  font-weight: 700;
  line-height: 0.78;
}

.content-inner :where(h2, h3, h4, h5, h6),
.entry-content :where(h2, h3, h4, h5, h6) {
  color: var(--midnight);
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.025em;
}

.content-inner h2,
.entry-content h2 {
  font-size: clamp(1.75rem, 1.35rem + 1.75vw, 2.8rem);
}

.content-inner h3,
.entry-content h3 {
  font-size: clamp(1.4rem, 1.16rem + 1.15vw, 2.05rem);
}

.content-inner h4,
.entry-content h4 {
  font-size: clamp(1.18rem, 1.07rem + 0.55vw, 1.55rem);
}

.content-inner :where(ul, ol),
.entry-content :where(ul, ol) {
  padding-inline-start: 1.45em;
}

.content-inner li + li,
.entry-content li + li {
  margin-block-start: 0.45rem;
}

.content-inner li::marker,
.entry-content li::marker {
  color: var(--gold-ink);
  font-weight: 800;
}

.content-inner a,
.entry-content a {
  color: var(--midnight);
  font-weight: 700;
  text-decoration-color: var(--gold-ink);
}

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

.content-inner :where(blockquote, .wp-block-quote),
.entry-content :where(blockquote, .wp-block-quote) {
  position: relative;
  margin-inline: 0;
  padding: clamp(1.35rem, 4vw, 2.25rem);
  border: 1px solid var(--color-border);
  border-inline-start: 0.42rem solid var(--gold-ink);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  color: var(--midnight);
  background:
    linear-gradient(135deg, rgb(184 135 50 / 0.11), transparent 15rem),
    var(--paper);
  box-shadow: var(--shadow-sm);
  font-family: var(--font-display);
  font-size: clamp(1.12rem, 1.02rem + 0.5vw, 1.4rem);
  line-height: 1.65;
}

.content-inner blockquote::before,
.entry-content blockquote::before {
  position: absolute;
  top: -0.05em;
  right: 0.28em;
  content: "“";
  color: rgb(99 64 12 / 0.16);
  font-family: var(--font-display);
  font-size: 5rem;
  line-height: 1;
}

.content-inner blockquote cite,
.entry-content blockquote cite {
  display: block;
  margin-block-start: var(--space-sm);
  color: var(--slate-ink);
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-style: normal;
  font-weight: 700;
}

.content-inner .wp-block-pullquote,
.entry-content .wp-block-pullquote {
  border-block: 0.2rem solid var(--gold-ink);
  color: var(--midnight);
}

.content-inner hr,
.entry-content hr,
.wp-block-separator {
  height: 1px;
  border: 0;
  background: linear-gradient(90deg, transparent, var(--gold-ink), transparent);
}

.content-inner :where(code, kbd, samp),
.entry-content :where(code, kbd, samp) {
  border-radius: 0.2rem;
  color: var(--midnight);
  background: var(--mist);
  font-family: var(--font-mono);
  font-size: 0.88em;
  font-weight: 600;
}

.content-inner :where(pre, .code-block),
.entry-content :where(pre, .code-block),
.terminal-box,
.cmd-box {
  border: 1px solid var(--gold);
  border-block-start: 0.25rem solid var(--gold-light);
  border-radius: var(--radius-md);
  color: var(--color-code-text);
  background:
    linear-gradient(90deg, rgb(246 213 138 / 0.045) 1px, transparent 1px) 0 0 / 2.5rem 2.5rem,
    var(--color-code-bg);
  box-shadow: 0.5rem 0.5rem 0 rgb(184 135 50 / 0.16), var(--shadow-md);
  font-family: var(--font-mono);
  scrollbar-color: var(--gold-light) var(--midnight-deep);
}

.content-inner pre code,
.entry-content pre code {
  color: inherit;
  background: transparent;
}

.content-inner pre a,
.entry-content pre a,
.terminal-box a,
.cmd-box a {
  color: var(--gold-light);
}

.content-inner pre a:hover,
.entry-content pre a:hover,
.terminal-box a:hover,
.cmd-box a:hover {
  color: var(--paper);
}

.terminal-title,
.cmd-label {
  color: var(--gold-light);
  font-weight: 700;
}

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

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

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

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

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

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

.tip-box,
.notice-box,
.highlight-stat {
  position: relative;
  padding: clamp(1.15rem, 3vw, 1.65rem);
  border: 1px solid var(--color-border);
  border-inline-start: 0.4rem solid var(--gold-ink);
  border-radius: var(--radius-md);
  color: var(--midnight);
  background:
    linear-gradient(135deg, rgb(184 135 50 / 0.11), transparent 13rem),
    var(--paper);
  box-shadow: var(--shadow-sm);
}

.tip-box__title,
.tip-box-title,
.notice-box__title,
.notice-title,
.highlight-stat__label {
  color: var(--midnight);
  font-family: var(--font-display);
  font-weight: 700;
}

.tip-box--success,
.notice-box--success {
  border-inline-start-color: #24563F;
}

.tip-box--warning,
.notice-box--warning {
  border-inline-start-color: var(--gold-ink);
}

.highlight-stat__value,
.stat-value {
  color: var(--midnight);
  font-family: var(--font-display);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--gold-ink);
  text-decoration-thickness: 0.1em;
  text-underline-offset: 0.12em;
}

.table-scroll,
.wp-block-table,
.comp-table,
[role="region"][aria-label*="tabela" i],
[role="region"][aria-label*="table" i],
.content-inner [role="table"],
.entry-content [role="table"] {
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-sm);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
  scrollbar-color: var(--midnight) var(--parchment);
}

.content-inner > table,
.entry-content > table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
}

.content-inner table,
.entry-content table,
.comment-content table,
.comp-table table,
table.comp-table {
  border-color: var(--color-border-strong);
  background: var(--paper);
  font-variant-numeric: tabular-nums;
}

.content-inner th,
.entry-content th,
.comment-content th,
.comp-table th {
  color: var(--paper);
  border-color: #82909B;
  background: var(--midnight);
  font-weight: 800;
}

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

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

.content-inner tbody tr:hover,
.entry-content tbody tr:hover,
.comment-content tbody tr:hover,
.comp-table tbody tr:hover {
  background: var(--mist);
}

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

.content-inner figcaption,
.entry-content figcaption,
.wp-element-caption {
  color: var(--slate-ink);
  font-size: 0.86rem;
}

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

.page-links {
  padding-block: var(--space-md);
  border-block: 1px solid var(--color-border);
}

.page-links-title,
.page-links__title {
  color: var(--midnight);
  font-family: var(--font-display);
  font-weight: 700;
}

.page-number,
.page-links > a {
  color: var(--midnight);
  border-color: var(--midnight);
  background: var(--paper);
}

.page-links > a:hover {
  color: var(--paper);
  background: var(--midnight);
}

.tag-pill,
.article-tags a,
.tag-list a {
  color: var(--midnight);
  border-color: var(--midnight);
  border-radius: var(--radius-pill);
  background: var(--paper);
  font-weight: 700;
  transition: color var(--transition-fast), background-color var(--transition-fast), transform var(--transition-fast);
}

.tag-pill:hover,
.article-tags a:hover,
.tag-list a:hover {
  color: var(--paper);
  border-color: var(--midnight);
  background: var(--midnight);
  transform: translateY(-0.08rem);
}

.author-box {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--color-border-strong);
  border-inline-start: 0.42rem solid var(--gold-ink);
  border-radius: var(--radius-md);
  background:
    radial-gradient(circle at 100% 0%, rgb(184 135 50 / 0.13), transparent 15rem),
    var(--paper);
  box-shadow: var(--shadow-md);
}

.author-box__avatar {
  position: relative;
  align-self: start;
}

.author-box__avatar img,
.author-box .avatar {
  border-color: var(--paper);
  box-shadow: 0 0 0 0.18rem var(--midnight), 0 0 0 0.36rem rgb(184 135 50 / 0.5);
}

.author-box__content {
  min-width: 0;
}

.author-box__title {
  color: var(--midnight);
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 1.25rem + 0.9vw, 1.9rem);
  font-weight: 700;
}

.author-box__bio {
  color: var(--slate-ink);
  line-height: 1.72;
}

.author-archive {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid var(--gold);
  border-block-start: 0.28rem solid var(--gold-light);
  border-radius: var(--radius-lg);
  color: var(--paper);
  background:
    radial-gradient(circle at 100% 0%, rgb(246 213 138 / 0.13), transparent 18rem),
    linear-gradient(120deg, var(--midnight-deep), var(--midnight-raised));
  box-shadow: var(--shadow-lg);
}

.author-archive__avatar {
  position: relative;
}

.author-archive__avatar::after {
  position: absolute;
  right: -0.3rem;
  bottom: -0.3rem;
  width: 1.4rem;
  height: 1.4rem;
  border: 0.18rem solid var(--midnight);
  border-radius: 50%;
  content: "";
  background: var(--gold-light);
}

.author-archive__image,
.author-archive__avatar img {
  border: 0.18rem solid var(--paper);
  box-shadow: 0 0 0 0.2rem var(--gold-light), 0 0.9rem 2rem rgb(7 21 34 / 0.4);
}

.author-archive__content {
  min-width: 0;
}

.author-archive__eyebrow {
  color: var(--gold-light);
  font-weight: 800;
}

.author-archive__title {
  color: var(--paper);
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 1.45rem + 2.2vw, 3rem);
  font-weight: 700;
}

.author-archive__bio {
  color: var(--mist);
  line-height: 1.72;
}

.author-archive__bio a {
  color: var(--gold-light);
}

.author-archive__bio a:hover {
  color: var(--paper);
}

.author-archive__website {
  color: var(--gold-light);
  font-weight: 700;
  text-decoration-color: currentColor;
}

.author-archive__website:hover {
  color: var(--paper);
}

.related-posts {
  border-block: 1px solid var(--color-border);
  background:
    linear-gradient(90deg, rgb(11 31 51 / 0.035) 1px, transparent 1px) 0 0 / 5rem 5rem,
    var(--parchment);
}

.post-navigation,
.posts-navigation,
.pagination {
  padding-block-start: var(--space-md);
  border-block-start: 1px solid var(--color-border);
}

.pagination .nav-links,
.posts-navigation .nav-links,
.post-navigation .nav-links {
  gap: var(--space-sm);
}

.pagination .page-numbers,
.posts-navigation a,
.post-navigation a {
  color: var(--midnight);
  border-color: var(--color-border-strong);
  border-radius: var(--radius-sm);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
  transition: color var(--transition-fast), background-color var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast);
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current,
.posts-navigation a:hover,
.post-navigation a:hover {
  color: var(--paper);
  border-color: var(--midnight);
  background: var(--midnight);
  box-shadow: var(--shadow-md);
  transform: translateY(-0.1rem);
}

.pagination .page-numbers.current {
  box-shadow: inset 0 -0.2rem 0 var(--gold-light), var(--shadow-sm);
}

.post-navigation a {
  border-inline-start: 0.3rem solid var(--gold-ink);
}

.post-navigation__label {
  color: var(--slate-ink);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.post-navigation__title {
  color: var(--midnight);
  font-family: var(--font-display);
  font-weight: 700;
}

.post-navigation a:hover .post-navigation__label,
.post-navigation a:hover .post-navigation__title {
  color: var(--paper);
}

/* Search, empty states, 404 and comments ------------------------------- */

.search-form {
  padding: 0.65rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
}

.search-label {
  color: var(--midnight);
}

.search-results-count {
  color: var(--slate-ink);
  font-weight: 600;
}

.search-field,
.comments-area :where(input[type="text"], input[type="email"], input[type="url"], textarea),
.widget :where(input, select, textarea) {
  color: var(--midnight);
  border-color: var(--color-border-strong);
  border-radius: var(--radius-sm);
  background: var(--paper);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.search-field:hover,
.comments-area :where(input, textarea):hover,
.widget :where(input, select, textarea):hover {
  border-color: var(--gold-ink);
}

.search-field:focus,
.comments-area :where(input, textarea):focus,
.widget :where(input, select, textarea):focus {
  border-color: var(--midnight);
}

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

.no-results,
.not-found,
.empty-state {
  color: var(--midnight);
}

.error-404 {
  width: 100%;
}

.error-404__code {
  color: var(--gold-ink);
  font-family: var(--font-display);
  font-weight: 700;
  text-shadow: 0.06em 0.06em 0 rgb(11 31 51 / 0.12);
}

.error-404__title {
  color: var(--midnight);
  font-family: var(--font-display);
  font-weight: 700;
}

.error-404__actions {
  align-items: center;
  gap: var(--space-sm);
}

.posts-notice,
.no-comments {
  color: var(--midnight);
  border-color: var(--color-border);
  border-inline-start-color: var(--gold-ink);
  background: var(--paper);
}

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

.comments-title,
.comment-reply-title {
  color: var(--midnight);
  font-family: var(--font-display);
  font-weight: 700;
}

.comment-list,
.comment-list .children {
  color: var(--midnight);
}

.comment-body {
  border-color: var(--color-border);
  border-radius: var(--radius-md);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.comment-body:focus-within {
  border-color: var(--gold-ink);
  box-shadow: var(--shadow-md);
}

.bypostauthor .comment-body {
  border-inline-start: 0.3rem solid var(--gold-ink);
}

.comment-author {
  color: var(--midnight);
  font-weight: 800;
}

.comment-author .avatar {
  box-shadow: 0 0 0 0.14rem var(--gold);
}

.comment-metadata {
  color: var(--slate-ink);
}

.comment-respond {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--parchment);
  box-shadow: var(--shadow-sm);
}

.comment-form label {
  color: var(--midnight);
  font-weight: 700;
}

.comment-notes {
  color: var(--slate-ink);
}

.required {
  color: var(--gold-ink);
  font-weight: 900;
}

.cancel-comment-reply {
  color: var(--gold-ink);
}

.comment-form-cookies-consent input {
  accent-color: var(--midnight);
}

/* Attachments, sidebar and widgets ------------------------------------- */

.attachment-header,
.image-header {
  text-align: start;
}

.attachment-media,
.image-attachment__figure {
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, rgb(184 135 50 / 0.1), transparent 16rem),
    var(--parchment);
  box-shadow: var(--shadow-md);
}

.image-attachment__image,
.attachment-media img {
  max-width: 100%;
  height: auto;
  border-radius: calc(var(--radius-lg) - 0.12rem);
}

.attachment-caption {
  color: var(--slate-ink);
}

.attachment-parent {
  color: var(--slate-ink);
}

.attachment-download {
  border-color: var(--midnight);
}

.attachment-navigation {
  border-block-start: 1px solid var(--color-border);
  padding-block-start: var(--space-md);
}

.widget-area,
.sidebar {
  min-width: 0;
}

.widget {
  padding: var(--space-md);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
}

.widget-title {
  padding-block-end: 0.55rem;
  border-block-end: 0.16rem solid var(--gold);
  color: var(--midnight);
  font-family: var(--font-display);
  font-weight: 700;
}

.widget a {
  color: var(--midnight);
  font-weight: 700;
}

.widget a:hover {
  color: var(--gold-ink);
}

.sticky::before {
  color: var(--midnight-deep);
  background: var(--gold-light);
}

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

.site-footer,
.footer {
  border-block-start: 0.3rem solid var(--gold);
  color: var(--paper);
  background:
    radial-gradient(circle at 100% 0%, rgb(246 213 138 / 0.1), transparent 26rem),
    linear-gradient(90deg, rgb(246 213 138 / 0.04) 1px, transparent 1px) 0 0 / 5rem 5rem,
    var(--midnight-deep);
}

.footer-grid {
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-xl);
}

.site-footer .widget,
.footer .widget,
.footer-column {
  color: var(--mist);
  border: 0;
  background: transparent;
  box-shadow: none;
}

.site-footer .widget-title,
.footer .widget-title,
.footer-title {
  padding-block-end: 0.65rem;
  border-block-end: 0.14rem solid var(--gold);
  color: var(--paper);
  font-family: var(--font-display);
  font-weight: 700;
}

.site-footer a,
.footer a {
  color: var(--gold-light);
  text-decoration-color: currentColor;
}

.site-footer a:hover,
.footer a:hover {
  color: var(--paper);
}

.footer-navigation,
.social-navigation {
  color: var(--mist);
}

.site-info,
.footer-bottom {
  border-block-start-color: rgb(246 213 138 / 0.42);
  color: var(--mist);
}

/* Reveal, fadeInUp stagger and motion ---------------------------------- */

.js .reveal,
.js .section-title {
  opacity: 0;
  transform: translateY(1.2rem);
  transition:
    opacity 480ms ease,
    transform 480ms cubic-bezier(0.2, 0.72, 0.2, 1);
}

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

.js .cards-grid .card.reveal.visible,
.js .cards-grid .card.reveal.is-visible,
.no-js .cards-grid .card {
  animation: protegeja-fade-in-up 520ms cubic-bezier(0.2, 0.72, 0.2, 1) both;
  animation-delay: var(--stagger-delay);
}

@keyframes protegeja-fade-in-up {
  from {
    opacity: 0;
    transform: translateY(1.35rem);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 480px --------------------------------------------------------------- */

@media (min-width: 480px) {
  .header .custom-logo,
  .site-header .custom-logo {
    max-width: min(16rem, 58vw);
  }

  .search-form {
    flex-wrap: nowrap;
  }

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

  .post-navigation .nav-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nav-next {
    text-align: end;
  }

  .nav-next a {
    align-items: flex-end;
  }
}

/* 768px --------------------------------------------------------------- */

@media (min-width: 768px) {
  .header .custom-logo,
  .site-header .custom-logo {
    max-width: min(18rem, 48vw);
    height: 44px;
    max-height: 44px;
  }

  body.has-text-logo .site-description {
    display: block;
    color: var(--mist);
  }

  .cards-grid,
  .posts-grid,
  .related-posts-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .featured-card .card__media,
  .featured-card__media {
    min-height: 28rem;
    border-inline-end: 1px solid var(--gold);
    border-block-end: 0;
  }

  .featured-card .card__body,
  .featured-card__content {
    border-inline-start: 0.22rem solid var(--gold);
  }

  .hero__inner {
    padding-inline-end: min(30vw, 21rem);
  }

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

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

/* 1024px -------------------------------------------------------------- */

@media (min-width: 1024px) {
  .cards-grid,
  .posts-grid,
  .related-posts-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2.15rem;
  }

  .content-sidebar-layout {
    grid-template-columns: minmax(0, 1fr) minmax(17rem, 20rem);
  }

  .content-sidebar-layout .sidebar {
    border-block-start: 0.24rem solid var(--gold);
  }

  .hero__inner {
    padding-inline-end: min(34vw, 25rem);
  }
}

/* Accessibility preferences and print --------------------------------- */

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

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

  .js .reveal,
  .js .section-title,
  .reveal,
  .reveal.visible,
  .reveal.is-visible,
  .card,
  .card:hover,
  .card:focus-within,
  .card__image,
  .card:hover .card__image,
  .card:focus-within .card__image,
  .card__link > span[aria-hidden="true"],
  .mobile-nav-panel,
  .custom-logo-link,
  .custom-logo-link:hover,
  .mobile-toggle,
  .mobile-toggle:hover,
  .mobile-nav-close,
  .mobile-nav-close:hover,
  .button,
  .button:hover,
  .btn,
  .btn:hover,
  .wp-element-button,
  .wp-element-button:hover,
  .wp-block-button__link,
  .wp-block-button__link:hover,
  .search-submit,
  .search-submit:hover,
  .form-submit .submit,
  .form-submit .submit:hover,
  .tag-pill,
  .tag-pill:hover,
  .article-tags a,
  .article-tags a:hover,
  .tag-list a,
  .tag-list a:hover,
  .pagination .page-numbers,
  .pagination .page-numbers:hover,
  .posts-navigation a,
  .posts-navigation a:hover,
  .post-navigation a,
  .post-navigation a:hover {
    opacity: 1 !important;
    transform: none !important;
  }
}

@media (prefers-contrast: more) {
  .card,
  .featured-card,
  .author-box,
  .author-archive,
  .comment-body,
  .image-attachment__figure,
  .attachment-media,
  .search-form {
    border-width: 2px;
  }

  a {
    text-decoration-thickness: 0.14em;
  }
}

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

  .card,
  .featured-card,
  .author-box,
  .author-archive,
  .tip-box,
  .comment-body,
  .image-attachment__figure,
  .custom-logo-link {
    border: 2px solid CanvasText;
  }

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

@media print {
  .hero,
  .entry-header,
  .page-header,
  .author-archive,
  .featured-card,
  .featured-card .card__body,
  .site-footer,
  .footer {
    color: #000000 !important;
    background: #FFFFFF !important;
    box-shadow: none !important;
  }

  .hero::before,
  .hero::after,
  .entry-header::after,
  .card::before,
  .entry-thumbnail::after,
  .single-featured-image::after {
    display: none;
  }

  .hero__title,
  .hero-title,
  .hero__eyebrow,
  .hero-kicker,
  .hero .eyebrow,
  .hero__description,
  .hero-description,
  .hero p,
  .entry-header .entry-title,
  .entry-header .entry-meta,
  .entry-header .entry-meta a,
  .entry-header .entry-categories,
  .author-archive__title,
  .author-archive__eyebrow,
  .author-archive__bio,
  .author-archive__bio a,
  .author-archive__website,
  .featured-card .card__categories,
  .featured-card .card__title,
  .featured-card .card__meta,
  .featured-card .card__meta a,
  .featured-card .card-meta a,
  .featured-card .card__excerpt,
  .featured-card .card__excerpt a,
  .featured-card .card-excerpt a,
  .featured-card .card__link,
  .site-footer .widget,
  .site-footer .widget-title,
  .site-footer a,
  .site-info,
  .footer .widget,
  .footer .widget-title,
  .footer a,
  .footer-bottom {
    color: #000000 !important;
    text-shadow: none !important;
  }

  .hero .button,
  .hero .btn {
    color: #000000 !important;
    border-color: #000000 !important;
    background: #FFFFFF !important;
  }
}
