@font-face{font-family:'Instrument Serif';src:url('../fonts/instrument-serif-latin-400-normal.woff2') format('woff2');font-weight:400;font-style:normal;font-display:swap;}
@font-face{font-family:'Instrument Serif';src:url('../fonts/instrument-serif-latin-400-italic.woff2') format('woff2');font-weight:400;font-style:italic;font-display:swap;}
@font-face{font-family:'Hanken Grotesk';src:url('../fonts/hanken-grotesk-latin-400-normal.woff2') format('woff2');font-weight:400;font-style:normal;font-display:swap;}
@font-face{font-family:'Hanken Grotesk';src:url('../fonts/hanken-grotesk-latin-500-normal.woff2') format('woff2');font-weight:500;font-style:normal;font-display:swap;}
/* ==========================================================================
   Shared system (taste-skill rules): spacing 4-128, one wrap, 12-column grid,
   one button pair, one card recipe, one link look, hover layer, focus, motion.
   Site tokens and site parts are in site.css (appended after this file).
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--nav) + 16px);
  background: var(--bg);
}
body {
  font-family: var(--f-text);
  font-size: var(--t-body);
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
figure { margin: 0; }
h1, h2, h3, h4, h5, h6 {
  font-family: var(--f-display);
  font-weight: var(--display-weight);
  line-height: 1.12;
  letter-spacing: var(--track-display);
  margin: 0;
  text-wrap: balance;
  hyphens: manual;
}
p { margin: 0; }
:where(ul, ol) { margin: 0; padding: 0; }

:root {
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px;
  --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px; --s-10: 128px;
  --nav: 72px;
  --gut: 80px;
  --max: 1280px;
  --padt: 120px;
  --padb: 96px;
  --t-h1: clamp(38px, 2.9vw + 26px, 72px);
  --t-h2: clamp(30px, 1.6vw + 22px, 48px);
  --t-h3: clamp(22px, .55vw + 19px, 28px);
  --t-lead: clamp(18px, .3vw + 16.5px, 20px);
  --t-card: clamp(18px, .3vw + 16.5px, 20px);
  --t-body: 17px;
  --t-small: 14px;
  --t-label: 13px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --ease-enter: cubic-bezier(.22, 1, .36, 1);
  --m-in: 150ms; --m-out: 120ms; --m-press: 90ms; --m-image: 600ms; --m-image-out: 400ms;
  --line: color-mix(in oklab, var(--ink) 14%, transparent);
  --btn-h: 48px;
}
@media (max-width: 1023px) { :root { --gut: 48px; --padt: 96px; --padb: 72px; } }
@media (max-width: 639px)  { :root { --nav: 60px; --gut: 20px; --padt: 72px; --padb: 56px; --t-body: 17px; } }

.wrap { width: min(100% - 2 * var(--gut), var(--max)); margin-inline: auto; }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 639px) { .grid { gap: 12px; } }

.screen-reader-text {
  position: absolute !important; 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: var(--gut); top: 8px; z-index: 30;
  transform: translateY(-200%);
  background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: var(--r-sm);
  text-decoration: none; font-weight: 500;
}
.skip-link:focus { transform: none; }
:focus-visible { outline: 2px solid var(--action); outline-offset: 3px; }
.site-main:focus { outline: none; }

/* ------------------------------------------------------------------ nav */
.nav {
  position: sticky; top: 0; z-index: 20;
  height: var(--nav);
  background: var(--nav-bg, var(--bg));
  color: var(--nav-ink, var(--ink));
  border-bottom: 1px solid var(--nav-line, var(--line));
}
.admin-bar .nav { top: 32px; }
@media (max-width: 782px) { .admin-bar .nav { top: 46px; } }
@media (max-width: 600px) { .admin-bar .nav { top: 0; } }
.nav__wrap { height: 100%; display: flex; align-items: center; gap: var(--s-6); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; flex: none; }
.brand__name { font-family: var(--f-display); font-size: 22px; line-height: 1; letter-spacing: var(--track-display); }
.custom-logo-link img { max-height: calc(var(--nav) - 24px); width: auto; }
.nav__menu { margin-left: auto; display: flex; align-items: center; gap: var(--s-5); min-width: 0; }
.nav__list { list-style: none; display: flex; align-items: center; gap: 4px; }
.nav__list > li { position: relative; }
.nav__list a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px;
  font-size: 15px; font-weight: 500; text-decoration: none; white-space: nowrap;
  border-radius: var(--r-sm);
  transition: background-color var(--m-out) var(--ease), color var(--m-out) var(--ease);
}
.nav__list a:hover { background: color-mix(in oklab, currentColor 8%, transparent); transition-duration: var(--m-in); }
.nav__list .current-menu-item > a, .nav__list .current_page_item > a { box-shadow: inset 0 -2px 0 var(--action); border-radius: 0; }
.nav__list .sub-menu {
  position: absolute; top: 100%; left: 0; min-width: 240px; list-style: none; padding: 8px;
  background: var(--nav-bg, var(--bg)); border: 1px solid var(--nav-line, var(--line)); border-radius: var(--r-md);
  opacity: 0; visibility: hidden; transform: translateY(4px);
  transition: opacity 200ms var(--ease), transform 200ms var(--ease), visibility 0s 200ms;
}
.nav__list li:hover > .sub-menu, .nav__list li:focus-within > .sub-menu {
  opacity: 1; visibility: visible; transform: none; transition-delay: 150ms, 150ms, 0s;
}
.nav__list .sub-menu a { width: 100%; white-space: normal; padding: 8px 12px; min-height: 40px; }
.nav__search { display: flex; align-items: center; position: relative; }
.nav__search input {
  width: 150px; height: 40px; padding: 0 40px 0 14px; border: 1px solid var(--nav-line, var(--line));
  border-radius: var(--r-btn); background: transparent; font-size: 15px;
  transition: width 200ms var(--ease), border-color var(--m-out) var(--ease);
}
.nav__search input:focus { width: 210px; border-color: currentColor; outline: none; }
.nav__search button { position: absolute; right: 2px; width: 36px; height: 36px; display: grid; place-items: center; background: none; border: 0; cursor: pointer; }
.nav__search .icon { width: 18px; height: 18px; }
.nav__toggle { display: none; }

@media (max-width: 1023px) {
  .nav__toggle {
    display: grid; place-items: center; margin-left: auto; width: 44px; height: 44px; padding: 0;
    border: 1px solid var(--nav-line, var(--line)); border-radius: var(--r-btn); background: transparent; cursor: pointer;
  }
  .nav__toggle-close { display: none; }
  .is-menu-open .nav__toggle-open { display: none; }
  .is-menu-open .nav__toggle-close { display: block; }
  .nav__menu {
    position: fixed; inset: var(--nav) 0 0 0; z-index: 19; margin: 0;
    flex-direction: column; align-items: stretch; gap: var(--s-5);
    padding: var(--s-5) var(--gut) var(--s-8);
    background: var(--nav-bg, var(--bg)); overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity 200ms var(--ease), transform 200ms var(--ease), visibility 0s 200ms;
  }
  .admin-bar .nav__menu { top: calc(var(--nav) + 46px); }
  .is-menu-open .nav__menu { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .is-menu-open body { overflow: hidden; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__list a { min-height: 56px; font-size: 20px; padding: 0; border-bottom: 1px solid var(--nav-line, var(--line)); border-radius: 0; }
  .nav__list .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; border: 0; padding: 0 0 0 16px; background: none; }
  .nav__list .sub-menu a { font-size: 17px; min-height: 48px; }
  .nav__search input, .nav__search input:focus { width: 100%; height: 48px; }
}

/* ------------------------------------------------------------------ buttons and links */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: var(--btn-h); padding: 0 24px; border-radius: var(--r-btn);
  font-family: var(--f-text); font-size: 16px; font-weight: 500; line-height: 1.2; text-decoration: none;
  border: 1px solid transparent; cursor: pointer;
  transition: background-color var(--m-out) var(--ease), color var(--m-out) var(--ease), border-color var(--m-out) var(--ease), transform var(--m-press) var(--ease);
}
.btn--primary { background: var(--action); color: var(--action-ink); }
.btn--primary:hover { background: color-mix(in oklab, var(--action) 86%, var(--bg)); }
.btn--secondary { background: transparent; color: var(--ink); border-color: color-mix(in oklab, var(--ink) 22%, transparent); }
.btn--secondary:hover { background: color-mix(in oklab, var(--bg) 92%, var(--ink)); border-color: color-mix(in oklab, var(--ink) 34%, transparent); }
.btn .icon { width: 18px; height: 18px; transition: transform var(--m-in) var(--ease); }
.btn:hover .icon--arrow { transform: translateX(3px); }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { transform: translateY(-1px); transition-duration: var(--m-in); }
  .btn:active { transform: translateY(1px) scale(.985); }
}
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 639px) { .btn-row .btn { width: 100%; } }

.link, .prose a {
  color: var(--link, var(--action));
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .18em;
  text-decoration-color: color-mix(in oklab, currentColor 45%, transparent);
  transition: text-decoration-color var(--m-out) var(--ease);
}
.link:hover, .prose a:hover { text-decoration-color: currentColor; transition-duration: var(--m-in); }

/* ------------------------------------------------------------------ cards (one recipe) */
.grid--cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 24px; }
@media (max-width: 1023px) { .grid--cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 639px)  { .grid--cards { grid-template-columns: 1fr; gap: 32px; } }
.card { position: relative; min-width: 0; }
.card__link { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: inherit; }
.card__media { position: relative; overflow: hidden; aspect-ratio: 4 / 3; background: var(--surface); border-radius: var(--r-lg); }
.card__no { display: none; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--m-image-out) var(--ease); }
.card__body { padding-top: var(--s-4); display: flex; flex-direction: column; gap: var(--s-2); }
.card__eyebrow { font-size: var(--t-label); font-weight: 500; color: var(--muted); }
.card__title { font-size: var(--t-card); line-height: 1.25; letter-spacing: -.01em; }
.card__text { font-size: 16px; line-height: 1.55; color: var(--muted-text, var(--ink)); opacity: .86; }
@media (hover: hover) and (pointer: fine) {
  .card__link { transition: transform var(--m-out) var(--ease); }
  .card__link:hover { transform: translateY(-2px); transition-duration: var(--m-in); }
  .card__link:hover .card__media img { transform: scale(1.03); transition-duration: var(--m-image); }
  .card__link:hover .card__title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .18em; }
}

/* ------------------------------------------------------------------ sections (front page) */
.section { padding: var(--padt) 0 var(--padb); }
.section__head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; margin-bottom: var(--s-7); align-items: end; }
.section__title { grid-column: 1 / span 7; font-size: var(--t-h2); }
.section__more { grid-column: 9 / -1; justify-self: end; }
@media (max-width: 639px) {
  .section__head { grid-template-columns: 1fr; margin-bottom: var(--s-6); }
  .section__title, .section__more { grid-column: 1 / -1; justify-self: start; }
}
.eyebrow { font-size: var(--t-label); font-weight: 500; color: var(--muted); margin-bottom: var(--s-4); }

/* ------------------------------------------------------------------ entry (posts and pages) */
.entry__head { padding: var(--s-8) 0 var(--s-7); }
.entry__eyebrow { margin: var(--s-6) 0 var(--s-4); font-size: var(--t-label); font-weight: 500; }
.entry__eyebrow a { text-decoration: none; color: var(--action); }
.entry__title { font-size: var(--t-h1); max-width: 20ch; }
.entry__lead { margin-top: var(--s-5); font-size: var(--t-lead); line-height: 1.55; max-width: 62ch; color: var(--muted); }
.entry--page .entry__title { margin-top: var(--s-6); }
.meta { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: var(--s-5); font-size: var(--t-small); color: var(--muted); }
.meta__item { display: inline-flex; align-items: center; gap: 6px; }
.meta .icon { width: 16px; height: 16px; }
.entry__hero { margin-bottom: var(--s-8); }
.entry__hero img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--r-lg); }
.entry__layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-7); padding-bottom: var(--s-9); }
@media (min-width: 1024px) {
  .entry__layout { grid-template-columns: 260px minmax(0, 720px); justify-content: start; column-gap: clamp(48px, 6vw, 112px); }
  .entry__aside { position: sticky; top: calc(var(--nav) + 32px); align-self: start; max-height: calc(100vh - var(--nav) - 64px); overflow: auto; }
}
.entry__aside:empty { display: none; }
@media (min-width: 1024px) { .entry__layout:has(.entry__aside:empty) { grid-template-columns: minmax(0, 720px); } }

.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 0; font-size: var(--t-small); color: var(--muted); }
.crumbs li + li::before { content: "/"; margin: 0 10px; opacity: .5; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

/* the reading column */
.prose { font-size: var(--t-body); line-height: 1.75; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: clamp(26px, 1vw + 20px, 34px); margin-top: 2.2em; line-height: 1.2; }
.prose h3 { font-size: clamp(21px, .5vw + 18px, 24px); margin-top: 1.9em; line-height: 1.25; }
.prose h4 { font-size: 19px; margin-top: 1.6em; }
.prose h2 + *, .prose h3 + *, .prose h4 + * { margin-top: .7em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .4em; }
.prose li::marker { color: var(--action); }
.prose img { border-radius: var(--r-md); height: auto; }
.prose figure, .prose .wp-caption { max-width: 100%; }
.prose figcaption, .prose .wp-caption-text { font-size: var(--t-small); color: var(--muted); margin-top: 8px; }
.prose blockquote { margin: 1.6em 0; padding: 0 0 0 24px; border-left: 2px solid var(--action); font-family: var(--f-display); font-size: 1.25em; line-height: 1.45; }
.prose table { width: 100%; border-collapse: collapse; font-size: 16px; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { font-weight: 500; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.4em 0; }
.prose strong, .prose b { font-weight: 500; }
.prose .alignleft { float: left; margin: .3em 1.5em 1em 0; max-width: 50%; }
.prose .alignright { float: right; margin: .3em 0 1em 1.5em; max-width: 50%; }
.prose .aligncenter { margin-left: auto; margin-right: auto; }
.prose::after { content: ""; display: table; clear: both; }
@media (max-width: 639px) { .prose .alignleft, .prose .alignright { float: none; margin: 1em 0; max-width: 100%; } }
.prose iframe { max-width: 100%; }

.entry__tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: var(--s-7) !important; padding: 0 !important; }
.entry__tags a { display: inline-flex; min-height: 36px; align-items: center; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; font-size: 14px; color: var(--ink); }

/* table of contents */
.toc { font-size: 15px; }
.toc__toggle {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 0 0 12px; border: 0; background: none;
  font-weight: 500; text-align: left; cursor: default; border-bottom: 1px solid var(--line);
}
.toc__toggle .icon { width: 18px; height: 18px; color: var(--action); }
.toc__count { margin-left: auto; font-size: 13px; color: var(--muted); }
.toc__list { list-style: none; counter-reset: toc; margin-top: 8px; }
.toc__list li { counter-increment: toc; }
.toc__list a {
  display: grid; grid-template-columns: 28px 1fr; padding: 7px 0; text-decoration: none; line-height: 1.4; color: var(--muted);
  transition: color var(--m-out) var(--ease);
}
.toc__list a::before { content: counter(toc, decimal-leading-zero); font-size: 12px; padding-top: 2px; font-variant-numeric: tabular-nums; }
.toc__list a:hover, .toc__list a[aria-current] { color: var(--ink); }
.toc__list a[aria-current]::before { color: var(--action); }
@media (max-width: 1023px) {
  .toc { border: 1px solid var(--line); border-radius: var(--r-md); padding: 0 16px; }
  .toc__toggle { min-height: 52px; padding: 0; border: 0; cursor: pointer; }
  .toc__list { display: none; padding-bottom: 12px; }
  .toc.is-open .toc__list { display: block; }
}

.entry__widgets { margin-top: var(--s-7); font-size: 15px; }
.widget + .widget { margin-top: var(--s-6); }
.widget__title { font-family: var(--f-text); font-size: 15px; font-weight: 500; margin-bottom: 12px; letter-spacing: 0; }
.widget ul { list-style: none; }
.widget li { padding: 6px 0; border-bottom: 1px solid var(--line); }
.widget a { text-decoration: none; }
.widget a:hover { text-decoration: underline; }

/* related */
.related { padding: var(--s-9) 0; background: var(--surface); }
.related__title { font-size: var(--t-h2); margin-bottom: var(--s-7); }

/* archive */
.archive { padding: var(--s-8) 0 var(--s-9); }
.archive__head { margin: var(--s-6) 0 var(--s-8); max-width: 820px; }
.archive__title { font-size: var(--t-h1); }
.archive__intro { margin-top: var(--s-5); color: var(--muted); font-size: var(--t-lead); }
.archive__code { font-family: var(--f-display); font-size: clamp(96px, 14vw, 200px); line-height: .9; color: var(--action); margin-bottom: var(--s-5); }
.archive--404 .btn { margin-top: var(--s-5); }
.empty { max-width: 620px; }

.pager { margin-top: var(--s-8); }
.pager ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.pager a, .pager span {
  display: inline-grid; place-items: center; min-width: 44px; min-height: 44px; padding: 0 14px;
  border: 1px solid var(--line); border-radius: var(--r-btn); text-decoration: none; font-size: 15px;
}
.pager .current { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.pager a:hover { border-color: var(--ink); }

/* search form */
.searchform { margin-top: var(--s-6); max-width: 560px; }
.searchform__label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 8px; }
.searchform__row { display: flex; gap: 8px; }
.searchform__input { flex: 1; min-width: 0; height: var(--btn-h); padding: 0 16px; border: 1px solid color-mix(in oklab, var(--ink) 28%, transparent); border-radius: var(--r-btn); background: var(--bg); font-size: 16px; }

/* comments */
.comments-wrap { padding-bottom: var(--s-9); max-width: 720px; }
.comments__list { list-style: none; padding: 0; }
.comment-form input:not([type=submit]):not([type=checkbox]), .comment-form textarea { width: 100%; padding: 12px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--bg); }

/* ------------------------------------------------------------------ footer */
.closing { background: var(--g-dark); color: var(--dark-ink); padding: var(--s-9) 0 var(--s-7); --line: color-mix(in oklab, var(--dark-ink) 16%, transparent); }
.closing__wrap { display: grid; gap: var(--s-9); }
.closing__dir { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--s-6) 24px; padding-top: var(--s-7); border-top: 1px solid var(--line); }
.closing__brand { grid-column: 1 / span 5; }
.closing__tag { margin-top: var(--s-4); max-width: 36ch; opacity: .78; font-size: 16px; }
.closing__menu { grid-column: 7 / -1; }
.closing__list { list-style: none; columns: 2; column-gap: 24px; }
.closing__list a { display: inline-block; padding: 6px 0; text-decoration: none; opacity: .86; }
.closing__list a:hover { opacity: 1; text-decoration: underline; }
.closing__widgets { grid-column: 1 / -1; }
.closing__legal { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 14px; opacity: .72; padding-top: var(--s-5); }
.closing__legal .link { color: inherit; }
@media (max-width: 639px) {
  .closing__brand, .closing__menu { grid-column: 1 / -1; }
}

/* ------------------------------------------------------------------ the hero's entrance (once) */
@media (prefers-reduced-motion: no-preference) {
  html.js[data-motion="on"]:not(.is-entered) [data-enter] > * { opacity: 0; transform: translateY(14px); }
  html[data-motion="on"] [data-enter] > * { transition: opacity 700ms var(--ease-enter), transform 700ms var(--ease-enter); }
  html[data-motion="on"] [data-enter] > *:nth-child(2) { transition-delay: 80ms; }
  html[data-motion="on"] [data-enter] > *:nth-child(3) { transition-delay: 160ms; }
  html[data-motion="on"] [data-enter] > *:nth-child(4) { transition-delay: 240ms; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ==========================================================================
   Tegeve – Tidskrift. Paper, black print, one biro blue. Instrument Serif /
   Hanken Grotesk. Links are struck under as with a pen.
   ========================================================================== */
:root {
  --bg: #fbfaf6;
  --surface: #f1efe8;
  --ink: #141414;
  --muted: #5a5853;
  --action: #1a4be0;
  --action-ink: #ffffff;
  --link: #1a4be0;
  --g-dark: #141414;
  --dark-ink: #f3f1ea;
  --f-display: 'Instrument Serif', 'Times New Roman', serif;
  --f-text: 'Hanken Grotesk', 'Helvetica Neue', Arial, sans-serif;
  --display-weight: 400;
  --track-display: -0.016em;
  --r-lg: 2px; --r-md: 2px; --r-sm: 2px; --r-btn: 2px;
  --t-h1: clamp(52px, 4.4vw + 30px, 112px);
  --t-h2: clamp(38px, 2.2vw + 26px, 64px);
  --t-card: clamp(22px, .5vw + 19px, 26px);
}
.muted { color: var(--muted); font-style: italic; }
.brand { gap: 12px; }
.brand .mark { width: 30px; height: 30px; color: var(--action); }
.brand__name { font-family: var(--f-display); font-style: italic; font-size: 30px; letter-spacing: -.01em; }
.nav { --nav-line: var(--ink); }
.nav__list a { font-size: 15px; }

/* the pen stroke under links */
.prose a, .link, .toc-list__title, .chapter__name, .contents__name {
  text-decoration: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 8' preserveAspectRatio='none'%3E%3Cpath d='M1 5.5c30-3 60-3.5 98-2.2 36 1.2 64 2.2 100 .2' fill='none' stroke='%231a4be0' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: 0 100%; background-size: 0% .32em;
  padding-bottom: .12em;
  transition: background-size 420ms var(--ease-enter);
}
.prose a { background-size: 100% .32em; color: var(--ink); }
.prose a:hover { color: var(--action); }
.link:hover, .toc-list__link:hover .toc-list__title, .chapter__link:hover .chapter__name, .contents a:hover .contents__name,
.toc-list__link:focus-visible .toc-list__title, .chapter__link:focus-visible .chapter__name { background-size: 100% .32em; }

/* ------------------------------------------------------------------ the cover */
.cover-hero { padding: var(--s-8) 0 var(--s-9); border-bottom: 1px solid var(--ink); }
.cover-hero__wrap { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; align-items: end; }
.cover-hero__mast { grid-column: 1 / span 7; }
.cover-hero__kicker { font-size: var(--t-label); font-weight: 500; text-transform: none; padding-bottom: 12px; border-bottom: 1px solid var(--ink); margin-bottom: var(--s-6); display: flex; justify-content: space-between; }
.cover-hero__title { font-size: var(--t-h1); line-height: .92; letter-spacing: -.025em; }
.cover-hero__title::first-letter { color: var(--action); font-style: italic; }
.cover-hero__lead { margin-top: var(--s-6); font-size: var(--t-lead); line-height: 1.55; max-width: 46ch; color: var(--muted); }
.cover-hero .btn-row { margin-top: var(--s-6); }
.cover-hero__side { grid-column: 9 / -1; display: grid; gap: var(--s-6); }
.contents { border-top: 1px solid var(--ink); padding-top: 12px; }
.venn { margin: 0; }
.venn svg { width: 100%; height: auto; overflow: visible; }
.venn__c { fill: color-mix(in oklab, var(--action) 7%, transparent); stroke: var(--action); stroke-width: 1.6; stroke-linecap: round; stroke-dasharray: 600; stroke-dashoffset: 0; }
.venn__c--2 { fill: color-mix(in oklab, var(--ink) 4%, transparent); stroke: var(--ink); }
.venn__c--3 { fill: transparent; stroke: var(--ink); stroke-dasharray: 3 5; }
.venn__t { font-family: var(--f-display); font-style: italic; font-size: 24px; fill: var(--ink); }
.venn__core circle { fill: var(--action); transition: transform 260ms var(--ease-enter); transform-origin: 210px 148px; }
.venn__core text { fill: #fff; font-family: var(--f-text); font-size: 20px; pointer-events: none; }
.venn__core:hover circle, .venn__core:focus-visible circle { transform: scale(1.18); }
.venn__label { display: inline-block; margin-top: 8px; font-size: 15px; color: var(--ink); }
@media (prefers-reduced-motion: no-preference) {
  html.js:not(.is-entered) .venn__c--1, html.js:not(.is-entered) .venn__c--2 { stroke-dashoffset: 600; }
  .venn__c--1, .venn__c--2 { transition: stroke-dashoffset 1600ms var(--ease-enter); }
  .venn__c--2 { transition-delay: 250ms; }
}
.contents__title { font-size: var(--t-label); font-weight: 500; margin-bottom: var(--s-4); }
.contents__list { list-style: none; }
.contents__list a {
  display: grid; grid-template-columns: 36px auto 1fr auto; align-items: baseline; gap: 10px;
  padding: 12px 0; text-decoration: none; color: inherit; border-bottom: 1px solid var(--line);
}
.contents__no { font-size: 13px; color: var(--action); font-variant-numeric: tabular-nums; font-weight: 500; }
.contents__name { font-family: var(--f-display); font-size: 26px; line-height: 1.1; }
.contents__dots { border-bottom: 1px dotted color-mix(in oklab, var(--ink) 40%, transparent); transform: translateY(-5px); }
.contents__time { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
@media (max-width: 1023px) {
  .cover-hero__mast, .cover-hero__side { grid-column: 1 / -1; }
  .cover-hero__side { margin-top: var(--s-7); }
  .venn { max-width: 420px; }
}

/* ------------------------------------------------------------------ concepts as chapters */
.chapters { background: var(--surface); }
.chapters__list { list-style: none; border-top: 1px solid var(--ink); }
.chapter__link {
  display: grid; grid-template-columns: 160px 1fr 64px; gap: 24px; align-items: center;
  padding: 28px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit;
  transition: background-color var(--m-out) var(--ease);
}
.chapter__no { font-family: var(--f-display); font-style: italic; font-size: 112px; line-height: .8; color: transparent; -webkit-text-stroke: 1px var(--ink); transition: color var(--m-in) var(--ease), -webkit-text-stroke-color var(--m-in) var(--ease); }
.chapter__body { display: grid; gap: 8px; max-width: 62ch; }
.chapter__name { font-family: var(--f-display); font-size: clamp(32px, 1.4vw + 24px, 48px); line-height: 1.05; justify-self: start; }
.chapter__intro { font-size: 17px; line-height: 1.55; color: var(--muted); }
.chapter__go { justify-self: end; width: 48px; height: 48px; display: grid; place-items: center; border: 1px solid var(--ink); border-radius: 50%; transition: background-color var(--m-out) var(--ease), color var(--m-out) var(--ease), transform var(--m-out) var(--ease); }
.chapter__go .icon { width: 20px; height: 20px; }
.chapter__link:hover .chapter__no { color: var(--action); -webkit-text-stroke-color: var(--action); }
.chapter__link:hover .chapter__go { background: var(--action); border-color: var(--action); color: #fff; transform: translateX(4px); }
@media (max-width: 767px) {
  .chapter__link { grid-template-columns: 64px 1fr; }
  .chapter__no { font-size: 64px; }
  .chapter__go { display: none; }
}

/* ------------------------------------------------------------------ articles as a contents list */
.toc-list { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; border-top: 1px solid var(--ink); }
.toc-list__link { display: grid; grid-template-columns: 36px 104px 1fr; gap: 20px; align-items: center; padding: 20px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit; height: 100%; }
.toc-list__no { font-size: 13px; color: var(--action); font-weight: 500; font-variant-numeric: tabular-nums; align-self: start; padding-top: 4px; }
.toc-list__thumb { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--surface); }
.toc-list__thumb img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); transition: filter var(--m-image) var(--ease), transform var(--m-image-out) var(--ease); }
.toc-list__link:hover .toc-list__thumb img { filter: none; transform: scale(1.03); transition-duration: var(--m-image); }
.toc-list__body { display: grid; gap: 6px; }
.toc-list__title { font-family: var(--f-display); font-size: 24px; line-height: 1.15; justify-self: start; }
.toc-list__meta { font-size: 13px; color: var(--muted); }
@media (max-width: 1023px) { .toc-list { grid-template-columns: 1fr; } }
@media (max-width: 639px) { .toc-list__link { grid-template-columns: 28px 80px 1fr; gap: 14px; } .toc-list__title { font-size: 20px; } }

/* the typographic cover */
.cover { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between; padding: 10% 10% 8%; background: var(--ink); color: var(--bg); }
.cover__letter { font-family: var(--f-display); font-style: italic; font-size: clamp(40px, 7vw, 120px); line-height: .8; color: var(--bg); }
.toc-list .cover__letter { font-size: 52px; }
.cover__rule { height: 1px; background: var(--action); width: 40%; }
.cover__site { font-size: 11px; letter-spacing: .02em; opacity: .7; }
.toc-list .cover__site, .toc-list .cover__rule { display: none; }

/* ------------------------------------------------------------------ text */
.reading { border-top: 1px solid var(--ink); }
.prose { font-size: 18px; }
.prose h2 { font-size: clamp(32px, 1.4vw + 24px, 46px); line-height: 1.05; }
.prose h3 { font-family: var(--f-text); font-weight: 500; font-size: 20px; letter-spacing: -.01em; }
.prose blockquote { border-left: 0; padding-left: 0; font-style: italic; font-size: 1.6em; line-height: 1.25; }
.prose blockquote::before { content: "“"; display: block; font-family: var(--f-display); font-size: 2.2em; line-height: .6; color: var(--action); }
.prose img { border-radius: 0; filter: grayscale(.15); }
.entry__head { border-bottom: 1px solid var(--ink); margin-bottom: var(--s-8); }
.entry__title { line-height: .95; letter-spacing: -.025em; max-width: 16ch; }
.entry__hero img { border-radius: 0; }
.card__media { border-radius: 0; }
.card__title { font-family: var(--f-display); font-size: var(--t-card); }
.card__no { display: block; position: absolute; left: 0; top: 0; z-index: 1; background: var(--action); color: #fff; font-size: 13px; font-weight: 500; padding: 6px 10px; }
.related { background: var(--surface); border-top: 1px solid var(--ink); }
.next { border-top: 1px solid var(--ink); }
.next__link { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 8px 24px; padding: var(--s-8) 0; text-decoration: none; color: inherit; }
.next__kicker { font-size: var(--t-label); font-weight: 500; color: var(--action); }
.next__title { grid-column: 1; font-family: var(--f-display); font-size: var(--t-h2); line-height: 1; }
.next__link .icon { grid-column: 2; grid-row: 1 / span 2; width: 48px; height: 48px; transition: transform var(--m-out) var(--ease); }
.next__link:hover .icon { transform: translateX(6px); }

/* footer */
.closing { background: var(--ink); }
.closing .brand .mark { color: var(--action); }
.closing .brand__name { color: var(--dark-ink); }
.close__title { font-size: var(--t-label); font-weight: 500; padding-bottom: 12px; border-bottom: 1px solid var(--line); margin-bottom: var(--s-5); }
.close__list { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 32px; }
.close__list a { display: flex; align-items: baseline; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); text-decoration: none; font-family: var(--f-display); font-size: clamp(26px, 1vw + 20px, 36px); line-height: 1.1; }
.close__list a:hover { color: #9db4ff; }
.close__no { font-family: var(--f-text); font-size: 13px; color: #9db4ff; }
@media (max-width: 1023px) { .close__list { grid-template-columns: 1fr 1fr; } }
@media (max-width: 639px) { .close__list { grid-template-columns: 1fr; } }
