/*
Theme Name: Emifyn
Theme URI: https://YOUR-SITE-URL/
Author: YOUR NAME
Author URI: https://YOUR-SITE-URL/
Description: The website theme for Emifyn PDF Studio, a free PDF editor for Windows. A single committed dark visual world: slate ground, warm paper for anything standing in for a document, teal accent. Ships its own SEO tags and structured data, so no SEO plugin is needed.
Version: 1.1.0
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 7.4
License: GNU Affero General Public License v3.0 or later
License URI: https://www.gnu.org/licenses/agpl-3.0.en.html
Text Domain: emifyn
Tags: one-column, custom-menu, custom-logo, block-patterns, full-width-template
*/

/* ==========================================================================
   Emifyn PDF Studio — site styles
   A single, deliberately dark visual world: press-black ground, warm paper
   for anything that stands in for a document, proof-mark red for marks and
   refusals. Every colour is painted explicitly so the page looks the same
   whatever theme the visitor's browser is in.
   ========================================================================== */

:root {
  /* ground — slate, biased slightly toward the accent's blue-green */
  --ground:      #151b20;
  --ground-2:    #1c232a;
  --ground-3:    #242c34;
  --ground-4:    #2d363f;
  --rule:        #313b45;
  --rule-strong: #4a5561;

  /* type */
  --text:        #eae7e0;   /* warm off-white, paper-tinted */
  --text-2:      #aab3bc;
  --text-3:      #7d8894;

  /* paper — used only where something represents a document */
  --paper:       #f4f0e7;
  --paper-2:     #e8e2d4;
  --paper-ink:   #191713;
  --paper-ink-2: #5c574c;

  /* teal — the brand accent. Rules, carets, marks. Not the button colour. */
  --mark:        #2ed9c6;
  --mark-bright: #5eead4;
  --mark-dim:    rgba(46, 217, 198, 0.13);
  --mark-ink:    #08211e;   /* text sitting on a teal fill */
  --mark-deep:   #0b7a6d;   /* teal dark enough to read on paper */

  /* the red the program itself uses to mark a paragraph it cannot edit */
  --refuse:      #d8503c;

  /* semantic */
  --yes:         #7fb191;
  --wait:        #c99a4e;

  --shadow-lift: 0 1px 0 rgba(255,255,255,0.04), 0 18px 40px -18px rgba(0,0,0,0.75);
  --shadow-paper: 0 24px 60px -24px rgba(0,0,0,0.85), 0 2px 0 rgba(0,0,0,0.35);

  --sans: "IBM Plex Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "IBM Plex Serif", ui-serif, Georgia, "Times New Roman", serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", "Cascadia Mono", Consolas, monospace;

  --measure: 66ch;
  --gutter: clamp(20px, 4vw, 40px);
  --wrap: 1140px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.65;
  font-feature-settings: "kern" 1;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
  -webkit-tap-highlight-color: rgba(46, 217, 198, 0.18);
}

/* --------------------------------------------------------------- type ---- */

h1, h2, h3, h4 { margin: 0; text-wrap: balance; letter-spacing: -0.015em; }

h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.3rem, 1.35rem + 3.6vw, 4rem);
  line-height: 1.06;
  letter-spacing: -0.028em;
}

h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.65rem, 1.2rem + 1.7vw, 2.35rem);
  line-height: 1.15;
  letter-spacing: -0.022em;
}

h3 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1.0625rem;
  line-height: 1.35;
}

p { margin: 0; }

a { color: inherit; }

.lede {
  font-size: clamp(1.0625rem, 0.98rem + 0.42vw, 1.25rem);
  line-height: 1.6;
  color: var(--text-2);
  max-width: var(--measure);
}

.prose { max-width: var(--measure); display: flex; flex-direction: column; gap: 1.1em; color: var(--text-2); }
.prose strong { color: var(--text); font-weight: 600; }
.prose em { font-style: italic; }
.prose a { color: var(--text); text-decoration-color: var(--mark); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
.prose a:hover { color: var(--mark-bright); }

.eyebrow {
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-3);
  display: flex;
  align-items: center;
  gap: 0.7em;
  margin: 0;
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 2px;
  background: var(--mark);
  flex: none;
}

kbd {
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text);
  background: var(--ground-3);
  border: 1px solid var(--rule-strong);
  border-bottom-width: 2px;
  border-radius: 4px;
  padding: 0.1em 0.42em;
  white-space: nowrap;
}

code {
  font-family: var(--mono);
  font-size: 0.86em;
  color: var(--text);
  background: var(--ground-3);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 0.08em 0.34em;
}

/* ------------------------------------------------------------- layout ---- */

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

.section { padding-block: clamp(56px, 8vw, 104px); border-top: 1px solid var(--rule); }
.section--flush { border-top: 0; }
.section__head { display: flex; flex-direction: column; gap: 14px; margin-bottom: clamp(28px, 4vw, 44px); }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--paper); color: var(--paper-ink);
  padding: 10px 16px; border-radius: 0 0 6px 0; font-weight: 600;
}
.skip:focus { left: 0; }

:focus-visible { outline: 2px solid var(--mark-bright); outline-offset: 3px; border-radius: 2px; }

/* ------------------------------------------------------------- header ---- */

.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(21, 27, 32, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--rule);
}
.site-header__inner { display: flex; align-items: center; gap: 20px; height: 62px; }

.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.brand__mark { flex: none; display: block; border-radius: 6px; }
.brand__name { font-family: var(--serif); font-weight: 600; font-size: 1.0625rem; letter-spacing: -0.02em; }
.brand__suffix { color: var(--text-3); font-weight: 400; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  text-decoration: none;
  color: var(--text-2);
  font-size: 0.9rem;
  padding: 7px 11px;
  border-radius: 6px;
  transition: color .15s ease, background-color .15s ease;
}
.nav a:hover { color: var(--text); background: var(--ground-2); }
.nav a[aria-current="page"] { color: var(--text); }
.nav a[aria-current="page"]::after {
  content: ""; display: block; height: 2px; background: var(--mark);
  margin: 5px -3px -7px;
}

.nav-toggle {
  display: none; background: var(--ground-2); color: var(--text);
  border: 1px solid var(--rule-strong); border-radius: 7px;
  padding: 7px 12px; font: 500 0.85rem var(--sans); cursor: pointer;
}

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: 62px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--ground); border-bottom: 1px solid var(--rule);
    padding: 8px var(--gutter) 16px;
  }
  .nav[hidden] { display: none; }
  .nav a { padding: 13px 4px; min-height: 44px; display: flex; align-items: center; border-radius: 0; }
  .nav a[aria-current="page"]::after { display: none; }
  .nav a[aria-current="page"] { color: var(--mark-bright); }
  .nav .btn { margin-top: 8px; justify-content: center; }
}

/* ------------------------------------------------------------ buttons ---- */

.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font: 600 0.9375rem/1 var(--sans);
  text-decoration: none;
  padding: 13px 20px;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .12s ease, background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn:active { transform: translateY(1px); }

/* paper is the brand: the primary action is the document itself */
.btn--paper { background: var(--paper); color: var(--paper-ink); }
.btn--paper:hover { background: #fffdf7; }

/* the header's button wears the brand colour rather than the ink */
.nav .btn--paper { color: var(--mark-deep); }

.btn--ghost { background: transparent; color: var(--text); border-color: var(--rule-strong); }
.btn--ghost:hover { border-color: var(--text-3); background: var(--ground-2); }

.btn--sm { padding: 8px 14px; font-size: 0.85rem; }
.btn__meta { font-weight: 400; font-family: var(--mono); font-size: 0.75rem; opacity: 0.62; }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* --------------------------------------------------------------- hero ---- */

.hero { padding-block: clamp(48px, 7vw, 92px) clamp(40px, 6vw, 72px); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(40px, 5vw, 64px); align-items: center; }
@media (min-width: 1000px) { .hero__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr); } }

.hero__copy { display: flex; flex-direction: column; gap: 22px; }
.hero h1 .accent { color: var(--mark-bright); font-style: italic; }
.hero__meta {
  font-family: var(--mono); font-size: 0.75rem; color: var(--text-3);
  display: flex; flex-wrap: wrap; gap: 6px 14px;
}
.hero__meta span { white-space: nowrap; }

/* ----------------------------------------------------------- specimen ---- */
/* the hero figure: a page being edited, drawn as the program draws it */

.specimen { margin: 0; display: flex; flex-direction: column; gap: 14px; }

.specimen__paper {
  position: relative;
  background:
    repeating-linear-gradient(to bottom, transparent 0 25px, rgba(25,23,19,0.045) 25px 26px),
    linear-gradient(180deg, var(--paper) 0%, var(--paper-2) 100%);
  color: var(--paper-ink);
  border-radius: 3px;
  box-shadow: var(--shadow-paper);
  padding: clamp(24px, 3.4vw, 40px) clamp(22px, 3.2vw, 38px);
  font-family: var(--serif);
  font-size: clamp(0.8125rem, 0.72rem + 0.4vw, 0.95rem);
  line-height: 26px;
  display: flex; flex-direction: column; gap: 38px;
}

.specimen__head {
  font-family: var(--sans); font-weight: 600; letter-spacing: -0.01em;
  font-size: 1.15em; line-height: 26px;
}
.specimen__para { color: #2b2823; }

/* the paragraph currently open in the editor */
.specimen__edit {
  position: relative;
  outline: 1.5px dashed var(--mark);
  outline-offset: 7px;
  border-radius: 1px;
}
.specimen__handle {
  position: absolute; width: 7px; height: 7px;
  background: var(--paper); border: 1.5px solid var(--mark);
}
.specimen__handle--tl { top: -11px; left: -11px; }
.specimen__handle--tr { top: -11px; right: -11px; }
.specimen__handle--bl { bottom: -11px; left: -11px; }
.specimen__handle--br { bottom: -11px; right: -11px; }

.caret {
  display: inline-block; width: 1.5px; height: 1.05em; margin: 0 -0.75px -0.16em 0;
  background: var(--paper-ink); vertical-align: baseline;
  animation: blink 1.15s steps(1, end) infinite;
}
@keyframes blink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .caret { animation: none; } }

.specimen__tag {
  position: absolute; top: -30px; left: -7px;
  font-family: var(--mono); font-size: 0.625rem; letter-spacing: 0.06em;
  background: var(--mark); color: var(--mark-ink);
  padding: 2px 7px; border-radius: 3px; white-space: nowrap;
}

/* a paragraph the program refuses to edit, marked the way it marks it */
.specimen__refused { outline: 1.5px solid var(--refuse); outline-offset: 7px; border-radius: 1px; opacity: 0.72; }
.specimen__note {
  font-family: var(--mono); font-size: 0.625rem; line-height: 1.5;
  color: var(--refuse); letter-spacing: 0.02em;
}

.specimen figcaption {
  font-family: var(--mono); font-size: 0.6875rem; line-height: 1.6;
  color: var(--text-3); display: flex; flex-wrap: wrap; gap: 4px 16px;
}
.specimen figcaption b { color: var(--text-2); font-weight: 500; }

/* --------------------------------------------------------------- grid ---- */

.tiles { display: grid; gap: 1px; grid-template-columns: minmax(0, 1fr); background: var(--rule); border: 1px solid var(--rule); border-radius: 10px; overflow: hidden; }
@media (min-width: 640px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 980px) { .tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.tile {
  background: var(--ground);
  padding: 22px 20px 24px;
  display: flex; flex-direction: column; gap: 9px;
  transition: background-color .18s ease;
}
.tile:hover { background: var(--ground-2); }
.tile__label { font-family: var(--mono); font-size: 0.625rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-3); }
.tile p { font-size: 0.875rem; line-height: 1.55; color: var(--text-2); }

/* --------------------------------------------------------- feature list -- */

.group { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(18px, 3vw, 40px); padding-block: clamp(30px, 4vw, 46px); border-top: 1px solid var(--rule); }
.group:first-of-type { border-top: 0; padding-top: 0; }
@media (min-width: 900px) { .group { grid-template-columns: 260px minmax(0, 1fr); } }

.group__aside { display: flex; flex-direction: column; gap: 10px; }
.group__aside h3 { font-family: var(--serif); font-size: 1.35rem; font-weight: 600; letter-spacing: -0.02em; }
.group__aside p { font-size: 0.875rem; color: var(--text-3); line-height: 1.55; }

.speclist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.speclist li {
  display: grid; grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline; gap: 6px 18px;
  padding: 11px 0; border-bottom: 1px solid var(--rule);
  font-size: 0.9375rem; color: var(--text-2); line-height: 1.5;
}
.speclist li:first-child { padding-top: 0; }
.speclist li:last-child { border-bottom: 0; }
.speclist b { color: var(--text); font-weight: 600; }
.speclist .keys { display: flex; gap: 5px; flex: none; }
@media (max-width: 560px) {
  .speclist li { grid-template-columns: minmax(0, 1fr); }
  .speclist .keys { justify-self: start; }
}

/* ------------------------------------------------------------- callout --- */

.callout {
  border: 1px solid var(--rule);
  border-left: 3px solid var(--mark);
  background: var(--ground-2);
  border-radius: 0 10px 10px 0;
  padding: clamp(20px, 3vw, 28px);
  display: flex; flex-direction: column; gap: 14px;
}
.callout h3 { font-family: var(--serif); font-size: 1.2rem; font-weight: 600; }
.callout p, .callout li { color: var(--text-2); font-size: 0.9375rem; line-height: 1.6; }
.callout ul { margin: 0; padding-left: 1.15em; display: flex; flex-direction: column; gap: 7px; }
.callout ul::marker, .callout li::marker { color: var(--mark); }

.callout--quiet { border-left-color: var(--rule-strong); }

/* --------------------------------------------------------------- card ---- */

.card {
  min-width: 0;
  background: var(--ground-2);
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: clamp(22px, 3vw, 32px);
  display: flex; flex-direction: column; gap: 16px;
}
.card--lift { box-shadow: var(--shadow-lift); }

.cards { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
@media (min-width: 760px) { .cards--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 900px) { .cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* --------------------------------------------------------- download box -- */

.download { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(24px, 4vw, 40px); align-items: start; }
@media (min-width: 940px) { .download { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); } }

.dl-card {
  background: linear-gradient(180deg, var(--ground-3), var(--ground-2));
  border: 1px solid var(--rule-strong);
  border-radius: 14px;
  padding: clamp(24px, 3.4vw, 34px);
  display: flex; flex-direction: column; gap: 18px;
  box-shadow: var(--shadow-lift);
}
.dl-card__head { display: flex; align-items: center; gap: 16px; }
.dl-card__head img { flex: none; width: 60px; height: 60px; border-radius: 12px; }
.dl-card__file {
  font-family: var(--mono); font-size: 0.9375rem; color: var(--text);
  word-break: break-all;
}

.facts { display: grid; gap: 0; margin: 0; }
.facts > div {
  display: flex; flex-wrap: wrap; gap: 4px 16px; justify-content: space-between;
  padding: 9px 0; border-bottom: 1px solid var(--rule);
  font-size: 0.875rem;
}
.facts > div:last-child { border-bottom: 0; }
.facts dt { color: var(--text-3); }
.facts dd { margin: 0; color: var(--text); font-family: var(--mono); font-size: 0.8125rem; text-align: right; word-break: break-all; }

.hash {
  display: flex; align-items: center; gap: 10px;
  background: var(--ground); border: 1px solid var(--rule); border-radius: 8px;
  padding: 10px 12px;
}
.hash code { min-width: 0; background: none; border: 0; padding: 0; font-size: 0.75rem; color: var(--text-2); overflow-x: auto; white-space: nowrap; flex: 1; }

.snippet {
  max-width: 100%;
  background: var(--ground); border: 1px solid var(--rule); border-radius: 8px;
  padding: 14px 16px; overflow-x: auto;
  font-family: var(--mono); font-size: 0.8125rem; line-height: 1.7; color: var(--text-2);
  margin: 0;
}
.snippet .cmd { color: var(--text); }

/* ---------------------------------------------------------- steps list --- */

.steps { list-style: none; counter-reset: s; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 14px; align-items: start; }
.steps li::before {
  content: counter(s);
  font-family: var(--mono); font-size: 0.75rem; font-weight: 500;
  color: var(--mark); border: 1px solid var(--mark);
  width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center;
}
.steps p { font-size: 0.9375rem; color: var(--text-2); line-height: 1.6; }
.steps b { color: var(--text); font-weight: 600; }

/* -------------------------------------------------------------- status --- */

.status { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 0.6875rem; letter-spacing: 0.06em; text-transform: uppercase; }
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status--yes { color: var(--yes); }
.status--wait { color: var(--wait); }
.status--no { color: var(--text-3); }

/* ------------------------------------------------------------- carousel -- */

.carousel { margin: 0; display: flex; flex-direction: column; gap: 14px; }

.carousel__frame {
  position: relative;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--rule);
  border-radius: 12px;
  overflow: hidden;
  background: var(--ground-2);
  box-shadow: var(--shadow-lift);
}

.carousel__track { list-style: none; margin: 0; padding: 0; position: absolute; inset: 0; }

.carousel__slide {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity .65s ease;
  pointer-events: none;
}
.carousel__slide.is-active { opacity: 1; pointer-events: auto; }
@media (prefers-reduced-motion: reduce) { .carousel__slide { transition: none; } }

.carousel__slide img { display: block; width: 100%; height: 100%; object-fit: cover; }

.carousel__placeholder {
  width: 100%; height: 100%;
  display: grid; place-content: center; gap: 8px; text-align: center;
  padding: 24px;
  background:
    repeating-linear-gradient(45deg, transparent 0 12px, rgba(255,255,255,0.02) 12px 24px),
    var(--ground-2);
  font-family: var(--mono); font-size: 0.75rem; color: var(--text-3); line-height: 1.7;
}
.carousel__placeholder b {
  color: var(--text-2); font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase; font-size: 0.6875rem;
}

/* arrows */
.carousel__arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(21, 27, 32, 0.78);
  border: 1px solid var(--rule-strong);
  color: var(--text);
  cursor: pointer;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transition: background-color .15s ease, border-color .15s ease, opacity .15s ease;
  opacity: 0.7;
}
.carousel__frame:hover .carousel__arrow,
.carousel__arrow:focus-visible { opacity: 1; }
.carousel__arrow:hover { background: var(--ground-3); border-color: var(--mark); }
.carousel__arrow--prev { left: 12px; }
@media (pointer: coarse) { .carousel__arrow { width: 44px; height: 44px; opacity: 1; } }
.carousel__arrow--next { right: 12px; }
.carousel__arrow svg { display: block; }

/* the bar under the frame: caption, dots, counter */
.carousel__bar {
  display: flex; align-items: center; gap: 16px 20px; flex-wrap: wrap;
  justify-content: space-between;
}
.carousel__caption { font-size: 0.8125rem; color: var(--text-3); flex: 1 1 16ch; min-width: 0; }

.carousel__controls { display: flex; align-items: center; gap: 14px; flex: none; }

.carousel__dots { display: flex; gap: 7px; }
/* the visible dot is small; the tappable area around it is not */
.carousel__dot::after { content: ""; position: absolute; inset: -15px -7px; }
.carousel__dot {
  position: relative;
  width: 7px; height: 7px; padding: 0; border: 0; border-radius: 999px;
  background: var(--rule-strong); cursor: pointer;
  transition: background-color .2s ease, width .2s ease;
}
.carousel__dot:hover { background: var(--text-3); }
.carousel__dot.is-on { background: var(--mark); width: 20px; }

.carousel__count {
  font-family: var(--mono); font-size: 0.6875rem; color: var(--text-3);
  font-variant-numeric: tabular-nums;
}

/* ------------------------------------------------------------ closing ---- */

.strip {
  border: 1px solid var(--rule); border-radius: 14px;
  background: linear-gradient(180deg, var(--ground-2), var(--ground));
  padding: clamp(26px, 4vw, 40px);
  display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between;
}
.strip__copy { display: flex; flex-direction: column; gap: 10px; max-width: 54ch; }
.strip h2 { font-size: clamp(1.4rem, 1.1rem + 1.1vw, 1.9rem); }
.strip p { color: var(--text-2); font-size: 0.9375rem; }

/* ------------------------------------------------------------- footer ---- */

.site-footer { border-top: 1px solid var(--rule); padding-block: 42px 52px; margin-top: clamp(40px, 6vw, 72px); }
.site-footer__inner { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; }
@media (min-width: 760px) { .site-footer__inner { grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)); } }
.site-footer h4 { font-family: var(--mono); font-size: 0.625rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-3); margin: 0 0 12px; font-weight: 500; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.site-footer a { color: var(--text-2); text-decoration: none; font-size: 0.875rem; }
.site-footer a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--mark); }
.site-footer__note { font-size: 0.8125rem; color: var(--text-3); line-height: 1.65; max-width: 46ch; margin-top: 12px; }

/* --------------------------------------------------------------- misc ---- */

.stack { display: flex; flex-direction: column; gap: clamp(20px, 3vw, 32px); min-width: 0; }
.stack--sm { gap: 14px; }
.split { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(24px, 4vw, 48px); }
@media (min-width: 900px) { .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }

.eyebrow + h2, .eyebrow + h1 { margin-top: 2px; }

.muted { color: var(--text-3); }
.nowrap { white-space: nowrap; }

/* ----------------------------------------------------------------- faq ---- */
/* Plain question-and-answer blocks rather than an accordion: everything is
   visible at rest, which is better for readers and better for indexing. */

.faq { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; border-top: 1px solid var(--rule); }
@media (min-width: 860px) { .faq { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(32px, 5vw, 64px); } }

.faq__item { padding: 22px 0; border-bottom: 1px solid var(--rule); display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.faq__item h3 { font-family: var(--serif); font-size: 1.125rem; font-weight: 600; letter-spacing: -0.015em; }
.faq__item p { font-size: 0.9375rem; line-height: 1.6; color: var(--text-2); }
.faq__item a { color: var(--text); text-decoration-color: var(--mark); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
.faq__item a:hover { color: var(--mark-bright); }

/* ------------------------------------------------------------ dl routes --- */
/* Two ways to get the program, with the trade-off stated on each. Named
   .dl-route rather than .route so it can't collide with anything generic. */

.dl-routes { display: flex; flex-direction: column; }
.dl-route {
  display: flex; flex-wrap: wrap; gap: 12px 20px;
  align-items: center; justify-content: space-between;
  padding: 16px 0; border-bottom: 1px solid var(--rule);
}
.dl-route:first-child { padding-top: 0; }
.dl-route:last-child { border-bottom: 0; padding-bottom: 4px; }
.dl-route__title { font-weight: 600; font-size: 0.9375rem; color: var(--text); }
.dl-route__note { font-size: 0.8125rem; color: var(--text-3); line-height: 1.55; margin-top: 3px; max-width: 42ch; }
.dl-route .btn { flex: none; }
@media (max-width: 520px) { .dl-route .btn { width: 100%; justify-content: center; } }

/* =========================================================================
   WordPress interoperability
   These rules do nothing on the static site — none of these classes exist
   there. They matter in the WordPress theme, where the block editor adds
   wrappers, layout classes and spacing of its own. Every column here is a
   flex or grid parent, so a stray wrapper or an empty paragraph doesn't just
   look untidy: it becomes an extra grid item and moves everything.
   ========================================================================= */

/* An empty paragraph is never content. Left alone it takes a grid cell and
   pushes the next real element into the wrong column. */
p:empty { display: none !important; }

/* If a group's children get wrapped in an inner container, make the wrapper
   transparent to layout so the real children stay direct children. */
.wp-block-group__inner-container,
.wp-block-group > .wp-block-group__inner-container { display: contents; }

/* Core's own layout rules constrain widths and add margins between children.
   This design does all of its own spacing; theirs can only fight it. */
.is-layout-flow > *,
.is-layout-constrained > *,
.is-layout-flow > * + *,
.is-layout-constrained > * + * {
  max-width: none;
  margin-block-start: 0;
  margin-block-end: 0;
}

/* …but the page shell keeps its own measure and centring, whatever else the
   editor decides about the elements around it. */
.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
}
.prose, .lede { max-width: var(--measure); }

/* Blocks arrive with wp-block-* classes alongside the design's own. Make sure
   nothing inherited from them adds unexpected space. */
.wp-block-heading { margin: 0; }
.wp-block-list { margin: 0; }
