/* Extra brand layer (Pergament page surface — theme SCSS keeps header/footer as designed) */
/* :root --pergament comes from compiled theme CSS (loaded first). Fallback matches design guideline. */
html {
  background-color: var(--pergament, #f1efe8);
  min-height: 100%;
}

/* Header wordmark: "oestreich" (Nachtblau) + ".digital" (Amber accent) */
.site-title__name {
  color: var(--nachtblau, #042c53);
}

.site-title__tld {
  color: var(--amber, #ef9f27);
}

body {
  background-color: var(--pergament, #f1efe8);
  min-height: 100%;
}

/* Theme default is 1em (16px) at ≥500px — bump for readability */
@media (min-width: 500px) {
  body {
    font-size: 1.0625rem; /* 17px */
  }
}

@media (min-width: 1000px) {
  body {
    font-size: 1.125rem; /* 18px */
  }
}

/* Inner pages wrap copy in <article class="content">; home uses <div class="content">. */
#content,
article.content,
div.content {
  background-color: var(--pergament, #f1efe8);
}

pre,
code,
kbd,
samp {
  font-family: "JetBrains Mono", ui-monospace, monospace;
}

/* --- Homepage hero (Nachtblau band, outside #content) --- */
.hero {
  background-color: var(--nachtblau, #042c53);
  color: var(--pergament, #f1efe8);
  padding: 2rem 0 2.5rem;
  margin-bottom: 0;
}

@media (min-width: 1000px) {
  .hero {
    padding: 3rem 0 3.5rem;
  }
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 1000px) {
  .hero__inner {
    grid-template-columns: minmax(0, 1fr) minmax(200px, 280px);
    gap: 3rem;
  }
}

.hero__eyebrow {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--amber, #ef9f27);
  margin: 0 0 1rem;
}

.hero__title {
  font-family: var(--condensed-font-family, "Bitter", Georgia, serif);
  font-weight: 700;
  font-size: 2rem;
  line-height: 1.12;
  text-transform: none;
  color: var(--pergament, #f1efe8);
  margin: 0 0 1.25rem;
}

@media (min-width: 1000px) {
  .hero__title {
    font-size: 2.75rem;
    line-height: 1.1;
  }
}

.hero .accent {
  color: var(--amber, #ef9f27);
}

.hero__lead {
  font-size: 1.175em;
  line-height: 1.55;
  margin: 0 0 1rem;
  max-width: 36em;
}

.hero__lead:last-of-type {
  margin-bottom: 0;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  margin-top: 1.5rem;
}

.hero__cta-primary {
  margin-top: 0;
  margin-bottom: 0;
}

.hero__secondary {
  font-family: var(--rounded-font-family, "Inter", sans-serif);
  font-weight: 700;
  color: var(--pergament, #f1efe8);
  text-decoration: underline;
  text-decoration-color: var(--amber, #ef9f27);
  text-underline-offset: 0.2em;
}

.hero__secondary:hover,
.hero__secondary:focus {
  color: var(--amber, #ef9f27);
}

.hero__visual {
  justify-self: center;
  max-width: 280px;
}

.hero__svg,
.hero__img {
  display: block;
  width: 100%;
  height: auto;
}

/* H1/H2 on Pergament: Nachtblau (hero title excluded via .hero__title) */
#content .content h1,
#content .content h2,
#content header h1.title {
  color: var(--nachtblau, #042c53);
}

#content .content h1 .accent,
#content .content h2 .accent {
  color: var(--amber, #ef9f27);
}

/* H2 section divider (site-wide content) */
#content .content h2::before {
  content: "";
  display: block;
  width: 2.75rem;
  height: 3px;
  background-color: var(--amber, #ef9f27);
  margin-bottom: 0.75rem;
}

/* Compact page lead (inner pages, below H1) */
.page-lead {
  margin-top: 0;
  margin-bottom: 2rem;
  max-width: 42em;
}

.page-lead__eyebrow {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--amber, #ef9f27);
  margin: 0 0 0.75rem;
}

.page-lead__body {
  font-size: 1.175em;
  line-height: 1.55;
  color: var(--anthrazit, #444441);
}

.page-lead__body p {
  margin: 0 0 1rem;
}

.page-lead__body p:last-child {
  margin-bottom: 0;
}

/* Align shortcode wrappers with the prose column.
   Theme forces `.content div { max-width: 100% }`, which lets `.columns`,
   `.stats` and `.page-lead` bleed to the full 1200px container while
   paragraphs/headings stay at --content-width. Pin them to the same lane. */
#content .content > .columns,
#content .content > .stats,
#content .content > .page-lead {
  max-width: var(--content-width);
}

/* Stats grid */
.stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 1rem;
  margin-bottom: 1rem;
}

@media (min-width: 700px) {
  .stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }
}

.stat {
  background-color: rgba(255, 255, 255, 0.55);
  border-left: 4px solid var(--amber, #ef9f27);
  padding: 1.25rem 1.25rem 1.25rem 1rem;
}

.stat__number {
  font-family: var(--condensed-font-family, "Bitter", Georgia, serif);
  font-weight: 700;
  line-height: 1;
  margin: 0 0 0.75rem;
}

.stat__num {
  font-size: clamp(2.5rem, 6vw, 3.5rem);
  color: var(--nachtblau, #042c53);
}

.stat__unit {
  font-size: 1.125rem;
  color: var(--anthrazit, #444441);
  margin-left: 0.25rem;
}

.stat__caption {
  font-size: 0.9375rem;
  line-height: 1.5;
}

.stat__caption p {
  margin: 0 0 0.75rem;
}

.stat__caption p:last-child {
  margin-bottom: 0;
}

/* Numbered steps inside columns */
.step .step__number {
  font-family: var(--condensed-font-family, "Bitter", Georgia, serif);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--amber, #ef9f27);
  margin: 0 0 0.5rem;
  letter-spacing: 0.02em;
}

.step .step__body {
  font-size: inherit;
}

.step .step__body p:first-child {
  margin-top: 0;
}

/* Footer claim band */
.footer__claim-band {
  background-color: var(--nachtblau, #042c53);
  color: var(--pergament, #f1efe8);
  padding: 1.5rem 0;
  width: 100%;
}

.footer__claim-inner {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start;
}

@media (min-width: 1000px) {
  .footer__claim-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.footer__claim-text {
  font-family: var(--condensed-font-family, "Bitter", Georgia, serif);
  font-weight: 700;
  font-size: 1.125rem;
  line-height: 1.35;
  margin: 0;
  max-width: 42em;
}

.footer__claim-cta {
  flex-shrink: 0;
}

.footer__claim-button {
  margin-top: 0;
  margin-bottom: 0;
}

/* Footer main block: Nachtblau (not pure black), compact spacing, amber top edge */
.footer {
  background-color: var(--nachtblau, #042c53);
  border-top: 3px solid var(--amber, #ef9f27);
  margin-top: 2.5rem;
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
}

@media (min-width: 1000px) {
  .footer {
    margin-top: 3rem;
    padding-top: 3rem;
    padding-bottom: 3rem;
  }
}

.footer .copyright {
  font-size: 0.875rem; /* up from theme's 11px */
}

/* --- Icons (Lucide inline SVG via {{< icon >}} shortcode) --- */
.icon {
  display: inline-flex;
  align-items: center;
  width: var(--icon-size, 1.5em);
  height: var(--icon-size, 1.5em);
  vertical-align: middle;
  flex-shrink: 0;
}

.icon svg {
  width: 100%;
  height: 100%;
}

/* Block variant: stands alone on its own line, amber, above a heading */
.icon--block {
  display: block;
  color: var(--amber, #ef9f27);
  margin-bottom: 0.4rem;
}

/* Lettrine variant: floats left inside the first paragraph after a heading */
.icon--lettrine {
  float: left;
  color: var(--amber, #ef9f27);
  margin-right: 0.65rem;
  margin-top: 0.15em;
  margin-bottom: 0.25rem;
}

/* Inline icon inside an H2 heading */
h2 .icon--heading {
  width: 0.8em;
  height: 0.8em;
  color: var(--amber, #ef9f27);
  margin-right: 0.3em;
  vertical-align: baseline;
  position: relative;
  top: -0.05em;
}

/* --- Custom line-art illustrations (hand-drawn spot diagrams) --- */
/* Figure aligns with the text column (left-aligned like paragraphs),
   so the SVG gets visually centered on the paragraph axis, not the
   outer container axis. */
.illustration {
  margin: 2rem 0 2.25rem;
  padding: 0;
  max-width: var(--content-width, 895px);
}

.illustration__frame {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  text-align: center;
}

.illustration__frame > svg {
  display: block;
  margin: 0 auto;
  max-width: min(720px, 100%);
  height: auto;
}

.illustration__svg {
  display: block;
  width: 100%;
  min-width: 560px;
  max-width: 720px;
  height: auto;
  margin: 0 auto;
  color: var(--nachtblau, #042c53);
}

.illustration__line {
  color: var(--nachtblau, #042c53);
}

.illustration__accent {
  color: var(--amber, #ef9f27);
}

.illustration__label {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 14px;
  fill: var(--nachtblau, #042c53);
}

.illustration__callout {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 13px;
  font-weight: 600;
  fill: var(--amber, #ef9f27);
}

.illustration__caption {
  margin-top: 0.75rem;
  text-align: center;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--anthrazit, #444441);
}

.illustration__caption strong {
  color: var(--nachtblau, #042c53);
}
