/* tay.märz blog: tokens copied from tay-maerz.vercel.app (src/styles/global.css) */
@font-face { font-family: 'Bricolage Grotesque Variable'; font-style: normal; font-display: swap; font-weight: 200 800;
  src: url(../fonts/bricolage-grotesque-latin-ext-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Bricolage Grotesque Variable'; font-style: normal; font-display: swap; font-weight: 200 800;
  src: url(../fonts/bricolage-grotesque-latin-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'JetBrains Mono Variable'; font-style: normal; font-display: swap; font-weight: 100 800;
  src: url(../fonts/jetbrains-mono-latin-ext-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'JetBrains Mono Variable'; font-style: normal; font-display: swap; font-weight: 100 800;
  src: url(../fonts/jetbrains-mono-latin-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }

:root {
  --ink: #141210; --ink-raised: #1c1916; --ink-deep: #0e0c0b; --line: #2a2622; --line-strong: #3a342e;
  --cream: #eee7dc; --cream-soft: #cfc6b9; --muted: #a39a8e; --faint: #8f877b;
  --green: #0f6b54; --green-dot: #0f8a6c; --green-bright: #2fb08c; --mint: #7fd4b6;
  --amber: #e68a3a;
  --font-sans: 'Bricolage Grotesque Variable', ui-sans-serif, system-ui, sans-serif;
  --font-mono: 'JetBrains Mono Variable', ui-monospace, Menlo, monospace;
  --step--1: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --step-0: clamp(1rem, 0.97rem + 0.15vw, 1.0625rem);
  --step-1: clamp(1.125rem, 1.08rem + 0.25vw, 1.25rem);
  --step-2: clamp(1.375rem, 1.25rem + 0.6vw, 1.75rem);
  --step-3: clamp(1.75rem, 1.45rem + 1.4vw, 2.75rem);
  --step-4: clamp(2.25rem, 1.7rem + 2.6vw, 4.5rem);
  --gutter: clamp(16px, 5vw, 72px); --section: clamp(56px, 8vw, 104px); --max: 1320px; --measure: 70ch;
  --radius-s: 10px; --radius: 16px; --radius-l: 24px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1); --dur: 180ms;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
body { margin: 0; background: var(--ink); color: var(--cream); font-family: var(--font-sans); font-size: var(--step-0);
  line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, svg, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }
ul[role='list'] { list-style: none; padding: 0; }
h1, h2, h3, h4 { font-weight: 800; letter-spacing: -0.035em; line-height: 1.08; text-wrap: balance; }
p, li { text-wrap: pretty; }
a { color: var(--mint); text-decoration: none; transition: color var(--dur) ease; }
a:hover { color: var(--cream); }
::selection { background: var(--green); color: var(--cream); }
:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; border-radius: 6px; }
main:focus { outline: none; }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 100; padding: 12px 18px; border-radius: 999px;
  background: var(--cream); color: var(--ink); font-weight: 600; transform: translateY(-160%); }
.skip-link:focus { transform: none; }
.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: 0 var(--section); }

/* wordmark (static eyes) */
.wm { display: inline-block; font-weight: 800; letter-spacing: -0.05em; line-height: 1; color: var(--cream); white-space: nowrap; font-size: 31px; }
.wm-dot { color: var(--green-dot); }
.wm-a { position: relative; display: inline-block; }
.eye { position: absolute; top: 0.03em; width: 0.23em; height: 0.23em; border-radius: 50%; background: var(--cream); display: grid; place-items: center; overflow: hidden; }
.eye--l { left: 0.02em; } .eye--r { left: 0.29em; }
.pupil { position: relative; width: 76%; height: 76%; border-radius: 50%; background: var(--ink); }
.glint { position: absolute; right: 14%; top: 14%; width: 32%; height: 32%; border-radius: 50%; background: var(--cream); }

/* buttons */
.btn { --btn-bg: var(--green); --btn-fg: var(--cream); display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 14px 26px; border: 1px solid transparent; border-radius: 999px; background: var(--btn-bg); color: var(--btn-fg);
  font-weight: 600; font-size: var(--step-0); line-height: 1.1; transition: background var(--dur) ease; }
.btn:hover { --btn-bg: #127a60; color: var(--btn-fg); }
.btn--cream { --btn-bg: var(--cream); --btn-fg: var(--ink); }
.btn--cream:hover { --btn-bg: #fff; --btn-fg: var(--ink); }
.btn--small { min-height: 44px; padding: 10px 18px; font-size: 0.95rem; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 600; color: inherit; }
.link-arrow:hover { color: var(--mint); }

/* header */
.header { position: sticky; top: 0; z-index: 50; background: var(--ink); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }
.brand { display: inline-flex; align-items: baseline; gap: 10px; padding: 6px 0; color: var(--cream); }
.brand-tag { font-family: var(--font-mono); font-size: 0.8rem; color: var(--green-bright); letter-spacing: 0.04em; text-transform: uppercase; }
.nav ul { display: flex; gap: 8px; margin: 0; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; font-weight: 600; color: var(--muted);
  text-underline-offset: 8px; text-decoration-thickness: 2px; }
.nav a:hover { color: var(--cream); }
.nav a.is-current { color: var(--cream); text-decoration-line: underline; text-decoration-color: var(--green-bright); }
@media (max-width: 860px) { .nav { display: none; } }

/* intro */
.intro { padding-block: clamp(48px, 8vw, 110px) clamp(32px, 5vw, 64px); }
.eyebrow { font-family: var(--font-mono); font-size: var(--step--1); color: var(--green-bright); letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 18px; }
.h-hero { font-size: var(--step-4); max-width: 18ch; }
.lead { margin-top: 22px; max-width: 58ch; font-size: var(--step-1); color: var(--cream-soft); }
.meta { font-family: var(--font-mono); font-size: var(--step--1); color: var(--faint); margin-bottom: 14px; }
.meta a { color: var(--muted); } .meta a:hover { color: var(--mint); }

/* cards */
.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr)); }
.card { background: var(--ink-raised); border: 1px solid var(--line); border-radius: var(--radius-l); overflow: hidden;
  transition: border-color var(--dur) ease, transform var(--dur) var(--ease-out); }
.card:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.card-link { display: flex; flex-direction: column; height: 100%; color: inherit; }
.card-link:hover { color: inherit; }
.card-img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-bottom: 1px solid var(--line); }
.card-body { display: flex; flex-direction: column; gap: 10px; padding: 26px 26px 18px; flex: 1; }
.card-body .meta { margin: 0; }
.card-title { font-size: var(--step-2); }
.card-excerpt { color: var(--cream-soft); flex: 1; }
.card .link-arrow { color: var(--mint); }
.pagination { display: flex; justify-content: space-between; align-items: center; margin-top: 40px; font-family: var(--font-mono); color: var(--faint); }
.pagination a { color: var(--mint); font-weight: 600; }

/* article */
.article-head { padding-block: clamp(32px, 6vw, 80px) clamp(28px, 4vw, 48px); }
.article-head > * { max-width: 900px; }
.article-head .back { color: var(--muted); margin-bottom: 26px; }
.feature { margin-bottom: clamp(32px, 5vw, 56px); }
.feature img { width: 100%; border-radius: var(--radius-l); border: 1px solid var(--line); }
.feature figcaption, .content figcaption { margin-top: 12px; font-size: var(--step--1); color: var(--faint); text-align: center; }
.article-foot { padding-block: var(--section); }
.cta-box { background: var(--green); border-radius: var(--radius-l); padding: clamp(28px, 5vw, 56px); display: grid; gap: 16px; justify-items: start; }
.cta-box h2 { font-size: var(--step-3); }
.cta-box p { max-width: 52ch; color: var(--cream); opacity: 0.92; }

/* post content */
.content { display: grid; grid-template-columns: [full-start] minmax(var(--gutter), 1fr) [wide-start] minmax(0, 120px) [main-start] min(var(--measure), calc(100% - 2 * var(--gutter))) [main-end] minmax(0, 120px) [wide-end] minmax(var(--gutter), 1fr) [full-end];
  font-size: var(--step-1); line-height: 1.7; color: var(--cream-soft); }
.content > * { grid-column: main; }
.content > * + * { margin-top: 1.3em; }
.content > .kg-width-wide { grid-column: wide; }
.content > .kg-width-full { grid-column: full; }
.content > .kg-width-full img { border-radius: 0; }
.content h2 { font-size: var(--step-3); color: var(--cream); margin-top: 2em; }
.content h3 { font-size: var(--step-2); color: var(--cream); margin-top: 1.8em; }
.content h4 { font-size: var(--step-1); color: var(--cream); margin-top: 1.6em; }
.content h2 + *, .content h3 + *, .content h4 + * { margin-top: 0.7em; }
.content strong { color: var(--cream); font-weight: 700; }
.content a { color: var(--mint); text-decoration: underline; text-decoration-color: rgba(127, 212, 182, 0.4); text-underline-offset: 3px; }
.content a:hover { color: var(--cream); text-decoration-color: var(--cream); }
.content ul, .content ol { padding-left: 1.3em; }
.content li + li { margin-top: 0.4em; }
.content li::marker { color: var(--green-bright); }
.content blockquote:not(.kg-blockquote-alt) { border-left: 3px solid var(--green-bright); padding: 4px 0 4px 22px; color: var(--cream); font-style: normal; }
.content .kg-blockquote-alt { font-size: var(--step-2); font-weight: 700; color: var(--cream); text-align: center; padding: 0 2em; }
.content hr { border: 0; height: 1px; background: var(--line-strong); margin-block: 2.6em; }
.content img { border-radius: var(--radius); }
.content code { font-family: var(--font-mono); font-size: 0.86em; background: var(--ink-raised); border: 1px solid var(--line); border-radius: 6px; padding: 0.12em 0.4em; color: var(--cream); }
.content pre { font-family: var(--font-mono); font-size: 0.85rem; line-height: 1.6; background: var(--ink-deep); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 22px; overflow-x: auto; color: var(--cream-soft); }
.content pre code { background: none; border: 0; padding: 0; font-size: inherit; color: inherit; }
.content table { width: 100%; border-collapse: collapse; font-size: var(--step-0); }
.content th, .content td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.content th { color: var(--cream); font-weight: 700; }
.content .kg-callout-card { border-radius: var(--radius); }
.content .kg-bookmark-card a.kg-bookmark-container { background: var(--ink-raised); border: 1px solid var(--line); border-radius: var(--radius); color: var(--cream); text-decoration: none; }
.content .kg-bookmark-description, .content .kg-bookmark-metadata { color: var(--muted); }
.content .kg-btn, .content .kg-header-card-button { border-radius: 999px !important; font-weight: 600; }
.content .kg-toggle-card { background: var(--ink-raised); border-color: var(--line); border-radius: var(--radius); }

/* footer */
.footer { border-top: 1px solid var(--line); background: var(--ink-deep); padding-block: 56px 32px; color: var(--muted); }
.footer-top { display: grid; gap: 40px; grid-template-columns: 1.4fr 1fr; }
.claim-text { margin-top: 16px; max-width: 42ch; }
.cols { display: grid; gap: 24px; grid-template-columns: repeat(2, 1fr); }
.col-title { font-family: var(--font-mono); font-size: var(--step--1); font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--faint); margin-bottom: 12px; }
.cols li + li { margin-top: 6px; }
.cols a { color: var(--cream-soft); } .cols a:hover { color: var(--mint); }
.bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); font-size: var(--step--1); color: var(--faint); }
@media (max-width: 760px) { .footer-top { grid-template-columns: 1fr; } }

/* Ghost portal/members button tone */
.gh-portal-triggerbtn-iframe { display: none; }
