/* ── Article / long-form reading layout ─────────────────────────────
   Shares the splash palette but adds typographic prose styling. */
:root {
  --bg: #ffffff;
  --ink: #000000;
  --accent: #000000;
  --muted: #4a4a4a;
  --hair: #e6e6e6;
  --measure: 720px;   /* comfortable reading width */
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.65;
  font-size: 17px;
}

a { color: var(--accent); }

/* ── Slim top bar with the emblem + wordmark, links home ──────────── */
.site-head {
  border-bottom: 1px solid var(--hair);
  padding: 16px 22px;
}
.site-head-inner {
  max-width: var(--measure); margin: 0 auto;
  display: flex; align-items: center; gap: 11px;
}
.site-head a.brand {
  display: inline-flex; align-items: center; gap: 11px;
  text-decoration: none; color: var(--ink);
}
.site-head .emblem { width: 30px; height: 30px; display: block; color: var(--ink); }
.site-head .brand-name {
  font-size: 16px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase;
}

/* ── Article shell ─────────────────────────────────────────────────── */
.article { max-width: var(--measure); margin: 0 auto; padding: 0 22px 80px; }

.article-header { margin: 48px 0 0; text-align: center; }
.eyebrow {
  font-size: 12px; font-weight: 700; letter-spacing: 3px;
  text-transform: uppercase; color: var(--accent); margin: 0 0 18px;
}
.article-header h1 {
  margin: 0; font-size: clamp(30px, 5.4vw, 46px); font-weight: 800;
  line-height: 1.15; letter-spacing: -.01em;
}
.article-meta {
  margin: 20px 0 0; font-size: 13.5px; color: var(--muted); letter-spacing: .3px;
}
.article-meta time + span::before,
.article-meta span + span::before { content: "·"; margin: 0 9px; color: var(--hair); }

.standfirst {
  margin: 30px auto 0; max-width: 640px; text-align: center;
  font-size: clamp(18px, 2.6vw, 21px); line-height: 1.5; color: var(--muted);
  font-weight: 400;
}

.rule {
  border: 0; border-top: 1px solid var(--hair);
  max-width: 120px; margin: 40px auto;
}

/* ── Prose ─────────────────────────────────────────────────────────── */
.prose { margin-top: 8px; }
.prose h2 {
  display: flex; align-items: center; gap: 12px;
  margin: 52px 0 0; font-size: clamp(22px, 3.4vw, 28px); font-weight: 800;
  line-height: 1.25; letter-spacing: -.01em; scroll-margin-top: 20px;
}
.prose p { margin: 18px 0 0; }
.prose ul { margin: 18px 0 0; padding: 0; list-style: none; }
.prose li {
  position: relative; padding-left: 30px; margin: 11px 0;
}
/* Bullets are the Devastator emblem (resolves relative to this stylesheet). */
.prose li::before {
  content: ""; position: absolute; left: 2px; top: .32em;
  width: 14px; height: 15px;
  background: url(favicon.svg) center / contain no-repeat;
}
.prose strong { font-weight: 700; }

/* Pull-quote style emphasis lines (the PDF's one-line stanzas). */
.lede-line {
  margin: 18px 0 0; font-size: 1.05em; font-weight: 600; color: var(--ink);
}

/* ── Closing call-to-action ────────────────────────────────────────── */
.article-cta {
  margin: 56px 0 0; padding: 32px; text-align: center;
  border: 1px solid var(--hair); border-radius: 16px; background: #fafafa;
}
.article-cta h2 { margin: 0; font-size: 22px; font-weight: 800; }
.article-cta p { margin: 12px auto 0; max-width: 480px; color: var(--muted); }
.article-cta .btn {
  display: inline-block; margin-top: 22px; padding: 13px 26px;
  background: var(--ink); color: #fff; text-decoration: none;
  border-radius: 999px; font-weight: 700; font-size: 14px; letter-spacing: .4px;
  transition: opacity .15s ease;
}
.article-cta .btn:hover { opacity: .82; }

/* ── Footer ────────────────────────────────────────────────────────── */
.site-foot {
  border-top: 1px solid var(--hair); margin-top: 64px; padding: 26px 22px;
  text-align: center; font-size: 12.5px; color: var(--muted); letter-spacing: .3px;
}
.site-foot a { color: var(--accent); text-decoration: none; }
.site-foot a:hover { text-decoration: underline; }

/* ── Section icons — sit alongside each H2, representing its meaning ── */
.prose .h2-icon {
  flex: 0 0 auto; display: inline-flex; width: 28px; height: 28px;
  color: var(--accent);
}
.prose .h2-icon svg { width: 28px; height: 28px; display: block; }

/* ── Contact page + Web3Forms form ─────────────────────────────────── */
.contact { max-width: var(--measure); margin: 0 auto; padding: 0 22px 80px; }
.contact-header { text-align: center; margin: 48px 0 0; }
.contact-header h1 {
  margin: 0; font-size: clamp(30px, 5.4vw, 46px); font-weight: 800;
  line-height: 1.15; letter-spacing: -.01em;
}
.contact-header p {
  margin: 18px auto 0; max-width: 540px; color: var(--muted);
  font-size: clamp(16px, 2.4vw, 19px); line-height: 1.5;
}
.contact-form { margin: 40px auto 0; max-width: 560px; }
.field { margin: 0 0 18px; }
.field label {
  display: block; font-size: 13.5px; font-weight: 700;
  letter-spacing: .3px; margin: 0 0 7px;
}
.field label .req { color: #c0392b; font-weight: 700; }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink);
  padding: 12px 14px; border: 1px solid var(--hair); border-radius: 10px;
  background: #fff; transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(0,0,0,.06);
}
.field textarea { resize: vertical; min-height: 150px; }
.contact-form button {
  display: block; width: 100%; padding: 14px 26px; border: 0; cursor: pointer;
  background: var(--ink); color: #fff; border-radius: 999px; font: inherit;
  font-weight: 700; font-size: 15px; letter-spacing: .4px; transition: opacity .15s ease;
}
.contact-form button:hover { opacity: .85; }
.contact-form button:disabled { opacity: .5; cursor: default; }
.form-status {
  margin: 18px 0 0; text-align: center; font-size: 14.5px;
  min-height: 1.3em; line-height: 1.4;
}
.form-status.ok  { color: #0a7d33; }
.form-status.err { color: #c0392b; }
.form-note {
  margin: 14px 0 0; text-align: center; font-size: 12px; line-height: 1.5; color: var(--muted);
}
.form-note a { color: var(--accent); }
/* Honeypot — kept off-screen, real users never see or fill it. */
.hp { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }

@media (max-width: 600px) {
  body { font-size: 16px; }
  .article { padding: 0 18px 64px; }
  .article-header { margin-top: 36px; }
  .article-cta { padding: 26px 20px; }
  .contact { padding: 0 18px 64px; }
  .contact-header { margin-top: 36px; }
}

/* ── Success confirmation modal (enquiry received) ──────────────────── */
.modal-overlay {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center; padding: 24px;
  background: rgba(250, 250, 250, .72);
  -webkit-backdrop-filter: blur(7px); backdrop-filter: blur(7px);
  animation: modal-fade .22s ease both;
}
.modal-overlay[hidden] { display: none; }
.modal {
  position: relative; width: 100%; max-width: 420px;
  background: #fff; border: 1px solid var(--hair); border-radius: 22px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .18);
  padding: 42px 36px 34px; text-align: center;
  animation: modal-pop .32s cubic-bezier(.2, .8, .25, 1) both;
}
.modal-close {
  position: absolute; top: 14px; right: 14px;
  width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center;
  border: 0; background: transparent; color: var(--muted); cursor: pointer;
  border-radius: 50%; transition: background .15s ease, color .15s ease;
}
.modal-close:hover { background: #f1f1f1; color: var(--ink); }
.modal-close svg { width: 18px; height: 18px; display: block; }
.modal h2 { margin: 16px 0 0; font-size: 23px; font-weight: 800; letter-spacing: -.01em; }
.modal p { margin: 12px auto 0; max-width: 320px; color: var(--muted); font-size: 14.5px; line-height: 1.55; }
.modal .modal-done {
  margin-top: 26px; display: inline-block; padding: 12px 30px; border: 0; cursor: pointer;
  background: var(--ink); color: #fff; border-radius: 999px; font: inherit;
  font-weight: 700; font-size: 14px; letter-spacing: .4px; transition: opacity .15s ease;
}
.modal .modal-done:hover { opacity: .85; }
@keyframes modal-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes modal-pop {
  from { opacity: 0; transform: translateY(12px) scale(.96); }
  to   { opacity: 1; transform: none; }
}

/* Animated brand emblem (heartbeat pulse + expanding rings), reused here. */
.brand-loader {
  position: relative; width: 128px; height: 128px; margin: 2px auto 0;
  display: inline-flex; align-items: center; justify-content: center;
}
.brand-loader::before, .brand-loader::after {
  content: ""; position: absolute; inset: 20px; border-radius: 50%;
  border: 2px solid var(--accent); opacity: 0;
  animation: brand-ring 1.8s ease-out infinite; pointer-events: none;
}
.brand-loader::after { animation-delay: .9s; }
.brand-loader-emblem {
  position: relative; width: 82px; height: 82px; color: var(--ink);
  animation: brand-pulse 1.8s cubic-bezier(.4, 0, .2, 1) infinite; transform-origin: 50% 50%;
}
@keyframes brand-ring {
  0%   { transform: scale(.55); opacity: .55; }
  70%  { opacity: .12; }
  100% { transform: scale(1.45); opacity: 0; }
}
@keyframes brand-pulse {
  0%, 28%, 100% { transform: scale(1);    color: var(--ink); }
  14%           { transform: scale(1.12); color: var(--accent); }
}
@media (prefers-reduced-motion: reduce) {
  .modal-overlay, .modal { animation: none; }
  .brand-loader-emblem, .brand-loader::before, .brand-loader::after { animation: none; }
  .brand-loader::before, .brand-loader::after { display: none; }
}
