/* Sealbook website. Tokens from docs/DESIGN.md; light and dark follow the system.
   Fonts are the app's own, subset and served from /fonts (SIL OFL, see the
   licence files there). Nothing here loads from another site. */

@font-face {
  font-family: "Fraunces";
  src: url("/fonts/Fraunces.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("/fonts/Fraunces-Italic.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("/fonts/InstrumentSans.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #f6f7fa;
  --card: #ffffff;
  --border: #e3e7ee;
  --text: #141a24;
  --text-2: #364052;
  --muted: #5b6576;
  --accent: #2f5bd3;
  --accent-hover: #2448ac;
  --outline: #d3d9e3;
  --ring-outer: #dde2ea;
  --ring-inner: #e6eaf0;
  --seal-shadow: 0.12;
  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1117;
    --card: #161b24;
    --border: #212836;
    --text: #e8ecf4;
    --text-2: #c3cad6;
    --muted: #9aa4b5;
    --accent: #7c9cff;
    --accent-hover: #a3b9ff;
    --outline: #2a3242;
    --ring-outer: #252c3a;
    --ring-inner: #1c2230;
    --seal-shadow: 0;
  }
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-underline-offset: 3px;
}
a:hover {
  color: var(--accent-hover);
}
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

main {
  flex: 1;
  width: 100%;
}

.seal-shadow {
  fill-opacity: var(--seal-shadow);
}

/* Page header on the long pages */
.top {
  max-width: 720px;
  margin: 0 auto;
  padding: 28px 24px 0;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
  font: 500 22px/1 var(--serif);
}
.brand:hover {
  color: var(--text);
}

/* Home */
.hero {
  max-width: 560px;
  margin: 0 auto;
  padding: 72px 24px 48px;
  text-align: center;
}
.hero.small {
  padding-top: 96px;
}
.stage {
  display: block;
  width: min(260px, 72vw);
  height: auto;
  margin: 0 auto 20px;
}
.ring-outer {
  stroke: var(--ring-outer);
}
.ring-inner {
  stroke: var(--ring-inner);
}
.hero h1 {
  margin: 0;
  font: 500 clamp(44px, 11vw, 64px) / 1.05 var(--serif);
  letter-spacing: -0.01em;
}
.tagline {
  margin: 12px 0 0;
  font: italic 400 clamp(19px, 4.6vw, 22px) / 1.4 var(--serif);
  color: var(--muted);
}
.about {
  max-width: 460px;
  margin: 28px auto 0;
  color: var(--text-2);
}
.points {
  list-style: none;
  margin: 36px auto 0;
  padding: 0;
  display: inline-block;
  text-align: left;
}
.points li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 7px 0;
  font-size: 18px;
  color: var(--text-2);
}
.points .icon {
  flex: none;
  color: var(--accent);
}
.soon {
  display: inline-block;
  margin: 44px 0 0;
  padding: 10px 20px;
  border: 1px solid var(--outline);
  border-radius: 999px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.3;
}

.questions {
  margin: 36px 0 0;
  color: var(--muted);
}

/* Long pages */
.doc {
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 24px 72px;
}
.doc h1 {
  margin: 0 0 20px;
  font: 500 clamp(32px, 7vw, 40px) / 1.15 var(--serif);
}
.doc h2 {
  margin: 40px 0 8px;
  font: 500 22px/1.3 var(--serif);
}
.doc p,
.doc ul {
  margin: 0 0 16px;
  color: var(--text-2);
}
.doc ul {
  padding-left: 1.25em;
}
.doc li {
  margin: 0 0 8px;
}
.doc strong {
  color: var(--text);
  font-weight: 600;
}
.doc code {
  padding: 1px 6px;
  border-radius: 6px;
  background: var(--card);
  border: 1px solid var(--border);
  font: 0.9em ui-monospace, SFMono-Regular, Menlo, monospace;
}

/* Footer */
.footer {
  max-width: 720px;
  width: 100%;
  margin: 0 auto;
  padding: 28px 24px 40px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  justify-content: space-between;
  align-items: center;
  font-size: 15px;
  color: var(--muted);
}
.footer nav {
  display: flex;
  gap: 24px;
}
.footer p {
  margin: 0;
}
.home .footer {
  border-top: 0;
  justify-content: center;
  flex-direction: column;
  text-align: center;
}

@media (max-width: 420px) {
  .hero {
    padding-top: 48px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  a {
    transition: color 0.15s ease;
  }
}
