/*
Theme Name: Trustworthy Aviation Services
Theme URI: https://trustworthyaero.com
Author: Trustworthy Aviation Services, LLC
Description: A clean, modern theme for Trustworthy Aviation Services, LLC — commercial aviation engine purchase, lease, sale, management and teardown. CFM56 and CF6-80.
Version: 1.1.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: trustworthy-aviation
Tags: business, aviation, one-column, custom-menu, custom-logo, featured-images
*/

/* ============================================================
   1. TOKENS
   ------------------------------------------------------------
   Every size and colour comes from this block. Nothing below
   should introduce a one-off value.
   ============================================================ */
:root {
  /* Surfaces */
  --ink:        #0E1319;
  --ink-2:      #19222E;
  --paper:      #FFFFFF;
  --mist:       #EEF2F7;
  --rule:       #DCE3EC;
  --rule-dark:  rgba(255,255,255,.14);

  /* Text on light */
  --heading:    #0E1319;
  --text:       #364152;
  --muted:      #5A6675;

  /* Text on dark */
  --on-dark:        #DCE4EE;
  --on-dark-muted:  #9AA7B8;
  --on-dark-accent: #6FA0EE;

  /* Brand */
  --cobalt:     #1A5FD0;
  --cobalt-700: #12489F;
  --cobalt-100: #E6EEFB;
  --signal:     #996208;

  /* Families */
  --f-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --f-body:    "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --f-mono:    "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  /* One type scale, used everywhere */
  --fs-micro:   .6875rem;
  --fs-util:    .8125rem;
  --fs-data:    .875rem;
  --fs-sm:      .9375rem;
  --fs-base:    1.0625rem;
  --fs-lede:    1.1875rem;
  --fs-eyebrow: clamp(.9375rem, 1.3vw, 1.0625rem);
  --fs-h3:      1.375rem;
  --fs-h2:      clamp(1.85rem, 3.2vw, 2.5rem);
  --fs-h1:      clamp(2.1rem, 4.4vw, 3.25rem);
  --fs-display: clamp(2.5rem, 5.6vw, 4.25rem);

  /* Tracking */
  --track-label: .18em;
  --track-util:  .12em;

  /* Leading */
  --lh-tight: 1.08;
  --lh-snug:  1.4;
  --lh-body:  1.65;

  /* Space */
  --wrap: 1200px;
  --gut: 24px;
  --pad-y: 104px;
  --radius: 3px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

@media (max-width: 900px) { :root { --pad-y: 68px; --gut: 20px; } }

/* ============================================================
   2. RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

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

/* The header is sticky, so anchored sections stop clear of it. */
section[id] { scroll-margin-top: 96px; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--f-body);
  font-size: var(--fs-base);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg, video { max-width: 100%; height: auto; display: block; }

a { color: var(--cobalt); text-decoration: none; }
a:hover { color: var(--cobalt-700); }

h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-weight: 700;
  font-stretch: 108%;
  line-height: var(--lh-tight);
  letter-spacing: -0.018em;
  color: var(--heading);
  margin: 0 0 .5em;
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); line-height: var(--lh-snug); }
h4 { font-size: var(--fs-sm); }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

ul, ol { margin: 0 0 1.1em; padding-left: 1.2em; }

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

.tas-skip {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--ink); color: #fff; padding: 12px 18px;
  font-family: var(--f-mono); font-size: var(--fs-util);
}
.tas-skip:focus { left: 8px; top: 8px; color: #fff; }

.screen-reader-text {
  position: absolute !important; width: 1px; height: 1px;
  overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap;
}

/* ============================================================
   3. LAYOUT
   ============================================================ */
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.wrap-narrow { max-width: 780px; }

.section { padding: var(--pad-y) 0; }
.section-mist { background: var(--mist); }

.section-ink { background: var(--ink); color: var(--on-dark); }
.section-ink h1, .section-ink h2, .section-ink h3, .section-ink h4 { color: #fff; }
.section-ink p { color: var(--on-dark-muted); }

.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head p { color: var(--muted); font-size: var(--fs-base); margin: 0; }
.section-ink .section-head p { color: var(--on-dark-muted); }

.section-head-bare { margin-bottom: 34px; }
.section-head-bare .eyebrow { margin-bottom: 0; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 76px; align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 44px; } }

/* ============================================================
   4. TYPE UTILITIES
   ============================================================ */
.eyebrow {
  display: block;
  font-family: var(--f-mono);
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: .16em;
  line-height: var(--lh-snug);
  text-transform: uppercase;
  color: var(--cobalt);
  margin-bottom: 22px;
}
.section-ink .eyebrow { color: var(--on-dark-accent); }

.lede { font-size: var(--fs-lede); line-height: 1.6; color: var(--text); }
.section-ink .lede,
.hero .lede { color: var(--on-dark); }

/* Every mono uppercase micro label shares one size and one tracking. */
.spec-key,
.plate-key,
.strip-label,
.footer-col h4,
.asset-table th,
.field label {
  font-family: var(--f-mono);
  font-size: var(--fs-micro);
  font-weight: 500;
  letter-spacing: var(--track-label);
  line-height: var(--lh-snug);
  text-transform: uppercase;
  color: var(--muted);
}

.mono { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }

/* ============================================================
   5. BUTTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-mono);
  font-size: var(--fs-util);
  font-weight: 500;
  letter-spacing: var(--track-util);
  line-height: 1;
  text-transform: uppercase;
  padding: 15px 26px;
  border: 1px solid var(--cobalt);
  border-radius: var(--radius);
  background: var(--cobalt);
  color: #fff;
  cursor: pointer;
  transition: background .18s var(--ease), border-color .18s var(--ease), color .18s var(--ease), transform .18s var(--ease);
}
.btn:hover { background: var(--cobalt-700); border-color: var(--cobalt-700); color: #fff; transform: translateY(-1px); }
.btn-arrow { transition: transform .18s var(--ease); }
.btn:hover .btn-arrow { transform: translateX(3px); }

.btn-ghost { background: transparent; color: var(--heading); border-color: var(--rule); }
.btn-ghost:hover { background: transparent; color: var(--cobalt); border-color: var(--cobalt); }

.section-ink .btn-ghost { color: #fff; border-color: var(--rule-dark); }
.section-ink .btn-ghost:hover { color: #fff; border-color: rgba(255,255,255,.5); background: rgba(255,255,255,.06); }

.btn-sm { padding: 11px 18px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ============================================================
   6. LOGO LOCKUP
   ============================================================ */
.lockup { display: inline-flex; align-items: center; gap: 12px; min-width: 0; }
.lockup:hover { color: inherit; }
.lockup-mark { width: 38px; height: 38px; flex: none; }
.lockup-text { display: flex; flex-direction: row; align-items: baseline; gap: 9px; line-height: 1; min-width: 0; }
.lockup-name {
  font-family: var(--f-display); font-weight: 700; font-stretch: 108%;
  font-size: clamp(.75rem, 1.15vw, .9375rem);
  letter-spacing: -0.002em; color: var(--heading);
  text-transform: uppercase; white-space: nowrap;
}
.lockup-sub {
  font-family: var(--f-mono); font-size: .5625rem; font-weight: 500;
  letter-spacing: .22em; color: var(--cobalt); text-transform: uppercase; white-space: nowrap;
  padding-left: 9px; border-left: 1px solid var(--rule);
}
.lockup-rev .lockup-name { color: #fff; }
.lockup-rev .lockup-sub { color: var(--on-dark-accent); border-left-color: var(--rule-dark); }
.lockup img.lockup-custom { max-height: 42px; width: auto; }
.site-footer .lockup-name { font-size: var(--fs-sm); }

@media (max-width: 460px) {
  .lockup { gap: 10px; }
  .lockup-mark { width: 32px; height: 32px; }
  .lockup-name { font-size: .6875rem; }
  .lockup-sub { display: none; }
  .site-footer .lockup-name { font-size: .8125rem; }
  .site-footer .lockup-sub { display: inline; }
}

/* ============================================================
   7. HEADER
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--rule);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 78px; }

.site-nav ul { display: flex; align-items: center; gap: 26px; list-style: none; margin: 0; padding: 0; }
.site-nav a {
  font-size: var(--fs-sm); font-weight: 500; color: var(--text);
  padding: 6px 0; position: relative; display: block;
}
.site-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 2px; background: var(--cobalt);
  transform: scaleX(0); transform-origin: left; transition: transform .2s var(--ease);
}
.site-nav a:hover { color: var(--heading); }
.site-nav a:hover::after, .site-nav .current-menu-item > a::after { transform: scaleX(1); }
.site-nav .current-menu-item > a { color: var(--heading); }

.header-actions { display: flex; align-items: center; gap: 18px; }

.nav-toggle {
  display: none; width: 42px; height: 42px; padding: 0;
  background: none; border: 1px solid var(--rule); border-radius: var(--radius);
  cursor: pointer; align-items: center; justify-content: center;
}
.nav-toggle span { display: block; width: 17px; height: 1.5px; background: var(--ink); position: relative; transition: background .15s linear; }
.nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 0; width: 17px; height: 1.5px; background: var(--ink);
  transition: transform .2s var(--ease);
}
.nav-toggle span::before { top: -5.5px; }
.nav-toggle span::after { top: 5.5px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateY(5.5px) rotate(45deg); }
.nav-open .nav-toggle span::after { transform: translateY(-5.5px) rotate(-45deg); }

@media (max-width: 1000px) {
  .nav-toggle { display: inline-flex; }
  .header-actions .btn { display: none; }
  .site-nav {
    position: fixed; inset: 78px 0 auto 0;
    background: var(--paper); border-bottom: 1px solid var(--rule);
    max-height: 0; overflow: hidden; transition: max-height .28s var(--ease);
  }
  .nav-open .site-nav { max-height: 80vh; overflow-y: auto; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gut) 24px; }
  .site-nav li { border-bottom: 1px solid var(--rule); }
  .site-nav a { padding: 16px 0; font-size: var(--fs-base); }
  .site-nav a::after { display: none; }
}

/* ============================================================
   8. HERO
   ============================================================ */
.hero {
  position: relative; overflow: hidden;
  background: var(--ink); color: var(--on-dark);
  padding: clamp(84px, 11vw, 156px) 0 clamp(84px, 10vw, 144px);
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(900px 520px at 78% 30%, rgba(26,95,208,.34), transparent 62%),
    radial-gradient(620px 420px at 6% 96%, rgba(26,95,208,.14), transparent 68%);
}
.hero-turbine {
  position: absolute;
  width: min(700px, 82vw); height: auto;
  right: -5%; top: 50%;
  transform: translateY(-50%);
  opacity: .16;
  pointer-events: none;
  animation: tas-spin 38s linear infinite;
}
@keyframes tas-spin { to { transform: translateY(-50%) rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .hero-turbine { animation: none; } }

.hero-inner { position: relative; z-index: 1; }
.hero-copy { max-width: 44rem; }
.hero h1 {
  font-size: var(--fs-display);
  letter-spacing: -0.028em;
  line-height: 1.0;
  color: #fff;
  margin-bottom: 24px;
}
.hero .lede {
  max-width: 46ch;
  font-size: clamp(1.125rem, 1.5vw, 1.3125rem);
  line-height: 1.62;
  margin-bottom: 36px;
}
.hero p { color: var(--on-dark); }

@media (max-width: 980px) { .hero-turbine { right: -34%; opacity: .085; } }

/* ============================================================
   9. STATUS PILLS
   ============================================================ */
.pill {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--f-mono); font-size: var(--fs-micro); font-weight: 500;
  letter-spacing: var(--track-label); line-height: 1; text-transform: uppercase;
  padding: 6px 12px; border-radius: 999px;
  border: 1px solid currentColor; white-space: nowrap;
}
.pill::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.pill-available { color: var(--signal); }
.pill-onlease   { color: var(--cobalt); }
.pill-teardown  { color: var(--muted); }
.pill-sold      { color: var(--muted); }

/* ============================================================
   10. PLATFORMS STRIP
   ============================================================ */
.strip { background: var(--ink-2); border-top: 1px solid var(--rule-dark); }
.strip-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 32px; padding: 22px 0; }
.strip-label { color: var(--on-dark-muted); }
.strip-items { display: flex; flex-wrap: wrap; gap: 12px 26px; list-style: none; margin: 0; padding: 0; }
.strip-items li { font-family: var(--f-mono); font-size: var(--fs-data); letter-spacing: .04em; color: var(--on-dark); }

/* ============================================================
   11. CAPABILITIES GRID
   ============================================================ */
.hgrid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--rule); border-left: 1px solid var(--rule);
}
.hgrid-item {
  border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
  padding: 40px 34px 44px;
  background: var(--paper);
  transition: background .2s var(--ease);
}
.hgrid-item:hover { background: #FAFCFF; }
.hgrid-item h3 { margin-bottom: .6em; }
.hgrid-item p { color: var(--muted); font-size: var(--fs-base); line-height: var(--lh-body); margin: 0; }

/* Completes the rectangle when the item count does not fill the last row. */
.hgrid-fill { pointer-events: none; }
.hgrid-fill:hover { background: var(--paper); }

@media (max-width: 1000px) { .hgrid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) {
  .hgrid { grid-template-columns: 1fr; }
  .hgrid-item { padding: 32px 24px 36px; }
  .hgrid-fill { display: none; }
}

/* ============================================================
   12. DATA PLATE
   ------------------------------------------------------------
   Sits on the section background, set off by an ink outline.
   ============================================================ */
.plate {
  position: relative;
  background: transparent;
  border: 1.5px solid var(--ink);
  border-radius: var(--radius);
  padding: 46px 42px 40px;
  text-align: center;
}
/* Four rivets, as on the real thing. */
.plate::after {
  content: "";
  position: absolute; inset: 12px;
  border-radius: 2px;
  background:
    radial-gradient(circle at top left,     rgba(14,19,25,.30) 1.7px, transparent 1.9px),
    radial-gradient(circle at top right,    rgba(14,19,25,.30) 1.7px, transparent 1.9px),
    radial-gradient(circle at bottom left,  rgba(14,19,25,.30) 1.7px, transparent 1.9px),
    radial-gradient(circle at bottom right, rgba(14,19,25,.30) 1.7px, transparent 1.9px);
  pointer-events: none;
}
.plate > * { position: relative; z-index: 1; }

.plate-mark { width: 72px; height: 72px; margin: 0 auto 22px; }
.plate-name {
  font-family: var(--f-display); font-weight: 700; font-stretch: 108%;
  font-size: var(--fs-base); letter-spacing: .01em; text-transform: uppercase;
  color: var(--heading); margin: 0 0 30px; line-height: var(--lh-snug);
}
.plate-rows { list-style: none; margin: 0; padding: 0; text-align: left; }
.plate-rows li {
  display: flex; align-items: baseline; justify-content: space-between; gap: 22px;
  padding: 15px 0; border-top: 1px solid var(--rule);
}
.plate-val {
  font-family: var(--f-mono); font-size: var(--fs-data); color: var(--heading);
  text-align: right; line-height: var(--lh-snug);
}

@media (max-width: 520px) {
  .plate { padding: 38px 26px 32px; }
  .plate-rows li { flex-direction: column; gap: 6px; }
  .plate-val { text-align: left; }
}

/* ============================================================
   13. SPEC LIST
   ============================================================ */
.spec-list { list-style: none; margin: 0; padding: 0; }
.spec-list li { display: flex; justify-content: space-between; gap: 20px; padding: 15px 0; border-bottom: 1px solid var(--rule); }
.spec-list li:last-child { border-bottom: 0; }
.spec-val { font-size: var(--fs-sm); text-align: right; color: var(--text); }

/* ============================================================
   14. ASSET TABLE
   ============================================================ */
.assets-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-bottom: 40px; }
.assets-head .section-head { margin-bottom: 0; }

.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.asset-table { width: 100%; border-collapse: collapse; min-width: 760px; background: var(--paper); border: 1px solid var(--rule); }
.asset-table th { text-align: left; padding: 15px 20px; border-bottom: 1px solid var(--rule); background: var(--mist); white-space: nowrap; }
.asset-table td { padding: 20px; border-bottom: 1px solid var(--rule); font-size: var(--fs-sm); vertical-align: middle; }
.asset-table tr:last-child td { border-bottom: 0; }
.asset-table tbody tr { transition: background .16s var(--ease); }
.asset-table tbody tr:hover { background: #FAFCFF; }
.asset-model { font-family: var(--f-display); font-weight: 700; font-stretch: 106%; font-size: var(--fs-base); letter-spacing: -0.01em; color: var(--heading); display: block; }
.asset-sub { font-family: var(--f-mono); font-size: var(--fs-util); color: var(--muted); letter-spacing: .05em; }
.asset-num { font-family: var(--f-mono); font-variant-numeric: tabular-nums; letter-spacing: .02em; }

.assets-empty { border: 1px dashed var(--rule); border-radius: var(--radius); padding: 56px 32px; text-align: center; background: var(--paper); }
.assets-empty p { color: var(--muted); max-width: 46ch; margin: 0 auto 22px; }
.assets-foot { margin-top: 22px; font-family: var(--f-mono); font-size: var(--fs-util); letter-spacing: .04em; color: var(--muted); }

@media (max-width: 760px) { .assets-head { flex-direction: column; align-items: flex-start; gap: 22px; } }

/* ============================================================
   15. CTA BAND
   ============================================================ */
.cta-band { background: var(--cobalt); color: #fff; padding: 74px 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 44px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin-bottom: .35em; }
.cta-band p { color: rgba(255,255,255,.94); margin: 0; max-width: 54ch; }
.cta-band .btn { background: #fff; color: var(--cobalt); border-color: #fff; }
.cta-band .btn:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ============================================================
   16. CONTACT & FORMS
   ============================================================ */
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 76px; align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; gap: 46px; } }

.contact-heading { margin-bottom: 34px; }

.contact-card { border: 1px solid var(--rule); border-radius: var(--radius); padding: 34px; background: var(--paper); }

.field { margin-bottom: 20px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; gap: 0; } }

.field label { display: block; margin-bottom: 8px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px;
  font-family: var(--f-body); font-size: var(--fs-base); color: var(--heading);
  background: var(--paper);
  border: 1px solid var(--rule); border-radius: var(--radius);
  transition: border-color .16s var(--ease), box-shadow .16s var(--ease);
}
.field textarea { min-height: 140px; resize: vertical; line-height: var(--lh-body); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--cobalt); box-shadow: 0 0 0 3px var(--cobalt-100);
}
.field-hp { position: absolute; left: -9999px; }

.form-note { font-size: var(--fs-util); color: var(--muted); margin: 16px 0 0; }

.notice { padding: 15px 18px; border-radius: var(--radius); margin-bottom: 26px; font-size: var(--fs-sm); border: 1px solid; }
.notice-ok { background: var(--cobalt-100); border-color: #B9D2F6; color: var(--cobalt-700); }
.notice-err { background: #FDF1E4; border-color: #F0D2A6; color: #96590A; }

.contact-lines { list-style: none; margin: 0; padding: 0; }
.contact-lines li { padding: 20px 0; border-bottom: 1px solid var(--rule); }
.contact-lines li:first-child { padding-top: 0; }
.contact-lines li:last-child { border-bottom: 0; }
.contact-lines .spec-key { display: block; margin-bottom: 7px; }
.contact-lines a, .contact-lines .contact-value {
  font-family: var(--f-mono); font-size: var(--fs-data); color: var(--heading);
  letter-spacing: .01em; font-style: normal; display: block; line-height: 1.6;
}
.contact-lines a:hover { color: var(--cobalt); }

/* ============================================================
   17. PAGE HEAD & CONTENT
   ============================================================ */
.page-head {
  background: var(--ink); color: var(--on-dark);
  padding: clamp(64px,7vw,96px) 0 clamp(56px,6vw,80px);
  position: relative; overflow: hidden;
}
.page-head::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(760px 420px at 88% 12%, rgba(26,95,208,.28), transparent 64%);
}
.page-head .wrap { position: relative; z-index: 1; }
.page-head h1 { color: #fff; margin-bottom: .3em; }
.page-head p { color: var(--on-dark-muted); max-width: 62ch; font-size: var(--fs-base); margin: 0; }
.page-head .eyebrow { color: var(--on-dark-accent); }
.page-head .pill-teardown { color: var(--on-dark-muted); }

.entry-content { font-size: var(--fs-base); line-height: 1.72; color: var(--text); }
.entry-content h2 { font-size: 1.75rem; margin-top: 2em; }
.entry-content h3 { margin-top: 1.7em; }
.entry-content > *:first-child { margin-top: 0; }
.entry-content img { border-radius: var(--radius); margin: 2em 0; }
.entry-content blockquote { margin: 2em 0; padding: 4px 0 4px 28px; border-left: 2px solid var(--cobalt); font-size: var(--fs-lede); color: var(--heading); }
.entry-content ul li, .entry-content ol li { margin-bottom: .5em; }
.entry-content table { width: 100%; border-collapse: collapse; margin: 2em 0; }
.entry-content th, .entry-content td { padding: 12px 14px; border: 1px solid var(--rule); text-align: left; font-size: var(--fs-sm); }
.entry-content th { background: var(--mist); font-family: var(--f-mono); font-size: var(--fs-micro); letter-spacing: var(--track-label); text-transform: uppercase; }
.entry-content code { font-family: var(--f-mono); font-size: .875em; background: var(--mist); padding: 2px 6px; border-radius: 2px; }

.alignwide { max-width: none; }
.aligncenter { margin-left: auto; margin-right: auto; }

.post-meta { font-family: var(--f-mono); font-size: var(--fs-micro); letter-spacing: var(--track-label); text-transform: uppercase; color: var(--on-dark-muted); margin-top: 18px; }

.post-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.post-card { background: var(--paper); padding: 32px 30px 36px; }
.post-card h2 { font-size: var(--fs-h3); margin-bottom: .5em; }
.post-card h2 a { color: var(--heading); }
.post-card h2 a:hover { color: var(--cobalt); }
.post-card p { color: var(--muted); font-size: var(--fs-sm); margin-bottom: 0; }
.post-card .post-meta { color: var(--muted); margin: 0 0 16px; }
@media (max-width: 900px) { .post-list { grid-template-columns: 1fr; } }

.pagination { margin-top: 48px; display: flex; gap: 8px; flex-wrap: wrap; }
.pagination .page-numbers {
  font-family: var(--f-mono); font-size: var(--fs-util);
  padding: 10px 15px; border: 1px solid var(--rule); border-radius: var(--radius); color: var(--text);
}
.pagination .page-numbers.current { background: var(--ink); border-color: var(--ink); color: #fff; }
.pagination a.page-numbers:hover { border-color: var(--cobalt); color: var(--cobalt); }

/* ============================================================
   18. SINGLE ENGINE
   ============================================================ */
.engine-head-meta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.engine-specs { border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden; }
.engine-specs .spec-list li { padding: 16px 24px; }
.engine-specs .spec-list li:nth-child(odd) { background: #FAFCFF; }

/* ============================================================
   19. FOOTER
   ============================================================ */
.site-footer { background: var(--ink); color: var(--on-dark-muted); padding: 76px 0 0; }
.footer-top { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 56px; padding-bottom: 56px; }
@media (max-width: 860px) { .footer-top { grid-template-columns: 1fr; gap: 40px; } }
.footer-blurb { margin: 24px 0 0; font-size: var(--fs-sm); max-width: 40ch; color: var(--on-dark-muted); }
.footer-col h4 { color: #fff; margin-bottom: 20px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 12px; }
.footer-col a { color: var(--on-dark-muted); font-size: var(--fs-sm); }
.footer-col a:hover { color: #fff; }
.footer-col address { font-style: normal; font-size: var(--fs-sm); line-height: 1.7; }

.footer-bottom {
  border-top: 1px solid var(--rule-dark); padding: 26px 0 34px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px;
}
.footer-bottom p, .footer-bottom a {
  font-family: var(--f-mono); font-size: var(--fs-micro);
  letter-spacing: var(--track-label); text-transform: uppercase;
  color: var(--on-dark-muted); margin: 0;
}
.footer-bottom a:hover { color: #fff; }

/* ============================================================
   20. REVEAL
   ============================================================ */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }
