/* cochainbooks.com — the page frame, the footer and the app-support page (P363). The homepage itself is drawn by
   /home/cochain-home.js with its own stylesheet; this file styles only what sits around it. Fonts are the homepage's own
   self-hosted files (copied from public/home/ at build time): no font is fetched from anywhere else. */
@font-face {
  font-family: 'Fredoka';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('/home/fonts/fredoka-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('/home/fonts/nunito-latin.woff2') format('woff2');
}

:root {
  --ink: #1E2A47;
  --ink-soft: #4A5570;
  --canvas: #FAF8F5;
  --line: #E6E1D8;
  --gold-text: #86670C;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: 'Nunito', 'Trebuchet MS', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
a:focus-visible { outline: 2px solid var(--gold-text); outline-offset: 2px; }

/* ---- the app-support page ---------------------------------------------------------------------------------------- */
.page {
  max-width: 42rem;
  margin: 0 auto;
  padding: 3rem 1.25rem 2rem;
}
.page .home-link {
  display: inline-block;
  margin-bottom: 2rem;
  font-family: 'Fredoka', 'Nunito', system-ui, sans-serif;
  font-weight: 600;
  font-size: 1.125rem;
  text-decoration: none;
}
.page h1, .page h2 {
  font-family: 'Fredoka', 'Nunito', system-ui, sans-serif;
  font-weight: 600;
  line-height: 1.25;
}
.page h1 { font-size: 2rem; margin: 0 0 1.25rem; }
.page h2 { font-size: 1.375rem; margin: 2.25rem 0 0.75rem; }
.page p { margin: 0 0 1rem; }

/* ---- the footer, on both pages ----------------------------------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 2.5rem 1.25rem 3rem;
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.9375rem;
}
.site-footer p { margin: 0 0 0.5rem; }
.site-footer .footer-name {
  font-family: 'Fredoka', 'Nunito', system-ui, sans-serif;
  font-weight: 600;
  font-size: 1.125rem;
  color: var(--ink);
}
.site-footer nav { margin: 1rem 0; }
.site-footer nav a { margin: 0 0.25rem; }
.site-footer nav span[aria-hidden] { color: var(--line); }
