/* Laayo Blog. Brand: yellow #FFD60A + charcoal #263238, Lexend. Flat, hairlines, no gradients. */
:root {
  --y: #FFD60A;
  --y-soft: #FFF6C7;
  --y-deep: #E8C000;
  --k: #263238;
  --ink: #1C2529;
  --text: #2E3A40;
  --muted: #64737A;
  --line: #E4E7E9;
  --soft: #F5F6F7;
  --bg: #FFFFFF;
  --code: #1D272B;
  --r: 14px;
  --font: 'Lexend', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --hdr: 68px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--hdr) + 24px); }
body { margin: 0; font-family: var(--font); color: var(--text); background: var(--bg); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4 { color: var(--ink); margin: 0; line-height: 1.2; letter-spacing: -0.015em; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--k); outline-offset: 2px; border-radius: 4px; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--k); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 16px; }
.wrap { width: 100%; max-width: 1232px; margin: 0 auto; padding: 0 32px; }
.wrap--wide { max-width: 1344px; }
.muted { color: var(--muted); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 22px; border-radius: 12px; font-weight: 500; font-size: 15px; border: 1.5px solid transparent; transition: background .15s, border-color .15s, transform .1s; white-space: nowrap; }
.btn:active { transform: scale(.98); }
.btn--y { background: var(--y); color: var(--k); }
.btn--y:hover { background: var(--y-deep); }
.btn--ghost { border-color: var(--line); color: var(--k); background: #fff; }
.btn--ghost:hover { border-color: var(--k); }
.btn--ghost-d { border-color: rgba(255,255,255,.28); color: #fff; }
.btn--ghost-d:hover { border-color: #fff; }
.ibtn { width: 40px; height: 40px; display: inline-grid; place-items: center; border-radius: 10px; border: 0; background: transparent; color: var(--k); transition: background .15s; }
.ibtn:hover { background: var(--soft); }
.ibtn svg { width: 22px; height: 22px; fill: currentColor; }
.ibtn--line { border: 1px solid var(--line); width: 38px; height: 38px; }
.ibtn--line svg { width: 18px; height: 18px; }
.ibtn--line:hover { border-color: var(--k); background: #fff; }

/* Header */
.hdr { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.hdr__in { height: var(--hdr); display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 12px; flex: none; }
.brand img { height: 30px; width: auto; }
.brand__tag { font-weight: 600; font-size: 17px; color: var(--k); padding-left: 12px; border-left: 1.5px solid var(--line); line-height: 22px; letter-spacing: -.01em; }
.nav { display: flex; gap: 4px; margin-left: 8px; }
.nav a { position: relative; padding: 8px 12px; font-size: 15px; font-weight: 500; color: var(--muted); border-radius: 8px; transition: color .15s; }
.nav a:hover { color: var(--k); }
.nav a[aria-current] { color: var(--k); }
.nav a[aria-current]::after { content: ''; position: absolute; left: 12px; right: 12px; bottom: -15px; height: 3px; background: var(--y); border-radius: 3px 3px 0 0; }
.hdr__end { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.hdr__cta { height: 40px; padding: 0 16px; font-size: 14px; border-radius: 10px; }
.hdr__menu { display: none; }
.progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; }
.progress span { display: block; height: 100%; width: 0; background: var(--y); transition: width .08s linear; }

/* Search panel */
.search { position: sticky; top: var(--hdr); z-index: 49; background: #fff; border-bottom: 1px solid var(--line); padding: 18px 0; animation: drop .18s ease-out; }
.search__box { display: flex; align-items: center; gap: 14px; }
.search__box svg { width: 24px; height: 24px; fill: var(--muted); flex: none; }
.search__box input { flex: 1; border: 0; outline: 0; font: inherit; font-size: 22px; font-weight: 300; color: var(--ink); background: transparent; min-width: 0; }
.search__x { border: 1px solid var(--line); background: #fff; border-radius: 8px; font-size: 12px; padding: 4px 8px; color: var(--muted); }
@keyframes drop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* Eyebrow + meta */
.eyebrow { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--k); margin-bottom: 10px; }
.eyebrow a:hover { text-decoration: underline; text-decoration-color: var(--y); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.eyebrow::before { content: ''; width: 10px; height: 10px; background: var(--y); border-radius: 2px; flex: none; }
.eyebrow__dot, .meta__dot { width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: .45; flex: none; }
.eyebrow--lg { font-size: 13.5px; margin-bottom: 18px; }
.meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 13.5px; color: var(--muted); }
.kicker { display: inline-block; font-size: 12.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.kicker--y { color: var(--y); }

/* Masthead */
.mast { padding-top: 64px; padding-bottom: 40px; }
.mast__title { font-size: clamp(36px, 5.2vw, 64px); font-weight: 600; letter-spacing: -.03em; line-height: 1.05; max-width: 15ch; }
.mast__sub { margin-top: 18px; font-size: 19px; color: var(--muted); font-weight: 300; max-width: 52ch; }

/* Cards */
.card { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.card__media { display: block; border-radius: var(--r); overflow: hidden; background: var(--soft); aspect-ratio: 16 / 9; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.card:hover .card__media img { transform: scale(1.035); }
.card__title { font-size: 22px; font-weight: 600; line-height: 1.28; }
.card__title a { background-image: linear-gradient(var(--y), var(--y)); background-size: 0 3px; background-position: 0 100%; background-repeat: no-repeat; transition: background-size .3s; padding-bottom: 1px; }
.card:hover .card__title a { background-size: 100% 3px; }
.card__dek { margin-top: 10px; color: var(--muted); font-size: 16px; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card .meta { margin-top: 14px; }
.card--lead { gap: 26px; }
.card--lead .card__title { font-size: clamp(28px, 3.2vw, 42px); line-height: 1.12; letter-spacing: -.025em; }
.card--lead .card__dek { font-size: 18px; -webkit-line-clamp: 4; margin-top: 14px; }
.card--row { flex-direction: row; gap: 18px; align-items: flex-start; }
.card--row .card__media { width: 148px; flex: none; aspect-ratio: 4 / 3; border-radius: 12px; }
.card--row .card__title { font-size: 17.5px; line-height: 1.32; }
.card--row .card__dek { display: none; }
.card--row .meta { margin-top: 8px; font-size: 12.5px; }
.card--row .eyebrow { font-size: 11.5px; margin-bottom: 6px; }
.card--compact .card__title { font-size: 18px; }
.card--row .meta__rt, .card--compact .meta__rt { display: none; }
.card--compact .card__dek { -webkit-line-clamp: 2; font-size: 15px; }

/* Home top */
.top { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 56px; padding-bottom: 72px; }
.top__side { display: flex; flex-direction: column; gap: 0; }
.top__side .card { padding: 22px 0; border-top: 1px solid var(--line); }
.top__side .card:first-child { border-top: 0; padding-top: 0; }

/* Blocks */
.block { padding-top: 64px; padding-bottom: 16px; }
.block--tight { padding-top: 8px; }
.block__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding-bottom: 18px; margin-bottom: 32px; border-bottom: 1px solid var(--line); }
.block__head h2 { font-size: 28px; font-weight: 600; letter-spacing: -.02em; }
.block__note { color: var(--muted); font-size: 15px; max-width: 48ch; }
.more { font-size: 15px; font-weight: 500; color: var(--k); white-space: nowrap; }
.more:hover { text-decoration: underline; text-decoration-color: var(--y); text-decoration-thickness: 3px; text-underline-offset: 4px; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 56px 36px; }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 44px 28px; }
.empty { padding: 64px 0; text-align: center; color: var(--muted); display: grid; gap: 20px; justify-items: center; }

/* Series band */
.series { background: var(--k); color: #fff; margin-top: 24px; padding: 88px 0; }
.series__in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 72px; align-items: start; }
.series .kicker { color: var(--y); }
.series h2 { color: #fff; font-size: clamp(32px, 3.6vw, 48px); font-weight: 600; letter-spacing: -.03em; line-height: 1.08; }
.series__intro p { color: #B8C4C9; font-size: 18px; font-weight: 300; margin-top: 18px; max-width: 42ch; }
.series__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.series__list { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.series__list a { display: grid; grid-template-columns: 64px 1fr auto; gap: 16px; align-items: baseline; padding: 22px 0; border-top: 1px solid rgba(255,255,255,.12); transition: padding .2s; }
.series__list li:last-child a { border-bottom: 1px solid rgba(255,255,255,.12); }
.series__n { font-size: 15px; font-weight: 600; color: var(--y); font-variant-numeric: tabular-nums; }
.series__t { font-size: 21px; font-weight: 500; line-height: 1.3; color: #fff; }
.series__m { font-size: 13px; color: #8FA0A7; }
.series__list a:hover { padding-left: 8px; }
.series__list a:hover .series__t { color: var(--y); }

/* Sections */
.sections { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.section { padding: 28px 26px 26px; border-left: 1px solid var(--line); display: flex; flex-direction: column; }
.section:first-child { border-left: 0; }
.section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.section__head h3 { font-size: 22px; font-weight: 600; }
.section__head span { font-size: 13px; color: var(--muted); white-space: nowrap; }
.section__blurb { margin-top: 10px; font-size: 14.5px; color: var(--muted); line-height: 1.5; min-height: 4.5em; }
.section ul { list-style: none; margin: 18px 0 20px; padding: 0; flex: 1; }
.section li + li { border-top: 1px solid var(--line); }
.section li a { display: block; padding: 12px 0; font-size: 15.5px; font-weight: 500; line-height: 1.38; color: var(--ink); }
.section li a:hover { text-decoration: underline; text-decoration-color: var(--y); text-decoration-thickness: 3px; text-underline-offset: 4px; }
.section:hover .section__head h3 { color: var(--k); }

/* Topics */
.tags { display: flex; flex-wrap: wrap; gap: 10px; }
.tag { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border: 1px solid var(--line); border-radius: 10px; font-size: 14.5px; font-weight: 500; color: var(--k); background: #fff; transition: border-color .15s; }
.tag small { color: var(--muted); font-weight: 400; font-size: 12.5px; }
.tag:hover { border-color: var(--k); }
.topics { padding-bottom: 96px; }

/* Listing head */
.phead { padding-top: 64px; padding-bottom: 40px; }
.phead h1 { font-size: clamp(36px, 5vw, 60px); font-weight: 600; letter-spacing: -.03em; }
.phead p { margin-top: 14px; font-size: 19px; color: var(--muted); font-weight: 300; max-width: 56ch; }
.tabs { display: flex; gap: 6px; margin-top: 36px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.tabs a { padding: 12px 14px; font-weight: 500; color: var(--muted); border-bottom: 3px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs a:hover { color: var(--k); }
.tabs a[aria-current] { color: var(--k); border-bottom-color: var(--y); }
.bigsearch { display: flex; gap: 12px; margin-top: 28px; max-width: 640px; }
.bigsearch input { flex: 1; min-width: 0; height: 52px; border: 1.5px solid var(--line); border-radius: 12px; padding: 0 18px; font: inherit; font-size: 17px; color: var(--ink); }
.bigsearch input:focus { outline: 0; border-color: var(--k); }
.bigsearch .btn { height: 52px; }

.pager { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; margin-top: 64px; padding-top: 28px; border-top: 1px solid var(--line); }
.pager > :last-child { justify-self: end; }
.pager__n { color: var(--muted); font-size: 14.5px; }

/* Avatars */
.avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--k); color: var(--y); display: inline-grid; place-items: center; font-weight: 600; font-size: 15px; flex: none; letter-spacing: .02em; }
.avatar--lg { width: 60px; height: 60px; font-size: 19px; }
.avatar--xl { width: 72px; height: 72px; font-size: 24px; margin-bottom: 18px; }

/* Article */
.post__head { max-width: 900px; padding-top: 64px; padding-bottom: 44px; }
.post__title { font-size: clamp(34px, 5vw, 60px); font-weight: 600; letter-spacing: -.032em; line-height: 1.06; }
.post__dek { margin-top: 22px; font-size: clamp(18px, 1.9vw, 22px); line-height: 1.5; color: var(--muted); font-weight: 300; }
.byline { display: flex; align-items: center; gap: 14px; margin-top: 34px; padding-top: 26px; border-top: 1px solid var(--line); }
.byline__name { font-weight: 600; color: var(--ink); font-size: 15.5px; }
.byline__name:hover { text-decoration: underline; text-decoration-color: var(--y); text-decoration-thickness: 2px; }
.byline .meta { font-size: 13.5px; margin-top: 2px; }
.share { margin-left: auto; display: flex; gap: 8px; }
.post__cover { margin-bottom: 64px; }
.post__cover img { width: 100%; border-radius: 18px; aspect-ratio: 2 / 1; object-fit: cover; background: var(--soft); }
.post__cover figcaption { margin-top: 12px; font-size: 14px; color: var(--muted); text-align: center; }
.post__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 720px) minmax(0, 1fr); gap: 56px; }
.post__main { grid-column: 2; min-width: 0; }
.toc { grid-column: 1; justify-self: end; width: 100%; max-width: 250px; }
.toc__in { position: sticky; top: calc(var(--hdr) + 32px); }
.toc__h { font-size: 12.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 1.5px solid var(--line); }
.toc a { display: block; padding: 7px 0 7px 16px; margin-left: -1.5px; border-left: 3px solid transparent; font-size: 14px; line-height: 1.4; color: var(--muted); transition: color .15s, border-color .15s; }
.toc a:hover { color: var(--k); }
.toc a.is-on { color: var(--ink); font-weight: 500; border-left-color: var(--y); }

.serieswidget { border: 1px solid var(--line); border-radius: var(--r); margin-bottom: 44px; background: #fff; }
.serieswidget summary { list-style: none; display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; cursor: pointer; font-size: 15px; color: var(--text); }
.serieswidget summary::-webkit-details-marker { display: none; }
.serieswidget summary b { color: var(--ink); font-weight: 600; }
.serieswidget summary svg { width: 22px; height: 22px; fill: var(--muted); transition: transform .2s; }
.serieswidget[open] summary svg { transform: rotate(180deg); }
.serieswidget ol { list-style: none; margin: 0; padding: 4px 8px 12px; border-top: 1px solid var(--line); }
.serieswidget li a { display: flex; gap: 14px; padding: 10px 12px; border-radius: 10px; font-size: 15px; color: var(--text); }
.serieswidget li a span { color: var(--muted); font-weight: 600; font-variant-numeric: tabular-nums; }
.serieswidget li a:hover { background: var(--soft); }
.serieswidget li[aria-current] a { background: var(--y-soft); color: var(--ink); font-weight: 500; }
.serieswidget li[aria-current] a span { color: var(--k); }

/* Prose */
.prose { font-size: 18.5px; line-height: 1.78; color: var(--text); }
.prose > * + * { margin-top: 26px; }
.prose h2 { font-size: 30px; font-weight: 600; letter-spacing: -.022em; line-height: 1.22; margin-top: 64px; position: relative; }
.prose h3 { font-size: 22.5px; font-weight: 600; letter-spacing: -.012em; line-height: 1.3; margin-top: 44px; position: relative; }
.prose h4 { font-size: 18.5px; font-weight: 600; margin-top: 36px; }
.prose h2 + *, .prose h3 + *, .prose h4 + * { margin-top: 14px; }
.prose > :first-child { margin-top: 0; }
.h-anchor { position: absolute; left: -1.1em; padding-right: .3em; color: var(--muted); opacity: 0; font-weight: 400; transition: opacity .15s; }
.prose h2:hover .h-anchor, .prose h3:hover .h-anchor, .h-anchor:focus { opacity: 1; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--y); text-decoration-thickness: 3px; text-underline-offset: 4px; transition: background .15s; }
.prose a:hover { background: var(--y-soft); }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li + li { margin-top: 10px; }
.prose li > ul, .prose li > ol { margin-top: 10px; }
.prose ul li::marker { color: var(--k); }
.prose ol li::marker { color: var(--k); font-weight: 600; font-size: .92em; }
.prose blockquote { margin-left: 0; margin-right: 0; padding: 4px 0 4px 26px; border-left: 4px solid var(--y); font-size: 22px; line-height: 1.55; font-weight: 300; color: var(--ink); }
.prose blockquote > * + * { margin-top: 14px; }
.prose blockquote.callout { background: var(--y-soft); border-left: 0; border-radius: var(--r); padding: 22px 26px; font-size: 17px; line-height: 1.7; font-weight: 400; color: var(--text); }
.prose blockquote.callout strong:first-child { color: var(--k); }
.prose code { font-family: var(--mono); font-size: .84em; background: var(--soft); border: 1px solid var(--line); border-radius: 6px; padding: .1em .38em; color: var(--ink); }
.prose hr { border: 0; height: 24px; margin: 56px 0; text-align: center; }
.prose hr::before { content: '\2022\2003\2022\2003\2022'; color: var(--muted); letter-spacing: .2em; }
.prose del { color: var(--muted); }

.code { position: relative; background: var(--code); border-radius: var(--r); overflow: hidden; }
.code pre { margin: 0; padding: 22px 24px; overflow-x: auto; font-family: var(--mono); font-size: 14px; line-height: 1.7; color: #E3E9EC; tab-size: 4; }
.code code { font-family: inherit; background: none; border: 0; padding: 0; color: inherit; font-size: inherit; }
.code__lang { position: absolute; top: 10px; right: 76px; font-family: var(--mono); font-size: 11.5px; text-transform: uppercase; color: #7D9199; letter-spacing: .06em; line-height: 26px; }
.code__copy { position: absolute; top: 9px; right: 10px; height: 28px; padding: 0 10px; border-radius: 7px; border: 1px solid #3B4A50; background: transparent; color: #B7C4C9; font-size: 12px; opacity: 0; transition: opacity .15s; }
.code:hover .code__copy, .code__copy:focus { opacity: 1; }
.code__copy:hover { color: #fff; border-color: #6A7D85; }
.t-k { color: var(--y); }
.t-s { color: #A8DCA0; }
.t-n { color: #F7B98A; }
.t-c { color: #7A8E96; font-style: italic; }

.fig { margin: 44px 0; }
.fig img { width: 100%; border-radius: 12px; background: #fff; cursor: zoom-in; }
.fig--diagram img { border: 1px solid var(--line); padding: 8px; }
.fig figcaption { margin-top: 12px; font-size: 14.5px; line-height: 1.5; color: var(--muted); text-align: center; }
.table { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15.5px; line-height: 1.5; }
.prose th { text-align: left; font-weight: 600; color: var(--ink); background: var(--soft); }
.prose th, .prose td { padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose tr:last-child td { border-bottom: 0; }

.tags--post { margin-top: 56px; }
.pn { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 40px; }
.pn__a { display: flex; flex-direction: column; gap: 6px; padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--r); transition: border-color .15s; }
.pn__a:hover { border-color: var(--k); }
.pn__a small { font-size: 12.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.pn__a span { font-weight: 500; color: var(--ink); line-height: 1.35; }
.pn__a--next { text-align: right; grid-column: 2; }
.authorbox { display: flex; gap: 18px; margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--line); }
.authorbox__name { font-weight: 600; color: var(--ink); font-size: 17px; }
.authorbox__role { font-size: 14px; color: var(--muted); }
.authorbox__bio { margin-top: 8px; font-size: 15.5px; color: var(--text); }
.related { padding-top: 96px; padding-bottom: 96px; }

/* Tech stack hub */
.tshero { background: var(--k); color: #fff; padding: 88px 0 96px; }
.tshero__in { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.tshero__in > div { max-width: 760px; }
.tshero__art { width: 100%; height: auto; }
.tshero h1 { color: #fff; font-size: clamp(38px, 5.6vw, 72px); font-weight: 600; letter-spacing: -.035em; line-height: 1.02; }
.tshero p { color: #B8C4C9; font-size: 19px; font-weight: 300; margin: 22px 0 34px; max-width: 60ch; }
.stack { padding-top: 80px; }
.layers { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.layer { display: grid; grid-template-columns: 220px minmax(0, 1fr) auto; gap: 28px; align-items: center; padding: 24px 28px; border: 1px solid var(--line); border-radius: 16px; background: #fff; transition: border-color .2s, transform .2s; }
.layer:hover { border-color: var(--k); transform: translateX(4px); }
.layer__label { display: flex; align-items: center; gap: 16px; }
.layer__n { width: 44px; height: 44px; border-radius: 12px; background: var(--soft); display: grid; place-items: center; font-weight: 600; font-size: 14px; color: var(--k); flex: none; transition: background .2s; }
.layer:hover .layer__n { background: var(--y); }
.layer__label h3 { font-size: 20px; font-weight: 600; }
.layer__body p { margin-top: 12px; color: var(--muted); font-size: 15px; line-height: 1.55; }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: 6px 12px; border-radius: 8px; background: var(--soft); font-size: 14px; font-weight: 500; color: var(--k); }
.layer--services .chips li:first-child, .layer--apps .chips li:first-child, .layer--data .chips li:first-child { background: var(--k); color: #fff; }
.chips--dashed li { background: #fff; border: 1.5px dashed #B0BCC1; color: var(--muted); }
.layer--planned { border-style: dashed; background: #FCFCFD; }
.layer--planned .layer__n { font-size: 11px; }
.layer__go { font-weight: 500; font-size: 15px; color: var(--k); white-space: nowrap; padding: 10px 14px; border-radius: 10px; border: 1px solid var(--line); }
.layer__go:hover { background: var(--y); border-color: var(--y); }
.partlist { list-style: none; margin: 0; padding: 0 0 96px; }
.partlist__a { display: grid; grid-template-columns: 56px 240px minmax(0, 1fr); gap: 28px; align-items: center; padding: 26px 0; border-bottom: 1px solid var(--line); }
.partlist li:first-child .partlist__a { padding-top: 0; }
.partlist__n { font-size: 34px; font-weight: 600; color: var(--line); letter-spacing: -.03em; transition: color .2s; }
.partlist__a:hover .partlist__n { color: var(--y-deep); }
.partlist__a img { border-radius: 12px; aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.partlist__txt { display: grid; gap: 8px; }
.partlist__txt b { font-size: 22px; font-weight: 600; color: var(--ink); line-height: 1.25; }
.partlist__txt span { color: var(--muted); }
.partlist__txt small { color: var(--muted); font-size: 13.5px; }

/* 404 */
.nf { padding: 120px 32px 140px; text-align: center; display: grid; justify-items: center; gap: 16px; }
.nf__code { font-size: 120px; line-height: 1; font-weight: 700; color: var(--y); letter-spacing: -.05em; }
.nf h1 { font-size: 34px; }
.nf p { color: var(--muted); font-size: 18px; }
.nf__ctas { display: flex; gap: 12px; margin-top: 12px; }

/* Footer */
.ftr { background: var(--k); color: #B8C4C9; margin-top: 40px; }
.ftr__top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 64px; padding-top: 80px; padding-bottom: 64px; }
.ftr__brand img { height: 36px; width: auto; }
.ftr__brand p { margin-top: 20px; max-width: 36ch; font-size: 15px; line-height: 1.6; }
.ftr__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.ftr h3 { color: #fff; font-size: 15px; font-weight: 600; margin-bottom: 16px; letter-spacing: 0; }
.ftr__cols a { display: block; padding: 5px 0; font-size: 15px; transition: color .15s; }
.ftr__cols a:hover { color: var(--y); }
.ftr__base { padding-top: 24px; padding-bottom: 32px; border-top: 1px solid rgba(255,255,255,.1); font-size: 13.5px; color: #8697A0; }

/* Toast + zoom */
.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); background: var(--k); color: #fff; padding: 12px 18px; border-radius: 12px; font-size: 14.5px; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 90; }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.zoom { position: fixed; inset: 0; z-index: 95; background: rgba(255,255,255,.97); display: grid; place-items: center; padding: 32px; cursor: zoom-out; animation: fade .18s ease-out; }
.zoom img { max-width: min(1600px, 100%); max-height: 100%; object-fit: contain; }
@keyframes fade { from { opacity: 0; } }

/* Responsive */
@media (max-width: 1180px) {
  .post__grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .toc { display: none; }
  .post__main { grid-column: 1; max-width: 720px; margin: 0 auto; width: 100%; }
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sections { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section:nth-child(3) { border-left: 0; }
  .section:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 980px) {
  .nav { display: none; }
  .hdr__menu { display: inline-grid; }
  .hdr.is-open .nav { display: flex; flex-direction: column; position: absolute; top: var(--hdr); left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); padding: 8px 20px 16px; margin: 0; }
  .hdr.is-open .nav a { padding: 14px 4px; font-size: 17px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .hdr.is-open .nav a:last-child { border-bottom: 0; }
  .hdr.is-open .nav a[aria-current]::after { display: none; }
  .top { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px 28px; }
  .series__in { grid-template-columns: minmax(0, 1fr); gap: 44px; }
  .layer { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .tshero__in { grid-template-columns: minmax(0, 1fr); }
  .tshero__art { display: none; }
  .layer__go { justify-self: start; }
  .partlist__a { grid-template-columns: 44px 160px minmax(0, 1fr); gap: 18px; }
  .ftr__top { grid-template-columns: minmax(0, 1fr); gap: 40px; }
}
@media (max-width: 640px) {
  :root { --hdr: 60px; }
  .wrap { padding: 0 16px; }
  .brand img { height: 26px; }
  .brand__tag { font-size: 15px; padding-left: 10px; }
  .hdr__cta { display: none; }
  .mast { padding-top: 36px; padding-bottom: 28px; }
  .mast__sub { font-size: 17px; }
  .grid, .grid--4 { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .sections { grid-template-columns: minmax(0, 1fr); }
  .section { border-left: 0; border-top: 1px solid var(--line); }
  .section:first-child { border-top: 0; }
  .section__blurb { min-height: 0; }
  .card--row .card__media { width: 104px; }
  .card__title { font-size: 20px; }
  .block { padding-top: 48px; }
  .block__head h2 { font-size: 24px; }
  .series { padding: 64px 0; }
  .series__list a { grid-template-columns: 44px 1fr; }
  .series__m { display: none; }
  .series__t { font-size: 18px; }
  .post__head { padding-top: 36px; padding-bottom: 32px; }
  .byline { flex-wrap: wrap; }
  .share { margin-left: 0; width: 100%; }
  .post__cover { margin-bottom: 40px; padding: 0; }
  .post__cover img { border-radius: 0; }
  .prose { font-size: 17.5px; line-height: 1.75; }
  .prose h2 { font-size: 25px; margin-top: 52px; }
  .prose h3 { font-size: 20px; }
  .prose blockquote { font-size: 19px; padding-left: 18px; }
  .code { border-radius: 10px; margin-left: -16px; margin-right: -16px; border-radius: 0; }
  .pn { grid-template-columns: minmax(0, 1fr); }
  .pn__a--next { grid-column: 1; }
  .partlist__a { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .partlist__n { display: none; }
  .tshero { padding: 56px 0 64px; }
  .ftr__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nf__code { font-size: 88px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
@media print {
  .hdr, .ftr, .toc, .share, .related, .serieswidget, .pn { display: none !important; }
  .post__grid { display: block; }
}
