:root {
  --ink: #0b1020;
  --muted: rgba(11, 16, 32, 0.7);
  --paper: rgba(255, 255, 255, 0.92);
  --paper-2: rgba(255, 255, 255, 0.7);
  --border: rgba(11, 16, 32, 0.12);
  --shadow: 0 18px 55px rgba(11, 16, 32, 0.12);
  --accent: #0f766e;
  --accent-ink: #073b38;
  --accent-2: #f97316;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Fraunces", ui-serif, Georgia, serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--sans);
  background:
    radial-gradient(1200px 700px at 12% -10%, rgba(15, 118, 110, 0.24) 0%, transparent 62%),
    radial-gradient(900px 600px at 98% 0%, rgba(249, 115, 22, 0.18) 0%, transparent 58%),
    radial-gradient(1100px 700px at 70% 120%, rgba(59, 130, 246, 0.16) 0%, transparent 55%),
    #f5f7fb;
}

.bg-veil {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(900px 900px at 30% 10%, rgba(255, 255, 255, 0.55) 0%, transparent 60%),
    radial-gradient(900px 900px at 70% 90%, rgba(255, 255, 255, 0.4) 0%, transparent 60%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0));
  pointer-events: none;
  mix-blend-mode: soft-light;
}

.top-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 18px;
  backdrop-filter: blur(14px);
  background: rgba(245, 247, 251, 0.72);
  border-bottom: 1px solid rgba(11, 16, 32, 0.08);
}

.brand {
  font-family: var(--serif);
  font-weight: 760;
  text-decoration: none;
  color: var(--ink);
  letter-spacing: -0.02em;
  font-size: 1.05rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.nav-links a {
  text-decoration: none;
  color: rgba(11, 16, 32, 0.75);
  font-weight: 600;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    color 160ms ease;
}

.nav-links a:hover {
  background: rgba(255, 255, 255, 0.66);
  border-color: rgba(11, 16, 32, 0.12);
  color: rgba(11, 16, 32, 0.88);
}

.site-shell {
  max-width: 1040px;
  margin: 0 auto;
  padding: 28px 18px 44px;
}

.hero {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 26px;
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
}

.hero--compact {
  padding: 20px;
}

.hero::after {
  content: "";
  position: absolute;
  inset: -70px -100px auto auto;
  width: 320px;
  height: 320px;
  background:
    radial-gradient(circle at 35% 40%, rgba(15, 118, 110, 0.35), transparent 55%),
    radial-gradient(circle at 65% 60%, rgba(249, 115, 22, 0.22), transparent 58%);
  filter: blur(1px);
  transform: rotate(14deg);
  opacity: 0.9;
}

.hero__eyebrow {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  position: relative;
  z-index: 1;
}

.pill {
  font-family: var(--mono);
  font-size: 0.85rem;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.12);
  border: 1px solid rgba(15, 118, 110, 0.24);
  color: var(--accent-ink);
}

.pill--alt {
  background: rgba(249, 115, 22, 0.12);
  border-color: rgba(249, 115, 22, 0.24);
  color: rgba(124, 45, 18, 0.92);
}

.hero__title {
  margin: 16px 0 10px;
  font-family: var(--serif);
  letter-spacing: -0.03em;
  line-height: 1.08;
  font-weight: 800;
  font-size: clamp(2rem, 3vw, 2.75rem);
  position: relative;
  z-index: 1;
}

.hero__titleAccent {
  background: linear-gradient(90deg, rgba(15, 118, 110, 0.95), rgba(249, 115, 22, 0.95));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__lede {
  margin: 0;
  max-width: 62ch;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.55;
  position: relative;
  z-index: 1;
}

.hero__cta {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  position: relative;
  z-index: 1;
}

.btn {
  appearance: none;
  border: 1px solid rgba(11, 16, 32, 0.14);
  border-radius: 14px;
  padding: 10px 14px;
  font-weight: 700;
  color: rgba(11, 16, 32, 0.86);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.7);
  transition:
    transform 120ms ease,
    background-color 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 32px rgba(11, 16, 32, 0.12);
  border-color: rgba(11, 16, 32, 0.2);
}

.btn--primary {
  background: rgba(15, 118, 110, 0.92);
  color: rgba(255, 255, 255, 0.95);
  border-color: rgba(15, 118, 110, 0.22);
}

.btn--primary:hover {
  background: rgba(15, 118, 110, 1);
  border-color: rgba(15, 118, 110, 0.35);
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.55);
}

.grid {
  margin-top: 18px;
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(12, 1fr);
}

.card {
  grid-column: span 6;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 18px;
  box-shadow: 0 10px 35px rgba(11, 16, 32, 0.08);
}

.card--wide {
  grid-column: span 12;
}

.card h2 {
  font-family: var(--serif);
  font-size: 1.25rem;
  margin: 0 0 8px;
  letter-spacing: -0.02em;
}

.card p {
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.6;
}

.card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.tag {
  font-family: var(--mono);
  font-size: 0.82rem;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(11, 16, 32, 0.06);
  border: 1px solid rgba(11, 16, 32, 0.09);
  color: rgba(11, 16, 32, 0.76);
}

.card__link {
  display: inline-flex;
  font-weight: 800;
  text-decoration: none;
  color: rgba(15, 118, 110, 0.96);
  border-bottom: 1px solid rgba(15, 118, 110, 0.3);
  padding-bottom: 2px;
}

.card__link:hover {
  color: rgba(249, 115, 22, 0.96);
  border-bottom-color: rgba(249, 115, 22, 0.4);
}

.callout {
  margin-top: 18px;
  padding: 18px;
  border-radius: 20px;
  border: 1px dashed rgba(11, 16, 32, 0.22);
  background: rgba(255, 255, 255, 0.58);
}

.callout__title {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-weight: 780;
  letter-spacing: -0.02em;
}

.callout__body {
  margin: 0;
  line-height: 1.65;
  color: rgba(11, 16, 32, 0.74);
}

code {
  font-family: var(--mono);
  background: rgba(11, 16, 32, 0.07);
  border: 1px solid rgba(11, 16, 32, 0.1);
  padding: 2px 6px;
  border-radius: 10px;
}

.mono {
  font-family: var(--mono);
}

.footer {
  margin-top: 22px;
  color: rgba(11, 16, 32, 0.65);
  font-size: 0.95rem;
  line-height: 1.5;
}

.reveal {
  opacity: 0;
  transform: translateY(8px);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 520ms ease,
    transform 520ms ease;
}

@media (max-width: 860px) {
  .card {
    grid-column: span 12;
  }
}

@media (max-width: 560px) {
  .top-nav {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  .btn,
  .btn:hover {
    transform: none;
    transition: none;
  }

  .reveal,
  .reveal.is-visible {
    transform: none;
    opacity: 1;
    transition: none;
  }
}
