/* ============================================================
   Blog — 'Garden City Precision', long-form variant.

   Same tokens as index.html (kept in sync by hand: change a colour
   there, change it here). The one departure: body copy is set in
   Newsreader rather than the UI grotesque, because these pages are
   read rather than scanned. No build step, no dependencies —
   one stylesheet shared by the index and the articles.
   ============================================================ */
:root {
  --paper: #FBFAF7;
  --ink: #16241E;
  --jade: #2E7D5B;
  --jade-deep: #1F5C42;
  --vermilion: #D62828;
  --mist: #E8EDE9;

  --ink-70: rgba(22,36,30,0.72);
  --ink-55: rgba(22,36,30,0.56);
  --ink-40: rgba(22,36,30,0.42);
  --ink-line: rgba(22,36,30,0.14);
  --jade-line: rgba(46,125,91,0.32);
  --jade-tint: rgba(46,125,91,0.10);

  --page-bg:
    radial-gradient(110% 60% at 86% -14%, rgba(46,125,91,0.08), transparent 58%),
    radial-gradient(90% 50% at -8% 100%, rgba(46,125,91,0.06), transparent 55%),
    linear-gradient(180deg, #FBFAF7 0%, #F7F8F3 100%);

  --diamond-grad: linear-gradient(135deg, #43A47A, #1F5C42);
  --wordmark-grad: linear-gradient(180deg, #2A5240, #16241E);

  --font-display: "Newsreader", Georgia, serif;
  --font-ui: "Hanken Grotesk", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  padding: clamp(22px, 4vw, 46px) clamp(20px, 5vw, 46px) 0;
  min-height: 100vh;
  background: var(--page-bg);
  color: var(--ink);
  font-family: var(--font-ui);
}
::selection { background: rgba(46,125,91,0.20); }

:focus-visible { outline: 2px solid var(--jade); outline-offset: 2px; }

@keyframes scRise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes scMarkShimmer {
  0%, 100% { box-shadow: inset 0 0 10px rgba(46,125,91,0.14); }
  50%      { box-shadow: inset 0 0 14px rgba(46,125,91,0.28), 0 0 12px 1px rgba(46,125,91,0.18); }
}
@keyframes scDiamondPulse {
  0%, 100% { transform: rotate(45deg) scale(1);    filter: brightness(1); }
  50%      { transform: rotate(45deg) scale(1.12); filter: brightness(1.15); }
}

.wrap { max-width: 1340px; margin: 0 auto; }

/* ---- top bar: brand returns to the concierge ---- */
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px; flex-wrap: wrap;
  animation: scRise .6s cubic-bezier(.2,.7,.2,1) both;
}
.brand { display: flex; align-items: center; gap: 13px; text-decoration: none; }
.mark {
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--jade-line);
  display: flex; align-items: center; justify-content: center;
  box-shadow: inset 0 0 10px rgba(46,125,91,0.14);
  animation: scMarkShimmer 4.5s ease-in-out infinite;
  flex: 0 0 auto;
}
.diamond { transform: rotate(45deg); border-radius: 2px; background: var(--diamond-grad); }
.mark .diamond { width: 11px; height: 11px; animation: scDiamondPulse 4.5s ease-in-out infinite; }
.wordmark {
  font-family: var(--font-display); font-weight: 600;
  font-size: 20px; letter-spacing: 0.3em; padding-left: 0.3em;
}
.wordmark .name {
  background: var(--wordmark-grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.wordmark .tld { color: var(--jade); }

.nav { display: flex; align-items: center; gap: clamp(14px, 2.5vw, 26px); }
.nav a {
  font-size: 11.5px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--ink-55); text-decoration: none;
  transition: color .18s ease;
}
.nav a:hover { color: var(--jade-deep); }
.nav a.is-here { color: var(--jade); }

/* ---- shared page head ---- */
.kicker {
  font-size: 12px; font-weight: 600; letter-spacing: 0.4em; text-transform: uppercase;
  color: var(--jade); padding-left: 0.4em;
}
.page-head {
  max-width: 760px;
  margin: clamp(46px, 8vw, 92px) 0 clamp(34px, 5vw, 54px);
  animation: scRise .7s cubic-bezier(.2,.7,.2,1) .08s both;
}
.page-head h1 {
  margin: 16px 0 0;
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(40px, 6.4vw, 74px); line-height: 1.02; letter-spacing: -0.015em;
}
.page-head h1 .accent { color: var(--jade); }
.page-head .lede {
  margin: 20px 0 0; max-width: 620px;
  font-family: var(--font-display);
  font-size: clamp(17px, 2vw, 20px); line-height: 1.6; color: var(--ink-55);
}

/* ============================================================
   Index — the list of notes
   ============================================================ */
.posts {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px; align-items: stretch;
  animation: scRise .7s cubic-bezier(.2,.7,.2,1) .18s both;
}
.post-card {
  display: flex; flex-direction: column; gap: 12px;
  padding: 26px 28px 24px; border-radius: 18px;
  border: 1px solid var(--mist); background: #fff;
  box-shadow: 0 20px 44px -30px rgba(22,36,30,0.30), 0 2px 8px -5px rgba(22,36,30,0.10);
  text-decoration: none; color: inherit;
  transition: transform .18s ease, border-color .18s ease, box-shadow .2s ease;
}
.post-card:hover {
  transform: translateY(-3px); border-color: var(--jade-line);
  box-shadow: 0 30px 56px -32px rgba(22,36,30,0.36), 0 2px 8px -5px rgba(22,36,30,0.10);
}
.post-card .label-row { display: flex; align-items: center; gap: 9px; }
.post-card .pip { width: 5px; height: 5px; border-radius: 50%; background: var(--jade); flex: 0 0 auto; }
.post-card .tag {
  font-family: var(--font-ui); font-size: 11px; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--jade);
}
.post-card h2 {
  margin: 0; font-family: var(--font-display); font-weight: 500;
  font-size: 25px; line-height: 1.22; letter-spacing: -0.01em;
}
.post-card p {
  margin: 0; font-family: var(--font-display);
  font-size: 16.5px; line-height: 1.6; color: var(--ink-70);
}
.post-card .meta {
  margin-top: auto; padding-top: 6px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-40);
}
.post-card .read { color: var(--jade); }

/* ============================================================
   Article
   ============================================================ */
.article { max-width: 720px; margin: 0 auto; }
.article-head {
  margin: clamp(40px, 7vw, 80px) 0 clamp(28px, 4vw, 40px);
  animation: scRise .7s cubic-bezier(.2,.7,.2,1) .08s both;
}
.article-head h1 {
  margin: 16px 0 0;
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(34px, 5.2vw, 56px); line-height: 1.08; letter-spacing: -0.015em;
}
.article-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  margin-top: 20px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-40);
}
.article-meta .hair { width: 14px; height: 1px; background: rgba(46,125,91,0.45); }
.article-meta a { color: var(--jade); text-decoration: none; }
.article-meta a:hover { color: var(--jade-deep); text-decoration: underline; text-underline-offset: 3px; }

.prose {
  font-family: var(--font-display);
  font-size: 18.5px; line-height: 1.72; color: var(--ink);
  animation: scRise .7s cubic-bezier(.2,.7,.2,1) .16s both;
}
.prose > p { margin: 0 0 1.25em; }
.prose .standfirst { font-size: 21px; line-height: 1.6; color: var(--ink-70); }
.prose h2 {
  margin: 2em 0 .7em;
  font-family: var(--font-display); font-weight: 500;
  font-size: 27px; line-height: 1.25; letter-spacing: -0.01em;
}
.prose h3 {
  margin: 1.8em 0 .5em;
  font-family: var(--font-ui); font-size: 12px; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--jade);
}
.prose a { color: var(--jade-deep); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose a:hover { color: var(--jade); }
.prose strong { font-weight: 600; }
.prose ul { margin: 0 0 1.25em; padding: 0; list-style: none; }
.prose ul li {
  position: relative; padding-left: 22px; margin-bottom: .6em;
}
.prose ul li::before {
  content: ""; position: absolute; left: 2px; top: 0.62em;
  width: 5px; height: 5px; border-radius: 50%; background: var(--jade);
}
.prose hr {
  margin: 2.4em 0; border: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(46,125,91,0.4), transparent);
}
.prose blockquote {
  margin: 1.8em 0; padding: 4px 0 4px 22px;
  border-left: 2px solid var(--jade-line);
  font-style: italic; color: var(--ink-70);
}
.prose .note {
  margin: 1.8em 0; padding: 18px 22px; border-radius: 15px;
  border: 1px solid var(--mist); background: #fff;
  box-shadow: 0 20px 44px -30px rgba(22,36,30,0.30), 0 2px 8px -5px rgba(22,36,30,0.10);
  font-size: 16.5px; line-height: 1.62; color: var(--ink-70);
}
.prose .note strong { color: var(--ink); }
.prose figure { margin: 1.8em 0; }
.prose figcaption {
  margin-top: 8px; font-family: var(--font-ui);
  font-size: 11px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-40);
}

/* sources block — every external figure we cite is linked, so a reader
   can check it rather than take our word for it */
.sources {
  margin: 2.6em 0 0; padding-top: 22px;
  border-top: 1px solid var(--ink-line);
  font-family: var(--font-ui); font-size: 13.5px; line-height: 1.6; color: var(--ink-55);
}
.sources h2 {
  margin: 0 0 12px; font-family: var(--font-ui);
  font-size: 11px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--jade);
}
.sources ul { margin: 0; padding: 0; list-style: none; }
.sources li { margin-bottom: 7px; }
.sources a { color: var(--jade-deep); text-decoration: none; }
.sources a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---- end-of-article acquisition invitation: the one vermilion moment ---- */
.offer {
  margin: clamp(44px, 6vw, 68px) 0 0;
  padding: clamp(26px, 4vw, 36px); border-radius: 20px;
  border: 1px solid var(--mist); background: #fff;
  box-shadow: 0 26px 56px -34px rgba(22,36,30,0.34), 0 2px 8px -5px rgba(22,36,30,0.10);
  text-align: center;
}
.offer .kicker { padding-left: 0.4em; }
.offer h2 {
  margin: 14px 0 0; font-family: var(--font-display); font-weight: 500;
  font-size: clamp(24px, 3vw, 31px); line-height: 1.2; letter-spacing: -0.01em;
}
.offer p {
  margin: 12px auto 0; max-width: 460px;
  font-family: var(--font-display); font-size: 17px; line-height: 1.6; color: var(--ink-55);
}
.offer .acquire {
  display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 10px; margin-top: 22px;
  padding: 10px 20px; border-radius: 999px;
  border: 1px solid rgba(214,40,40,0.42); background: #fff;
  color: var(--vermilion); text-decoration: none;
  font-family: var(--font-ui);
  font-size: 11px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase;
  transition: border-color .18s ease, color .18s ease, background .18s ease, box-shadow .2s ease;
}
.offer .acquire .diamond { width: 7px; height: 7px; border-radius: 1px; background: var(--vermilion); flex: 0 0 auto; transform: rotate(45deg); }
.offer .acquire:hover {
  background: var(--vermilion); border-color: var(--vermilion); color: #fff;
  box-shadow: 0 12px 26px -14px rgba(214,40,40,0.65);
}
.offer .acquire:hover .diamond { background: #fff; }
.offer .slogan {
  margin-top: 18px; font-family: var(--font-display); font-style: italic;
  font-size: 14.4px; color: var(--ink);
}

/* ---- more reading ---- */
.more {
  margin: clamp(40px, 6vw, 60px) 0 0;
}
.more .kicker { display: block; margin-bottom: 16px; }
.more-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.more-list a {
  display: block; padding: 18px 22px; border-radius: 15px;
  border: 1px solid var(--mist); background: #fff;
  text-decoration: none; color: var(--ink);
  font-family: var(--font-display); font-size: 17px; line-height: 1.4;
  transition: border-color .18s ease, transform .18s ease;
}
.more-list a:hover { border-color: var(--jade-line); transform: translateY(-2px); }

/* ---- footer ---- */
.foot {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  margin-top: clamp(50px, 8vw, 90px);
  padding: clamp(24px, 4vw, 38px) 0 34px;
}
.foot .hairline {
  width: 54px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(46,125,91,0.5), transparent);
}
.foot-text {
  margin: 0; font-size: 13px; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-55); text-align: center; line-height: 1.9;
}
.foot-text a { color: var(--jade); text-decoration: none; transition: color .18s ease; }
.foot-text a:hover { color: var(--jade-deep); text-decoration: underline; text-underline-offset: 3px; }
.studio-mark {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 12.5px; font-weight: 600;
  letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--ink-55); text-decoration: none;
  transition: color .18s ease;
}
.studio-mark .diamond { width: 6px; height: 6px; border-radius: 1px; flex: 0 0 auto; }
.studio-mark .studio { color: var(--jade); transition: color .18s ease; }
.studio-mark:hover { color: var(--ink); }
.studio-mark:hover .studio { color: var(--jade-deep); }

@media (max-width: 760px) {
  .wordmark { font-size: 16px; letter-spacing: 0.16em; padding-left: 0.16em; }
  .nav a { letter-spacing: 0.14em; }
  .prose { font-size: 17.5px; }
  .prose .standfirst { font-size: 19px; }
}

@media (prefers-reduced-motion: reduce) {
  .topbar, .page-head, .posts, .article-head, .prose { animation: none !important; }
  .mark, .mark .diamond { animation: none !important; }
  .post-card:hover, .more-list a:hover { transform: none; }
}
