:root {
  --bg: #0a0f1a;
  --bg-2: #111827;
  --surface: #151d2e;
  --line: #24304a;
  --text: #e8edf5;
  --muted: #a3b0c6;
  --accent: #f5a524;
  --accent-ink: #1a1203;
  --destructive: #ff8a80;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-control: 6px;
  --font-head: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--text); font-family: var(--font-body); font-size: 17px; line-height: 1.6; }
a { color: inherit; }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.12; letter-spacing: -0.01em; margin: 0 0 .5em; }
.wrap { padding: 0 clamp(20px, 5vw, 72px); }

/* header */
.site-header { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 16px clamp(20px, 5vw, 72px); background: rgba(10, 15, 26, .88); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.brand { font-family: var(--font-head); font-weight: 700; font-size: 1.25rem; text-decoration: none; letter-spacing: .02em; }
.brand span { color: var(--accent); }
.nav { display: flex; gap: 24px; align-items: center; }
.nav a { text-decoration: none; color: var(--muted); font-weight: 500; font-size: .95rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }

/* buttons */
.btn { display: inline-block; padding: 14px 26px; border-radius: var(--radius-control); background: var(--accent); color: var(--accent-ink); font-weight: 700; text-decoration: none; border: 0; cursor: pointer; font-size: 1rem; }
.btn:hover { filter: brightness(1.08); }
.btn-text { background: none; border: 0; color: var(--accent); font-weight: 600; cursor: pointer; padding: 8px 0; font-size: 1rem; text-decoration: none; }
.btn-text:hover { text-decoration: underline; }
.btn-text:disabled { opacity: .5; cursor: default; }

/* hero */
.hero { position: relative; min-height: 86vh; display: grid; align-items: end; padding: 120px clamp(20px, 5vw, 72px) 80px; overflow: hidden; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,15,26,.95) 0%, rgba(10,15,26,.72) 45%, rgba(10,15,26,.2) 100%), linear-gradient(0deg, var(--bg) 0%, transparent 35%); z-index: 1; }
.hero-copy { position: relative; z-index: 2; max-width: 720px; }
.eyebrow { text-transform: uppercase; letter-spacing: .16em; font-size: .78rem; color: var(--accent); font-weight: 700; margin-bottom: 18px; }
.hero h1 { font-size: clamp(2.4rem, 6vw, 4.6rem); }
.hero p { font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: var(--muted); max-width: 600px; margin: 0 0 32px; }

/* sections */
section { padding: 88px clamp(20px, 5vw, 72px); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 36px; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin: 0; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 2px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.step { background: var(--bg-2); padding: 36px 32px; }
.step .num { font-family: var(--font-head); font-size: 2.6rem; color: var(--accent); font-weight: 700; line-height: 1; margin-bottom: 18px; }
.step h3 { font-size: 1.3rem; }
.step p { color: var(--muted); margin: 0; }
.leader { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.leader blockquote { margin: 0; font-family: var(--font-head); font-size: clamp(1.6rem, 3vw, 2.4rem); line-height: 1.25; }
.leader blockquote strong { color: var(--accent); font-weight: 700; }
.leader p { color: var(--muted); }
.app-band { text-align: center; }
.app-band h2 { font-size: clamp(2rem, 4vw, 3rem); }
.app-band p { color: var(--muted); max-width: 640px; margin: 0 auto 28px; }

/* cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 28px; }
.card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; text-decoration: none; transition: transform .2s, border-color .2s; }
.card:hover { transform: translateY(-3px); border-color: var(--accent); }
.card-cover { aspect-ratio: 16 / 9; width: 100%; object-fit: cover; background: var(--bg-2); }
.card-body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card h3 { font-size: 1.3rem; margin: 0; }
.card .excerpt { color: var(--muted); font-size: .97rem; margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.meta { color: var(--muted); font-size: .85rem; display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.avatar { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; }

/* filter chips */
.chips { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 32px; }
.chip { padding: 8px 16px; border-radius: var(--radius-control); border: 1px solid var(--line); background: transparent; color: var(--muted); cursor: pointer; font-size: .92rem; text-decoration: none; }
.chip:hover { color: var(--text); border-color: var(--muted); }
.chip[aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.status { color: var(--muted); }
.status.error { color: var(--destructive); }
.page-title { padding-top: 72px; padding-bottom: 0; }
.page-title h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
.page-title p { color: var(--muted); max-width: 640px; }
.more { margin-top: 32px; text-align: center; }

/* post */
.post-hero { padding: 64px clamp(20px, 5vw, 72px) 32px; }
.post-hero h1 { font-size: clamp(2.1rem, 5vw, 3.8rem); max-width: 1000px; }
.post-cats { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.post-cats a { color: var(--accent); text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 700; text-decoration: none; }
.post-cover { width: 100%; max-height: 62vh; object-fit: cover; }
.post-layout { display: grid; grid-template-columns: minmax(0, 720px) 1fr; gap: 64px; padding: 56px clamp(20px, 5vw, 72px); }
.post-body { font-size: 1.12rem; }
.post-body h2 { font-size: 1.7rem; margin-top: 1.6em; }
.post-body blockquote { margin: 1.6em 0; padding: 4px 0 4px 24px; border-left: 3px solid var(--accent); font-family: var(--font-head); font-size: 1.35rem; color: var(--text); }
.post-body li { margin-bottom: .4em; }
.post-body a { color: var(--accent); }
.post-aside { position: sticky; top: 96px; align-self: start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; }
.post-aside h3 { font-size: 1.2rem; }
.post-aside p { color: var(--muted); font-size: .95rem; }
.like { background: transparent; border: 1px solid var(--line); color: var(--text); border-radius: var(--radius-control); padding: 8px 16px; cursor: pointer; font-size: .92rem; }
.like[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); }
.like:disabled { opacity: .6; }

/* footer */
.site-footer { border-top: 1px solid var(--line); padding: 40px clamp(20px, 5vw, 72px); color: var(--muted); display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; font-size: .9rem; }
.site-footer a { color: var(--muted); text-decoration: none; margin-left: 20px; }
.site-footer a:hover { color: var(--text); }

@media (max-width: 860px) {
  .leader, .post-layout { grid-template-columns: 1fr; }
  .post-aside { position: static; }
  .nav a.hide-sm { display: none; }
  .hero { min-height: 78vh; }
  .post-cover { max-height: 40vh; }
}