:root { color-scheme: dark; --bg: #121817; --panel: #1c2421; --text: #eef2e7; --muted: #afbcb2; --accent: #cbef77; --line: #37423c; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.7 system-ui, -apple-system, "Segoe UI", "Microsoft YaHei", sans-serif; }
a { color: var(--accent); text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; }
.skip { position: absolute; left: 1rem; top: -6rem; padding: .5rem; background: var(--panel); }
.skip:focus { top: 0; }
header, main, footer { width: min(1160px, calc(100% - 64px)); margin: auto; }
header { padding: 30px 0; }
footer { padding: 30px 0 45px; }
header { display: flex; align-items: center; flex-wrap: wrap; gap: 1rem 2rem; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: .7rem; color: var(--text); font-weight: 750; text-decoration: none; }
.brand img { width: 40px; height: 40px; border-radius: 8px; }
nav { display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; font-size: .9rem; }
.languages { margin-left: auto; }
.languages a[aria-current="true"] { color: var(--text); font-weight: 750; text-decoration-thickness: 3px; }
main { min-height: 65vh; padding-top: 3rem; padding-bottom: 4rem; overflow-wrap: anywhere; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -.025em; }
h1 { font-size: clamp(42px, 5.7vw, 76px); line-height: 1.08; letter-spacing: -3px; margin: 0 0 24px; }
h2 { margin-top: 2.5rem; font-size: clamp(28px, 3vw, 40px); }
h3 { margin-top: 2rem; }
p, li { max-width: 78ch; }
li + li { margin-top: .5rem; }
pre { padding: 1.2rem; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; overflow-x: auto; white-space: pre-wrap; }
code { font-size: .88em; }
:not(pre) > code { padding: .15em .35em; background: var(--panel); border-radius: 4px; }
blockquote { margin-left: 0; padding-left: 1rem; border-left: 3px solid var(--accent); color: var(--muted); }
table { display: block; overflow-x: auto; border-collapse: collapse; }
th, td { padding: .5rem 1rem; border: 1px solid var(--line); }
footer { border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }


/* Shared visual language with Awesome FM-1. */
header { gap: 1rem 1.8rem; }
.brand { font-size: 1.3rem; font-weight: 850; letter-spacing: -.04em; white-space: nowrap; }
.brand img { width: 48px; height: 48px; }
.brand-name span { color: var(--accent); }
footer { display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem; font-size: .75rem; }
.footer-brand { display: flex; align-items: center; gap: .5rem; font-weight: 800; white-space: nowrap; }
.footer-brand img { width: 28px; height: 28px; filter: grayscale(1); opacity: .65; }
footer p { flex: 1 1 350px; margin: 0; }
.footer-links { flex-basis: 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 20px; margin: 0; padding-top: 24px; border-top: 1px solid var(--line); }
.footer-links a { display: inline-flex; align-items: center; color: var(--muted); }
.footer-links a:hover { color: var(--accent); }
.footer-links svg { display: block; width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.footer-links .ekim-logo { display: block; width: 70px; height: 28px; object-fit: contain; }

.awesome-promo { width: min(1160px, calc(100% - 64px)); margin: 0 auto 3rem; padding: 2rem; display: flex; align-items: center; gap: 2rem; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; }
.awesome-promo img { width: 140px; height: 140px; flex: none; padding: 1rem; background: #101412; border-radius: 10px; }
.awesome-promo h2 { margin: 0; }
.awesome-promo p { margin: .5rem 0 1rem; color: var(--muted); }
.awesome-cta { display: inline-block; padding: .55rem 1rem; background: var(--accent); color: var(--bg); border-radius: 6px; font-weight: 700; text-decoration: none; }
@media (max-width: 600px) { .awesome-promo { margin: 0 auto 2rem; flex-direction: column; align-items: flex-start; } .awesome-promo img { width: 100px; height: 100px; } }

header .languages { gap: 1rem; align-items: center; }
header .languages a { font-size: 22px; line-height: 1; text-decoration: none; }
header .languages a[aria-current="true"] { opacity: 1; }
header .languages a:not([aria-current="true"]) { opacity: .65; }
header .project-nav a { color: var(--muted); text-decoration: none; }
header .project-nav a:hover, .header-github:hover { color: var(--accent); }
.header-github { color: var(--muted); }
.header-github svg { display: block; width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 760px) { header .languages { margin-left: auto; } header .project-nav { order: 3; width: 100%; } }

.home-hero p { color: var(--muted); }
.home-cover { display: block; width: 100%; height: auto; border-radius: 8px; border: 1px solid var(--line); }
@media (max-width: 760px) { header, main, footer, .awesome-promo { width: calc(100% - 36px); } h1 { letter-spacing: -2px; } }

/* Keep the navigation and the image readable at intermediate widths. */
header { gap: 14px 28px; }
header .project-nav { order: 3; flex-basis: 100%; padding-top: 10px; border-top: 1px solid var(--line); }
header .languages { margin-left: auto; }
main { padding-top: 2rem; }
.home-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: center; gap: clamp(24px, 4vw, 56px); }
.home-hero { padding: 40px 0; }
.home-hero h1 { font-size: clamp(38px, 4.2vw, 58px); letter-spacing: -.045em; }
.home-hero p { max-width: 52ch; }
.home-quick-start h2:first-child { margin-top: 0; }
body:not([data-page="index.html"]) main { max-width: 900px; }
body:not([data-page="index.html"]) h1 { font-size: clamp(36px, 4.5vw, 56px); letter-spacing: -.04em; }
@media (max-width: 760px) {
  header .project-nav { gap: .6rem 1.2rem; }
  .home-row { grid-template-columns: minmax(0, 1fr); }
  .home-hero { padding: 20px 0 24px; }
  .home-hero h1 { font-size: clamp(34px, 9vw, 48px); }
}

header { padding-bottom: 0; }
header .project-nav { justify-content: center; align-items: center; gap: .35rem 0; padding: 14px 0; font-variant: small-caps; letter-spacing: .06em; }
header .project-nav a + a::before { content: '·'; display: inline-block; margin: 0 1rem; color: var(--muted); }

/* Captured app screens, with full-resolution image links. */
main img { max-width: 100%; height: auto; }
body[data-page="documentation.html"] main img { max-width: min(100%, 320px); border-radius: 16px; }
