:root {
  --ink: #0c1f2e;
  --muted: #3d5568;
  --fog: #e8f0ed;
  --fog-deep: #d5e4df;
  --white: #ffffff;
  --teal: #1a9b9e;
  --teal-deep: #127578;
  --teal-wash: #d4f0ef;
  --coral: #e07a5f;
  --coral-wash: #f8e2d9;
  --sand: #efe6d4;
  --mint: #dff3ea;
  --grad: linear-gradient(110deg, #0e6f72 0%, #1a9b9e 40%, #e07a5f 100%);
  --shadow: 0 22px 60px rgba(12, 31, 46, 0.1);
  --shadow-sm: 0 10px 28px rgba(12, 31, 46, 0.07);
  --font: "Figtree", ui-sans-serif, system-ui, sans-serif;
  --display: "Syne", ui-sans-serif, system-ui, sans-serif;
  --max: 1140px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(ellipse 70% 40% at 0% 0%, rgba(26, 155, 158, 0.14), transparent 55%),
    radial-gradient(ellipse 55% 35% at 100% 8%, rgba(224, 122, 95, 0.12), transparent 50%),
    var(--fog);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

.wrap {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.wrap.narrow {
  width: min(100% - 2rem, 720px);
}

.wrap-wide {
  width: min(100% - 1.5rem, 1220px);
  margin-inline: auto;
}

.nav-shell {
  position: sticky;
  top: 0;
  z-index: 40;
  padding: 0.75rem 0 0;
}

.nav {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "logo actions"
    "panel panel";
  align-items: center;
  column-gap: 0.65rem;
  row-gap: 0;
  background: var(--white);
  border-radius: 22px;
  padding: 0.55rem 0.6rem 0.55rem 0.9rem;
  box-shadow: var(--shadow-sm);
  border: 2px solid transparent;
  background-image:
    linear-gradient(var(--white), var(--white)),
    linear-gradient(90deg, var(--teal), var(--coral));
  background-origin: border-box;
  background-clip: padding-box, border-box;
}

.logo {
  grid-area: logo;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  min-width: 0;
}

.logo-mark {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: var(--ink);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.logo-mark svg {
  width: 16px;
  height: 16px;
}

.nav-toggle {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.nav-burger {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 0 11px;
  border-radius: 12px;
  background: var(--fog-deep);
  cursor: pointer;
  flex-shrink: 0;
}

.nav-burger span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle:checked + .nav-actions .nav-burger span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle:checked + .nav-actions .nav-burger span:nth-child(2) {
  opacity: 0;
}

.nav-toggle:checked + .nav-actions .nav-burger span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-panel {
  grid-area: panel;
  display: none;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.75rem 0.35rem 0.35rem;
  margin-top: 0.55rem;
  border-top: 1px solid var(--fog-deep);
}

.nav-toggle:checked ~ .nav-panel {
  display: flex;
}

.nav-links {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--muted);
}

.nav-links a {
  padding: 0.7rem 0.85rem;
  border-radius: 12px;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--ink);
  background: var(--fog);
}

.nav-mobile-signin {
  margin-top: 0.35rem;
  background: var(--fog-deep);
  color: var(--ink) !important;
  text-align: center;
  font-weight: 800;
}

.nav-actions {
  grid-area: actions;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.4rem;
  position: relative;
  z-index: 2;
}

.nav-actions .btn-soft {
  display: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  cursor: pointer;
  font-family: var(--font);
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 0.65rem 0.9rem;
  white-space: nowrap;
  transition: transform 0.2s ease;
}

.btn-label-full {
  display: none;
}

.btn-label-short {
  display: inline;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-soft {
  background: var(--fog-deep);
  color: var(--ink);
}

.btn-teal {
  background: var(--teal);
  color: var(--white);
  box-shadow: 0 10px 22px rgba(26, 155, 158, 0.28);
}

.blog-hero,
.article-hero {
  padding: 3rem 0 1.5rem;
}

.eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal-deep);
}

.eyebrow a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.blog-hero h1,
.article-hero h1 {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  letter-spacing: -0.035em;
  line-height: 1.08;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lede {
  margin: 1rem 0 0;
  max-width: 40rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--muted);
}

.byline {
  margin: 1rem 0 0;
  font-size: 0.92rem;
  color: var(--muted);
  font-weight: 600;
}

.post-grid-wrap {
  padding: 1rem 0 4rem;
}

.post-grid {
  display: grid;
  gap: 1rem;
}

.post-card {
  background: var(--white);
  border-radius: 24px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.post-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.post-card-link {
  display: block;
  padding: 1.4rem 1.3rem 1.35rem;
}

.post-meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  margin-bottom: 0.75rem;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--muted);
}

.post-cat {
  background: var(--mint);
  color: var(--teal-deep);
  border-radius: 999px;
  padding: 0.28rem 0.65rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.post-card h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.post-card p {
  margin: 0.65rem 0 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.read-more {
  display: inline-block;
  margin-top: 1rem;
  font-weight: 800;
  font-size: 0.88rem;
  color: var(--teal-deep);
}

.article-body {
  background: var(--white);
  border-radius: 28px;
  box-shadow: var(--shadow-sm);
  padding: 1.75rem 1.4rem;
  margin-bottom: 1.5rem;
}

.article-body h2 {
  margin: 1.75rem 0 0.65rem;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.45rem;
  letter-spacing: -0.02em;
}

.article-body h2:first-child {
  margin-top: 0;
}

.article-body h3 {
  margin: 1.35rem 0 0.5rem;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.15rem;
}

.article-body p,
.article-body li {
  color: var(--muted);
  font-size: 1.02rem;
}

.article-body p {
  margin: 0 0 1rem;
}

.article-body ul,
.article-body ol {
  margin: 0 0 1.1rem;
  padding-left: 1.2rem;
}

.article-body li {
  margin-bottom: 0.4rem;
}

.article-body strong {
  color: var(--ink);
}

.article-body a {
  color: var(--teal-deep);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.article-body blockquote {
  margin: 1.25rem 0;
  padding: 1rem 1.15rem;
  border-left: 4px solid var(--teal);
  background: var(--mint);
  border-radius: 0 16px 16px 0;
  color: var(--ink);
  font-weight: 600;
}

.article-figure {
  margin: 1.35rem 0 1.6rem;
  padding: 0;
}

.article-figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
  background: var(--fog);
}

.article-figure figcaption {
  margin-top: 0.7rem;
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--muted);
  text-wrap: pretty;
}

.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 1.25rem;
  font-size: 0.92rem;
}

.article-body th,
.article-body td {
  border: 1px solid var(--fog-deep);
  padding: 0.65rem 0.7rem;
  text-align: left;
  vertical-align: top;
}

.article-body th {
  background: var(--fog);
  color: var(--ink);
  font-weight: 800;
}

.article-cta {
  background: var(--ink);
  color: var(--white);
  border-radius: 24px;
  padding: 1.75rem 1.4rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

.article-cta h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.5rem;
}

.article-cta p {
  margin: 0.65rem auto 1.15rem;
  max-width: 28rem;
  opacity: 0.82;
}

.related {
  background: var(--white);
  border-radius: 24px;
  padding: 1.4rem 1.25rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 3rem;
}

.related h2 {
  margin: 0 0 0.85rem;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.2rem;
}

.related ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}

.related a {
  display: block;
  background: var(--fog);
  border-radius: 14px;
  padding: 0.85rem 0.95rem;
}

.related strong {
  display: block;
  margin-bottom: 0.25rem;
  font-family: var(--display);
}

.related span {
  color: var(--muted);
  font-size: 0.9rem;
}

footer {
  padding: 2rem 0 3rem;
  text-align: center;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.tag-cloud a {
  background: var(--teal-wash);
  color: var(--teal-deep);
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  font-size: 0.85rem;
  font-weight: 800;
}

.foot-meta {
  color: var(--muted);
  font-size: 0.88rem;
}

@media (min-width: 720px) {
  .nav-shell {
    padding: 1rem 0 0;
  }

  .nav {
    grid-template-columns: auto 1fr auto;
    grid-template-areas: "logo links actions";
    padding: 0.6rem 0.7rem 0.6rem 1.1rem;
    column-gap: 1rem;
  }

  .logo {
    font-size: 1.15rem;
  }

  .logo-mark {
    width: 34px;
    height: 34px;
  }

  .logo-mark svg {
    width: 18px;
    height: 18px;
  }

  .nav-burger {
    display: none;
  }

  .nav-panel {
    display: contents;
    margin: 0;
    padding: 0;
    border: 0;
  }

  .nav-toggle:checked ~ .nav-panel {
    display: contents;
  }

  .nav-links {
    grid-area: links;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.35rem 1.25rem;
    font-size: 0.92rem;
  }

  .nav-links a {
    padding: 0.25rem 0;
    border-radius: 0;
  }

  .nav-links a:hover,
  .nav-links a[aria-current="page"] {
    background: transparent;
  }

  .nav-mobile-signin {
    display: none;
  }

  .nav-actions .btn-soft {
    display: inline-flex;
  }

  .btn {
    font-size: 0.8rem;
    padding: 0.7rem 1.15rem;
  }

  .btn-label-full {
    display: inline;
  }

  .btn-label-short {
    display: none;
  }

  .post-grid {
    grid-template-columns: 1fr 1fr;
  }

  .article-body {
    padding: 2.25rem 2.25rem;
  }
}

@media (min-width: 980px) {
  .post-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
}
