:root {
  --bg: #184971;
  --ink: #EFDD99;
  --ink-soft: rgba(239, 221, 153, 0.62);
  --rule: rgba(239, 221, 153, 0.22);
  --rule-strong: rgba(239, 221, 153, 0.4);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Crimson Pro', Georgia, serif;
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  max-width: 640px;
  margin: 0 auto;
  padding: 64px 24px 48px;
}

/* homepage sits directly under the hero, so it needs less top breathing room */
.container.home { padding-top: 16px; }

/* ── top nav ─────────────────────────────── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(24, 73, 113, 0.86);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px dashed var(--rule);
}

.nav-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 16px 32px;
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-brand {
  font-family: 'Crimson Pro', Georgia, serif;
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
  margin-right: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-family: 'DM Mono', ui-monospace, monospace;
  font-size: 12.5px;
  letter-spacing: 0.03em;
}

.nav-links a {
  color: var(--ink-soft);
  text-decoration: none;
}

.nav-links a:hover { color: var(--ink); }

.nav-links a.nav-cta {
  color: var(--ink);
  padding: 8px 16px;
  border: 1px solid var(--rule-strong);
}

.nav-links a.nav-cta:hover {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}

/* ── hero ────────────────────────────────── */
.hero {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 1.06fr 0.94fr;
  gap: 24px;
  align-items: center;
  min-height: clamp(460px, 66vh, 660px);
}

.hero-text { padding: 40px 24px 40px 0; }

.eyebrow {
  font-family: 'DM Mono', ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--ink-soft);
  margin: 0 0 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--rule-strong);
  display: inline-block;
}

.hero-title {
  margin: 0;
  font-family: 'Crimson Pro', Georgia, serif;
  font-weight: 700;
  line-height: 0.92;
  letter-spacing: -0.03em;
  font-size: clamp(46px, 6.4vw, 84px);
  color: var(--ink);
}

.hero-title span { display: block; }

.hero-sub {
  font-size: clamp(18px, 2vw, 21px);
  line-height: 1.4;
  max-width: 32ch;
  color: var(--ink);
  margin: 28px 0 0;
}

.hero-actions { margin: 34px 0 0; }
.hero-actions a { display: inline-block; text-decoration: none; }
.hero-actions img { display: block; height: 52px; width: auto; }

/* ── hero phone stack ────────────────────── */
.hero-stack {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 24px 8px;
}

.stack-stage {
  position: relative;
  width: 100%;
  max-width: 430px;
  height: clamp(300px, 34vw, 400px);
  overflow: hidden;
}

.stack-stage img {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: auto;
  display: block;
  transform-origin: bottom center;
}

.stack-mid {
  height: 94%;
  transform: translateX(-50%);
  z-index: 3;
  filter: drop-shadow(0 20px 34px rgba(0, 0, 0, 0.46));
}

.stack-back-l {
  height: 80%;
  z-index: 1;
  opacity: 0.9;
  transform: translateX(-80%) rotate(-8deg);
  filter: drop-shadow(0 16px 26px rgba(0, 0, 0, 0.34));
}

.stack-back-r {
  height: 80%;
  z-index: 2;
  opacity: 0.94;
  transform: translateX(-20%) rotate(7deg);
  filter: drop-shadow(0 16px 26px rgba(0, 0, 0, 0.34));
}

.label {
  font-family: 'DM Mono', ui-monospace, monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  margin: 0;
}

h1.page-title {
  font-family: 'Crimson Pro', Georgia, serif;
  font-weight: 700;
  font-size: 36px;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 12px 0 0;
  color: var(--ink);
}

h2 {
  font-family: 'Crimson Pro', Georgia, serif;
  font-weight: 700;
  font-size: 22px;
  line-height: 1.2;
  margin: 36px 0 12px;
  color: var(--ink);
}

p {
  margin: 0 0 16px;
  color: var(--ink);
}

p.muted {
  color: var(--ink-soft);
}

a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

a:hover {
  text-decoration-thickness: 2px;
}

ul {
  margin: 0 0 16px;
  padding-left: 20px;
}

ul li {
  margin-bottom: 8px;
}

.rule {
  border: 0;
  border-top: 1px dashed var(--rule);
  margin: 40px 0;
}

/* ── responsive: nav + hero ──────────────── */
@media (max-width: 900px) {
  .nav-inner { padding: 14px 24px; gap: 18px; }
  .nav-links { gap: 20px; }
  .nav-hide-sm { display: none; }

  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
    gap: 0;
    padding: 0 24px;
  }
  .hero-text { padding: 32px 0 8px; }
  .hero-stack { height: auto; padding: 24px 0 8px; }
  .stack-stage { max-width: 330px; height: clamp(280px, 58vw, 350px); }
}

@media (max-width: 520px) {
  .nav-hide-xs { display: none; }
  .stack-stage { max-width: 280px; height: clamp(250px, 70vw, 310px); }
}

.flow-figure {
  margin: 28px 0 0;
  color: var(--ink);
}

.flow-figure svg {
  display: block;
  width: 100%;
  height: auto;
}

.flow-caption {
  margin: 12px 0 0;
  text-align: center;
}

.section + .section {
  margin-top: 40px;
}

.site-footer {
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px dashed var(--rule);
  font-family: 'DM Mono', ui-monospace, monospace;
  font-size: 12px;
  color: var(--ink-soft);
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  align-items: baseline;
}

.site-footer nav {
  display: flex;
  gap: 16px;
}

.site-footer a {
  color: var(--ink-soft);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

.site-footer a:hover {
  color: var(--ink);
}

@media (max-width: 480px) {
  .container { padding: 40px 20px 32px; }
  .container.home { padding-top: 8px; }
  h1.page-title { font-size: 28px; }
  h2 { font-size: 19px; }
}

/* Blog */
.wordmark-link {
  margin: 0 0 28px;
}
.wordmark-link a {
  font-family: 'Crimson Pro', Georgia, serif;
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
}

.blog-index-header {
  margin: 0 0 8px;
}
.blog-index-intro {
  color: var(--ink-soft);
  margin: 8px 0 0;
}

.blog-list {
  display: flex;
  flex-direction: column;
  margin-top: 24px;
}
.blog-card {
  display: block;
  color: var(--ink);
  text-decoration: none;
  padding: 24px 0;
  border-top: 1px dashed var(--rule);
}
.blog-card:last-child {
  border-bottom: 1px dashed var(--rule);
}
.blog-card-cover {
  width: 100%;
  height: auto;
  display: block;
  margin: 0 0 14px;
  border: 1px solid var(--rule);
}
.blog-card-date {
  display: block;
  margin: 0 0 6px;
}
.blog-card-title {
  margin: 0;
  font-size: 25px;
}
.blog-card:hover .blog-card-title {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.blog-card-blurb {
  color: var(--ink-soft);
  margin: 8px 0 0;
}
.blog-empty {
  color: var(--ink-soft);
  margin-top: 24px;
}

.blog-post-date {
  margin: 0 0 8px;
}
.blog-post-cover {
  width: 100%;
  height: auto;
  display: block;
  margin: 24px 0 0;
  border: 1px solid var(--rule);
}
.blog-post {
  margin: 24px 0 0;
}
.blog-post h3 {
  font-family: 'Crimson Pro', Georgia, serif;
  font-weight: 700;
  font-size: 19px;
  line-height: 1.2;
  margin: 28px 0 10px;
  color: var(--ink);
}
.blog-post img {
  width: 100%;
  height: auto;
  display: block;
  margin: 24px 0;
  border: 1px solid var(--rule);
}
.blog-post blockquote {
  margin: 24px 0;
  padding: 0 0 0 20px;
  border-left: 2px solid var(--rule);
  color: var(--ink-soft);
}
.blog-post pre {
  background: rgba(239, 221, 153, 0.06);
  padding: 16px;
  overflow-x: auto;
  font-family: 'DM Mono', ui-monospace, monospace;
  font-size: 14px;
}
.blog-post code {
  font-family: 'DM Mono', ui-monospace, monospace;
  font-size: 0.9em;
}
.blog-back {
  margin: 40px 0 0;
}
