/* Readglot site — Paper & Graphite (colors from app/src/theme/tokens.ts). */
@font-face { font-family: "Literata"; src: url("/fonts/Literata-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Literata"; src: url("/fonts/Literata-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }

:root {
  --page: #F7F5F0; --surface: #FFFDFA; --ink: #29282D; --muted: #686570;
  --accent: #565B7C; --on-accent: #FFFFFF; --selection: #C9CBE4; --line: #DDD9D2;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --page: #1C1B20; --surface: #27262C; --ink: #E4E1DA; --muted: #A9A5B0;
    --accent: #B8B9D5; --on-accent: #24232B; --selection: #525174; --line: #45424B;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--page); color: var(--ink);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
::selection { background: var(--selection); }
a { color: var(--accent); text-underline-offset: 2px; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 2px; }

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

header.site { border-bottom: 1px solid var(--line); }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 14px; padding-bottom: 14px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-family: "Literata", Georgia, serif; font-weight: 600; font-size: 20px; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
nav.site { display: flex; gap: 18px; font-size: 15px; flex-wrap: wrap; }
nav.site a { color: var(--muted); text-decoration: none; }
nav.site a:hover, nav.site a[aria-current="page"] { color: var(--ink); }

main { padding: 40px 0 64px; }
h1, h2, h3 { font-family: "Literata", Georgia, serif; font-weight: 600; line-height: 1.25; }
h1 { font-size: 34px; margin: 0 0 8px; }
h2 { font-size: 22px; margin: 40px 0 8px; }
h3 { font-size: 18px; margin: 24px 0 6px; }
p, ul, ol, table { margin: 0 0 14px; }
li { margin-bottom: 6px; }
.meta { color: var(--muted); font-size: 15px; margin-bottom: 28px; }
.note { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; font-size: 15px; }

table { width: 100%; border-collapse: collapse; font-size: 15px; display: block; overflow-x: auto; }
th, td { text-align: left; vertical-align: top; padding: 8px 10px; border-bottom: 1px solid var(--line); }
th { font-weight: 600; }

/* Landing */
.hero { text-align: center; padding: 48px 0 24px; }
.hero img { width: 112px; height: 112px; border-radius: 26px; box-shadow: 0 8px 24px rgba(0,0,0,.12); }
.hero h1 { font-size: 44px; margin-top: 24px; }
.tagline { font-family: "Literata", Georgia, serif; font-size: 22px; color: var(--muted); margin: 0 0 24px; }
.sample { font-family: "Literata", Georgia, serif; font-size: 20px; line-height: 1.7; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 22px 24px; margin: 32px 0; }
.sample mark { background: var(--selection); color: inherit; border-radius: 3px; padding: 0 2px; }
.sample .card { margin-top: 14px; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; font-size: 15px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 12px; }
.sample .card b { color: var(--ink); }
.features { list-style: none; padding: 0; display: grid; gap: 14px; }
.features li { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; margin: 0; }
.features b { display: block; font-family: "Literata", Georgia, serif; font-weight: 600; }
.soon { display: inline-block; background: var(--accent); color: var(--on-accent); border-radius: 999px; padding: 8px 18px; font-size: 15px; }

footer.site { border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
footer.site .wrap { padding-top: 20px; padding-bottom: 32px; display: flex; gap: 16px; flex-wrap: wrap; justify-content: space-between; }
footer.site nav { display: flex; gap: 16px; flex-wrap: wrap; }
footer.site a { color: var(--muted); }

@media (max-width: 480px) {
  .hero h1 { font-size: 36px; }
  h1 { font-size: 28px; }
  .tagline { font-size: 19px; }
}
