
:root {
  --bg: #09070b;
  --bg-elev: rgba(18, 12, 18, 0.86);
  --bg-soft: rgba(28, 18, 28, 0.66);
  --surface: rgba(22, 14, 20, 0.9);
  --surface-strong: rgba(15, 10, 15, 0.96);
  --border: rgba(218, 176, 99, 0.18);
  --border-strong: rgba(218, 176, 99, 0.3);
  --text: #f4ede1;
  --muted: #c7baaa;
  --soft: #9d9086;
  --accent: #c58a39;
  --accent-strong: #e4b160;
  --accent-soft: rgba(197, 138, 57, 0.16);
  --danger: #7a1e2f;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  --container: 1160px;
  --narrow: 760px;
  --radius: 28px;
  --radius-sm: 18px;
  --radius-xs: 14px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(122, 30, 47, 0.22), transparent 35%),
    radial-gradient(circle at top right, rgba(197, 138, 57, 0.12), transparent 28%),
    linear-gradient(180deg, #09070b 0%, #0c0910 55%, #09070b 100%);
  color: var(--text);
  line-height: 1.65;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
p, li { color: var(--muted); }
strong { color: var(--text); }
.skip-link {
  position: absolute; left: -999px; top: 1rem; z-index: 100;
  background: var(--accent); color: #170f0f; padding: 0.75rem 1rem; border-radius: 999px;
}
.skip-link:focus { left: 1rem; }
.site-shell { min-height: 100vh; }
.container { width: min(var(--container), calc(100% - 2rem)); margin: 0 auto; }
.container.narrow, .narrow { width: min(var(--narrow), calc(100% - 2rem)); margin: 0 auto; }
.site-header {
  position: sticky; top: 0; z-index: 20; backdrop-filter: blur(18px);
  background: rgba(9, 7, 11, 0.72); border-bottom: 1px solid rgba(255,255,255,0.04);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 1rem 0; }
.brand { display: inline-flex; gap: 0.9rem; align-items: center; }
.brand-mark {
  width: 1.25rem; height: 1.25rem; border-radius: 999px;
  background:
    radial-gradient(circle at 35% 35%, #f5d295 0%, #d29a4a 38%, transparent 40%),
    radial-gradient(circle at 65% 55%, rgba(122,30,47,0.9) 0%, rgba(122,30,47,0.9) 40%, transparent 42%),
    linear-gradient(135deg, #c58a39, #6f2230);
  box-shadow: 0 0 0 1px rgba(229, 183, 100, 0.32), 0 0 28px rgba(197, 138, 57, 0.18);
}
.brand-text strong {
  display: block; font-family: Iowan Old Style, Palatino Linotype, Book Antiqua, Georgia, serif;
  font-size: 1.1rem; letter-spacing: 0.01em;
}
.brand-text span { display: block; font-size: 0.85rem; color: var(--soft); }
.site-nav { display: inline-flex; gap: 0.4rem; flex-wrap: wrap; }
.site-nav a {
  padding: 0.72rem 1rem; border-radius: 999px; color: var(--muted);
  border: 1px solid transparent; transition: 180ms ease;
}
.site-nav a:hover, .site-nav a.is-active {
  color: var(--text); border-color: var(--border); background: rgba(255,255,255,0.02);
}
.hero, .section, .page-hero { padding: 4.5rem 0; }
.hero-home { padding-top: 4.5rem; }
.hero-grid, .split-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 2rem; align-items: center; }
.eyebrow {
  text-transform: uppercase; letter-spacing: 0.18em; font-size: 0.82rem;
  color: var(--accent-strong); margin-bottom: 1rem;
}
.hero-copy h1,
.page-hero h1,
.section-header h2,
.feature-copy h2,
.article-body h2,
.article-body h3,
.endcap-card h2,
.project-card h3,
.detail-card h2,
.writing-card h2 {
  font-family: Iowan Old Style, Palatino Linotype, Book Antiqua, Georgia, serif;
  line-height: 0.96; letter-spacing: -0.03em; margin: 0 0 1rem; color: var(--text);
}
.hero-copy h1 { font-size: clamp(3rem, 6vw, 5.2rem); max-width: 13ch; }
.page-hero h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 62ch; }
.lead-secondary { margin-top: 1rem; }
.hero-actions, .button-row { display: flex; gap: 0.9rem; flex-wrap: wrap; margin-top: 1.75rem; }
.hero-links { display: flex; gap: 0.65rem; color: var(--soft); align-items: center; margin-top: 1rem; }
.hero-links a:hover { color: var(--text); }
.hero-tags, .tag-row {
  list-style: none; padding: 0; margin: 1.4rem 0 0; display: flex; gap: 0.7rem; flex-wrap: wrap;
}
.hero-tags li, .tag-row span {
  padding: 0.55rem 0.85rem; border-radius: 999px; border: 1px solid var(--border);
  color: var(--muted); background: rgba(255,255,255,0.02); font-size: 0.93rem;
}
.tag-row.large span { font-size: 0.95rem; }
.card {
  background: linear-gradient(180deg, rgba(20, 12, 18, 0.92), rgba(12, 8, 12, 0.94));
  border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow);
}
.media-card, .launch-card, .gallery-item, .demo-frame { overflow: hidden; }
.media-card img, .launch-card img, .gallery-item img, .demo-frame img, .article-inline-image {
  width: 100%; height: auto; display: block;
}
.media-card-copy, .project-card, .feature-copy, .detail-card, .writing-card, .endcap-card, .article-meta, .toc-card, .link-list { padding: 1.4rem; }
.card-kicker {
  margin: 0 0 0.65rem; text-transform: uppercase; letter-spacing: 0.18em;
  font-size: 0.78rem; color: var(--accent-strong);
}
.media-card-copy h2, .project-card h3, .detail-card h2, .feature-copy h2, .writing-card h2, .endcap-card h2 {
  font-size: clamp(1.6rem, 3vw, 2.5rem);
}
.text-link { color: var(--text); font-weight: 600; }
.text-link:hover { color: var(--accent-strong); }
.button {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.92rem 1.2rem; border-radius: 999px; font-weight: 700;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
  border: 1px solid transparent;
}
.button:hover { transform: translateY(-1px); }
.button.primary { color: #170f0f; background: linear-gradient(180deg, #efbf72, #c87c35); }
.button.secondary { color: var(--text); border-color: var(--border-strong); background: rgba(255,255,255,0.02); }
.button.ghost { color: var(--muted); border-color: rgba(255,255,255,0.08); background: rgba(255,255,255,0.01); }
.section-header { margin-bottom: 1.5rem; }
.card-grid { display: grid; gap: 1rem; }
.card-grid.three-up { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.project-links { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1rem; }
.section-split { padding-top: 2rem; }
.page-hero.compact { padding-bottom: 2rem; }
.center { text-align: center; }
.prose-like p { font-size: 1.08rem; }
.link-list { display: grid; gap: 0.8rem; }
.link-list a {
  padding: 0.95rem 1rem; border-radius: var(--radius-xs);
  border: 1px solid rgba(255,255,255,0.04); background: rgba(255,255,255,0.02);
}
.link-list a:hover { border-color: var(--border-strong); color: var(--text); }
.writing-card h2 a { color: inherit; }
.writing-card h2 a:hover { color: var(--accent-strong); }
.writing-meta { color: var(--soft); font-size: 0.95rem; margin-bottom: 0.75rem; }
.article-hero .lead { max-width: 70ch; }
.article-top-media, .article-gallery-section { padding-top: 0; }
.media-frame figcaption, .gallery-item figcaption {
  padding: 1rem 1.2rem 1.15rem; color: var(--soft); font-size: 0.95rem;
}
.gallery-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.article-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 2rem; align-items: start; }
.article-sidebar { position: sticky; top: 5.6rem; display: grid; gap: 1rem; }
.meta-list { padding-left: 1.1rem; margin: 0 0 1rem; }
.meta-list li { margin-bottom: 0.55rem; }
.toc-card { padding-top: 1.2rem; }
.toc-list { margin: 0; padding-left: 1.1rem; display: grid; gap: 0.5rem; }
.toc-list a { color: var(--muted); }
.toc-list a:hover { color: var(--text); }
.toc-sub { margin-left: 0.55rem; }
.article-body { min-width: 0; }
.prose { font-size: 1.08rem; }
.prose > *:first-child { margin-top: 0; }
.prose h2 { font-size: clamp(2rem, 4vw, 2.9rem); scroll-margin-top: 6rem; margin-top: 3rem; }
.prose h3 { font-size: clamp(1.4rem, 3vw, 1.9rem); scroll-margin-top: 6rem; margin-top: 2.2rem; }
.prose p, .prose li { font-size: 1.1rem; color: var(--muted); }
.prose ul, .prose ol { padding-left: 1.25rem; }
.prose li { margin-bottom: 0.55rem; }
.prose blockquote {
  margin: 1.5rem 0; padding: 1rem 1.25rem; border-left: 3px solid var(--accent);
  background: rgba(255,255,255,0.02); border-radius: 0 var(--radius-xs) var(--radius-xs) 0;
}
.prose hr { border: 0; border-top: 1px solid rgba(255,255,255,0.08); margin: 2rem 0; }
.prose a {
  color: var(--accent-strong); text-decoration: underline; text-decoration-thickness: 0.08em; text-underline-offset: 0.16em;
}
.article-inline-image { border-radius: var(--radius-sm); margin: 1.5rem 0; overflow: hidden; }
.endcap-card { text-align: center; }
.wrap { flex-wrap: wrap; }
.footer-inner {
  display: flex; justify-content: space-between; gap: 1.5rem; align-items: end;
  padding: 2rem 0 3rem; border-top: 1px solid rgba(255,255,255,0.05); margin-top: 2rem;
}
.footer-title { margin: 0 0 0.25rem; color: var(--text); font-weight: 700; }
.footer-copy { margin: 0; max-width: 56ch; color: var(--soft); }
.footer-links { display: flex; gap: 1rem; flex-wrap: wrap; }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--text); }
.bullet-list { padding-left: 1.15rem; }
@media (max-width: 980px) {
  .hero-grid, .split-grid, .article-layout, .card-grid.three-up { grid-template-columns: 1fr; }
  .article-sidebar { position: static; order: -1; }
  .hero-copy h1 { max-width: 12ch; }
  .gallery-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .header-inner, .footer-inner { flex-direction: column; align-items: flex-start; }
  .site-nav { width: 100%; }
  .site-nav a { padding-inline: 0.85rem; }
  .hero, .section, .page-hero { padding: 3.2rem 0; }
  .container { width: min(var(--container), calc(100% - 1.1rem)); }
  .brand-text span { display: none; }
  .hero-copy h1 { font-size: clamp(2.5rem, 12vw, 4rem); }
  .button, .hero-tags li, .tag-row span { width: 100%; justify-content: center; }
  .hero-actions, .button-row { flex-direction: column; }
}
