:root {
  --ink: #2F2F2F; --forest: #237D61; --mint: #7EC8A3;
  --marigold: #DCB470; --stone: #A8A7A3; --paper: #FBF8F1;
  --display: "Young Serif", Georgia, serif;
  --body: "Nunito", system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 17.5px/1.6 var(--body); position: relative; overflow-x: hidden;
}
a { color: var(--forest); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid var(--marigold); outline-offset: 2px; }
img { max-width: 100%; height: auto; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.15; letter-spacing: -0.01em; margin: 0 0 .5em; }

/* Scattered dots. Small screens: a strip above the header, in the page flow.
   Wide screens (1100px+): the left and right margins only, never behind text. */
.dots {
  position: relative; z-index: 0; height: 64px; pointer-events: none; overflow: hidden;
  background:
    radial-gradient(circle at 6% 30%, var(--mint) 0 20px, transparent 21px),
    radial-gradient(circle at 24% 72%, var(--stone) 0 6px, transparent 7px),
    radial-gradient(circle at 47% 20%, var(--marigold) 0 9px, transparent 10px),
    radial-gradient(circle at 68% 66%, var(--mint) 0 7px, transparent 8px),
    radial-gradient(circle at 88% 28%, var(--marigold) 0 24px, transparent 25px),
    radial-gradient(circle at 99% 80%, var(--stone) 0 10px, transparent 11px);
}
@media (min-width: 1100px) {
  .dots {
    position: absolute; inset: 0 0 auto 0; height: 640px;
    background:
      radial-gradient(circle at 46px 90px, var(--mint) 0 34px, transparent 35px),
      radial-gradient(circle at 110px 300px, var(--stone) 0 9px, transparent 10px),
      radial-gradient(circle at 18px 420px, var(--marigold) 0 22px, transparent 23px),
      radial-gradient(circle at calc(100% - 60px) 60px, var(--marigold) 0 50px, transparent 51px),
      radial-gradient(circle at calc(100% - 120px) 250px, var(--mint) 0 16px, transparent 17px),
      radial-gradient(circle at calc(100% - 24px) 380px, var(--stone) 0 10px, transparent 11px);
  }
}
.site-header, .site-main, .site-footer { position: relative; z-index: 1; max-width: 720px; margin: 0 auto; padding: 0 20px; }
.site-header { display: flex; justify-content: space-between; align-items: center; padding-top: 12px; gap: 16px; flex-wrap: wrap; }
.site-title { font-family: var(--display); font-size: 1.5rem; color: var(--ink); text-decoration: none; }
.site-title img { max-height: 44px; }
.site-nav ul, .site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 18px; }
.site-nav a, .site-footer a { font-weight: 700; text-decoration: none; }

.hero { padding: 72px 0 40px; }
.hero h1 { font-size: clamp(2.6rem, 8vw, 4.2rem); }
.hero p { font-size: 1.15rem; max-width: 34em; }

.subscribe { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.subscribe input { flex: 1 1 220px; padding: 12px 14px; font: inherit; border: 2px solid var(--ink); border-radius: 10px; background: #fff; color: var(--ink); }
.btn { padding: 12px 22px; font: 700 1rem var(--body); color: #fff; background: var(--forest); border: 0; border-radius: 10px; cursor: pointer; }
.btn:hover { background: #1c6650; }
.subscribe .msg, .subscribe .loading { display: none; flex-basis: 100%; margin: 0; }
.subscribe.loading .default, .subscribe .loading { }
.subscribe.loading .default { display: none; }
.subscribe.loading .loading { display: inline; }
.subscribe.success .msg.success, .subscribe.error .msg.error { display: block; }
.subscribe.error .msg.error { color: #a13a2f; }

.post-list { padding-bottom: 40px; }
.card { padding: 26px 0; border-top: 2px dotted var(--stone); }
.card h2 { font-size: 1.7rem; margin-bottom: .2em; }
.card h2 a { color: var(--ink); text-decoration: none; }
.card h2 a:hover { color: var(--forest); }
.card p { margin: 0; }
time { font-size: .9rem; color: #5b5b58; font-weight: 700; }
.pagination { display: flex; justify-content: space-between; padding: 20px 0 40px; font-weight: 700; }

.single { padding: 64px 0 48px; }
.single h1 { font-size: clamp(2.4rem, 7vw, 3.6rem); margin-top: .2em; }
.lede { font-size: 1.25rem; }
.feature { margin: 28px 0; }
.feature figcaption, .kg-card figcaption { font-size: .9rem; color: #5b5b58; text-align: center; margin-top: 8px; }

.gh-content > * + * { margin-top: 1.2em; }
.gh-content h2, .gh-content h3 { margin-top: 1.6em; font-family: var(--body); font-weight: 700; font-size: 1.4rem; line-height: 1.3; }
.gh-content blockquote { margin-left: 0; padding-left: 20px; border-left: 4px solid var(--marigold); font-family: var(--display); font-size: 1.35rem; line-height: 1.35; }
.gh-content hr { border: 0; border-top: 2px dotted var(--stone); margin: 2.2em 0; }
.gh-content pre { overflow-x: auto; padding: 14px; background: #fff; border-radius: 8px; }
.gh-content code { font-size: .9em; }

/* Ghost editor card widths (required by Ghost) */
.kg-width-wide {
  position: relative;
  width: 85vw;
  min-width: 100%;
  margin: auto calc(50% - 50vw);
  transform: translateX(calc(50vw - 50%));
}
.kg-width-full {
  position: relative;
  width: 100vw;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}
.kg-width-wide img, .kg-width-full img { width: 100%; }
.kg-image-card img, .kg-gallery-image img { display: block; margin: 0 auto; }
.kg-gallery-container { display: flex; flex-direction: column; }
.kg-gallery-row { display: flex; gap: 8px; }
.kg-gallery-image { flex: 1 1 0; }

.site-footer { padding-top: 24px; padding-bottom: 48px; border-top: 2px dotted var(--stone); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: .95rem; }
.site-footer p { margin: 0; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
