/* Shared styles for the GitHub Pages site (index.html, privacy.html).
   Deliberately plain: warm paper background, ink text, one accent colour, hairline rules.
   No JavaScript, no external requests, no web fonts. */
:root { --bg: #faf8f4; --text: #1c1b19; --muted: #5d5b55; --accent: #1a5fd0; --rule: #d9d5cb; }
@media (prefers-color-scheme: dark) {
  :root { --bg: #161513; --text: #ece9e1; --muted: #a29f95; --accent: #7fa8f0; --rule: #36342f; }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); line-height: 1.65; font-size: 1.05rem;
       font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }
main, header.hero { max-width: 880px; margin: 0 auto; padding: 0 24px; }
a { color: var(--accent); text-underline-offset: 3px; }
h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; font-weight: 600; letter-spacing: -0.01em; }

/* Hero: left-aligned, text first. */
header.hero { padding-top: 64px; padding-bottom: 8px; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 600; }
.brand img { width: 40px; height: 40px; border-radius: 9px; }
h1 { font-size: clamp(2.2rem, 6.5vw, 3.6rem); line-height: 1.08; margin: 40px 0 16px; max-width: 14em; }
.tagline { font-size: 1.25rem; color: var(--muted); margin: 0 0 24px; max-width: 34em; }
.status { color: var(--muted); font-size: .95rem; margin: 0 0 24px; }
.buttons { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.btn { display: inline-flex; align-items: center; justify-content: center; height: 48px; padding: 0 20px; border-radius: 6px; font-weight: 600; text-decoration: none;
       border: 1px solid var(--text); color: var(--text); line-height: 1; }
.btn.primary { background: var(--text); color: var(--bg); }
.play-badge { display: inline-flex; align-items: center; justify-content: center; height: 48px; width: 162px;
              overflow: hidden; border-radius: 6px; text-decoration: none; flex-shrink: 0; }
.play-badge img { height: 72px; width: auto; max-width: none; display: block; }

/* Screenshots: a row that fits the page, wrapping to two columns on narrow screens. No scrolling. */
.shots { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; padding: 40px 0 8px; }
.shots img { width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--rule); display: block; }

h2 { font-size: 1.6rem; margin: 56px 0 12px; }
.lead { color: var(--muted); max-width: 40em; margin-top: 0; }

/* Features: a ruled list, not cards. */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); column-gap: 40px; margin-top: 24px; }
.card { display: grid; grid-template-columns: 28px 1fr; align-content: start; column-gap: 14px; padding: 18px 0; border-top: 1px solid var(--rule); }
.card svg.ic { grid-row: 1 / 3; width: 24px; height: 24px; margin-top: 3px; color: var(--accent); }
.card h3 { margin: 0 0 2px; font-size: 1.1rem; }
.card p { margin: 0; color: var(--muted); }

.band { border-left: 3px solid var(--accent); padding-left: 20px; margin-top: 56px; }
.band h2 { margin-top: 0; }
.band h2 svg.ic { color: var(--accent); }

footer { max-width: 880px; margin: 64px auto 0; padding: 20px 24px 48px; border-top: 1px solid var(--rule);
         color: var(--muted); font-size: .9rem; }

/* Inline SVG icons (Material Symbols, Apache 2.0; GitHub mark). They inherit the text colour. */
svg.ic { width: 1.1em; height: 1.1em; fill: currentColor; vertical-align: -0.15em; }
.btn svg.ic { margin-right: 6px; }

/* Privacy page: just a readable column. */
main.text { max-width: 680px; padding-top: 48px; }

/* Demo GIF next to the intro text; stacks on narrow screens. */
.intro { display: grid; grid-template-columns: 320px 1fr; gap: 40px; align-items: center; margin-top: 40px; }
.intro h2 { margin-top: 0; }
.demo { width: 100%; height: auto; display: block; } /* the phone frame is baked into the GIF */
@media (max-width: 700px) { .intro { grid-template-columns: 1fr; } .demo { max-width: 320px; } }

/* Steps that light up in turn, in time with the demo GIF (26 s loop: search 1 = 0-8 s, 2 = 8-19 s, 3 = 19-26 s).
   Paused until the GIF has loaded (class "play", set in index.html) so the two start together. */
.steps { list-style: none; padding: 0; margin: 28px 0 0; }
.steps li { display: grid; gap: 2px; padding: 14px 0 14px 18px; border-left: 3px solid var(--rule);
            opacity: .35; animation-duration: 26s; animation-iteration-count: infinite; animation-play-state: paused; }
.steps.play li { animation-play-state: running; }
.steps q { font-family: Georgia, "Times New Roman", serif; font-size: 1.2rem; quotes: "“" "”"; }
.steps b { color: var(--accent); }
.steps span { color: var(--muted); }
.steps .s1 { animation-name: step1; }
.steps .s2 { animation-name: step2; }
.steps .s3 { animation-name: step3; }
@keyframes step1 { 0%, 30% { opacity: 1; border-color: var(--accent); transform: translateX(6px); }
                   32%, 100% { opacity: .35; border-color: var(--rule); transform: none; } }
@keyframes step2 { 0%, 30% { opacity: .35; border-color: var(--rule); transform: none; }
                   32%, 72% { opacity: 1; border-color: var(--accent); transform: translateX(6px); }
                   74%, 100% { opacity: .35; border-color: var(--rule); transform: none; } }
@keyframes step3 { 0%, 72% { opacity: .35; border-color: var(--rule); transform: none; }
                   74%, 99% { opacity: 1; border-color: var(--accent); transform: translateX(6px); }
                   100% { opacity: .35; border-color: var(--rule); transform: none; } }
@media (prefers-reduced-motion: reduce) { .steps li { animation: none; opacity: 1; } }
