@font-face { font-family: "Schibsted Grotesk"; font-style: normal; font-weight: 500 900; font-display: swap; src: url("../fonts/schibsted-grotesk-500-900.woff2") format("woff2"); }
@font-face { font-family: "Instrument Sans"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("../fonts/instrument-sans-400-700.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/ibm-plex-mono-400.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/ibm-plex-mono-500.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/ibm-plex-mono-600.woff2") format("woff2"); }

:root {
  --paper: #f5f8f3; --surface: #fffefa; --sunk: #eaf0e7; --ink: #172c22; --ink-2: #425c4c; --muted: #617464; --rule: #d2ddcf;
  --mint: #a7efc1; --mint-soft: #def1df; --forest: #214b37; --accent: #32764c; --panel-ink: #172c22; --panel-shadow: #172c22; --focus: #32764c; --mark: #a7efc1; --on-forest: #f5f8f3;
  --display: "Schibsted Grotesk", system-ui, sans-serif; --sans: "Instrument Sans", system-ui, sans-serif; --mono: "IBM Plex Mono", ui-monospace, monospace;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --paper: #121e18; --surface: #1b2a21; --sunk: #25382b; --ink: #e9f1e5; --ink-2: #becdbc; --muted: #a1b39e; --rule: #3b5140;
  --mint-soft: #243f2d; --forest: #a7efc1; --accent: #a7efc1; --panel-ink: #a5b69f; --panel-shadow: #080f0b; --focus: #a7efc1; --mark: #2f6b46; --on-forest: #172c22;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; -webkit-text-size-adjust: 100%; scrollbar-color: var(--muted) var(--paper); }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.0625rem/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
::selection { background: var(--mint); color: #172c22; }
input { caret-color: var(--accent); }
a { color: inherit; text-underline-offset: .22em; text-decoration-color: var(--muted); }
a:hover { text-decoration-color: currentColor; }
button, input { font: inherit; }
button { cursor: pointer; }
button, a, input { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 5px; border-radius: 4px; }
button:disabled { cursor: wait; opacity: .6; }
[hidden] { display: none !important; }
h1, h2, h3 { font-family: var(--display); line-height: 1.12; letter-spacing: -.035em; margin: 0; text-wrap: balance; }
p { margin: 0 0 1em; }
svg { flex: none; width: 22px; height: 22px; }
code, pre, kbd { font-family: var(--mono); }
.wrap { width: min(1120px, calc(100% - 80px)); margin-inline: auto; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 20px; top: -70px; z-index: 10; padding: 10px 16px; background: var(--ink); color: var(--paper); }
.skip-link:focus { top: 12px; }
.site-header { border-bottom: 1px solid var(--rule); }
.header-inner { min-height: 98px; display: flex; gap: 34px; align-items: center; }
.wordmark { display: inline-flex; align-items: center; gap: 13px; text-decoration: none; flex-shrink: 0; }
.wordmark-stamp { display: inline-block; transform: rotate(-3deg); background: var(--mint); color: #172c22; border: 2px solid #172c22; border-radius: 7px; box-shadow: 3px 3px 0 #172c22; padding: 2px 8px 5px; font: 800 1.75rem/1 var(--display); letter-spacing: -.055em; }
.wordmark-name { color: var(--forest); font: 600 1.06rem/1 var(--mono); letter-spacing: .025em; }
.site-nav { display: flex; align-items: center; gap: 29px; margin-left: auto; }
.site-nav a { color: var(--ink-2); text-decoration: none; font-size: .9375rem; font-weight: 600; }
.site-nav a:hover, .site-nav a[aria-current] { color: var(--accent); text-decoration: underline; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.search-trigger, .icon-button { display: inline-flex; align-items: center; justify-content: center; height: 40px; border: 0; color: var(--ink-2); background: transparent; padding: 8px; border-radius: 7px; }
.search-trigger { gap: 8px; font-size: .875rem; }
.search-trigger kbd { font-size: .75rem; padding: 0 5px; color: var(--muted); border: 1px solid var(--rule); border-radius: 3px; }
.search-trigger:hover, .icon-button:hover { color: var(--ink); background: var(--sunk); }
.icon-button { width: 40px; }
.menu-trigger { display: none; }
.no-js .header-actions { display: none; }
.hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 70px; align-items: center; padding: 86px 0 91px; }
.hero h1 { font-size: clamp(3rem, 5.6vw, 4.6rem); font-weight: 800; line-height: 1.055; letter-spacing: -.04em; }
.hero-copy > p { max-width: 37ch; margin: 25px 0 26px; font-size: 1.1875rem; line-height: 1.6; color: var(--ink-2); }
.primary-link { display: inline-flex; align-items: center; gap: 19px; padding: 12px 18px; border: 2px solid var(--ink); border-radius: 8px; background: var(--forest); color: var(--paper); text-decoration: none; font-size: .9375rem; font-weight: 600; }
.primary-link:hover { background: var(--ink); }
[data-theme="dark"] .primary-link { color: #172c22; border-color: var(--mint); }
[data-theme="dark"] .primary-link:hover { background: #c9f5d9; }
.prompt-card { border: 2px solid var(--panel-ink); border-radius: 15px; background: var(--surface); box-shadow: 6px 6px 0 var(--panel-shadow); padding: 25px 26px 22px; transform: rotate(1deg); }
.prompt-heading { display: flex; align-items: center; gap: 11px; }
.prompt-heading h2 { font-size: 1.3rem; font-weight: 750; letter-spacing: -.025em; }
.prompt-mark { font: 600 1.125rem/1 var(--mono); color: var(--accent); }
.prompt-card > p { color: var(--ink-2); font-size: .9375rem; line-height: 1.6; margin: 14px 0 18px; }
.prompt-card pre { margin: 0; background: var(--mint-soft); border-radius: 7px; padding: 19px 18px; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--ink); font-size: .875rem; line-height: 1.8; }
.prompt-heading + pre { margin-top: 16px; }
.prompt-card pre strong { font-weight: 600; color: var(--forest); }
.prompt-bottom { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 20px; }
.prompt-bottom > span { font-size: .75rem; color: var(--muted); max-width: 16ch; line-height: 1.45; }
.copy-button { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 8px 10px; border: 1px solid var(--rule); border-radius: 6px; background: var(--surface); color: var(--ink); font-size: .8125rem; font-weight: 600; white-space: nowrap; min-height: 38px; }
.copy-button svg { width: 16px; height: 16px; }
.copy-button:hover, .copy-button[data-copied] { background: var(--mint-soft); border-color: var(--accent); }
.section-heading { margin-bottom: 24px; }
.section-heading h2 { font-size: clamp(1.65rem, 2.7vw, 2rem); font-weight: 750; }
.section-heading p { color: var(--muted); font-size: 1rem; margin: 10px 0 0; }
.file-label { font: 400 .75rem/1.5 var(--mono); color: var(--ink-2); }
.circle-link { display: inline-grid; place-items: center; width: 38px; height: 38px; border: 1.5px solid var(--ink); border-radius: 50%; flex: none; }
.blocks { padding: 8px 0 2px; }
.supporting-heading h3 { font-size: 1.2rem; font-weight: 750; }
.supporting-heading .file-label { display: block; font-family: var(--sans); font-size: .875rem; color: var(--muted); margin-top: 6px; }
.blocks dl { margin: 16px 0 15px; }
.blocks dl > div { padding: 12px 0; border-bottom: 1px solid var(--rule); display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-items: center; }
.blocks dt { display: flex; gap: 11px; align-items: center; font-size: .9375rem; font-weight: 600; }
.skill-symbol { display: inline-grid; place-items: center; font: 500 .6875rem/1 var(--mono); width: 27px; height: 27px; color: var(--accent); background: var(--sunk); border: 1px solid var(--rule); border-radius: 5px; flex: none; }
.blocks dd { margin: 0; color: var(--ink-2); font-size: .8125rem; line-height: 1.5; }
.blocks dt a { text-decoration: none; }
.blocks dt a:hover { color: var(--accent); text-decoration: underline; }
.bundle-link { display: block; width: fit-content; margin-top: 13px; }
.underlined-link { font-weight: 600; font-size: .875rem; text-decoration-thickness: 1px; }
.underlined-link:hover { color: var(--accent); }
/* Home: what you need, and one card per result */
.needs-card { border: 2px solid var(--panel-ink); border-radius: 15px; background: var(--surface); box-shadow: 6px 6px 0 var(--panel-shadow); padding: 24px 26px 18px; transform: rotate(1deg); }
.needs-list { list-style: none; counter-reset: need; margin: 16px 0 0; padding: 0; }
.needs-list li { counter-increment: need; display: grid; grid-template-columns: 30px 1fr; column-gap: 8px; padding: 12px 0; border-top: 1px solid var(--rule); }
.needs-list li::before { content: "0" counter(need); grid-row: span 2; font: 500 .75rem/1.9 var(--mono); color: var(--accent); }
.needs-list strong { font-size: 1rem; }
.needs-list span { font-size: .875rem; color: var(--ink-2); line-height: 1.5; }
.outcome-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 24px; }
.outcome-card { display: flex; flex-direction: column; gap: 10px; padding: 24px 26px 22px; border: 2px solid var(--panel-ink); border-radius: 15px; background: var(--mint-soft); box-shadow: 5px 5px 0 var(--panel-shadow); text-decoration: none; transition: transform 180ms cubic-bezier(.16,1,.3,1), box-shadow 180ms cubic-bezier(.16,1,.3,1); }
.outcome-card:hover { transform: translate(-2px,-2px); box-shadow: 7px 7px 0 var(--panel-shadow); }
.outcome-card h3 { font-size: clamp(1.8rem, 2.7vw, 2.35rem); font-weight: 800; line-height: 1.1; }
.outcome-card > p { margin: 0; max-width: 46ch; color: var(--ink-2); font-size: 1rem; line-height: 1.6; }
.outcome-request { background: var(--surface); border-style: dashed; box-shadow: none; }
.outcome-request:hover { box-shadow: none; border-style: solid; }
.outcome-request h3 { font-size: 1.35rem; }
.outcome-request > p { font-size: .9375rem; }
.outcome-foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: auto; padding-top: 14px; font-size: .8125rem; font-weight: 500; color: var(--ink-2); }
.outcome-card:hover .circle-link { background: var(--forest); color: var(--on-forest, var(--paper)); border-color: var(--forest); }
.card-meta { margin: 0; font: 400 .75rem/1.5 var(--mono); color: var(--muted); }
.card-meta i { font-style: normal; margin-inline: 4px; color: var(--rule); }
mark { color: inherit; background: linear-gradient(transparent 60%, var(--mark) 60%, var(--mark) 92%, transparent 92%); padding-inline: .04em; }
.pill-row { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 4px 0 0; }
.pill-row li { font-size: .75rem; font-weight: 600; padding: 3px 10px; border: 1.5px solid var(--panel-ink); border-radius: 999px; background: var(--surface); }
.blocks { margin-top: 44px; max-width: 640px; }
.blocks-links { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 0; }

/* A skill's own page */
.skill-page { padding-top: 36px; padding-bottom: 20px; }
.skill-head { max-width: 760px; padding: 30px 0 26px; }
.skill-head h1 { font-size: clamp(2.5rem, 5vw, 4.2rem); font-weight: 800; line-height: 1.06; margin-top: 10px; }
.prompt-card.skill-prompt { max-width: 720px; transform: none; margin-bottom: 40px; }
.skill-prompt .prompt-bottom > span { max-width: none; }
.skill-body { max-width: 710px; }
.skill-body h2:first-child { margin-top: 0; }
.skill-files { display: flex; flex-wrap: wrap; gap: 8px 22px; }

.notes-section { padding: 76px 0 83px; }
.notes-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.notes-list { border-top: 1.5px solid var(--ink); }
.note-row { display: grid; grid-template-columns: 155px 1fr 36px; gap: 26px; align-items: center; padding: 27px 0 29px; border-bottom: 1px solid var(--rule); text-decoration: none; }
.note-row:hover .note-copy h3 { color: var(--accent); text-decoration: underline; text-underline-offset: .2em; }
.note-date { display: grid; gap: 7px; font-size: .8125rem; color: var(--ink-2); }
.note-date > span { color: var(--muted); font-size: .75rem; }
.note-copy h3 { font-size: 1.5rem; font-weight: 750; }
.note-copy p { font-size: .9375rem; color: var(--ink-2); margin: 9px 0 0; }
.note-open { display: grid; place-items: center; color: var(--accent); }
.site-footer { border-top: 1px solid var(--rule); padding: 35px 0 38px; background: var(--sunk); }
.footer-inner { display: flex; justify-content: space-between; gap: 30px; align-items: flex-start; }
.wordmark-small .wordmark-stamp { font-size: 1.2rem; border-radius: 5px; padding: 2px 6px 4px; box-shadow: 2px 2px 0 #172c22; }
.wordmark-small .wordmark-name { font-size: .875rem; }
.footer-inner p { font-size: .8125rem; color: var(--muted); margin: 17px 0 0; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 13px 23px; padding-top: 4px; max-width: 400px; font-size: .8125rem; color: var(--ink-2); }
.family-note { flex: 1 1 100%; text-align: right; color: var(--muted); }
.family-note a { color: var(--ink-2); }
.article-page { padding-top: 36px; }
.back-link { display: inline-flex; align-items: center; gap: 7px; text-decoration: none; font-size: .875rem; color: var(--ink-2); }
.back-link svg { width: 17px; height: 17px; }
.back-link:hover { color: var(--accent); }
.article-head { max-width: 840px; padding: 35px 0 34px; }
.article-head h1, .generic-page h1, .archive-page h1 { font-size: clamp(2.5rem, 5vw, 4.2rem); font-weight: 800; line-height: 1.08; }
.article-description { max-width: 48ch; color: var(--ink-2); font-size: 1.25rem; line-height: 1.55; margin: 23px 0 22px; }
.article-meta { display: flex; flex-wrap: wrap; gap: 10px; font-size: .8125rem; color: var(--muted); }
.article-layout { display: grid; grid-template-columns: minmax(0, 710px) 1fr; gap: 75px; border-top: 1px solid var(--rule); padding-top: 35px; }
.prose { min-width: 0; font-size: 1.0625rem; line-height: 1.75; overflow-wrap: anywhere; }
.prose > p, .prose > ul, .prose > ol { max-width: 72ch; margin-top: 0; margin-bottom: 1.3em; }
.prose h2 { margin: 2em 0 .7em; font-size: 1.7rem; font-weight: 750; line-height: 1.2; }
.prose h3 { margin: 1.6em 0 .7em; font-size: 1.3rem; }
.prose li + li { margin-top: .5em; }
.prose a { color: var(--accent); }
.prose .headerlink { opacity: 0; padding-left: .3em; text-decoration: none; font-size: .7em; }
.prose h2:hover .headerlink, .prose .headerlink:focus { opacity: 1; }
.prose :not(pre) > code { padding: .1em .35em; background: var(--sunk); border-radius: 4px; font-size: .84em; }
.prose .highlight { position: relative; display: block; white-space: normal; margin: 28px 0; border-radius: 10px; background: #172c22; color: #e7f2e5; }
.prose pre { padding: 42px 22px 22px; margin: 0; overflow: auto; font-size: .8125rem; line-height: 1.85; white-space: pre-wrap; overflow-wrap: anywhere; }
.prose pre code { font: inherit; }
.code-copy { position: absolute; right: 13px; top: 9px; background: transparent; color: #b7d6bf; border: 1px solid #577661; border-radius: 4px; padding: 3px 8px; font-size: .75rem; }
.code-copy:hover { color: white; border-color: #a7efc1; }
.article-toc { padding: 6px 0 0; align-self: start; position: sticky; top: 28px; }
.article-toc h2 { font: 650 .875rem/1.5 var(--sans); letter-spacing: normal; margin-bottom: 14px; }
.article-toc nav { display: grid; gap: 12px; }
.article-toc a { font-size: .8125rem; color: var(--ink-2); text-decoration: none; line-height: 1.5; }
.article-toc a:hover { color: var(--accent); text-decoration: underline; }
.article-toc p { border-top: 1px solid var(--rule); color: var(--muted); margin: 26px 0 0; padding-top: 20px; font-size: .8125rem; line-height: 1.9; }
.article-end { display: flex; align-items: center; justify-content: space-between; gap: 20px; border-top: 1px solid var(--rule); padding: 28px 0 48px; margin-top: 39px; }
.article-end p { margin: 0; color: var(--ink-2); font-size: .9375rem; }
.generic-page { padding-top: 61px; padding-bottom: 65px; }
.generic-page .prose { max-width: 710px; }
.generic-page h1 { margin-bottom: 30px; }
.archive-page { padding-top: 55px; padding-bottom: 70px; }
.site-search { padding-block: 14px 26px; }
.site-search > label { display: block; font-weight: 600; font-size: 1rem; margin-bottom: 10px; }
.search-field { display: flex; gap: 16px; align-items: center; }
.search-field input { flex: 1; min-width: 0; background: var(--surface); border: 2px solid var(--ink); color: var(--ink); border-radius: 7px; padding: 12px 15px; }
.search-field input::placeholder { color: var(--muted); }
.text-button { padding: 8px 0; background: transparent; color: var(--ink-2); border: 0; text-decoration: underline; font-size: .875rem; }
.search-status { color: var(--muted); margin: 13px 0 0; font-size: .8125rem; }
.search-results { list-style: none; padding: 0; margin: 0; }
.search-results li { border-bottom: 1px solid var(--rule); }
.search-results a { display: grid; gap: 5px; padding: 15px 0; text-decoration: none; }
.search-results a:hover strong { text-decoration: underline; }
.search-results strong { font-size: 1rem; color: var(--accent); }
.search-results span { font-size: .875rem; color: var(--ink-2); }
@media (max-width: 1050px) {
  .wrap { width: calc(100% - 64px); }
  .hero { gap: 39px; padding-block: 66px 73px; }
  .hero h1 { font-size: clamp(3rem, 6.2vw, 4.2rem); }
  .prompt-card { padding: 22px; }
  .article-layout { grid-template-columns: minmax(0, 1fr) 190px; gap: 38px; }
}
@media (max-width: 760px) {
  .outcome-grid { grid-template-columns: 1fr; }
  .needs-card { max-width: 530px; padding: 22px; transform: rotate(.6deg); }
  .prompt-card.skill-prompt { transform: none; max-width: 720px; }
  .wrap { width: calc(100% - 44px); }
  .header-inner { min-height: 82px; gap: 18px; }
  .site-nav { gap: 18px; }
  .search-trigger > span, .search-trigger kbd { display: none; }
  .header-actions { gap: 3px; }
  .hero { grid-template-columns: 1fr; gap: 37px; padding-block: 48px 58px; }
  .hero h1 { font-size: clamp(3.4rem, 9.5vw, 4.3rem); }
  .hero-copy > p { max-width: 42ch; margin-top: 22px; font-size: 1.125rem; }
  .prompt-card { max-width: 530px; padding: 22px; transform: rotate(.6deg); }
  .prompt-bottom > span { max-width: none; }
  .blocks dl > div { grid-template-columns: 1fr 1fr; padding: 14px 0; }
  .notes-section { padding-block: 52px 58px; }
  .note-row { grid-template-columns: 1fr 28px; gap: 13px; padding-block: 23px; }
  .note-date { grid-column: 1 / -1; display: flex; gap: 14px; align-items: center; }
  .note-copy h3 { font-size: 1.35rem; }
  .note-copy p { line-height: 1.6; }
  .article-layout { grid-template-columns: 1fr; gap: 24px; padding-top: 25px; }
  .article-toc { position: static; order: -1; border-bottom: 1px solid var(--rule); padding: 0 0 22px; }
  .article-toc nav { display: flex; flex-wrap: wrap; gap: 10px 22px; }
  .article-toc p { display: none; }
  .article-toc h2 { margin-bottom: 9px; }
  .article-head { padding-block: 28px; }
  .article-head h1 { font-size: clamp(2.4rem, 7.5vw, 3.3rem); }
  .article-description { font-size: 1.125rem; margin-block: 18px; }
  .article-end { align-items: flex-start; flex-direction: column; gap: 10px; }
}
@media (max-width: 640px) {
  .header-inner { flex-wrap: wrap; gap: 0; padding-block: 16px; min-height: 79px; }
  .wordmark { gap: 10px; }
  .wordmark-stamp { font-size: 1.55rem; }
  .wordmark-name { font-size: .9375rem; }
  .header-actions { margin-left: auto; }
  .menu-trigger { display: inline-flex; }
  .site-nav { order: 3; width: 100%; margin: 17px 0 0; padding-top: 12px; border-top: 1px solid var(--rule); }
  .js .site-nav:not([data-open]) { display: none; }
  .site-nav a { padding-block: 6px; }
}
@media (max-width: 560px) {
  .hero h1 { font-size: clamp(3.05rem, 11.6vw, 4rem); }
  .hero-copy > p { max-width: 33ch; }
  .prompt-card { padding: 21px 18px 18px; box-shadow: 4px 4px 0 var(--panel-shadow); }
  .prompt-heading { gap: 8px; }
  .prompt-heading h2 { font-size: 1.15rem; }
  .prompt-card pre { padding: 16px 14px; font-size: .8125rem; }
  .prompt-bottom > span { max-width: 17ch; }
  .section-heading h2 { font-size: 1.65rem; }
  .blocks dd { font-size: .8125rem; }
  .notes-heading { flex-wrap: wrap; gap: 15px; }
  .footer-inner { flex-direction: column; gap: 25px; }
  .footer-links { justify-content: flex-start; padding: 0; }
  .family-note { text-align: left; }
  .article-page { padding-top: 25px; }
  .article-meta { column-gap: 8px; row-gap: 5px; font-size: .75rem; }
  .prose { font-size: 1rem; }
  .prose h2 { font-size: 1.5rem; }
  .generic-page { padding-top: 39px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
