:root {
  --bg: #f2f2f7;
  --surface: #ffffff;
  --surface-soft: #f7f7fb;
  --text: rgba(0, 0, 0, 0.86);
  --muted: rgba(0, 0, 0, 0.58);
  --faint: rgba(0, 0, 0, 0.12);
  --line: #e4e7ee;
  --accent: #38b2ac;
  --accent-dark: #23827d;
  --available-from: #ff922b;
  --available-to: #d9480f;
  --max: 1120px;
  --content: 860px;

  /* Aliases for interactive blog components */
  --bg-secondary: var(--surface);
  --bg-tertiary: var(--surface-soft);
  --text-secondary: var(--muted);
  --border: var(--line);
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Georgia, Cambria, "Times New Roman", Times, serif;
  font-size: 18px;
  line-height: 1.72;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration: none;
}
a:hover {
  color: var(--accent);
  transition: color 0.25s ease;
}
img {
  max-width: 100%;
  display: block;
}
code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.88em;
}

.container {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
}
.section {
  padding: 84px 0;
}
.section.alt {
  background: transparent;
}
.section-header {
  max-width: var(--content);
  margin: 0 auto 44px;
}

.site-header {
  background: rgba(242, 242, 247, 0.92);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(10px);
}
.nav {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.brand {
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--text);
}
.brand span {
  color: inherit;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 1.02rem;
}
.nav-links a {
  color: var(--text);
  padding: 24px 0 22px;
  border-top: 3px solid transparent;
  border-bottom: 3px solid transparent;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--accent);
  border-top-color: var(--accent);
}
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-right: -10px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.nav-toggle:hover,
.nav-toggle:focus-visible {
  color: var(--accent);
}
.nav-toggle:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: 2px;
}
.nav-toggle-bars {
  position: relative;
  display: block;
  width: 22px;
  height: 14px;
}
.nav-toggle-bars span {
  position: absolute;
  left: 0;
  display: block;
  width: 100%;
  height: 1.5px;
  background: currentColor;
  transition:
    transform 0.22s ease,
    opacity 0.18s ease,
    top 0.22s ease;
}
.nav-toggle-bars span:nth-child(1) {
  top: 0;
}
.nav-toggle-bars span:nth-child(2) {
  top: 6px;
}
.nav-toggle-bars span:nth-child(3) {
  top: 12px;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(1) {
  top: 6px;
  transform: rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(3) {
  top: 6px;
  transform: rotate(-45deg);
}

h1,
h2,
h3 {
  line-height: 1.18;
  margin: 0 0 18px;
  font-weight: 500;
  letter-spacing: -0.025em;
}
h1 {
  font-size: clamp(2.55rem, 5vw, 4.1rem);
}
h2 {
  font-size: clamp(1.65rem, 3vw, 2.25rem);
}
h3 {
  font-size: 1.25rem;
  font-weight: 700;
}
p {
  margin: 0 0 18px;
}
.lead {
  color: var(--muted);
  font-size: clamp(1.16rem, 2vw, 1.42rem);
  line-height: 1.58;
}
.muted,
.meta {
  color: var(--muted);
}
.meta {
  font-size: 0.98rem;
}
.highlight {
  color: var(--text);
  font-weight: 700;
  /* box-decoration-break: clone; */
  /* -webkit-box-decoration-break: clone; */
  /* background-image: linear-gradient(
    transparent 62%,
    rgba(56, 178, 172, 0.28) 62%
  ); */
}
.eyebrow {
  margin: 0 0 18px;
  color: var(--accent-dark);
  font-family:
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.availability {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 30px 0 0;
  padding: 6px 14px;
  border: 0;
  border-radius: 0;
  background: linear-gradient(
    135deg,
    var(--available-from) 0%,
    #e8590c 55%,
    var(--available-to) 100%
  );
  color: var(--bg);
  font-family:
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero {
  padding: 112px 0 92px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 56px;
  align-items: center;
  max-width: var(--content);
  margin: 0 auto;
}
.hero-copy {
  grid-column: 2;
  grid-row: 1;
}
.hero-summary {
  display: none;
}
.hero-card {
  grid-column: 1;
  grid-row: 1;
  align-self: center;
  background: transparent;
  border: 0;
  border-right: 2px solid var(--line);
  padding: 0 36px 0 0;
  box-shadow: none;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-card img {
  width: 200px;
  height: 200px;
  object-fit: cover;
  object-position: center top;
  border-radius: 50%;
  flex-shrink: 0;
}
.cta-row {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  margin-top: 16px;
  align-items: center;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: auto;
  padding: 0 0 5px;
  border: 0;
  border-bottom: 1px solid currentColor;
  border-radius: 0;
  background: transparent;
  color: var(--text);
  font-weight: 700;
  text-align: center;
}
.button.primary,
.button.secondary {
  padding: 6px 14px;
  border: 1px solid var(--text);
  border-bottom: 1px solid var(--text);
  background: transparent;
  color: var(--text);
}
.button.primary::after,
.button.secondary::after {
  content: none;
}
.button:hover {
  color: var(--accent);
  transform: none;
}
.button.primary:hover,
.button.secondary:hover {
  background: #000;
  border-color: #000;
  color: var(--bg);
}

.grid-3,
.grid-2 {
  display: grid;
  gap: 0;
  max-width: var(--max);
  margin: 0 auto;
}
.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}
.grid-2 {
  grid-template-columns: repeat(2, 1fr);
  gap: 48px;
}
.card {
  background: transparent;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  padding: 30px 30px 30px 0;
  box-shadow: none;
}
.grid-3 .card,
.grid-2 .card {
  margin-right: 30px;
}
.tag {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--accent-dark);
  background: transparent;
  padding: 0;
  border-radius: 0;
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.check-list {
  padding-left: 0;
  list-style: none;
  margin: 18px 0 0;
}
.check-list li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 10px;
  color: var(--muted);
}
.check-list li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}
.timeline {
  display: grid;
  gap: 20px;
}
.timeline-item {
  border-left: 2px solid var(--line);
  padding-left: 22px;
}

.blog-list {
  display: grid;
  gap: 0;
  max-width: var(--content);
  margin: 0 auto;
  border-top: 1px solid var(--line);
}
.blog-card {
  display: grid;
  grid-template-columns: 165px 1fr;
  gap: 28px;
  align-items: start;
  border-top: 0;
  border-bottom: 1px solid var(--line);
  margin: 0;
  padding: 28px 0;
}
.blog-card time {
  color: var(--muted);
  font-size: 0.95rem;
}
.blog-card h2 {
  font-size: 1.55rem;
  margin-bottom: 8px;
}
.card-link {
  display: inline-block;
  border-bottom: 1px solid currentColor;
  font-weight: 700;
  font-size: 0.95rem;
}

.article {
  max-width: none;
  margin: 0;
  padding: 78px 0;
}
.article .container {
  max-width: var(--content);
}
.article h1 {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
}
.article-content {
  background: transparent;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  padding: 34px 0 0;
  box-shadow: none;
}
.article-content h2 {
  font-size: 1.7rem;
  margin-top: 44px;
  padding-top: 10px;
}
.article-content h3 {
  font-size: 1.25rem;
  margin-top: 32px;
}
.article-content img {
  margin: 30px 0;
  border: 1px solid var(--line);
}
.article-content code {
  background: rgba(255, 255, 255, 0.65);
  padding: 2px 5px;
  border-radius: 2px;
}
.article-content pre,
.article-content pre[class*="language-"] {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 16px 18px;
  overflow-x: auto;
  font-size: 0.88rem;
  line-height: 1.6;
  margin: 24px 0;
  border-radius: 0;
  color: var(--text);
  text-shadow: none;
  box-shadow: none;
}
.article-content pre[data-language]::before {
  content: attr(data-language);
  position: absolute;
  top: 8px;
  right: 12px;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.article-content pre[data-language] {
  padding-top: 28px;
}
.article-content pre code,
.article-content pre[class*="language-"] code,
.article-content code[class*="language-"] {
  background: transparent;
  padding: 0;
  color: inherit;
  text-shadow: none;
  font-size: inherit;
  white-space: pre;
}

/* Prism token colors — light theme matching site palette */
.token.comment,
.token.prolog,
.token.doctype,
.token.cdata {
  color: #6b7280;
  font-style: italic;
}
.token.punctuation {
  color: #4b5563;
}
.token.namespace {
  opacity: 0.85;
}
.token.property,
.token.tag,
.token.boolean,
.token.number,
.token.constant,
.token.symbol,
.token.deleted {
  color: #0f766e;
}
.token.selector,
.token.attr-name,
.token.string,
.token.char,
.token.builtin,
.token.inserted {
  color: #1d4ed8;
}
.token.operator,
.token.entity,
.token.url,
.language-css .token.string,
.style .token.string {
  color: #9a3412;
}
.token.atrule,
.token.attr-value,
.token.keyword {
  color: #7c3aed;
}
.token.function,
.token.class-name {
  color: #be185d;
}
.token.regex,
.token.important,
.token.variable {
  color: #b45309;
}
.token.important,
.token.bold {
  font-weight: 700;
}
.token.italic {
  font-style: italic;
}
.token.entity {
  cursor: help;
}
.article-content blockquote {
  margin: 28px 0;
  padding: 4px 0 4px 18px;
  border-left: 3px solid var(--accent);
  color: var(--muted);
}
.article-content .katex-display {
  margin: 28px 0;
  overflow-x: auto;
  overflow-y: hidden;
}
.article-content hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 36px 0;
}
.article-content ul,
.article-content ol {
  padding-left: 1.25rem;
}
.article-content li + li {
  margin-top: 0.35rem;
}
.callout {
  border-left: 3px solid var(--accent);
  background: rgba(255, 255, 255, 0.45);
  padding: 18px 22px;
  margin: 28px 0;
}

.contact-box {
  max-width: var(--content);
  margin: 0 auto;
  background: transparent;
  color: var(--text);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 42px 0;
}
.contact-box a {
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}
.contact-box a:hover {
  color: var(--accent);
}
.site-footer {
  padding: 38px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.95rem;
}
.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

main > .section > .container > .section-header:first-child {
  padding-top: 18px;
}
main > .section > .container > .grid-2,
main > .section > .container > .grid-3 {
  border-top: 0;
}

@media (max-width: 860px) {
  body {
    font-size: 17px;
  }
  .container {
    width: min(100% - 34px, var(--max));
  }
  .hero-grid,
  .grid-2,
  .grid-3,
  .blog-card {
    grid-template-columns: 1fr;
  }
  .hero {
    min-height: calc(100dvh - 78px);
    padding: 28px 0 32px;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
  }
  .hero-grid {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
    gap: 0;
    width: min(100% - 34px, var(--max));
    text-align: center;
  }
  .hero-copy,
  .hero-card {
    grid-column: auto;
    grid-row: auto;
  }
  .hero-copy {
    display: contents;
  }
  .hero-card {
    order: -1;
    border-right: 0;
    border-bottom: 0;
    padding: 0;
    min-height: auto;
    justify-content: center;
  }
  .hero-card img {
    width: 70vw;
    height: 70vw;
    max-width: 280px;
    max-height: 280px;
  }
  .hero-copy .availability,
  .hero-copy .eyebrow {
    margin: 0;
  }
  .hero-title,
  .hero-lead {
    display: none;
  }
  .hero-summary {
    display: block;
    margin: 0;
    color: var(--muted);
    font-size: 1.08rem;
    line-height: 1.55;
    max-width: 28rem;
  }
  .hero-copy .cta-row {
    margin-top: 0;
    justify-content: center;
    padding-top: 0;
  }
  .grid-3 .card,
  .grid-2 .card {
    margin-right: 0;
  }
  .nav-toggle {
    display: inline-flex;
  }
  .nav-links {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--bg);
    border: 0;
    border-bottom: 1px solid var(--line);
    padding: 4px 0 20px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .nav-links.open {
    display: flex;
  }
  .nav-links a {
    width: min(100% - 34px, var(--max));
    margin: 0 auto;
    padding: 15px 0;
    border: 0;
    border-top: 1px solid var(--line);
    font-family:
      ui-sans-serif,
      system-ui,
      -apple-system,
      BlinkMacSystemFont,
      "Segoe UI",
      sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
  }
  .nav-links a:first-child {
    border-top: 0;
  }
  .nav-links a:hover,
  .nav-links a.active {
    color: var(--accent);
  }
  .section {
    padding: 58px 0;
  }
}
