/* Shared styling for the static, non-SPA content pages (/guide, /compare,
   /for-photographers, /faq, /privacy, /browser-support).

   These pages are plain HTML served straight out of public/ — no React, no
   build step. Keeping the CSS in one cached file instead of inlining the same
   block into every page keeps each document small and keeps edits in one place.
   Referenced as /page.css?v=1 — bump the v when this file changes. */

:root { color-scheme: dark; }
* { box-sizing: border-box; }

body {
  margin: 0;
  background: #0d0c12;
  color: #e7e5ea;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 720px; margin: 0 auto; padding: 20px 20px 80px; }

a { color: #f9a8c4; }
a:hover { color: #fbcfe0; }

/* ---- site chrome ------------------------------------------------------- */

.sitenav {
  max-width: 720px;
  margin: 0 auto;
  padding: 14px 20px 0;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 18px;
  font-size: 14px;
}
.sitenav .brand {
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fdf9f3;
  text-decoration: none;
  margin-right: 4px;
}
.sitenav .brand span { color: #f9a8c4; }
.sitenav a { color: #b9b6c0; text-decoration: none; }
.sitenav a:hover { color: #fdf9f3; }
.sitenav .cta-link { color: #f9a8c4; font-weight: 600; }

nav.crumbs { font-size: 14px; color: #8c8a93; margin-bottom: 28px; }
nav.crumbs a { color: #8c8a93; text-decoration: none; }
nav.crumbs a:hover { color: #f9a8c4; text-decoration: underline; }

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

h1 { font-size: 34px; line-height: 1.2; letter-spacing: -0.02em; margin: 0 0 12px; color: #fdf9f3; }
h2 { font-size: 23px; line-height: 1.3; letter-spacing: -0.01em; margin: 44px 0 12px; color: #fdf9f3; }
h3 { font-size: 17px; margin: 28px 0 8px; color: #fdf9f3; }

.standfirst { font-size: 18px; color: #b9b6c0; margin: 0 0 8px; }
.meta { font-size: 13px; color: #78767f; margin: 0 0 8px; }
.note { color: #8c8a93; font-size: 14px; }

ul, ol { padding-left: 22px; }
li { margin: 7px 0; }

code { background: #1b1a23; padding: 1px 5px; border-radius: 4px; font-size: 0.9em; }

dl dt { margin-top: 20px; }
dl dd { margin: 6px 0 0 0; }

table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 18px 0; display: block; overflow-x: auto; }
th, td { text-align: left; padding: 9px 10px; border-bottom: 1px solid #26242e; vertical-align: top; }
th { color: #fdf9f3; font-weight: 600; }

/* ---- blocks ------------------------------------------------------------ */

/* The short, self-contained answer that opens every page. Deliberately the
   first thing after the h1 so it is extractable without surrounding context. */
.answer {
  margin: 0 0 26px;
  padding: 16px 18px;
  background: #14131b;
  border-left: 3px solid #f43f6f;
  border-radius: 0 12px 12px 0;
  font-size: 17px;
  color: #e7e5ea;
}
.answer p { margin: 0 0 10px; }
.answer p:last-child { margin: 0; }

.cta {
  display: block; margin: 40px 0; padding: 22px 24px;
  background: linear-gradient(135deg, rgba(244,63,111,0.11), rgba(251,191,36,0.05));
  border: 1px solid rgba(244,63,111,0.25); border-radius: 16px;
}
.cta p { margin: 0 0 10px; }
.cta p:last-child { margin: 0; }

/* Hub-page link grid. */
.cards { display: grid; gap: 14px; margin: 22px 0; }
@media (min-width: 620px) { .cards { grid-template-columns: 1fr 1fr; } }
.card {
  padding: 16px 18px;
  border: 1px solid #26242e;
  border-radius: 14px;
  background: #121119;
}
.card h3 { margin: 0 0 6px; font-size: 16px; }
.card h3 a { text-decoration: none; }
.card p { margin: 0; font-size: 14px; color: #a4a1ac; line-height: 1.6; }

/* In-body block of contextual links to sibling pages. */
.related {
  margin: 36px 0;
  padding: 16px 18px;
  border: 1px solid #26242e;
  border-radius: 14px;
  background: #101018;
  font-size: 15px;
}
.related strong { color: #fdf9f3; display: block; margin-bottom: 8px; }
.related ul { margin: 0; }

footer { margin-top: 56px; padding-top: 22px; border-top: 1px solid #26242e; font-size: 14px; color: #78767f; }
footer a { color: #8c8a93; }
footer .cols { display: grid; gap: 18px; margin-bottom: 20px; }
@media (min-width: 620px) { footer .cols { grid-template-columns: repeat(3, 1fr); } }
footer .cols strong { display: block; color: #b9b6c0; margin-bottom: 6px; font-weight: 600; }
footer .cols ul { list-style: none; padding: 0; margin: 0; }
footer .cols li { margin: 4px 0; }
