/* Tomebound's site. One stylesheet, no build step, no scripts.
   The accent is the app's own: #7A4FC2 light, #B69CF2 dark (AccentColor.colorset). */

:root {
  --bg: #fbfaf7;
  --surface: #ffffff;
  --text: #1d1b22;
  --muted: #5b5766;
  --rule: #e6e2ec;
  --accent: #7a4fc2;
  --accent-soft: #f1ebfa;
  --on-accent: #ffffff;
  --shot: #efeaf6;
  --measure: 40rem;
  --wide: 68rem;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141218;
    --surface: #1c1a21;
    --text: #edeaf2;
    --muted: #a9a3b5;
    --rule: #2e2a36;
    --accent: #b69cf2;
    --accent-soft: #241e31;
    --shot: #221d2c;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 1.0625rem/1.6 system-ui, -apple-system, "Segoe UI", sans-serif;
}

h1, h2, h3 {
  font-family: ui-serif, "New York", Georgia, serif;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

a { color: var(--accent); text-underline-offset: 0.15em; }

.wrap { max-width: var(--wide); margin: 0 auto; padding: 0 1rem; }
.prose { max-width: var(--measure); }

/* Header and footer */

.site-header { border-bottom: 1px solid var(--rule); }
.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-top: 0.875rem;
  padding-bottom: 0.875rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.125rem;
}
.brand img { width: 32px; height: 32px; border-radius: 7px; }
.site-header nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; }
.site-header nav a { color: var(--muted); text-decoration: none; }
.site-header nav a:hover,
.site-header nav a[aria-current="page"] { color: var(--text); }

.site-footer {
  margin-top: 5rem;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.9375rem;
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-top: 1.5rem;
  padding-bottom: 2rem;
}
.site-footer nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; }
.site-footer a { color: var(--muted); }

/* Home */

.hero {
  display: grid;
  justify-items: center;
  text-align: center;
  padding: 4.5rem 0 3rem;
}
.hero img { width: 112px; height: 112px; border-radius: 25px; box-shadow: 0 8px 24px rgb(0 0 0 / 0.12); }
.hero h1 { font-size: clamp(2.125rem, 6vw, 3.25rem); margin: 1.5rem 0 0.75rem; max-width: 16ch; }
.hero p { color: var(--muted); font-size: 1.1875rem; max-width: 34rem; margin: 0; }

.cta {
  display: inline-block;
  margin-top: 2rem;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  text-decoration: none;
  font-weight: 600;
}
@media (prefers-color-scheme: dark) {
  /* White on the dark accent is 2.33:1, so a filled button keeps the light violet. */
  .cta { background: #7a4fc2; }
}
.hero .cta-note { margin-top: 1.5rem; font-size: 0.9375rem; color: var(--muted); }

.feature {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: center;
  padding: 3rem 0;
  border-top: 1px solid var(--rule);
}
.feature h2 { font-size: 1.75rem; margin: 0 0 0.75rem; }
.feature p { margin: 0 0 0.75rem; color: var(--muted); }
@media (min-width: 52rem) {
  .feature { grid-template-columns: 5fr 7fr; gap: 3rem; }
  .feature.flip { grid-template-columns: 7fr 5fr; }
  .feature.flip .copy { order: 2; }
}

/* A screenshot slot. The real image replaces the placeholder text; see Website/README.md. */
.shot {
  margin: 0;
  aspect-ratio: 2420 / 1668;
  border-radius: 14px;
  border: 1px solid var(--rule);
  background: var(--shot);
  overflow: hidden;
}
.shot img { display: block; width: 100%; height: 100%; object-fit: cover; }
.shot.placeholder {
  display: grid;
  place-items: center;
  padding: 1rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.9375rem;
}

.also {
  border-top: 1px solid var(--rule);
  padding: 3rem 0 0;
}
.also h2 { font-size: 1.75rem; margin: 0 0 1.5rem; }
.also ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1.25rem 2rem;
}
.also li strong { display: block; }
.also li span { color: var(--muted); }

/* Text pages */

.page { padding-top: 3rem; }
.page h1 { font-size: clamp(2rem, 5vw, 2.5rem); margin: 0 0 0.5rem; }
.page h2 { font-size: 1.375rem; margin: 2.5rem 0 0.5rem; }
.page h3 { font-size: 1.125rem; margin: 1.75rem 0 0.25rem; }
.page .lede { color: var(--muted); font-size: 1.1875rem; margin-top: 0; }
.page .updated { color: var(--muted); font-size: 0.9375rem; }

.contact {
  margin: 2rem 0;
  padding: 1.25rem 1.5rem;
  border-radius: 12px;
  background: var(--accent-soft);
}
.contact p { margin: 0.25rem 0; }

details {
  border-top: 1px solid var(--rule);
  padding: 0.875rem 0;
}
details:last-of-type { border-bottom: 1px solid var(--rule); }
summary {
  cursor: pointer;
  font-weight: 600;
}
details p, details ul { margin: 0.625rem 0 0; }
