/* Shared styles for the static marketing pages built by scripts/build-blog.mjs
   (blog index, articles, 404). Same tokens as the landing page. */
:root {
  color-scheme: light;
  --brand: #0e9f6e;
  --brand-dark: #0b7f58;
  --brand-300: #6fdcae;
  --brand-50: #ecfbf4;
  --brand-100: #d3f5e5;
  --amber: #ffb547;
  --amber-50: #fff4dc;
  --ink: #13201a;
  --ink-2: #2f3b35;
  --muted: #66706a;
  --line: #e6e3d9;
  --line-2: #d6d2c5;
  --paper: #f6f5f0;
  --paper-2: #efede6;
  --night: #0f1e18;
  --display: "Bricolage Grotesque", Geist, sans-serif;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Geist, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.65;
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  max-width: 100%;
  height: auto;
}
::selection {
  background: #ffe2a8;
}
:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 4px;
}
h1,
h2,
h3 {
  font-family: var(--display);
  letter-spacing: -0.03em;
  line-height: 1.1;
  font-weight: 700;
  margin: 0;
}
p {
  margin: 0;
}
.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ------------------------------------------------------------- buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 15px;
  padding: 11px 18px;
  border-radius: 10px;
  border: 1px solid transparent;
  transition: background 0.15s, border-color 0.15s;
}
.btn.primary {
  background: var(--brand);
  color: #fff;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.18), 0 1px 2px rgb(19 32 26 / 0.25);
}
.btn.primary:hover {
  background: var(--brand-dark);
}
.btn.ghost {
  background: #fff;
  border-color: var(--line);
}
.btn.ghost:hover {
  border-color: var(--line-2);
}

/* ----------------------------------------------------------------- nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgb(246 245 240 / 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.bar {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 66px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.03em;
}
.logo svg {
  width: 30px;
  height: 30px;
  border-radius: 8px;
}
.logo em {
  font-style: normal;
  color: var(--brand);
}
.navlinks {
  display: flex;
  gap: 24px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-2);
}
.navlinks a:hover {
  color: var(--brand-dark);
}
.navcta {
  margin-left: auto;
}

.kicker {
  font-size: 13px;
  font-weight: 600;
  color: var(--brand-dark);
  letter-spacing: 0.02em;
}
.lede {
  color: var(--muted);
  font-size: clamp(17px, 1.5vw, 19px);
  line-height: 1.6;
}

/* ---------------------------------------------------------- blog index */
.blog-head {
  padding: clamp(48px, 7vw, 88px) 0 40px;
  max-width: 760px;
}
.blog-head h1 {
  font-size: clamp(40px, 6vw, 68px);
  margin: 12px 0 16px;
}
.feature {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 32px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
  margin-bottom: 16px;
}
.feature img {
  border-radius: 12px;
  border: 1px solid var(--line);
}
.feature > span {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-right: 16px;
}
.feature .card-t {
  font-size: clamp(24px, 2.6vw, 32px);
}
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding-bottom: 96px;
}
.card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px;
  transition: border-color 0.15s, transform 0.15s;
}
.card:hover,
.feature:hover {
  border-color: var(--brand-300);
}
.card:hover {
  transform: translateY(-2px);
}
.card-t {
  font-family: var(--display);
  font-weight: 700;
  font-size: 21px;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.card-d {
  color: var(--muted);
  font-size: 15px;
}
.card-m {
  margin-top: auto;
  padding-top: 8px;
  font-size: 13px;
  color: var(--muted);
}

/* -------------------------------------------------------------- article */
.article-wrap {
  padding-bottom: 40px;
}
.crumbs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding-top: 28px;
  font-size: 14px;
  color: var(--muted);
}
.crumbs a:hover {
  color: var(--ink);
  text-decoration: underline;
}
.article-head {
  max-width: 820px;
  padding: 36px 0 40px;
}
.article-head h1 {
  font-size: clamp(36px, 5vw, 58px);
  margin: 12px 0 18px;
}
.byline {
  margin-top: 18px;
  font-size: 14px;
  color: var(--muted);
}
.article-grid {
  display: grid;
  grid-template-columns: 240px minmax(0, 720px);
  gap: 56px;
  border-top: 1px solid var(--line);
  padding-top: 40px;
}
.toc {
  min-width: 0;
  position: sticky;
  top: 90px;
  align-self: start;
  font-size: 14px;
}
.toc-t {
  font-weight: 600;
  margin-bottom: 10px;
}
.toc ol {
  list-style: none;
  margin: 0;
  padding: 0;
  border-left: 2px solid var(--line);
}
.toc li a {
  display: block;
  padding: 6px 0 6px 14px;
  color: var(--muted);
  line-height: 1.35;
}
.toc li a:hover {
  color: var(--brand-dark);
}

.prose {
  min-width: 0;
  overflow-wrap: break-word;
  font-size: 18px;
  line-height: 1.75;
  color: var(--ink-2);
}
.prose > * + * {
  margin-top: 1.1em;
}
.prose h2 {
  font-size: clamp(26px, 3vw, 34px);
  color: var(--ink);
  margin-top: 2em;
  scroll-margin-top: 90px;
}
.prose h3 {
  font-size: 22px;
  color: var(--ink);
  margin-top: 1.6em;
  scroll-margin-top: 90px;
}
.prose a {
  color: var(--brand-dark);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: var(--brand-300);
  text-underline-offset: 3px;
}
.prose a:hover {
  text-decoration-color: currentColor;
}
.prose strong {
  color: var(--ink);
}
.prose ul,
.prose ol {
  padding-left: 1.3em;
}
.prose li + li {
  margin-top: 0.45em;
}
.prose li::marker {
  color: var(--brand);
}
.prose blockquote {
  margin: 1.6em 0;
  padding: 18px 22px;
  background: var(--amber-50);
  border-left: 4px solid var(--amber);
  border-radius: 0 12px 12px 0;
  color: var(--ink);
}
.prose blockquote p + p {
  margin-top: 0.6em;
}
.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15.5px;
  display: block;
  overflow-x: auto;
}
.prose th,
.prose td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.prose th {
  font-weight: 600;
  color: var(--ink);
  background: var(--paper-2);
}
.prose code {
  font-size: 0.9em;
  background: var(--paper-2);
  padding: 2px 6px;
  border-radius: 6px;
}
.prose hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 2.4em 0;
}

.cta-box {
  margin: 2.4em 0;
  padding: 28px;
  background: var(--night);
  color: #c9d8d0;
  border-radius: 16px;
  font-size: 16px;
  line-height: 1.6;
}
.cta-box .cta-k {
  color: var(--brand-300);
  font-weight: 600;
  font-size: 13px;
}
.cta-box .cta-t {
  font-family: var(--display);
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 6px 0 10px;
}
.cta-box .btn {
  margin-top: 18px;
}
.prose .cta-box a.btn {
  color: #fff;
  text-decoration: none;
}

.pin-save {
  margin: 2.4em 0 0;
  max-width: 340px;
}
.pin-save img {
  border-radius: 14px;
  border: 1px solid var(--line);
}
.pin-save figcaption {
  font-size: 14px;
  color: var(--muted);
  margin-top: 10px;
}

.related {
  border-top: 1px solid var(--line);
  margin-top: 64px;
  padding-top: 48px;
}
.related h2 {
  font-size: 30px;
  margin-bottom: 24px;
}
.related .cards {
  padding-bottom: 40px;
}

.notfound {
  padding: 120px 24px 160px;
  max-width: 720px;
}
.notfound h1 {
  font-size: clamp(40px, 6vw, 64px);
  margin: 12px 0 16px;
}
.notfound p:last-child {
  margin-top: 28px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* --------------------------------------------------------------- footer */
footer {
  border-top: 1px solid var(--line);
  padding: 56px 0 32px;
  font-size: 14.5px;
  color: var(--muted);
}
.fgrid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 40px;
  padding-bottom: 32px;
}
footer .logo {
  color: var(--ink);
  margin-bottom: 12px;
}
footer h4 {
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  margin: 0 0 12px;
}
footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
footer a:hover {
  color: var(--ink);
}
.fbot {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  border-top: 1px solid var(--line);
  padding-top: 22px;
}

/* ----------------------------------------------------------- responsive */
@media (max-width: 1000px) {
  .article-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }
  .toc {
    position: static;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 16px 18px;
  }
  .cards {
    grid-template-columns: 1fr 1fr;
  }
  .feature {
    grid-template-columns: 1fr;
  }
  .fgrid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 680px) {
  body {
    font-size: 16px;
  }
  .navlinks {
    display: none;
  }
  .cards,
  .fgrid {
    grid-template-columns: 1fr;
  }
  .prose {
    font-size: 17px;
  }
  .feature > span {
    padding: 0 4px 8px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition: none !important;
  }
}
