/* Hacker Ranch LLC — shared theme. All local; no external fonts, CDNs, or trackers. */
:root {
  --bg: #0f172a;
  --bg-2: #0b1222;
  --panel: #111c33;
  --panel-2: #16233f;
  --border: #1f2f4d;
  --border-2: #2b426e;
  --text: #e2e8f0;
  --muted: #94a3b8;
  --accent: #60a5fa;
  --accent-2: #38bdf8;
  --radius: 14px;
  --maxw: 1080px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(1200px 600px at 82% -12%, rgba(56, 189, 248, .10), transparent 60%),
    radial-gradient(900px 520px at -5% 8%, rgba(96, 165, 250, .08), transparent 55%),
    var(--bg);
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-2); text-decoration: underline; }
a:focus-visible {
  outline: 3px solid var(--accent-2);
  outline-offset: 4px;
  border-radius: 3px;
}

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* Keyboard navigation */
.skip-link {
  position: fixed; top: -80px; left: 16px; z-index: 100;
  color: #07111f; background: var(--accent-2); border-radius: 6px;
  padding: 9px 14px; font-family: var(--mono); font-weight: 700;
}
.skip-link:focus { top: 12px; }

/* Header / nav */
.site-header {
  position: sticky; top: 0; z-index: 10;
  backdrop-filter: blur(8px);
  background: rgba(10, 17, 33, .72);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand img { width: 34px; height: 34px; display: block; }
.brand .name { font-family: var(--mono); font-weight: 700; letter-spacing: .04em; font-size: 15px; }
.brand .tag { display: block; font-size: 10px; color: var(--muted); font-weight: 400; letter-spacing: .18em; text-transform: uppercase; }
.nav-links { display: flex; gap: 26px; align-items: center; }
.nav-links a { color: var(--muted); font-size: 14px; letter-spacing: .02em; }
.nav-links a:hover { color: var(--text); text-decoration: none; }

/* Hero */
.hero { padding: 92px 0 68px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.eyebrow { font-family: var(--mono); color: var(--accent-2); font-size: 12px; letter-spacing: .24em; text-transform: uppercase; margin: 0 0 18px; }
.hero h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); line-height: 1.08; margin: 0 0 20px; letter-spacing: -.02em; }
.hero .lead { font-size: 1.12rem; color: var(--muted); max-width: 52ch; margin: 0 0 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 24px; }
.cta-button,
.cta-secondary {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 10px 16px; border-radius: 8px;
  font-family: var(--mono); font-size: 13px; letter-spacing: .02em;
}
.cta-button {
  color: #07111f; background: linear-gradient(135deg, var(--accent), var(--accent-2));
  font-weight: 700;
}
.cta-button:hover { color: #07111f; text-decoration: none; filter: brightness(1.08); }
.cta-secondary { color: var(--text); border: 1px solid var(--border-2); }
.cta-secondary:hover { color: var(--text); border-color: var(--accent); text-decoration: none; }
.meta { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  font-family: var(--mono); font-size: 12px; color: var(--muted);
  border: 1px solid var(--border); background: rgba(255, 255, 255, .02);
  padding: 7px 12px; border-radius: 999px; letter-spacing: .04em;
}
.hero-art { display: flex; justify-content: center; }
.hero-art img { width: 100%; max-width: 360px; height: auto; }

/* Sections */
.section { padding: 58px 0; border-top: 1px solid var(--border); }
.section h2 { font-size: 1.6rem; margin: 0 0 8px; letter-spacing: -.01em; }
.section .sub { color: var(--muted); margin: 0 0 34px; max-width: 60ch; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  background: linear-gradient(180deg, var(--panel), var(--panel-2));
  border: 1px solid var(--border); border-radius: var(--radius); padding: 24px;
  transition: transform .15s ease, border-color .15s ease;
}
.card:hover { transform: translateY(-3px); border-color: var(--border-2); }
.card .ic { width: 40px; height: 40px; margin-bottom: 14px; color: var(--accent-2); }
.card h3 { margin: 0 0 8px; font-size: 1.08rem; }
.card p { margin: 0; color: var(--muted); font-size: .96rem; }

/* Statement band */
.band { background: linear-gradient(180deg, rgba(56, 189, 248, .06), transparent); border-top: 1px solid var(--border); }
.band .container { padding-top: 54px; padding-bottom: 54px; }
.band p.big { font-size: 1.18rem; color: var(--text); max-width: 72ch; margin: 0; }
.band p.muted { color: var(--muted); font-size: .98rem; margin: 12px 0 0; }

/* CTA */
.cta { display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; font-family: var(--mono); font-size: 14px; }

/* Content pages */
.page { padding: 66px 0; flex: 1; }
.page h1 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); margin: 0 0 6px; letter-spacing: -.01em; }
.page .updated { color: var(--muted); font-family: var(--mono); font-size: 12px; letter-spacing: .06em; margin: 0 0 32px; }
.prose { max-width: 72ch; }
.prose h2 { font-size: 1.2rem; margin: 32px 0 10px; }
.prose p { color: var(--muted); margin: 0 0 16px; }
.prose strong { color: var(--text); }
.callout { border: 1px solid var(--border); background: var(--panel); border-radius: var(--radius); padding: 22px 24px; margin: 8px 0 24px; }
.callout a { font-family: var(--mono); font-size: 1.05rem; }

/* Announcements / release feed */
.announcements-page { padding: 66px 0 82px; flex: 1; }
.feed-header {
  display: flex; align-items: end; justify-content: space-between; gap: 24px;
  margin-bottom: 34px;
}
.feed-kicker {
  margin: 0 0 8px; color: var(--accent-2); font-family: var(--mono);
  font-size: 12px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
}
.feed-header h1 {
  margin: 0 0 8px; font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.05; letter-spacing: -.025em;
}
.feed-intro { margin: 0; color: var(--muted); max-width: 62ch; }
.feed-status {
  flex: 0 0 auto; border: 1px solid var(--border); border-radius: 10px;
  background: rgba(255, 255, 255, .02); padding: 12px 14px;
  color: var(--muted); font-family: var(--mono); font-size: 11px; line-height: 1.5;
}
.feed-status strong { display: block; color: var(--text); font-size: 13px; }
.announcement-list { display: grid; gap: 34px; }
.release-post {
  overflow: hidden; border: 1px solid var(--border); border-radius: 18px;
  background: linear-gradient(180deg, rgba(17, 28, 51, .98), rgba(11, 18, 34, .98));
  box-shadow: 0 24px 70px rgba(0, 0, 0, .18);
}
.post-header { padding: 34px 36px 30px; }
.post-meta {
  display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center;
  margin-bottom: 15px; color: var(--muted); font-family: var(--mono);
  font-size: 11px; letter-spacing: .05em; text-transform: uppercase;
}
.post-meta .category { color: #a3ff3f; }
.post-title {
  margin: 0 0 13px; max-width: 24ch; font-size: clamp(1.75rem, 4vw, 3rem);
  line-height: 1.08; letter-spacing: -.025em;
}
.post-title a { color: var(--text); }
.post-title a:hover { color: var(--accent-2); text-decoration: none; }
.post-deck { margin: 0; max-width: 70ch; color: var(--muted); font-size: 1.08rem; }
.post-hero { margin: 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.post-hero img { display: block; width: 100%; height: auto; }
.post-hero figcaption {
  padding: 10px 18px; color: var(--muted); background: rgba(7, 17, 15, .78);
  font-family: var(--mono); font-size: 11px;
}
.post-content { padding: 36px; }
.post-layout { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 42px; align-items: start; }
.article-copy { max-width: 72ch; }
.article-copy .lede { color: var(--text); font-size: 1.15rem; }
.article-copy h3 { margin: 30px 0 10px; font-size: 1.22rem; }
.article-copy p { margin: 0 0 16px; color: var(--muted); }
.feature-list { display: grid; gap: 10px; padding: 0; margin: 18px 0 24px; list-style: none; }
.feature-list li {
  position: relative; padding-left: 24px; color: var(--muted);
}
.feature-list li::before {
  content: ""; position: absolute; left: 2px; top: .72em; width: 8px; height: 8px;
  border-radius: 50%; background: #a3ff3f; box-shadow: 0 0 12px rgba(163, 255, 63, .35);
}
.download-panel {
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px;
  margin-top: 28px; padding: 20px; border: 1px solid #31513a;
  border-radius: 12px; background: rgba(22, 50, 31, .45);
}
.app-store-button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 11px 17px; border-radius: 9px;
  color: #07111f; background: #a3ff3f; font-family: var(--mono);
  font-size: 13px; font-weight: 800;
}
.app-store-button:hover { color: #07111f; filter: brightness(1.08); text-decoration: none; }
.download-panel span { color: var(--muted); font-size: 13px; }
.release-sidebar { display: grid; gap: 18px; }
.app-summary {
  border: 1px solid var(--border); border-radius: 14px; background: var(--panel);
  padding: 20px;
}
.app-summary img {
  display: block; width: 112px; height: 112px; margin-bottom: 18px;
  border-radius: 24px; border: 1px solid #35583e;
}
.app-summary h3 { margin: 0 0 4px; font-size: 1.1rem; }
.app-summary .version { margin: 0 0 18px; color: #a3ff3f; font-family: var(--mono); font-size: 12px; }
.release-facts { display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; margin: 0; font-size: 13px; }
.release-facts dt { color: #64748b; }
.release-facts dd { margin: 0; color: var(--text); text-align: right; }
.post-keywords { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 34px; padding-top: 24px; border-top: 1px solid var(--border); }
.post-keywords .label {
  align-self: center; margin-right: 5px; color: var(--muted);
  font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .08em;
}
.keyword {
  border: 1px solid var(--border); border-radius: 999px; padding: 5px 9px;
  color: var(--muted); font-family: var(--mono); font-size: 11px;
}

/* Footer */
.site-footer { margin-top: auto; border-top: 1px solid var(--border); background: var(--bg-2); }
.foot { display: flex; flex-wrap: wrap; gap: 14px 24px; justify-content: space-between; align-items: center; padding: 26px 0; color: var(--muted); font-size: 14px; }
.foot .links { display: flex; gap: 20px; }
.foot a { color: var(--muted); }
.foot a:hover { color: var(--text); text-decoration: none; }
.foot .note { font-family: var(--mono); font-size: 12px; letter-spacing: .04em; color: var(--muted); }

@media (max-width: 820px) {
  .hero { padding: 64px 0 52px; }
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-art { order: -1; }
  .hero-art img { max-width: 260px; }
  .grid { grid-template-columns: 1fr; }
  .post-layout { grid-template-columns: 1fr; }
  .release-sidebar { grid-template-columns: 1fr; }
  .app-summary { display: grid; grid-template-columns: 112px 1fr; gap: 0 20px; }
  .app-summary img { grid-row: 1 / 4; margin-bottom: 0; }
  .nav-links { gap: 16px; }
  .brand .tag { display: none; }
}

@media (max-width: 520px) {
  html { scroll-padding-top: 154px; }
  .nav {
    height: auto; min-height: 68px; flex-wrap: wrap; gap: 8px;
    padding-top: 12px; padding-bottom: 11px;
  }
  .brand .name { white-space: nowrap; }
  .nav-links {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%; gap: 2px 12px;
    border-top: 1px solid var(--border); padding-top: 8px;
  }
  .nav-links a { min-height: 32px; display: flex; align-items: center; justify-content: center; text-align: center; }
  .hero { padding-top: 52px; }
  .announcements-page { padding-top: 48px; }
  .feed-header { display: block; }
  .feed-status { margin-top: 20px; display: inline-block; }
  .post-header, .post-content { padding: 24px 20px; }
  .post-deck { font-size: 1rem; }
  .app-summary { grid-template-columns: 86px 1fr; gap: 0 15px; }
  .app-summary img { width: 86px; height: 86px; border-radius: 19px; }
  .release-facts { grid-column: 1 / -1; margin-top: 18px; }
  .post-hero figcaption { padding-left: 14px; padding-right: 14px; }
  .foot .links { flex-wrap: wrap; gap: 10px 12px; }
}

@media (max-width: 360px) {
  .container { padding-left: 20px; padding-right: 20px; }
  .nav-links a { font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card { transition: none; }
}
