/* ==========================================================================
   Components
   1.  Eyebrow
   2.  Button & text link
   3.  Brand (wordmark slot)
   4.  Site header / navigation
   5.  Section head
   6.  Hero
   7.  Document preview (hero media)
   8.  Social proof: stats, credentials row, quote
   9.  Features (benefits)
   10. Steps (how it works)
   11. CTA band
   12. Form fields
   13. Footer
   14. FAQ (accordion)
   15. Choice (radio cards)
   16. Checkbox
   17. Input group (prefix / suffix)
   18. Progress
   19. Wizard (one question per step)
   20. Estimate (result figure)
   21. Ledger (label / value rows)
   22. Note (callout)
   23. Signal (favourable / neutral / unfavourable)
   24. Breadcrumb
   25. Subnav (category filter)
   26. Post card / post list (article teasers)
   27. Post header + meta (article title block)
   28. Prose (long-form article body)
   29. Callout (in-article call to action)
   30. Author (byline card)
   31. Pager (previous / next)
   ========================================================================== */

/* 1. Eyebrow ============================================================== */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  line-height: 1.4;
  color: var(--color-text-accent);
}

.eyebrow--rule::before {
  content: "";
  width: 1.5rem;
  height: 1px;
  background: var(--color-rule-accent);
}

/* 2. Button & text link =================================================== */

.btn {
  --btn-h: 3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  min-height: var(--btn-h);
  padding: 0 1.5rem;
  border: 1px solid transparent;
  border-radius: var(--radius-1);
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: var(--weight-medium);
  letter-spacing: 0.005em;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background-color var(--dur-2) var(--ease-out),
    color var(--dur-2) var(--ease-out),
    border-color var(--dur-2) var(--ease-out);
}

.btn--sm {
  --btn-h: 2.5rem;
  padding: 0 1.125rem;
  font-size: var(--text-small);
}

.btn--lg {
  --btn-h: 3.5rem;
  padding: 0 2rem;
  font-size: 1rem;
}

.btn--block {
  width: 100%;
}

.btn--primary {
  background: var(--color-action-bg);
  color: var(--color-action-text);
}
.btn--primary:hover {
  background: var(--color-action-bg-hover);
}

.btn--secondary {
  background: transparent;
  color: var(--color-text-strong);
  border-color: var(--color-action-outline);
}
.btn--secondary:hover {
  background: var(--color-action-bg);
  border-color: var(--color-action-bg);
  color: var(--color-action-text);
}

.btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

.btn__icon {
  width: 1.125rem;
  height: 1.125rem;
  flex: none;
  transition: transform var(--dur-2) var(--ease-out);
}
.btn:hover .btn__icon--arrow {
  transform: translateX(3px);
}

/* Text link with arrow: secondary actions inside cards and sections */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 0.9375rem;
  font-weight: var(--weight-medium);
  color: var(--color-text-strong);
  text-decoration: none;
  padding-block: var(--space-1);
  border-bottom: 1px solid var(--color-border-strong);
  transition: border-color var(--dur-2) var(--ease-out);
}
.link-arrow::after {
  content: "";
  width: 1rem;
  height: 1rem;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5'%3E%3Cpath d='M4 12h15M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5'%3E%3Cpath d='M4 12h15M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform var(--dur-2) var(--ease-out);
}
.link-arrow:hover {
  border-color: currentColor;
}
.link-arrow:hover::after {
  transform: translateX(3px);
}

/* 3. Brand ================================================================ */

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--color-text-strong);
  text-decoration: none;
}

.brand__mark {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid currentColor;
  font-family: var(--font-display);
  font-size: 1rem;
  font-style: italic;
  line-height: 1;
}

.brand__name {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: var(--weight-regular);
  letter-spacing: -0.01em;
  line-height: 1;
}

/* Replace .brand__mark/.brand__name with <img class="brand__logo"> later */
.brand__logo {
  height: 2rem;
  width: auto;
}

/* 4. Site header / navigation ============================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur-2) var(--ease-out);
}

/* Blur lives on a pseudo-element: backdrop-filter on the header itself would
   become the containing block of the fixed mobile drawer and clip it. */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: color-mix(in srgb, var(--color-bg) 94%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  backdrop-filter: saturate(1.4) blur(12px);
}

.site-header.is-scrolled,
.site-header.is-open {
  border-bottom-color: var(--color-border);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  height: var(--header-h);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: var(--space-7);
}

.site-nav__list {
  display: flex;
  gap: var(--space-6);
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav__link {
  position: relative;
  font-size: 0.9375rem;
  white-space: nowrap;
  color: var(--color-text);
  text-decoration: none;
  padding-block: var(--space-2);
  transition: color var(--dur-1) var(--ease-out);
}
.site-nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-2) var(--ease-out);
}
.site-nav__link:hover,
.site-nav__link[aria-current] {
  color: var(--color-text-strong);
}
.site-nav__link:hover::after,
.site-nav__link[aria-current]::after {
  transform: scaleX(1);
}

.site-nav__actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.nav-toggle {
  display: none;
  position: relative;
  width: 2.75rem;
  height: 2.75rem;
  margin-right: calc(var(--space-2) * -1);
  padding: 0;
  border: 0;
  background: none;
  color: var(--color-text-strong);
  cursor: pointer;
}
.nav-toggle__bar {
  position: absolute;
  left: 50%;
  width: 1.375rem;
  height: 1.5px;
  margin-left: -0.6875rem;
  background: currentColor;
  transition: transform var(--dur-2) var(--ease-out), opacity var(--dur-1);
}
.nav-toggle__bar:nth-child(1) { top: calc(50% - 4px); }
.nav-toggle__bar:nth-child(2) { top: calc(50% + 3px); }
.site-header.is-open .nav-toggle__bar:nth-child(1) { transform: translateY(3.5px) rotate(45deg); }
.site-header.is-open .nav-toggle__bar:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }

/* The header has its own, wider breakpoint (1200px): a brand, up to five links
   and two buttons do not fit on one line below it. Keep in sync with ds.js. */
@media (max-width: 75rem) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    z-index: var(--z-drawer);
    flex-direction: column;
    align-items: stretch;
    justify-content: space-between;
    gap: var(--space-7);
    padding: var(--space-5) var(--gutter) calc(var(--space-6) + env(safe-area-inset-bottom));
    background: var(--color-bg);
    overflow-y: auto;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition:
      opacity var(--dur-2) var(--ease-out),
      transform var(--dur-2) var(--ease-out),
      visibility 0s linear var(--dur-2);
  }

  .site-header.is-open .site-nav {
    visibility: visible;
    opacity: 1;
    transform: none;
    transition-delay: 0s;
  }

  .site-nav__list {
    flex-direction: column;
    gap: 0;
  }

  .site-nav__link {
    display: block;
    padding-block: var(--space-4);
    border-bottom: var(--border-hairline);
    font-family: var(--font-display);
    font-size: 1.625rem;
    color: var(--color-text-strong);
  }
  .site-nav__link::after {
    display: none;
  }

  .site-nav__actions {
    flex-direction: column;
    align-items: stretch;
  }
  .site-nav__actions .btn {
    --btn-h: 3.25rem;
    font-size: 1rem;
  }
}

/* 5. Section head ========================================================= */
/* Default: split. Title left, lede right, divided by a vertical accent rule. */

.section-head {
  display: grid;
  gap: var(--space-5);
  margin-bottom: clamp(var(--space-7), 5vw, var(--space-9));
}

.section-head__title {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.section-head__body {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  align-items: flex-start;
}

@media (min-width: 60rem) {
  .section-head {
    grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
    gap: var(--space-8);
    align-items: end;
  }
  .section-head__body {
    padding-left: var(--space-6);
    border-left: 1px solid var(--color-rule-accent);
  }
}

.section-head--stacked {
  grid-template-columns: 1fr;
  max-width: 46rem;
}
.section-head--stacked .section-head__body {
  padding-left: 0;
  border-left: 0;
}

.section-head--center {
  grid-template-columns: 1fr;
  max-width: 44rem;
  margin-inline: auto;
  text-align: center;
  justify-items: center;
}
.section-head--center .section-head__title,
.section-head--center .section-head__body {
  align-items: center;
  padding-left: 0;
  border-left: 0;
}

/* 6. Hero ================================================================= */

.hero {
  position: relative;
  padding-block: clamp(var(--space-7), 6vw, var(--space-10)) clamp(var(--space-8), 7vw, var(--space-10));
  overflow: hidden;
}

.hero__grid {
  display: grid;
  gap: var(--space-8);
  align-items: center;
}

@media (min-width: 60rem) {
  .hero__grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: var(--space-9);
  }
}

.hero__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-5);
}

.hero__title {
  max-width: 14ch;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-3);
}

@media (max-width: 30rem) {
  .hero__actions {
    width: 100%;
  }
  .hero__actions .btn {
    flex: 1 1 100%;
  }
}

/* Assurance list: replaces "badge pills". Hairline-topped, quiet. */
.hero__assurances {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  gap: var(--space-4) var(--space-6);
  width: 100%;
  margin-top: var(--space-6);
  padding: var(--space-5) 0 0;
  border-top: var(--border-hairline);
  list-style: none;
}

.hero__assurances li {
  display: flex;
  gap: var(--space-3);
  font-size: var(--text-small);
  line-height: 1.45;
  color: var(--color-text);
}

.hero__assurances li::before {
  content: "";
  flex: none;
  width: 6px;
  height: 6px;
  margin-top: 0.45em;
  background: var(--color-rule-accent);
}

.hero__media {
  position: relative;
}

.hero__media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius-2);
}

/* Centered variant: no media, for simple pages */
.hero--center .hero__content {
  align-items: center;
  text-align: center;
  max-width: 52rem;
  margin-inline: auto;
}
.hero--center .hero__title {
  max-width: 18ch;
}

/* 7. Document preview ===================================================== */
/* A typeset "deliverable" built in HTML. Stands in for stock photography. */

.doc {
  position: relative;
  max-width: 26rem;
  margin-inline: auto;
  padding: clamp(var(--space-5), 4vw, var(--space-7));
  background: var(--stone-0);
  color: var(--slate-700);
  border: 1px solid var(--stone-200);
  box-shadow: var(--shadow-3);
  font-size: var(--text-small);
}

/* Paper stack behind the sheet */
.doc::before,
.doc::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--stone-0);
  border: 1px solid var(--stone-200);
}
.doc::before {
  transform: translate(14px, 14px);
  background: var(--stone-50);
}
.doc::after {
  transform: translate(28px, 28px);
  background: var(--stone-100);
}

.doc__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-4);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--navy-950);
}

.doc__label {
  font-size: 0.6875rem;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--slate-500);
}

.doc__title {
  margin-top: var(--space-2);
  font-family: var(--font-display);
  font-size: 1.5rem;
  line-height: 1.15;
  color: var(--navy-950);
}

.doc__stamp {
  flex: none;
  padding: var(--space-1) var(--space-2);
  border: 1px solid var(--brass-500);
  color: var(--brass-700);
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.doc__figure {
  padding-block: var(--space-5);
  border-bottom: 1px solid var(--stone-200);
}

.doc__value {
  margin-top: var(--space-2);
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 1.4rem + 1.4vw, 2.25rem);
  font-weight: var(--weight-light);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--navy-950);
  font-variant-numeric: tabular-nums lining-nums;
}

.doc__rows {
  display: grid;
  gap: var(--space-3);
  padding-block: var(--space-5);
  list-style: none;
  margin: 0;
}

.doc__row {
  display: grid;
  grid-template-columns: 6.5rem 1fr 2.5rem;
  align-items: center;
  gap: var(--space-3);
  font-size: 0.75rem;
}

.doc__bar {
  height: 4px;
  background: var(--stone-100);
}
.doc__bar > span {
  display: block;
  height: 100%;
  background: var(--navy-950);
}

.doc__row-value {
  text-align: right;
  font-family: var(--font-mono);
  color: var(--navy-950);
}

.doc__sign {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: var(--space-4);
  padding-top: var(--space-5);
  border-top: 1px solid var(--stone-200);
  font-size: 0.6875rem;
  color: var(--slate-500);
}

.doc__signature {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--navy-950);
  line-height: 1;
  margin-bottom: var(--space-2);
}

/* 8. Social proof ========================================================= */

/* 8a. Stats — large light serif numerals separated by hairlines */
.stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: var(--border-hairline);
}

@media (min-width: 60rem) {
  .stats {
    grid-template-columns: repeat(var(--stats-cols, 4), minmax(0, 1fr));
  }
}

.stat {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-6) var(--space-5) var(--space-6) 0;
  border-bottom: var(--border-hairline);
}

@media (min-width: 60rem) {
  .stat {
    padding: var(--space-7) var(--space-6);
    border-bottom: 0;
  }
  .stat + .stat {
    border-left: var(--border-hairline);
  }
  .stat:first-child {
    padding-left: 0;
  }
}

.stat__value {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 1.9rem + 2.6vw, 4.25rem);
  font-weight: var(--weight-light);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--color-text-strong);
  font-variant-numeric: lining-nums;
}

.stat__unit {
  font-size: 0.55em;
  color: var(--color-text-accent);
  margin-left: 0.04em;
}

.stat__label {
  font-size: var(--text-small);
  line-height: 1.5;
  color: var(--color-text-muted);
  max-width: 22ch;
}

/* 8b. Credentials / logo row */
.logo-row {
  display: grid;
  gap: var(--space-5);
  align-items: center;
}

@media (min-width: 60rem) {
  .logo-row {
    grid-template-columns: 14rem 1fr;
    gap: var(--space-7);
  }
}

.logo-row__label {
  font-size: var(--text-small);
  color: var(--color-text-muted);
  max-width: 24ch;
}

.logo-row__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-6) clamp(var(--space-6), 5vw, var(--space-9));
  list-style: none;
  margin: 0;
  padding: 0;
}

.logo-row__item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  color: var(--color-text-strong);
}

.logo-row__item img {
  height: 2rem;
  width: auto;
  filter: grayscale(1);
  opacity: 0.75;
}

/* Text fallback while real logos are not available */
.logo-row__name {
  font-family: var(--font-display);
  font-size: 1.625rem;
  line-height: 1;
  letter-spacing: -0.01em;
}
.logo-row__meta {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

/* 8c. Quote / testimonial */
.quote {
  display: grid;
  gap: var(--space-6);
  max-width: 56rem;
}

.quote__text {
  font-family: var(--font-display);
  font-size: var(--text-display-s);
  font-weight: var(--weight-light);
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--color-text-strong);
  text-wrap: pretty;
}

.quote__text::before {
  content: "“";
  display: block;
  height: 0.55em;
  margin-bottom: var(--space-3);
  font-size: 3.5em;
  line-height: 1;
  color: var(--color-text-accent);
}

.quote__by {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  font-size: var(--text-small);
  font-style: normal;
}

.quote__by::before {
  content: "";
  width: 2rem;
  height: 1px;
  background: var(--color-rule-accent);
}

.quote__name {
  display: block;
  font-weight: var(--weight-semibold);
  color: var(--color-text-strong);
}
.quote__role {
  display: block;
  color: var(--color-text-muted);
}

/* 9. Features (benefits) ================================================= */
/* Editorial columns: index number, title, body. No icon boxes, no emoji. */

.features {
  display: grid;
  gap: 0 var(--space-7);
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (min-width: 40rem) {
  .features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 60rem) {
  .features {
    grid-template-columns: repeat(var(--features-cols, 3), minmax(0, 1fr));
  }
}

.feature {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding-block: var(--space-6) var(--space-7);
  border-top: 1px solid var(--color-border-strong);
}

.feature__index {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  color: var(--color-text-accent);
  margin-bottom: var(--space-3);
}

.feature__text {
  color: var(--color-text-muted);
  max-width: 38ch;
}

.feature .link-arrow {
  margin-top: auto;
  align-self: flex-start;
}

/* Boxed variant (e.g. deliverables) */
.features--cards {
  gap: var(--space-4);
}
.features--cards .feature {
  padding: var(--space-6);
  border: var(--border-hairline);
  border-radius: var(--radius-2);
  background: var(--color-bg);
  transition: border-color var(--dur-2) var(--ease-out), box-shadow var(--dur-2) var(--ease-out);
}
.features--cards .feature:hover {
  border-color: var(--color-border-strong);
  box-shadow: var(--shadow-2);
}

/* 10. Steps (how it works) =============================================== */

.steps {
  --step-marker: 2.5rem;
  display: grid;
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
}

.step {
  position: relative;
  display: grid;
  grid-template-columns: var(--step-marker) 1fr;
  gap: var(--space-2) var(--space-5);
  padding-bottom: var(--space-7);
  counter-increment: step;
}

/* Vertical connector (mobile) */
.step:not(:last-child)::after {
  content: "";
  position: absolute;
  left: calc(var(--step-marker) / 2);
  top: var(--step-marker);
  bottom: 0;
  width: 1px;
  background: var(--color-border-strong);
}

.step__marker {
  grid-row: span 3;
  display: grid;
  place-items: center;
  width: var(--step-marker);
  height: var(--step-marker);
  border: 1px solid var(--color-text-strong);
  background: var(--color-bg);
  font-family: var(--font-mono);
  font-size: var(--text-small);
  color: var(--color-text-strong);
}
.step__marker::before {
  content: counter(step, decimal-leading-zero);
}

.step__title {
  padding-top: 0.45rem;
}

.step__text {
  color: var(--color-text-muted);
  max-width: 34ch;
}

.step__meta {
  justify-self: start;
  margin-top: var(--space-2);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-text-accent);
}

@media (min-width: 60rem) {
  .steps {
    grid-template-columns: repeat(var(--steps-cols, 4), minmax(0, 1fr));
    gap: var(--space-6);
  }
  .step {
    grid-template-columns: 1fr;
    align-content: start; /* keep titles aligned when texts differ in length */
    gap: var(--space-3);
    padding-bottom: 0;
  }
  .step__marker {
    grid-row: auto;
    margin-bottom: var(--space-4);
  }
  /* Horizontal connector (desktop) */
  .step:not(:last-child)::after {
    left: var(--step-marker);
    right: calc(var(--space-6) * -1);
    top: calc(var(--step-marker) / 2);
    bottom: auto;
    width: auto;
    height: 1px;
  }
  .step__title {
    padding-top: 0;
  }
}

/* 11. CTA band ============================================================ */

.cta-band {
  padding-block: clamp(var(--space-8), 8vw, var(--space-10));
}

.cta-band__grid {
  display: grid;
  gap: var(--space-7);
  align-items: center;
}

@media (min-width: 60rem) {
  .cta-band__grid {
    grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
    gap: var(--space-9);
  }
}

.cta-band__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-5);
}

.cta-band__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-3);
}

.cta-band__note {
  font-size: var(--text-small);
  color: var(--color-text-muted);
}

.cta-band--center .cta-band__content {
  align-items: center;
  text-align: center;
  max-width: 44rem;
  margin-inline: auto;
}

/* Panel that holds a form on a dark band */
.panel {
  padding: clamp(var(--space-5), 4vw, var(--space-7));
  background: var(--color-bg-alt);
  border: var(--border-hairline);
  border-radius: var(--radius-2);
}

/* 12. Form fields ========================================================= */

.form {
  display: grid;
  gap: var(--space-5);
}

@media (min-width: 40rem) {
  .form--2col {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .form--2col > .field--full,
  .form--2col > .form__footer {
    grid-column: 1 / -1;
  }
}

.field {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.field__label {
  font-size: var(--text-small);
  font-weight: var(--weight-medium);
  color: var(--color-text-strong);
}

.field__hint {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.input,
.select {
  width: 100%;
  min-height: 3rem;
  padding: 0 var(--space-4);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-1);
  background: var(--color-bg);
  color: var(--color-text-strong);
  font-size: 1rem; /* 16px avoids iOS zoom */
  transition: border-color var(--dur-1) var(--ease-out), box-shadow var(--dur-1) var(--ease-out);
}

.select {
  appearance: none;
  padding-right: var(--space-7);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237e8692' stroke-width='1.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--space-4) center;
  background-size: 1rem;
}

.input::placeholder {
  color: var(--color-text-muted);
  opacity: 0.8;
}

.input:hover,
.select:hover {
  border-color: var(--color-text-muted);
}

.input:focus,
.select:focus {
  outline: none;
  border-color: var(--color-focus);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-focus) 22%, transparent);
}

.input[aria-invalid="true"] {
  border-color: var(--color-danger);
}

.field__error {
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  color: var(--color-danger);
}

.form__footer {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.form__success {
  display: none;
  gap: var(--space-3);
}
.form.is-sent > :not(.form__success) {
  display: none;
}
.form.is-sent .form__success {
  display: grid;
  grid-column: 1 / -1;
}

/* 13. Footer ============================================================== */

.site-footer {
  padding-block: var(--space-9) var(--space-6);
  font-size: var(--text-small);
  border-top: var(--border-hairline);
}

.site-footer__top {
  display: grid;
  gap: var(--space-7);
  padding-bottom: var(--space-8);
}

@media (min-width: 60rem) {
  .site-footer__top {
    grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
    gap: var(--space-9);
  }
}

.site-footer__brand {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  align-items: flex-start;
}

.site-footer__cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-7) var(--space-6);
}

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

.site-footer__heading {
  margin-bottom: var(--space-4);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.site-footer__list {
  display: grid;
  gap: var(--space-3);
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer__list a {
  color: var(--color-text);
  text-decoration: none;
}
.site-footer__list a:hover {
  color: var(--color-text-strong);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-footer__legal {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  padding-top: var(--space-6);
  border-top: var(--border-hairline);
  color: var(--color-text-muted);
  font-size: var(--text-xs);
  line-height: 1.6;
}

.site-footer__legal-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-3) var(--space-6);
}

.site-footer__legal a {
  color: inherit;
}

.site-footer__disclaimer {
  max-width: 90ch;
}

/* 14. FAQ (accordion) ===================================================== */
/* Native <details>/<summary>: works without JS, keyboard accessible. */

.faq {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--color-border-strong);
}

.faq__item {
  border-bottom: var(--border-hairline);
}

.faq__question {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  gap: var(--space-5);
  padding: var(--space-5) 0;
  font-family: var(--font-sans);
  font-size: var(--text-title);
  font-weight: var(--weight-semibold);
  line-height: 1.35;
  color: var(--color-text-strong);
  cursor: pointer;
  list-style: none;
}
.faq__question::-webkit-details-marker {
  display: none;
}

/* Plus that turns into a minus when open */
.faq__question::after {
  content: "";
  width: 0.875rem;
  height: 0.875rem;
  margin-top: 0.35rem;
  background:
    linear-gradient(currentColor, currentColor) center / 100% 1.5px no-repeat,
    linear-gradient(currentColor, currentColor) center / 1.5px 100% no-repeat;
  color: var(--color-text-accent);
  transition: background-size var(--dur-2) var(--ease-out);
}
.faq__item[open] .faq__question::after {
  background-size: 100% 1.5px, 1.5px 0;
}

.faq__answer {
  padding-bottom: var(--space-6);
  color: var(--color-text-muted);
  max-width: 68ch;
}
.faq__answer > * + * {
  margin-top: var(--space-3);
}


/* 15. Choice (radio cards) ================================================ */
/* Native radios inside labels: keyboard, forms and validation work as usual.
   <fieldset class="choices"> > <label class="choice"> > input.choice__input
   + span.choice__body > .choice__label + .choice__desc                      */

.choices {
  display: grid;
  gap: var(--space-2);
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

/* Short labels (sectors, yes/no): two columns at every width */
.choices--grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.choice {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-5);
  border: var(--border-hairline);
  border-radius: var(--radius-1);
  background: var(--color-bg);
  cursor: pointer;
  transition:
    border-color var(--dur-1) var(--ease-out),
    background-color var(--dur-1) var(--ease-out),
    box-shadow var(--dur-1) var(--ease-out);
}

.choices--grid .choice {
  padding: var(--space-3) var(--space-4);
  gap: var(--space-3);
}

.choice:hover {
  border-color: var(--color-border-strong);
}

.choice:has(.choice__input:checked) {
  border-color: var(--color-text-strong);
  box-shadow: inset 0 0 0 1px var(--color-text-strong);
  background: var(--color-bg-alt);
}

.choice:has(.choice__input:focus-visible) {
  outline: 2px solid var(--color-focus);
  outline-offset: 2px;
}

.choice__input {
  appearance: none;
  display: grid;
  place-items: center;
  width: 1.125rem;
  height: 1.125rem;
  margin: 0.2rem 0 0;
  border: 1px solid var(--color-border-strong);
  border-radius: 50%;
  background: var(--color-bg);
  cursor: pointer;
}
.choice__input::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--color-text-strong);
  transform: scale(0);
  transition: transform var(--dur-1) var(--ease-out);
}
.choice__input:checked {
  border-color: var(--color-text-strong);
}
.choice__input:checked::before {
  transform: scale(1);
}
.choice__input:focus-visible {
  outline: none;
}

.choice__body {
  display: grid;
  gap: 2px;
}

.choice__label {
  font-weight: var(--weight-medium);
  line-height: 1.4;
  color: var(--color-text-strong);
}

.choice__desc {
  font-size: var(--text-small);
  line-height: 1.45;
  color: var(--color-text-muted);
}

/* 16. Checkbox ============================================================ */
/* <label class="check"><input class="check__input" type="checkbox"> text */

.check {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: var(--space-3);
  font-size: var(--text-small);
  line-height: 1.5;
  color: var(--color-text);
  cursor: pointer;
}

.check__input {
  appearance: none;
  display: grid;
  place-items: center;
  width: 1.125rem;
  height: 1.125rem;
  margin: 0.1rem 0 0;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-1);
  background: var(--color-bg);
  cursor: pointer;
  transition: background-color var(--dur-1) var(--ease-out), border-color var(--dur-1) var(--ease-out);
}
.check__input::before {
  content: "";
  width: 0.75rem;
  height: 0.75rem;
  background: var(--color-action-text);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat;
  transform: scale(0);
  transition: transform var(--dur-1) var(--ease-out);
}
.check__input:hover {
  border-color: var(--color-text-muted);
}
.check__input:checked {
  background: var(--color-action-bg);
  border-color: var(--color-action-bg);
}
.check__input:checked::before {
  transform: scale(1);
}
.check__input[aria-invalid="true"] {
  border-color: var(--color-danger);
}

/* 17. Input group (prefix / suffix) ======================================= */
/* <div class="input-group"><span class="input-group__affix">R$</span>
   <input class="input"><span class="input-group__affix">mi</span></div>   */

.input-group {
  display: flex;
  align-items: stretch;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-1);
  background: var(--color-bg);
  overflow: hidden;
  transition: border-color var(--dur-1) var(--ease-out), box-shadow var(--dur-1) var(--ease-out);
}

.input-group:hover {
  border-color: var(--color-text-muted);
}

.input-group:focus-within {
  border-color: var(--color-focus);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-focus) 22%, transparent);
}

.input-group:has([aria-invalid="true"]) {
  border-color: var(--color-danger);
}

.input-group .input {
  flex: 1;
  min-width: 0;
  min-height: calc(3rem - 2px);
  border: 0;
  border-radius: 0;
  box-shadow: none;
  font-variant-numeric: tabular-nums lining-nums;
}

.input-group__affix {
  display: flex;
  align-items: center;
  padding: 0 var(--space-4);
  background: var(--color-bg-sunken);
  font-family: var(--font-mono);
  font-size: var(--text-small);
  color: var(--color-text-muted);
  white-space: nowrap;
}
.input-group__affix:first-child {
  border-right: var(--border-hairline);
}
.input-group__affix:last-child {
  border-left: var(--border-hairline);
}

/* 18. Progress ============================================================ */
/* Hairline track with an ink fill. Set --progress (0%–100%) on the bar.   */

.progress {
  display: grid;
  gap: var(--space-3);
}

.progress__meta {
  display: flex;
  justify-content: space-between;
  gap: var(--space-4);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.04em;
  color: var(--color-text-muted);
}

.progress__track {
  height: 2px;
  background: var(--color-border);
  overflow: hidden;
}

.progress__bar {
  width: var(--progress, 0%);
  height: 100%;
  background: var(--color-text-strong);
  transition: width var(--dur-3) var(--ease-out);
}

/* 19. Wizard (one question per step) ====================================== */
/* <form class="wizard" data-wizard> with a .progress, several
   <fieldset class="wizard__step" data-wizard-step> and .wizard__actions.
   Behaviour (steps, progress, Continue enabled only when valid) in ds.js.  */

.wizard {
  display: grid;
  gap: var(--space-6);
  padding: clamp(var(--space-5), 4vw, var(--space-7));
  border: var(--border-hairline);
  border-radius: var(--radius-2);
  background: var(--color-bg);
  box-shadow: var(--shadow-2);
}

.wizard__step {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.wizard__question {
  padding: 0;
  font-family: var(--font-display);
  font-size: var(--text-display-s);
  font-weight: var(--weight-regular);
  line-height: var(--leading-snug);
  letter-spacing: var(--tracking-display);
  color: var(--color-text-strong);
  text-wrap: balance;
}
.wizard__question:focus {
  outline: none;
}

.wizard__hint {
  margin-top: var(--space-2);
  font-size: var(--text-small);
  color: var(--color-text-muted);
  max-width: var(--measure);
}

.wizard__body {
  display: grid;
  gap: var(--space-4);
  margin-top: var(--space-5);
}

.wizard__actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-3);
  padding-top: var(--space-5);
  border-top: var(--border-hairline);
}
/* Back on the left, the primary action always on the right */
.wizard__actions .btn--primary {
  margin-left: auto;
}

@media (max-width: 30rem) {
  .wizard__actions .btn--primary {
    flex: 1;
  }
}

/* 20. Estimate (result figure) ============================================ */
/* A large light-serif range under an ink rule, like a figure in a report. */

.estimate {
  display: grid;
  gap: var(--space-3);
  padding-top: var(--space-5);
  border-top: 1px solid var(--color-text-strong);
}

.estimate__label {
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.estimate__value {
  font-family: var(--font-display);
  font-size: var(--text-display-l);
  font-weight: var(--weight-light);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--color-text-strong);
  font-variant-numeric: lining-nums;
  text-wrap: balance;
}

.estimate__sep {
  color: var(--color-text-accent);
}

.estimate__caption {
  font-size: var(--text-small);
  color: var(--color-text-muted);
}

/* 21. Ledger (label / value rows) ========================================= */
/* <dl class="ledger"><div class="ledger__row"><dt>…</dt><dd>…</dd></div>
   Use --total on the last row of a calculation; --cols for summaries.     */

.ledger {
  display: grid;
  margin: 0;
  border-top: var(--border-hairline);
}

.ledger__row {
  display: flex;
  flex-wrap: wrap; /* a long value drops below its label, still right-aligned */
  justify-content: space-between;
  align-items: baseline;
  gap: var(--space-1) var(--space-5);
  padding-block: var(--space-4);
  border-bottom: var(--border-hairline);
}

.ledger__row dt {
  font-size: var(--text-small);
  color: var(--color-text-muted);
}

.ledger__row dd {
  margin: 0 0 0 auto;
  font-weight: var(--weight-medium);
  color: var(--color-text-strong);
  text-align: right;
  font-variant-numeric: tabular-nums lining-nums;
}

.ledger__row--total {
  border-top: 1px solid var(--color-text-strong);
  border-bottom: 0;
  margin-top: -1px;
}
.ledger__row--total dt {
  font-weight: var(--weight-semibold);
  color: var(--color-text-strong);
}
.ledger__row--total dd {
  white-space: nowrap;
  font-family: var(--font-display);
  font-size: var(--text-display-s);
  font-weight: var(--weight-regular);
  line-height: 1.2;
}

@media (min-width: 40rem) {
  .ledger--cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: var(--space-7);
  }
}

/* 22. Note (callout) ====================================================== */
/* Quiet aside with an accent rule. --alert for something the reader must
   not miss (uses the danger color on the rule only, never as a fill).     */

.note {
  display: grid;
  gap: var(--space-2);
  padding: var(--space-1) 0 var(--space-1) var(--space-5);
  border-left: 2px solid var(--color-rule-accent);
  font-size: var(--text-small);
  line-height: 1.6;
  color: var(--color-text);
  max-width: var(--measure);
}

.note__title {
  font-weight: var(--weight-semibold);
  color: var(--color-text-strong);
}

.note--alert {
  border-left-color: var(--color-danger);
}

/* 23. Signal ============================================================== */
/* Small status label with a mono glyph: + favourable, = neutral, − not.   */

.signal {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.signal::before {
  display: grid;
  place-items: center;
  width: 1.25rem;
  height: 1.25rem;
  border: 1px solid currentColor;
  font-family: var(--font-mono);
  font-size: var(--text-small);
  letter-spacing: 0;
  line-height: 1;
}

.signal--up {
  color: var(--color-success);
}
.signal--up::before {
  content: "+";
}
.signal--flat::before {
  content: "=";
}
.signal--down {
  color: var(--color-danger);
}
.signal--down::before {
  content: "\2212";
}

/* ==========================================================================
   Editorial components (blog, insights). Built for tech/blog.
   ========================================================================== */

/* 24. Breadcrumb ========================================================== */
/* <nav class="breadcrumb" aria-label="Você está em"><ol><li><a>…</a></li>
   <li><span aria-current="page">…</span></li></ol></nav>                  */

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: var(--text-small);
  color: var(--color-text-muted);
}

.breadcrumb li + li::before {
  content: "/";
  margin-right: var(--space-2);
  color: var(--color-border-strong);
}

.breadcrumb a {
  color: inherit;
  text-decoration: none;
}
.breadcrumb a:hover {
  color: var(--color-text-strong);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.breadcrumb [aria-current] {
  color: var(--color-text);
}

/* 25. Subnav (category filter) ============================================ */
/* A row of links under a hairline; the current one gets an ink underline.
   Scrolls sideways on small screens instead of wrapping.                  */

.subnav {
  border-bottom: var(--border-hairline);
}

.subnav__list {
  display: flex;
  gap: var(--space-6);
  list-style: none;
  margin: 0;
  padding: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.subnav__list::-webkit-scrollbar {
  display: none;
}

.subnav__link {
  display: inline-flex;
  align-items: baseline;
  gap: var(--space-2);
  padding-block: var(--space-4);
  margin-bottom: -1px;
  border-bottom: 1px solid transparent;
  font-size: var(--text-small);
  font-weight: var(--weight-medium);
  color: var(--color-text-muted);
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--dur-1) var(--ease-out), border-color var(--dur-2) var(--ease-out);
}
.subnav__link:hover {
  color: var(--color-text-strong);
}
.subnav__link[aria-current] {
  color: var(--color-text-strong);
  border-bottom-color: var(--color-text-strong);
}

.subnav__count {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-text-accent);
}

/* 26. Post card / post list =============================================== */
/* Typographic teasers on a hairline, like the features: no thumbnails.
   The whole card is clickable through the title link's ::after.
   <ul class="post-list" role="list"><li class="post-card">…</li></ul>
   --post-cols sets the desktop column count (default 3).                  */

.post-list {
  display: grid;
  gap: 0 var(--space-7);
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (min-width: 40rem) {
  .post-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 60rem) {
  .post-list {
    grid-template-columns: repeat(var(--post-cols, 3), minmax(0, 1fr));
  }
}

.post-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding-block: var(--space-6) var(--space-7);
  border-top: 1px solid var(--color-border-strong);
  transition: border-color var(--dur-2) var(--ease-out);
}
.post-card:hover {
  border-top-color: var(--color-text-strong);
}

.post-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--space-2) var(--space-4);
  margin-bottom: var(--space-2);
}

.post-card__date {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.post-card__title {
  font-family: var(--font-display);
  font-size: var(--text-display-s);
  font-weight: var(--weight-regular);
  line-height: var(--leading-snug);
  letter-spacing: var(--tracking-display);
  color: var(--color-text-strong);
  text-wrap: balance;
}

.post-card__title a {
  color: inherit;
  text-decoration: none;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}
.post-card__title a::after {
  content: "";
  position: absolute;
  inset: 0;
}
.post-card:hover .post-card__title a {
  text-decoration-line: underline;
}

.post-card__excerpt {
  color: var(--color-text-muted);
  max-width: 48ch;
  text-wrap: pretty;
}

.post-card__footer {
  margin-top: auto;
  padding-top: var(--space-3);
  font-size: var(--text-small);
  color: var(--color-text-muted);
}

/* Featured: the latest article, full width, bigger title. */
.post-card--featured {
  grid-column: 1 / -1;
  gap: var(--space-4);
  padding-block: var(--space-7) var(--space-8);
}
.post-card--featured .post-card__title {
  font-size: var(--text-display-m);
  line-height: 1.12;
  max-width: 24ch;
}
.post-card--featured .post-card__excerpt {
  font-size: var(--text-lead);
  line-height: 1.55;
  max-width: var(--measure);
}

/* Empty state for a category without articles */
.post-list__empty {
  grid-column: 1 / -1;
  padding-block: var(--space-7);
  border-top: 1px solid var(--color-border-strong);
  color: var(--color-text-muted);
}

/* 27. Post header + meta ================================================== */
/* Title block of an article: breadcrumb, .display-l title, .lead dek and a
   hairline-topped meta row (author · date · reading time).               */

.post-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-5);
  padding-block: clamp(var(--space-7), 6vw, var(--space-9)) clamp(var(--space-6), 4vw, var(--space-7));
}

.post-header .breadcrumb {
  margin-bottom: var(--space-2);
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--space-2) var(--space-3);
  align-self: stretch;
  margin-top: var(--space-2);
  padding-top: var(--space-5);
  border-top: var(--border-hairline);
  font-size: var(--text-small);
  color: var(--color-text-muted);
}

.post-meta__item + .post-meta__item::before {
  content: "·";
  margin-right: var(--space-3);
  color: var(--color-border-strong);
}

.post-meta__author {
  font-weight: var(--weight-medium);
  color: var(--color-text-strong);
}

/* 28. Prose (long-form article body) ===================================== */
/* Styles plain HTML (h2, h3, p, lists, blockquote, table, figure, hr).
   Only direct children are styled, so components dropped inside (callout,
   note…) keep their own look. Links without a class get the prose style.  */

.prose {
  font-size: var(--text-prose);
  line-height: 1.7;
  color: var(--color-text);
}

.prose > * {
  max-width: var(--measure);
}

.prose > * + * {
  margin-top: var(--space-5);
}

.prose > h2 {
  margin-top: var(--space-8);
  font-family: var(--font-display);
  font-size: var(--text-display-s);
  font-weight: var(--weight-regular);
  line-height: var(--leading-snug);
  letter-spacing: var(--tracking-display);
  color: var(--color-text-strong);
  text-wrap: balance;
}

.prose > h3 {
  margin-top: var(--space-7);
  font-family: var(--font-sans);
  font-size: var(--text-title);
  font-weight: var(--weight-semibold);
  line-height: 1.35;
  letter-spacing: var(--tracking-tight);
  color: var(--color-text-strong);
}

.prose > h2 + *,
.prose > h3 + * {
  margin-top: var(--space-4);
}

.prose > p {
  text-wrap: pretty;
}

.prose strong {
  font-weight: var(--weight-semibold);
  color: var(--color-text-strong);
}

.prose a:not([class]) {
  color: var(--color-link);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition: color var(--dur-1) var(--ease-out);
}
.prose a:not([class]):hover {
  color: var(--color-text-strong);
}

/* Lists: small accent squares for bullets, mono accent numerals */
.prose > ul,
.prose > ol {
  padding-left: 1.5em;
}
.prose > ul {
  list-style: none;
  padding-left: 0;
}
.prose > ul > li {
  position: relative;
  padding-left: 1.5em;
}
.prose > ul > li::before {
  content: "";
  position: absolute;
  left: 0.2em;
  top: 0.72em;
  width: 0.375rem;
  height: 0.375rem;
  background: var(--color-rule-accent);
}
.prose > ol > li {
  padding-left: 0.25em;
}
.prose > ol > li::marker {
  font-family: var(--font-mono);
  font-size: 0.875em;
  color: var(--color-text-accent);
}
.prose li + li {
  margin-top: var(--space-3);
}

.prose > blockquote {
  padding-left: var(--space-5);
  border-left: 2px solid var(--color-rule-accent);
  font-family: var(--font-display);
  font-size: var(--text-lead);
  font-style: italic;
  line-height: 1.5;
  color: var(--color-text-strong);
}

.prose > hr {
  margin-block: var(--space-8);
  border: 0;
  border-top: var(--border-hairline);
}

.prose > figure img {
  border-radius: var(--radius-2);
}
.prose > figure figcaption {
  margin-top: var(--space-3);
  font-size: var(--text-small);
  color: var(--color-text-muted);
}

/* Tables scroll sideways on small screens instead of breaking the layout */
.prose > table {
  display: block;
  overflow-x: auto;
  border-collapse: collapse;
  font-size: var(--text-small);
  line-height: 1.5;
  font-variant-numeric: tabular-nums lining-nums;
}
.prose th,
.prose td {
  padding: var(--space-3) var(--space-5) var(--space-3) 0;
  border-bottom: var(--border-hairline);
  text-align: left;
  vertical-align: top;
}
.prose th {
  border-bottom-color: var(--color-border-strong);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.prose > .callout,
.prose > .note {
  margin-block: var(--space-7);
}

/* 29. Callout (in-article call to action) ================================= */
/* A paper block with an accent rule, set between paragraphs. Carries one
   secondary action (.btn--secondary or .link-arrow), never the primary.  */

.callout {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-4);
  padding: var(--space-6);
  border-left: 2px solid var(--color-rule-accent);
  background: var(--color-bg-alt);
}

.callout__title {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: var(--weight-regular);
  line-height: var(--leading-snug);
  letter-spacing: var(--tracking-display);
  color: var(--color-text-strong);
  text-wrap: balance;
}

.callout__text {
  font-size: var(--text-body);
  line-height: var(--leading-normal);
  color: var(--color-text);
}

.callout .btn,
.callout .link-arrow {
  margin-top: var(--space-2);
}

/* 30. Author (byline card) ================================================ */
/* Monogram in a hairline square (same move as the brand mark), name,
   role and an optional short bio. Swap .author__mark for an <img> later. */

.author {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--space-1) var(--space-5);
  align-items: start;
  padding-block: var(--space-6);
  border-block: var(--border-hairline);
}

.author__mark {
  grid-row: span 3;
  display: grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  border: 1px solid var(--color-border-strong);
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-style: italic;
  line-height: 1;
  color: var(--color-text-strong);
}

img.author__mark {
  object-fit: cover;
  border-radius: var(--radius-2);
}

.author__label {
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--color-text-accent);
}

.author__name {
  font-weight: var(--weight-semibold);
  color: var(--color-text-strong);
}

.author__bio {
  font-size: var(--text-small);
  color: var(--color-text-muted);
  max-width: var(--measure);
}

/* 31. Pager (previous / next) ============================================= */
/* <nav class="pager" aria-label="…"><a class="pager__link pager__link--prev">
   <span class="pager__label">Anterior</span><span class="pager__title">…  */

.pager {
  display: grid;
  gap: var(--space-4);
}

@media (min-width: 40rem) {
  .pager {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .pager__link--next {
    grid-column: 2;
    text-align: right;
    align-items: flex-end;
  }
}

.pager__link {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-5);
  border: var(--border-hairline);
  border-radius: var(--radius-2);
  text-decoration: none;
  transition: border-color var(--dur-2) var(--ease-out), box-shadow var(--dur-2) var(--ease-out);
}
.pager__link:hover {
  border-color: var(--color-border-strong);
  box-shadow: var(--shadow-1);
}

.pager__label {
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--color-text-muted);
}
.pager__link--prev .pager__label::before {
  content: "\2190\00a0";
}
.pager__link--next .pager__label::after {
  content: "\00a0\2192";
}

.pager__title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  line-height: var(--leading-snug);
  color: var(--color-text-strong);
  text-wrap: balance;
}
