/* Bilingual Reader website. Colours are taken from the app (paper, cards, lines) and its icon (indigo band, red
   "Hello!" bubble, orange "¡Hola!" bubble). No web fonts, no scripts, no inline styles (the CSP in _headers forbids them). */
:root {
  --paper: #f7f4ee; --card: #fffdf9; --line: #ece6dc; --ink: #2b2722; --muted: #5f574d;
  --band: #2a2162; --band-ink: #ffffff; --band-muted: #d9d5f0; --accent: #c8473d; --focus: #f3a23a; --link: #3b2f8f;
}
@media (prefers-color-scheme: dark) {
  :root { --paper: #1b1917; --card: #24211e; --line: #3a352f; --ink: #efeae2; --muted: #bdb4a8; --link: #b9aeff; }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink);
       font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; }
a { color: var(--link); }
a:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
.wrap { max-width: 60rem; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 44rem; }
.serif, h1, h2 { font-family: Georgia, "Iowan Old Style", "Palatino Linotype", "Times New Roman", serif; }

/* Home page */
.band { background: var(--band); color: var(--band-ink); }
.hero { display: flex; gap: 28px; align-items: center; padding: 52px 20px 44px; }
.hero > img { width: 112px; height: 112px; border-radius: 26px; flex: none; }
.hero h1 { font-size: 2.4rem; line-height: 1.1; margin: 0 0 .4rem; }
.lede { font-size: 1.25rem; line-height: 1.45; margin: 0; }
.byo { margin: .85rem 0 0; font-weight: 600; text-wrap: pretty; }
.tagline { margin: .7rem 0 0; max-width: 38rem; font-family: Georgia, "Iowan Old Style", "Palatino Linotype", "Times New Roman", serif;
           font-style: italic; font-size: 1.15rem; line-height: 1.4; text-wrap: pretty; }
.sub { color: var(--band-muted); margin: .9rem 0 0; max-width: 38rem; }
.cta { display: inline-block; margin-top: 1.3rem; padding: .72rem 1.3rem; border-radius: 999px;
       background: var(--accent); color: #fff; font-weight: 600; text-decoration: none; }
.cta:hover { filter: brightness(1.08); }
.note { font-size: .95rem; color: var(--band-muted); margin: .7rem 0 0; }
.pills { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 1.1rem 0 0; padding: 0; }
.pills li { margin: 0; padding: .3rem .8rem; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .35);
            background: rgba(255, 255, 255, .1); font-size: .95rem; font-weight: 600; }

/* The three principles, right under the hero */
.promise { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding: 32px 0 4px; }
.pcard { background: var(--card); border: 1px solid var(--line); border-top: 5px solid var(--accent); border-radius: 14px; padding: 18px 20px; }
.pcard.private { border-top-color: #0b6b70; }
.pcard.noads { border-top-color: var(--focus); }
.pcard h2 { font-size: 1.25rem; margin: 0 0 .45rem; }
.pcard p { margin: 0; color: var(--muted); }
.shots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin: 0; padding: 36px 0 12px; }
.shots figure { margin: 0; }
.shots img { display: block; width: 100%; height: auto; border-radius: 16px; border: 1px solid var(--line); background: var(--card); }
.shots figcaption { margin-top: .55rem; font-size: .92rem; color: var(--muted); text-align: center; }
section { padding: 26px 0 8px; }
h2 { font-size: 1.55rem; line-height: 1.25; margin: 0 0 .9rem; }
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; }
.card h3 { margin: 0 0 .35rem; font-size: 1.05rem; }
.card p { margin: 0; color: var(--muted); }
ul { padding-left: 1.3rem; }
li { margin: .3rem 0; }
.own { background: var(--card); border: 1px solid var(--line); border-left: 5px solid var(--focus); border-radius: 14px; padding: 18px 22px; }
.own p { margin: 0 0 .6rem; }
.own p:last-child { margin-bottom: 0; color: var(--muted); }
/* Computer window and phone side by side; 2.39 : 1 makes a 1600x1190 window and a 9:16 phone the same height */
.own-shots { display: grid; grid-template-columns: 2.39fr 1fr; gap: 18px; margin-top: 18px; }
.own-shots figure { margin: 0; }
.own-shots img { display: block; width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--line); background: var(--card); }
.own-shots figcaption { margin-top: .55rem; font-size: .92rem; color: var(--muted); text-align: center; }
.test { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 20px 22px; margin-top: 8px; }
.test p { margin: 0 0 .6rem; }
.test p:last-child { margin-bottom: 0; }
footer { border-top: 1px solid var(--line); margin-top: 40px; padding: 22px 0 44px; color: var(--muted); font-size: .95rem; }
footer a { color: inherit; }

/* Privacy policy and 404 */
.topbar { background: var(--band); }
.topbar a { display: inline-flex; align-items: center; gap: 10px; padding: 12px 0; color: #fff; font-weight: 600; text-decoration: none; }
.topbar img { width: 32px; height: 32px; border-radius: 8px; }
.doc { padding-top: 8px; padding-bottom: 8px; }
.doc h1 { font-size: 2rem; line-height: 1.2; margin: 2rem 0 .6rem; }
.doc h2 { font-size: 1.3rem; margin: 2rem 0 .5rem; }
.doc p, .doc li { overflow-wrap: anywhere; }

@media (max-width: 720px) {
  .hero { flex-direction: column; align-items: flex-start; gap: 18px; padding: 34px 20px 30px; }
  .hero > img { width: 80px; height: 80px; border-radius: 19px; }
  .hero h1 { font-size: 2rem; }
  .shots { grid-template-columns: repeat(4, 68%); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 14px; }
  .shots figure { scroll-snap-align: start; }
  .cards { grid-template-columns: 1fr; }
  .promise { grid-template-columns: 1fr; padding-top: 24px; }
  .own-shots { grid-template-columns: 1fr; }
  .own-shots figure + figure { width: 68%; margin: 0 auto; }
}
