/* reelet.app: one stylesheet for every page. No web fonts, no scripts, no third-party requests.
   Palette from the app icon: graphite background, amber accent, clear glass. Light and dark follow the system. */
:root {
  --bg: #f6f5f2;
  --bg-raised: #ffffff;
  --line: #e2ded6;
  --text: #17161a;
  --muted: #5d5a62;
  --accent: #b35f12;        /* amber, 4.9:1 on --bg */
  --accent-strong: #d6781e;
  --link: #9a500d;
  --track: #ece8e1;
  --clip-a: #d6781e;
  --clip-b: #7a6cf0;
  --clip-c: #2f9e8f;
  --clip-d: #c9475b;
  --radius: 16px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111114;
    --bg-raised: #1b1b20;
    --line: #2c2c33;
    --text: #f1efea;
    --muted: #a9a6ae;
    --accent: #f5a345;
    --accent-strong: #f5a345;
    --link: #f7b867;
    --track: #24242b;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

a { color: var(--link); text-underline-offset: 3px; }
a:hover { color: var(--accent-strong); }
a:focus-visible, .button:focus-visible, summary:focus-visible {
  outline: 3px solid var(--accent-strong); outline-offset: 3px; border-radius: 6px;
}

.skip {
  position: absolute; left: -999px; top: 8px; z-index: 10;
  background: var(--accent-strong); color: #111114; padding: 8px 12px; border-radius: 8px; font-weight: 600;
}
.skip:focus { left: 16px; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }

header.site { border-bottom: 1px solid var(--line); }
header.site .wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; min-height: 64px; flex-wrap: wrap;
  padding-top: 8px; padding-bottom: 8px;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; font-size: 19px; }
.brand img { border-radius: 8px; }
nav.site ul { display: flex; gap: 6px 18px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; align-items: center; }
nav.site a { color: var(--muted); text-decoration: none; }
nav.site a:hover, nav.site a[aria-current="page"] { color: var(--text); }
nav.site .lang { font-size: 15px; }
nav.site .lang strong { color: var(--text); font-weight: 600; }

.hero { padding: 64px 0 36px; text-align: center; }
.hero img.icon { width: 128px; height: 128px; border-radius: 28px; box-shadow: 0 18px 50px rgba(214, 120, 30, .22); }
.hero h1 { font-size: clamp(32px, 6vw, 56px); line-height: 1.1; margin: 22px 0 14px; letter-spacing: -.02em; }
.hero p.lead { font-size: clamp(18px, 2.4vw, 21px); color: var(--muted); max-width: 720px; margin: 0 auto; }
.cta { margin-top: 28px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.button {
  display: inline-block; padding: 12px 22px; border-radius: 999px; font-weight: 600; text-decoration: none;
  background: var(--text); color: var(--bg); border: 1px solid var(--text);
}
.button:hover { color: var(--bg); opacity: .9; }
.button.secondary { background: transparent; color: var(--text); border-color: var(--line); }
.button.secondary:hover { color: var(--text); border-color: var(--muted); }
.button.soon { background: transparent; color: var(--muted); border: 1px dashed var(--muted); cursor: default; }
.note { color: var(--muted); font-size: 15px; margin-top: 14px; }

/* The timeline illustration (inline SVG, decorative). */
.stage { margin: 40px auto 0; max-width: 920px; }
.stage svg { width: 100%; height: auto; display: block; border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg-raised); }
.stage .t-track { fill: var(--track); }
.stage .t-label { fill: var(--muted); font: 600 13px -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif; }
.stage .t-a { fill: var(--clip-a); }
.stage .t-b { fill: var(--clip-b); }
.stage .t-c { fill: var(--clip-c); }
.stage .t-d { fill: var(--clip-d); }
.stage .t-head { stroke: var(--text); stroke-width: 2; }
.stage .t-term { fill: #111114; }
.stage .t-mono { fill: #e9e6df; font: 13px ui-monospace, "SF Mono", Menlo, Consolas, monospace; }
.stage .t-mono-dim { fill: #8f8b84; font: 13px ui-monospace, "SF Mono", Menlo, Consolas, monospace; }
.stage .t-mono-ok { fill: #8fd18f; font: 13px ui-monospace, "SF Mono", Menlo, Consolas, monospace; }

section.band { padding: 52px 0; border-top: 1px solid var(--line); }
section.band h2 { font-size: clamp(26px, 3.6vw, 34px); line-height: 1.2; margin: 0 0 10px; letter-spacing: -.01em; }
section.band > .wrap > p.intro { color: var(--muted); max-width: 760px; margin: 0 0 28px; }
.eyebrow { color: var(--accent); font-weight: 700; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; margin: 0 0 6px; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; list-style: none; margin: 0; padding: 0; }
.cards li { background: var(--bg-raised); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 22px 18px; }
.cards h3 { margin: 0 0 8px; font-size: 19px; line-height: 1.3; }
.cards p { margin: 0 0 8px; color: var(--muted); }
.cards .mark { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 8px; vertical-align: 1px; }
.m1 { background: var(--clip-a); } .m2 { background: var(--clip-b); } .m3 { background: var(--clip-c); }
.m4 { background: var(--clip-d); } .m5 { background: var(--accent); } .m6 { background: var(--muted); }

.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.gallery img { width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--line); }
.gallery figcaption { color: var(--muted); font-size: 15px; margin-top: 6px; }

.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin: 0; }
.facts div { border-left: 3px solid var(--accent-strong); padding: 2px 0 2px 14px; }
.facts dt { font-weight: 700; }
.facts dd { margin: 0; color: var(--muted); }

pre, code { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 15px; }
pre {
  background: var(--bg-raised); border: 1px solid var(--line); border-radius: 12px;
  padding: 14px 16px; overflow-x: auto; white-space: pre; line-height: 1.5;
}
:not(pre) > code { background: var(--track); padding: 1px 6px; border-radius: 6px; overflow-wrap: anywhere; }

article.doc { padding: 44px 0 64px; }
article.doc h1 { font-size: clamp(30px, 5vw, 42px); line-height: 1.15; margin: 0 0 8px; letter-spacing: -.015em; }
article.doc h2 { font-size: 23px; margin: 36px 0 8px; line-height: 1.3; }
article.doc h3 { font-size: 19px; margin: 24px 0 6px; }
article.doc p, article.doc li { color: var(--text); }
article.doc .updated, article.doc .lead { color: var(--muted); }
article.doc ul, article.doc ol { padding-left: 1.3em; }
article.doc li { margin: 4px 0; }

details { border: 1px solid var(--line); border-radius: 12px; background: var(--bg-raised); padding: 0 16px; margin: 10px 0; }
details[open] { padding-bottom: 6px; }
summary { cursor: pointer; font-weight: 600; padding: 14px 0; list-style-position: outside; }
details > *:not(summary) { margin-top: 0; }

.contact {
  background: var(--bg-raised); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 22px; margin: 18px 0 8px;
}
.contact p { margin: 0 0 6px; }
.contact a.mail { font-size: 21px; font-weight: 700; }

footer.site { border-top: 1px solid var(--line); padding: 26px 0 40px; color: var(--muted); font-size: 15px; }
footer.site .wrap { display: flex; justify-content: space-between; gap: 10px 24px; flex-wrap: wrap; }
footer.site ul { display: flex; gap: 6px 18px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
footer.site a { color: var(--muted); }

@media (prefers-reduced-motion: no-preference) {
  .button { transition: opacity .15s, border-color .15s; }
}
