@font-face { font-family: "Fraunces"; font-weight: 600; font-display: swap; src: url("/fonts/Fraunces-SemiBold.ttf"); }
:root {
  --bg: #0b1220;
  --page-bg: linear-gradient(180deg, #0b1220 0, #070c16 900px, #070c16 100%);
  --hero-bg: radial-gradient(900px 500px at 75% 35%, rgba(88,184,176,.16), transparent 60%);
  --surface: rgba(255,255,255,.045);
  --text: #e8ecf2;
  --muted: #9aa4b2;
  --accent: #58b8b0;
  --accent-text: #06201d;
  --heading-accent: #58b8b0;
  --line: rgba(255,255,255,.10);
  --heading-font: Fraunces, Georgia, 'Times New Roman', serif;
  --body-font: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --radius: 16px;
}
/* Shared layout for all AppBear sites. Colours and fonts come from the per-site :root tokens
   generated by build.py (theme in sites/<id>/site.yaml). No inline styles anywhere (strict CSP). */
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--page-bg, var(--bg)); color: var(--text);
  font: 17px/1.7 var(--body-font); -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--heading-font); line-height: 1.2; font-weight: 600; text-wrap: balance; margin: 0 0 .6em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
.wrap { width: min(1080px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(720px, 100% - 32px); }
.center { text-align: center; }

/* top bar */
.topbar { border-bottom: 1px solid var(--line); background: var(--bg); position: sticky; top: 0; z-index: 5; }
.topbar-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-family: var(--heading-font); font-size: 1.2rem; font-weight: 600; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.topnav { display: flex; gap: 18px; flex-wrap: wrap; }
.topnav a { color: var(--muted); text-decoration: none; font-size: .95rem; }
.topnav a:hover { color: var(--text); }

/* hero */
.hero { background: var(--hero-bg, var(--bg)); padding: clamp(40px, 8vw, 96px) 0; }
.hero-in { display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: center; }
.hero .kicker { color: var(--accent); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; font-size: .85rem; margin-bottom: .8em; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 36em; }
.hero-img { justify-self: center; max-height: 520px; width: auto; border-radius: var(--radius); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.btn { display: inline-flex; align-items: center; min-height: 48px; padding: 0 22px; border-radius: 999px; font-weight: 600; text-decoration: none; }
.btn-play { background: var(--accent); color: var(--accent-text); }
.btn-play:hover { filter: brightness(1.08); }
.btn-ghost { border: 1px solid var(--line); color: var(--text); }
.btn:focus-visible, a:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

/* bands and blocks */
.band { padding: clamp(40px, 6vw, 72px) 0; border-top: 1px solid var(--line); }
.intro { color: var(--muted); max-width: 40em; margin-bottom: 24px; }
.shots { display: flex; gap: 16px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x mandatory; }
.shots img { width: 220px; flex: 0 0 auto; border-radius: 18px; border: 1px solid var(--line); scroll-snap-align: start; }
.cards { display: grid; gap: 16px; }
.cards.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cards.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; }
.card p:last-child { margin-bottom: 0; }
.card p { color: var(--muted); font-size: .97rem; }
.cta-band { background: var(--surface); }

/* blog */
.page-title { margin-top: 48px; }
.posts { display: grid; gap: 14px; margin: 24px 0 32px; }
.post-card { display: grid; gap: 4px; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--text); text-decoration: none; }
.post-card:hover { border-color: var(--accent); }
.post-card .date { color: var(--muted); font-size: .85rem; }
.post-card .title { font-family: var(--heading-font); font-size: 1.25rem; font-weight: 600; }
.post-card .desc { color: var(--muted); }
.post { padding: 40px 0 64px; }
.post .meta { color: var(--muted); font-size: .9rem; margin: 0 0 .6em; }
.post-hero { border-radius: var(--radius); border: 1px solid var(--line); margin: 8px 0 28px; }
.prose h2 { margin-top: 1.8em; color: var(--heading-accent, var(--text)); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .35em; }
.prose img { border-radius: 12px; border: 1px solid var(--line); margin: 1.2em 0; }
.prose blockquote { margin: 1.4em 0; padding: 1em 1.3em; border-left: 3px solid var(--accent); background: var(--surface); border-radius: 0 12px 12px 0; }
.prose blockquote p:last-child { margin: 0; }
.post-cta { margin-top: 40px; padding: 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); text-align: center; }
.back { margin-top: 32px; }
.preview-banner { background: #b3261e; color: #fff; text-align: center; padding: 8px; font-weight: 600; }

/* footer */
.foot { border-top: 1px solid var(--line); padding: 32px 0 40px; color: var(--muted); font-size: .92rem; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-bottom: 12px; }
.foot a { color: var(--muted); }
.foot-note { margin: 0; }

@media (max-width: 760px) {
  body { font-size: 16px; }
  .hero-in { grid-template-columns: 1fr; }
  .hero-img { max-height: 380px; }
  .cards.cols-2, .cards.cols-3 { grid-template-columns: 1fr; }
  .shots img { width: 180px; }
  .topnav { gap: 12px; }
}

/* fills the window below short pages; centred actions inside centred bands */
html { background: var(--bg); }
body { min-height: 100vh; }
.center .actions { justify-content: center; }
