/* The Drone Ledger — site styles. Tokens match the brand system. */
@font-face {
  font-family: "Archivo";
  src: url("/fonts/archivo.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("/fonts/source-serif-4.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy: #0b1f33;
  --navy-2: #16314f;
  --orange: #e8590c;
  --orange-deep: #c2410c;
  --paper: #fafaf7;
  --white: #ffffff;
  --slate: #4a5b6c;
  --steel: #a9b8c7;
  --rule: #d8dee4;
  --mist: #eef2f5;
  --head: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --body: "Source Serif 4", Georgia, "Times New Roman", serif;
  --wrap: 1120px;
  --gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--navy);
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}
@media (min-width: 900px) { body { font-size: 19px; } }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip {
  position: absolute; left: 8px; top: -60px; z-index: 10;
  background: var(--white); color: var(--navy); padding: 8px 12px;
  font-family: var(--head); font-weight: 600;
}
.skip:focus { top: 8px; }

/* ---------- header ---------- */
.site-header { background: var(--navy); color: var(--white); }
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; min-height: 72px;
}
.brand-link img { width: 238px; height: auto; }
@media (max-width: 560px) { .brand-link img { width: 190px; } }
.nav { display: flex; gap: clamp(14px, 3vw, 32px); font-family: var(--head); font-size: 15px; font-weight: 600; }
.nav a { text-decoration: none; color: var(--steel); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--white); }
.nav .nav-cta { color: var(--orange); }
.nav .nav-cta:hover { color: var(--white); }
@media (max-width: 560px) { .nav .nav-secondary { display: none; } }

/* ---------- hero ---------- */
.hero {
  background-color: var(--navy);
  background-image:
    linear-gradient(var(--navy-2) 1px, transparent 1px),
    linear-gradient(90deg, var(--navy-2) 1px, transparent 1px);
  background-size: 64px 64px;
  background-position: -1px 31px;
  color: var(--white);
  padding: clamp(48px, 8vw, 96px) 0 clamp(56px, 8vw, 112px);
}
.hero .wrap {
  display: grid; gap: 48px;
  grid-template-columns: 1fr;
  align-items: start;
}
@media (min-width: 960px) {
  .hero .wrap { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 64px; }
}
.hero h1 {
  font-family: var(--head);
  font-weight: 700;
  font-size: clamp(40px, 6.2vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.022em;
  margin: 0 0 28px;
  max-width: 12ch;
  text-wrap: balance;
}
.lede {
  font-size: clamp(18px, 2vw, 21px);
  line-height: 1.55;
  color: var(--steel);
  max-width: 34em;
  margin: 0 0 40px;
}
.lede strong { color: var(--white); font-weight: 600; }

/* ---------- sign-up: the track ends at Subscribe ---------- */
.signup { max-width: 540px; }
.signup-row { display: flex; align-items: stretch; gap: 0; }
.signup-field { position: relative; flex: 1; display: flex; }
.signup input[type="email"] {
  flex: 1; min-width: 0;
  font: 500 18px/1.2 var(--head);
  color: var(--white);
  background: transparent;
  border: 0;
  border-bottom: 2px dashed var(--orange);
  padding: 14px 28px 12px 0;
  border-radius: 0;
}
.signup input[type="email"]::placeholder { color: var(--steel); opacity: 1; }
.signup input[type="email"]:focus { outline: none; border-bottom-style: solid; }
.signup input[type="email"]:focus-visible { outline: none; }
.signup-field::after {
  content: ""; position: absolute; right: 6px; bottom: -6px;
  width: 10px; height: 10px; background: var(--orange); transform: rotate(45deg);
}
.signup button {
  font: 700 17px/1 var(--head);
  color: var(--navy);
  background: var(--orange);
  border: 0; border-radius: 4px;
  padding: 0 26px; margin-left: 16px;
  cursor: pointer;
}
.signup button:hover { background: var(--white); }
.signup button:focus-visible { outline: 3px solid var(--white); outline-offset: 3px; }
.signup-note { margin: 14px 0 0; font: 500 14px/1.4 var(--head); color: var(--steel); }
.signup-status { margin: 14px 0 0; font: 600 15px/1.4 var(--head); color: var(--white); min-height: 1.4em; }
.signup.on-light input[type="email"] { color: var(--navy); }
.signup.on-light input[type="email"]::placeholder { color: var(--slate); }
.signup.on-light .signup-note { color: var(--slate); }
.signup.on-light .signup-status { color: var(--navy); }
.signup.on-light input[type="email"] { border-bottom-color: var(--orange-deep); }
.signup.on-light button:hover { background: var(--navy); color: var(--white); }
@media (max-width: 480px) {
  .signup-row { flex-direction: column; gap: 18px; }
  .signup button { margin-left: 0; padding: 16px 26px; }
}

/* ---------- contents panel (what's in each issue) ---------- */
.contents {
  background: var(--paper); color: var(--navy);
  padding: 28px 28px 8px;
  border-top: 4px solid var(--orange);
}
@media (min-width: 960px) { .contents { margin-top: 8px; } }
.contents h2 {
  font: 700 15px/1.3 var(--head); letter-spacing: 0.01em;
  margin: 0 0 4px; color: var(--slate);
}
.contents ol { list-style: none; margin: 0; padding: 0; counter-reset: item; }
.contents li {
  counter-increment: item;
  display: grid; grid-template-columns: 30px 1fr; gap: 0 8px;
  padding: 16px 0; border-bottom: 1px solid var(--rule);
}
.contents li:last-child { border-bottom: 0; }
.contents li::before {
  content: counter(item);
  font: 700 15px/1.5 var(--head); color: var(--orange-deep);
}
.contents b { display: block; font: 700 17px/1.35 var(--head); letter-spacing: -0.005em; }
.contents span { display: block; font-size: 15.5px; line-height: 1.5; color: var(--slate); margin-top: 2px; }

/* ---------- sections ---------- */
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section + .section { border-top: 1px solid var(--rule); }
.split { display: grid; gap: 20px 64px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .split { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); } }
.section h2 {
  font: 700 clamp(28px, 3.4vw, 40px)/1.1 var(--head);
  letter-spacing: -0.018em;
  margin: 0; max-width: 14ch;
  text-wrap: balance;
}
.prose { max-width: 36em; }
.prose p { margin: 0 0 1.1em; }
.prose p:last-child { margin-bottom: 0; }
.prose strong { font-family: var(--head); font-weight: 700; font-size: 0.95em; }
.standards { list-style: none; margin: 0; padding: 0; max-width: 36em; }
.standards li { padding: 0 0 20px 26px; position: relative; }
.standards li::before {
  content: ""; position: absolute; left: 2px; top: 0.62em;
  width: 9px; height: 9px; background: var(--orange); transform: rotate(45deg);
}
.standards strong { font-family: var(--head); font-weight: 700; display: block; font-size: 0.98em; }

.editor { background: var(--mist); }
.editor-note { max-width: 40em; }
.editor-note blockquote { margin: 0; font-size: clamp(20px, 2.2vw, 24px); line-height: 1.5; }
.editor-note blockquote p { margin: 0 0 0.8em; }
.editor-sign { display: flex; align-items: center; gap: 14px; margin-top: 28px; font-family: var(--head); }
.editor-sign img { width: 34px; height: auto; }
.editor-sign b { display: block; font-weight: 700; font-size: 16px; }
.editor-sign span { display: block; font-weight: 500; font-size: 14px; color: var(--slate); }

.closing {
  background: var(--navy); color: var(--white);
  padding: clamp(56px, 8vw, 96px) 0;
}
.closing h2 { font: 700 clamp(28px, 3.4vw, 40px)/1.1 var(--head); letter-spacing: -0.018em; margin: 0 0 12px; }
.closing p { color: var(--steel); margin: 0 0 32px; max-width: 34em; }

/* ---------- inner pages ---------- */
.page-head { background: var(--navy); color: var(--white); padding: clamp(40px, 6vw, 72px) 0; }
.page-head h1 { font: 700 clamp(34px, 5vw, 56px)/1.05 var(--head); letter-spacing: -0.02em; margin: 0; max-width: 18ch; }
.page-head p { color: var(--steel); margin: 16px 0 0; max-width: 36em; }
.page-body { padding: clamp(40px, 6vw, 80px) 0 clamp(56px, 8vw, 104px); }
.page-body .prose h2 { font: 700 24px/1.2 var(--head); letter-spacing: -0.01em; margin: 1.8em 0 0.5em; max-width: none; }
.page-body .prose h2:first-child { margin-top: 0; }
.page-body .prose h3 { font: 700 18px/1.3 var(--head); margin: 1.4em 0 0.4em; }
.page-body .prose ul { padding-left: 1.2em; }
.legal { font-size: 17px; }
.legal .prose p, .legal .prose li { margin-bottom: 0.7em; }
.todo { background: #fff3c4; padding: 0 4px; }
.empty { border-top: 4px solid var(--orange); background: var(--white); padding: 32px; max-width: 640px; }
.empty h2 { font: 700 26px/1.2 var(--head); margin: 0 0 8px; max-width: none; }
.empty p { margin: 0 0 24px; color: var(--slate); }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--rule); padding: 40px 0 48px; font-family: var(--head); font-size: 14px; color: var(--slate); }
.site-footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; }
.site-footer img { width: 210px; height: auto; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer-links a { text-decoration: none; color: var(--navy); font-weight: 600; }
.footer-links a:hover { color: var(--orange-deep); text-decoration: underline; }
.footer-copy { width: 100%; margin: 0; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

/* beehiiv embed */
.signup-embed { min-height: 56px; position: relative; padding-bottom: 14px; }
.signup-embed::after {
  content: ""; position: absolute; left: 0; right: 14px; bottom: 0;
  border-bottom: 2px dashed var(--orange);
}
.signup-embed::before {
  content: ""; position: absolute; right: 2px; bottom: -5px;
  width: 10px; height: 10px; background: var(--orange); transform: rotate(45deg);
}
.signup.on-light .signup-embed::after { border-bottom-color: var(--orange-deep); }
.signup.on-light .signup-embed::before { background: var(--orange-deep); }
.signup-note a { color: inherit; }
.signup-fallback { color: var(--orange); font-family: var(--head); font-weight: 700; }
