/* presence.css - shared styles for legal / info / contact / 404 pages.
   The landing (index.html) and archive (archived.html) keep their own inline
   styles because they have unique sections; everything else uses this file. */

*,*::before,*::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #374151;
  background: #f3f4f6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 {
  font-family: 'Montserrat', system-ui, sans-serif;
  font-weight: 900;
  color: #111827;
  line-height: 1.15;
  margin: 0;
  letter-spacing: -0.02em;
}
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding-inline: clamp(16px, 4vw, 32px);
}

a:focus-visible, button:focus-visible {
  outline: 2px solid #ea580c;
  outline-offset: 3px;
  border-radius: 4px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: #111827;
  color: #fff;
  padding: 0.5rem 0.75rem;
  z-index: 100;
  border-radius: 4px;
  font-weight: 600;
}
.skip:focus { left: 16px; top: 16px; }

/* nav */
.nav {
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  gap: 1rem;
}
.brand {
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: 22px;
  letter-spacing: -0.02em;
  color: #111827;
}
.brand-dot { color: #ea580c; }
.nav-links {
  display: flex;
  gap: 1.75rem;
  align-items: center;
}
.nav-links a {
  color: #374151;
  font-weight: 500;
  font-size: 14px;
}
.nav-links a:hover { color: #ea580c; }
@media (max-width: 640px) {
  .nav-links { gap: 1.1rem; font-size: 13px; }
  .nav-links a:nth-child(2),
  .nav-links a:nth-child(3) { display: none; }
}

/* hero (text pages, smaller than landing) */
.hero {
  background: #111827;
  color: #ffffff;
  padding: clamp(56px, 8vw, 96px) 0 clamp(48px, 6vw, 72px);
}
.hero-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #ea580c;
  margin-bottom: 1rem;
}
.hero h1 {
  font-size: clamp(32px, 5vw, 52px);
  color: #ffffff;
  max-width: 22ch;
  margin-bottom: 1.25rem;
}
.hero p.lead {
  font-size: clamp(16px, 1.4vw, 18px);
  color: #d1d5db;
  max-width: 60ch;
  line-height: 1.6;
}
.hero a.back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1.75rem;
  color: #d1d5db;
  font-size: 14px;
  font-weight: 500;
  border-bottom: 1px solid #374151;
  padding-bottom: 2px;
  transition: color 0.15s, border-color 0.15s;
}
.hero a.back:hover { color: #ea580c; border-color: #ea580c; }

/* prose body */
.prose-section { padding: clamp(48px, 7vw, 80px) 0; }
.prose {
  max-width: 680px;
  font-size: 16px;
  line-height: 1.7;
  color: #374151;
}
.prose h2 {
  font-size: 22px;
  font-weight: 900;
  margin-top: 2.25rem;
  margin-bottom: 0.6rem;
  color: #111827;
}
.prose h3 {
  font-size: 17px;
  font-weight: 800;
  margin-top: 1.5rem;
  margin-bottom: 0.45rem;
  color: #111827;
}
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose p { margin-bottom: 1rem; }
.prose ul, .prose ol { margin: 0 0 1rem 0; padding-left: 1.4rem; }
.prose li { margin-bottom: 0.45rem; }
.prose a {
  color: #ea580c;
  font-weight: 600;
  border-bottom: 1px solid rgba(234, 88, 12, 0.25);
  transition: border-color 0.15s;
}
.prose a:hover { border-color: #ea580c; }
.prose strong { color: #111827; font-weight: 700; }
.prose hr {
  border: 0;
  border-top: 1px solid #e5e7eb;
  margin: 2rem 0;
}
.prose .meta-block {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}
.prose .meta-block dt {
  font-size: 11px;
  font-weight: 700;
  color: #374151;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 0.85rem;
}
.prose .meta-block dt:first-child { margin-top: 0; }
.prose .meta-block dd {
  font-size: 15px;
  color: #111827;
  margin: 0.2rem 0 0;
  line-height: 1.55;
}
.prose .updated {
  display: block;
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid #e5e7eb;
  font-size: 13px;
  color: #525252;
}

/* footer */
.footer {
  background: #111827;
  color: #d1d5db;
  padding: 56px 0 32px;
}
.footer-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
  margin-bottom: 1.75rem;
}
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
}
.footer h4 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 13px;
  color: #ffffff;
  margin-bottom: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.footer-brand {
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: 22px;
  color: #ffffff;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}
.footer p {
  font-size: 13.5px;
  line-height: 1.6;
  color: #d1d5db;
}
.footer p.legal {
  font-size: 13px;
  line-height: 1.8;
  color: #d1d5db;
  margin-top: 1.1rem;
}
.footer p.legal:first-of-type { margin-top: 0; }
.footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.footer ul a {
  font-size: 14px;
  color: #d1d5db;
}
.footer ul a:hover { color: #ea580c; }
.footer-rule {
  border-top: 1px solid #374151;
  padding-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  font-size: 12.5px;
  color: #d1d5db;
}
.footer-rule a { color: #d1d5db; }
.footer-rule a:hover { color: #ea580c; }
.social-row {
  display: flex;
  gap: 0.6rem;
  margin-top: 0.75rem;
  flex-wrap: wrap;
}
.social-row a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 9999px;
  border: 1px solid #374151;
  color: #d1d5db;
  transition: color 0.15s, border-color 0.15s;
}
.social-row a:hover { color: #ea580c; border-color: #ea580c; }
.social-row svg { width: 16px; height: 16px; }

/* 404-specific */
.error-hero { padding: clamp(80px, 12vw, 140px) 0; }
.error-code {
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: clamp(80px, 16vw, 160px);
  line-height: 0.95;
  color: #ea580c;
  margin-bottom: 0.75rem;
  letter-spacing: -0.04em;
}
.error-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}
.error-cta-row .btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 13px 26px;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 14.5px;
  border: 1px solid transparent;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}
.error-cta-row .btn-primary { background: #ea580c; color: #ffffff; }
.error-cta-row .btn-primary:hover { background: #c2410c; }
.error-cta-row .btn-outline {
  background: transparent;
  color: #d1d5db;
  border-color: #374151;
}
.error-cta-row .btn-outline:hover { color: #ffffff; border-color: #ea580c; }
