/* ReadMyBook — standalone static site.
   Mirrors the dSolve (d-solve.de) design system: Inter font, brand-blue ramp,
   ink neutrals. Self-contained, no build step, no external repo dependency. */

:root {
  --brand-50: #eff6fd;
  --brand-100: #d9eafb;
  --brand-200: #b7d6f6;
  --brand-300: #87baee;
  --brand-700: #1a4f8f;
  --brand-800: #163f70;
  --brand-900: #143456;

  --ink-50: #f6f7f9;
  --ink-100: #ebeef2;
  --ink-200: #d3dae3;
  --ink-500: #61748d;
  --ink-600: #4d5d75;
  --ink-700: #404c5f;
  --ink-900: #1f2733;

  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink-900);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
}

.wrap { max-width: 72rem; margin: 0 auto; padding: 0 1.5rem; }

/* header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid var(--ink-100);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
}
.site-header img { height: 2.25rem; width: 2.25rem; border-radius: 0.5rem; object-fit: contain; }
.site-header .brand { font-weight: 600; font-size: 1.125rem; letter-spacing: -0.01em; }

/* hero */
.hero {
  background: linear-gradient(135deg, var(--brand-50), #fff 60%);
  padding: 3.5rem 0;
}
.eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--brand-700);
}
.hero h1 {
  margin: 0.75rem 0 0;
  font-size: 2.75rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 700;
}
.hero p { margin-top: 1rem; max-width: 42rem; color: var(--ink-600); font-size: 1.125rem; }

/* sections */
section.block { padding: 3rem 0; }
section.block.muted { background: var(--ink-50); }
h2 { font-size: 1.5rem; font-weight: 700; letter-spacing: -0.01em; margin: 0 0 1rem; }
h3 { font-size: 1.125rem; font-weight: 600; margin: 0 0 0.5rem; }
p { color: var(--ink-700); }

.grid-2 { display: grid; gap: 2rem; align-items: start; }
@media (min-width: 768px) { .grid-2 { grid-template-columns: 1fr 1.2fr; } }

.frame {
  overflow: hidden;
  border-radius: 1rem;
  border: 1px solid var(--ink-100);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}
.frame img { display: block; width: 100%; height: auto; }
.aspect-video { position: relative; aspect-ratio: 16 / 9; }
.aspect-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.modes { display: grid; gap: 1.5rem; margin-top: 1.25rem; }
@media (min-width: 640px) { .modes { grid-template-columns: repeat(3, 1fr); } }
.modes figure { margin: 0; }
.modes img { width: 100%; border-radius: 0.75rem; border: 1px solid var(--ink-100); box-shadow: 0 1px 2px rgba(0,0,0,0.05); }
.modes figcaption { margin-top: 0.5rem; font-size: 0.875rem; color: var(--ink-600); }

.note { margin-top: 1.5rem; color: var(--ink-600); }
.credit strong { color: var(--ink-900); }

/* discontinued banner */
.discontinued {
  margin: 0;
  border-top: 1px solid var(--ink-200);
  background: var(--ink-50);
  padding: 2rem 0;
  text-align: center;
}
.discontinued .pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 9999px;
  border: 1px solid var(--ink-200);
  background: #fff;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink-700);
}
.discontinued p { margin-top: 0.75rem; font-size: 0.95rem; }

/* footer */
.site-footer {
  border-top: 1px solid var(--ink-100);
  background: var(--ink-50);
  padding: 1.5rem 0;
  font-size: 0.8rem;
  color: var(--ink-500);
}
.site-footer a { color: var(--brand-700); text-decoration: none; }
.site-footer a:hover { color: var(--brand-900); text-decoration: underline; }
