/* ==========================================================================
   Superbilgi Chipbook — paint-chip editorial theme
   ========================================================================== */

@font-face { font-family: "Gloock"; src: url(../fonts/gloock-latin.woff2) format("woff2"); font-weight: 400; font-style: normal; font-display: swap; 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: "Gloock"; src: url(../fonts/gloock-latin-ext.woff2) format("woff2"); font-weight: 400; font-style: normal; font-display: swap; 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: "Hanken Grotesk"; src: url(../fonts/hanken-latin.woff2) format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; 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: "Hanken Grotesk"; src: url(../fonts/hanken-latin-ext.woff2) format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; 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: "Hanken Grotesk"; src: url(../fonts/hanken-italic-latin.woff2) format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Martian Mono"; src: url(../fonts/martian-latin.woff2) format("woff2"); font-weight: 400 500; font-style: normal; font-display: swap; }

:root {
	--gesso: #F4F1EA;
	--paper: #FFFDF8;
	--ink: #1E1B18;
	--ink-2: #47403A;
	--mute: #776C62;
	--rule: #DDD5C8;
	--cobalt: #2F4FD6;
	--ochre: #E0A521;
	--cadmium: #E8572A;
	--viridian: #23735F;
	--madder: #C8496F;
	--umber: #6E4A33;
	--celadon: #A9C8B4;
	--lilac: #B9A6D6;
	--pig: var(--cadmium);
	--pig-ink: var(--ink);

	--display: "Gloock", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
	--sans: "Hanken Grotesk", "Segoe UI", system-ui, -apple-system, sans-serif;
	--mono: "Martian Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

	--wrap: 1240px;
	--gutter: clamp(16px, 4vw, 40px);
	--ease: cubic-bezier(.2, .8, .2, 1);
	--drip: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M0 0H100V90C94 93 90 99 85 95S79 86 72 90 63 97 55 93 45 86 37 91 27 99 20 94 9 88 0 92Z'/%3E%3C/svg%3E");
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 24px; }
body {
	margin: 0;
	background-color: var(--gesso);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .12 0 0 0 0 .1 0 0 0 0 .09 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
	color: var(--ink);
	font-family: var(--sans);
	font-size: 17px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-x: hidden;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 400; line-height: 1.08; letter-spacing: -.012em; margin: 0; }
p { margin: 0 0 1em; }
button, input, textarea, select { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--ochre); color: var(--ink); }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: 820px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--gesso); padding: 10px 16px; border-radius: 999px; text-decoration: none; transition: top .2s; }
.skip-link:focus { top: 12px; }
.site-main:focus { outline: none; }

.eyebrow { font-family: var(--mono); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); margin: 0 0 14px; display: flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ""; width: 22px; height: 10px; border-radius: 2px; background: linear-gradient(90deg, var(--cadmium) 0 33%, var(--ochre) 33% 66%, var(--cobalt) 66%); }

.stroke { display: block; width: min(220px, 70%); height: 14px; color: var(--cadmium); margin-top: 6px; }

.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 24px; border-radius: 999px; border: 0; font-weight: 600; font-size: 15px; text-decoration: none; cursor: pointer; transition: background .25s var(--ease), transform .25s var(--ease); }
.btn--ink { background: var(--ink); color: var(--gesso); }
.btn--ink:hover { background: var(--cadmium); color: var(--ink); transform: translateY(-2px); }

.cat-chip { display: inline-flex; align-items: center; gap: 7px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; padding: 6px 11px 6px 8px; border-radius: 999px; background: var(--paper); color: var(--ink); border: 1px solid var(--rule); transition: background .2s, color .2s, border-color .2s; }
.cat-chip::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--pig); }
.cat-chip:hover { background: var(--pig); color: var(--pig-ink); border-color: var(--pig); }
.cat-chip:hover::before { background: currentColor; }

/* ---------- Top paint rail ---------- */
.paint-rail { display: flex; height: 6px; }
.paint-rail i { flex: 1; }
.paint-rail i:nth-child(1), .colophon__deck i:nth-child(1) { background: var(--cobalt); }
.paint-rail i:nth-child(2), .colophon__deck i:nth-child(2) { background: var(--ochre); }
.paint-rail i:nth-child(3), .colophon__deck i:nth-child(3) { background: var(--cadmium); }
.paint-rail i:nth-child(4), .colophon__deck i:nth-child(4) { background: var(--viridian); }
.paint-rail i:nth-child(5), .colophon__deck i:nth-child(5) { background: var(--madder); }
.paint-rail i:nth-child(6), .colophon__deck i:nth-child(6) { background: var(--celadon); }
.paint-rail i:nth-child(7), .colophon__deck i:nth-child(7) { background: var(--umber); }
.paint-rail i:nth-child(8), .colophon__deck i:nth-child(8) { background: var(--lilac); }

/* ---------- Masthead ---------- */
.masthead { position: relative; z-index: 20; border-bottom: 1px solid var(--rule); background: var(--gesso); }
.masthead__in { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px; min-height: 88px; }
.brand { display: inline-block; text-decoration: none; }
.brand img { width: auto; height: 54px; }
.masthead__issue { justify-self: center; margin: 0; font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); display: flex; align-items: center; gap: 10px; }
.masthead__issue .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--viridian); box-shadow: 0 0 0 4px color-mix(in srgb, var(--viridian) 20%, transparent); }
.search-toggle { display: inline-flex; align-items: center; gap: 10px; background: transparent; border: 1.5px solid var(--ink); border-radius: 999px; padding: 10px 18px 10px 14px; cursor: pointer; font-weight: 600; font-size: 14px; transition: background .2s, color .2s; }
.search-toggle:hover, .search-toggle[aria-expanded="true"] { background: var(--ink); color: var(--gesso); }
.masthead__search { padding: 18px 0 24px; border-top: 1px dashed var(--rule); }
.masthead__search[hidden] { display: none; }

/* Header widget area (printed right after </header>) */
.header-widget { max-width: var(--wrap); margin: 18px auto 0; padding-inline: var(--gutter); text-align: center; }
.header-widget__title { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .12em; color: var(--mute); margin-bottom: 6px; }
.header-widget img { margin-inline: auto; }

/* ---------- Search form ---------- */
.searchform { display: flex; gap: 8px; max-width: 640px; }
.searchform__input { flex: 1; min-width: 0; padding: 14px 20px; border-radius: 999px; border: 1.5px solid var(--ink); background: var(--paper); font-size: 16px; }
.searchform__input::placeholder { color: #9b9086; }
.searchform__input:focus { outline: none; border-color: var(--cobalt); box-shadow: 0 0 0 4px color-mix(in srgb, var(--cobalt) 18%, transparent); }
.searchform__btn { border: 0; border-radius: 999px; padding: 0 22px; background: var(--ink); color: var(--gesso); font-weight: 600; cursor: pointer; transition: background .2s; }
.searchform__btn:hover { background: var(--cadmium); color: var(--ink); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(40px, 7vw, 96px) 0 clamp(32px, 5vw, 64px); }
.hero::before { content: ""; position: absolute; right: -8vw; top: 6%; width: min(720px, 70vw); aspect-ratio: 1; background: color-mix(in srgb, var(--ochre) 26%, var(--gesso)); border-radius: 62% 38% 55% 45% / 47% 58% 42% 53%; z-index: 0; }
.hero__in { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(24px, 4vw, 64px); align-items: center; }
.hero__title { font-size: clamp(46px, 7vw, 100px); line-height: .96; letter-spacing: -.028em; margin-bottom: 26px; }
.hero__text { font-size: clamp(17px, 1.5vw, 20px); color: var(--ink-2); max-width: 34ch; margin-bottom: 30px; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 20px; }
.hero__hint { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); }

/* Fan deck */
.fan { position: relative; height: clamp(420px, 44vw, 540px); }
.fan .chip { position: absolute; left: 50%; bottom: 26px; width: clamp(170px, 16vw, 214px); height: auto; margin-left: calc(clamp(170px, 16vw, 214px) / -2); transform-origin: 50% calc(100% - 24px); transform: rotate(var(--r)); transition: transform .45s var(--ease); z-index: calc(var(--i) + 1); }
.fan .chip > a { min-height: clamp(340px, 34vw, 430px); }
.fan .chip:hover, .fan .chip:focus-within { transform: rotate(var(--r)) translateY(-28px); z-index: 10; }
.fan .chip .chip__title { font-size: clamp(17px, 1.5vw, 20px); }
.fan__rivet { position: absolute; left: 50%; bottom: 36px; width: 26px; height: 26px; margin-left: -13px; border-radius: 50%; background: var(--ink); box-shadow: inset 0 0 0 8px var(--ink), inset 0 0 0 13px var(--gesso); z-index: 11; }
.fan .chip__rivet { display: none; }

/* ---------- Paint chip card ---------- */
.chip { position: relative; }
.chip > a { position: relative; display: flex; flex-direction: column; height: 100%; text-decoration: none; color: var(--ink); background: var(--paper); border-radius: 4px 4px 14px 14px; overflow: hidden; box-shadow: 0 1px 0 rgba(30, 27, 24, .08), 0 18px 30px -22px rgba(30, 27, 24, .55); transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.chip > a:hover { transform: translateY(-6px) rotate(-.6deg); box-shadow: 0 1px 0 rgba(30, 27, 24, .08), 0 28px 40px -24px rgba(30, 27, 24, .6); }
.chip__swatch { position: relative; display: block; aspect-ratio: 5 / 4; background: var(--pig); overflow: hidden; }
.chip__swatch img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.chip > a:hover .chip__swatch img { transform: scale(1.05); }
.chip__tints { display: grid; grid-template-columns: repeat(3, 1fr); height: 16px; }
.chip__tints i:nth-child(1) { background: var(--pig); }
.chip__tints i:nth-child(2) { background: color-mix(in srgb, var(--pig) 62%, var(--paper)); }
.chip__tints i:nth-child(3) { background: color-mix(in srgb, var(--pig) 30%, var(--paper)); }
.chip__label { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px 40px; flex: 1; }
.chip__code { font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); }
.chip__title { font-size: 20px; line-height: 1.16; letter-spacing: -.01em; margin: 0; }
.chip__rivet { position: absolute; left: 16px; bottom: 14px; width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--rule); }
.chip > a:hover .chip__rivet { border-color: var(--pig); }

.swatch-fill { display: block; width: 100%; height: 100%; min-height: 100%; background:
	radial-gradient(120% 80% at 18% 12%, color-mix(in srgb, #fff 26%, transparent), transparent 60%),
	repeating-linear-gradient(100deg, transparent 0 14px, color-mix(in srgb, #000 5%, transparent) 14px 16px),
	var(--pig); }

/* ---------- Section heads ---------- */
.section-head { display: flex; flex-direction: column; margin-bottom: 36px; }
.section-title { font-size: clamp(32px, 4vw, 52px); }

/* ---------- Stories ---------- */
.stories { padding-top: clamp(32px, 5vw, 64px); }
.stories__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(36px, 4vw, 56px) clamp(20px, 2.6vw, 36px); }
.story { position: relative; display: flex; flex-direction: column; min-width: 0; }
.story > a { display: flex; flex-direction: column; text-decoration: none; color: inherit; flex: 1; }
.story__media { position: relative; margin: 0 0 18px; aspect-ratio: 5 / 4; background: var(--pig); overflow: hidden; -webkit-mask: var(--drip) center / 100% 100% no-repeat; mask: var(--drip) center / 100% 100% no-repeat; }
.story__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.story > a:hover .story__media img { transform: scale(1.045); }
.story__body { display: flex; flex-direction: column; gap: 8px; }
.story__code { font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; color: var(--mute); display: flex; align-items: center; gap: 8px; }
.story__code::before { content: ""; width: 18px; height: 3px; border-radius: 3px; background: var(--pig); }
.story__title { font-size: clamp(22px, 2vw, 27px); line-height: 1.12; transition: color .2s; }
.story > a:hover .story__title { text-decoration: underline; text-decoration-color: var(--pig); text-decoration-thickness: 3px; text-underline-offset: 5px; }
.story__excerpt { color: var(--ink-2); font-size: 15.5px; line-height: 1.55; }
.story__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 16px; }
.story__meta { font-family: var(--mono); font-size: 10.5px; letter-spacing: .06em; color: var(--mute); text-transform: uppercase; }

.story--feature { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); column-gap: clamp(24px, 4vw, 56px); padding-bottom: clamp(36px, 4vw, 56px); border-bottom: 1px solid var(--rule); }
.story--feature > a { display: contents; }
.story--feature .story__media { grid-row: 1 / span 2; aspect-ratio: 16 / 11; margin: 0; }
.story--feature .story__body { align-self: end; }
.story--feature .story__title { font-size: clamp(32px, 4vw, 56px); line-height: 1.02; }
.story--feature .story__excerpt { font-size: 17.5px; max-width: 42ch; }
.story--feature .story__foot { grid-column: 2; align-self: start; }

/* ---------- Pager ---------- */
.pager { margin: clamp(48px, 6vw, 72px) 0 0; }
.pager ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.pager .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 46px; height: 46px; padding: 0 16px; border-radius: 999px; text-decoration: none; font-weight: 600; border: 1.5px solid var(--rule); background: var(--paper); transition: border-color .2s, background .2s, color .2s; }
.pager a.page-numbers:hover { border-color: var(--ink); }
.pager .page-numbers.current { background: var(--ink); color: var(--gesso); border-color: var(--ink); }
.pager .page-numbers.dots { border: 0; background: transparent; }

/* ---------- Popular Topics ---------- */
.pt { padding: clamp(56px, 8vw, 104px) 0 clamp(24px, 4vw, 48px); }
.pt__head { display: grid; grid-template-columns: auto 1fr; grid-template-areas: "eyebrow eyebrow" "title intro"; align-items: end; gap: 0 clamp(24px, 5vw, 80px); margin-bottom: clamp(28px, 4vw, 44px); }
.pt__head .eyebrow { grid-area: eyebrow; }
.pt__title { grid-area: title; font-size: clamp(38px, 5vw, 68px); line-height: 1; }
.pt__intro { grid-area: intro; margin: 0 0 10px; color: var(--ink-2); max-width: 46ch; justify-self: end; text-align: right; }
.pt__grid { --gap: clamp(14px, 2vw, 24px); --cols: 4; display: flex; flex-wrap: wrap; gap: var(--gap); }
.pt__grid > .chip { flex: 1 1 calc((100% - (var(--cols) - 1) * var(--gap)) / var(--cols)); min-width: 0; }
.pt__grid > .chip:nth-child(4n+2) > a { border-radius: 14px 4px 14px 14px; }
.pt__grid > .chip:nth-child(3n) .chip__swatch { aspect-ratio: 5 / 4; }

/* ---------- Archive head ---------- */
.archive-head { background: color-mix(in srgb, var(--pig) 13%, var(--gesso)); border-bottom: 1px solid color-mix(in srgb, var(--pig) 30%, var(--rule)); padding: clamp(28px, 4vw, 44px) 0 clamp(36px, 5vw, 64px); }
.archive-head__row { display: flex; align-items: center; gap: clamp(20px, 3vw, 40px); margin-top: 22px; }
.archive-head__swatch { position: relative; flex: none; width: clamp(80px, 9vw, 120px); height: clamp(110px, 12vw, 160px); }
.archive-head__swatch i { position: absolute; inset: 0; border-radius: 6px 6px 10px 10px; transform-origin: 50% 92%; box-shadow: 0 12px 20px -14px rgba(0, 0, 0, .5); }
.archive-head__swatch i:nth-child(1) { background: color-mix(in srgb, var(--pig) 35%, var(--paper)); transform: rotate(-16deg); }
.archive-head__swatch i:nth-child(2) { background: color-mix(in srgb, var(--pig) 65%, var(--paper)); transform: rotate(-6deg); }
.archive-head__swatch i:nth-child(3) { background: var(--pig); transform: rotate(5deg); }
.archive-head__title { font-size: clamp(38px, 6vw, 84px); line-height: .98; letter-spacing: -.025em; }
.archive-head__desc { color: var(--ink-2); max-width: 60ch; margin-top: 12px; }
.archive-head__desc p:last-child { margin: 0; }
.archive-head__count { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--mute); margin: 14px 0 0; }

.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); }
.crumbs a { text-decoration: none; color: var(--ink); border-bottom: 1.5px solid var(--pig); padding-bottom: 1px; }
.crumbs a:hover { color: var(--pig); }

/* ---------- Single ---------- */
.read-progress { position: fixed; top: 0; left: 0; right: 0; height: 4px; z-index: 60; pointer-events: none; }
.read-progress span { display: block; height: 100%; width: 100%; background: var(--pig); transform-origin: 0 50%; transform: scaleX(0); }
.entry-hero { position: relative; padding: clamp(28px, 4vw, 48px) 0 clamp(36px, 5vw, 64px); background: color-mix(in srgb, var(--pig) 15%, var(--gesso)); border-bottom: 1px solid color-mix(in srgb, var(--pig) 28%, var(--rule)); }
.entry-hero__in { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.entry-hero__copy { padding-bottom: clamp(0px, 3vw, 40px); }
.entry-title { font-size: clamp(36px, 5.2vw, 72px); line-height: 1; letter-spacing: -.025em; margin: 22px 0 18px; }
.entry-dek { font-size: clamp(17px, 1.6vw, 21px); color: var(--ink-2); max-width: 46ch; }
.entry-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); margin: 0; }
.entry-meta > * { display: inline-flex; align-items: center; gap: 8px; }
.entry-meta > * + *::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--pig); }
.entry-meta__by { color: var(--ink); }
.entry-hero__media { margin: 0; aspect-ratio: 4 / 3; background: var(--pig); overflow: hidden; -webkit-mask: var(--drip) center / 100% 100% no-repeat; mask: var(--drip) center / 100% 100% no-repeat; border-radius: 10px 10px 0 0; }
.entry-hero__media img { width: 100%; height: 100%; object-fit: cover; }

.entry-layout { display: grid; grid-template-columns: 200px minmax(0, 720px); justify-content: center; gap: clamp(28px, 5vw, 72px); padding-top: clamp(24px, 3vw, 40px); }
.entry-aside { position: sticky; top: 28px; align-self: start; display: flex; flex-direction: column; gap: 18px; }
.swatch-card { background: var(--paper); border-radius: 4px 4px 14px 14px; overflow: hidden; box-shadow: 0 18px 30px -24px rgba(30, 27, 24, .6); padding-bottom: 14px; position: relative; }
.swatch-card__colour { display: block; height: 120px; background: var(--pig); }
.swatch-card__tints { display: grid; grid-template-columns: repeat(3, 1fr); height: 14px; margin-bottom: 12px; }
.swatch-card__tints i:nth-child(1) { background: var(--pig); }
.swatch-card__tints i:nth-child(2) { background: color-mix(in srgb, var(--pig) 62%, var(--paper)); }
.swatch-card__tints i:nth-child(3) { background: color-mix(in srgb, var(--pig) 30%, var(--paper)); }
.swatch-card p { margin: 0; padding-inline: 14px; }
.swatch-card__code, .swatch-card__hex { font-family: var(--mono); font-size: 10px; letter-spacing: .1em; color: var(--mute); }
.swatch-card__name { font-family: var(--display); font-size: 26px; line-height: 1.2; }
.aside-jump { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; text-decoration: none; display: inline-flex; gap: 8px; align-items: center; padding: 10px 14px; border-radius: 999px; border: 1.5px solid var(--ink); align-self: flex-start; transition: background .2s, color .2s; }
.aside-jump:hover { background: var(--ink); color: var(--gesso); }

/* Article typography */
.entry-content { font-size: 18.5px; line-height: 1.75; color: #2a2622; min-width: 0; }
.entry-content > * { margin-top: 0; margin-bottom: 1.25em; }
.entry-content > p:first-child::first-letter { float: left; font-family: var(--display); font-size: 4.6em; line-height: .82; padding: .06em .12em 0 0; color: var(--pig); }
.entry-content h2 { font-size: clamp(28px, 3vw, 38px); margin: 1.8em 0 .6em; display: flex; align-items: baseline; gap: 14px; }
.entry-content h2::before { content: ""; flex: none; width: 16px; height: 16px; border-radius: 3px; background: var(--pig); transform: translateY(-2px); }
.entry-content h3 { font-size: clamp(22px, 2.3vw, 28px); margin: 1.6em 0 .5em; }
.entry-content h4 { font-family: var(--sans); font-weight: 700; font-size: 19px; margin: 1.4em 0 .4em; }
.entry-content a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--pig); text-decoration-thickness: 2px; text-underline-offset: 4px; transition: background .2s; }
.entry-content a:hover { background: color-mix(in srgb, var(--pig) 18%, transparent); }
.entry-content ul, .entry-content ol { padding-left: 1.3em; }
.entry-content li { margin-bottom: .45em; }
.entry-content li::marker { color: var(--pig); font-weight: 700; }
.entry-content blockquote { margin: 2em 0; padding: 0 0 0 clamp(18px, 3vw, 32px); border-left: 6px solid var(--pig); font-family: var(--display); font-size: clamp(22px, 2.4vw, 30px); line-height: 1.3; color: var(--ink); }
.entry-content blockquote p { margin-bottom: .4em; }
.entry-content blockquote cite { display: block; font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; font-style: normal; color: var(--mute); margin-top: 10px; }
.entry-content img { border-radius: 6px; }
.entry-content figure { margin-inline: 0; }
.entry-content figcaption, .wp-caption-text { font-family: var(--mono); font-size: 11px; letter-spacing: .04em; color: var(--mute); margin-top: 10px; }
.entry-content hr { border: 0; height: 12px; margin: 2.6em auto; width: 120px; background: radial-gradient(circle, var(--cobalt) 5px, transparent 6px) 0 0 / 40px 12px no-repeat, radial-gradient(circle, var(--ochre) 5px, transparent 6px) 40px 0 / 40px 12px no-repeat, radial-gradient(circle, var(--cadmium) 5px, transparent 6px) 80px 0 / 40px 12px no-repeat; }
.entry-content table { width: 100%; border-collapse: collapse; font-size: 16px; }
.entry-content th, .entry-content td { padding: 12px 14px; border-bottom: 1px solid var(--rule); text-align: left; }
.entry-content th { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); }
.entry-content code { font-family: var(--mono); font-size: .82em; background: color-mix(in srgb, var(--pig) 12%, var(--paper)); padding: .15em .4em; border-radius: 4px; }
.entry-content pre { background: var(--ink); color: var(--gesso); padding: 20px; border-radius: 8px; overflow-x: auto; font-size: 14px; }
.entry-content pre code { background: none; padding: 0; }
.entry-content iframe, .entry-content video { max-width: 100%; }
.entry-content .alignwide, .entry-content .alignfull { max-width: 100%; }
.entry-content .alignleft { float: left; margin: .3em 1.4em 1em 0; max-width: 50%; }
.entry-content .alignright { float: right; margin: .3em 0 1em 1.4em; max-width: 50%; }
.entry-content .aligncenter { margin-inline: auto; }
.entry-content .wp-block-button__link { background: var(--ink); color: var(--gesso); border-radius: 999px; text-decoration: none; }
.page-links { font-family: var(--mono); font-size: 12px; display: flex; gap: 10px; align-items: center; }

.entry-foot { display: flex; flex-direction: column; gap: 32px; max-width: 992px; padding-top: 36px; }
.entry-tags { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tag-link { display: inline-block; font-family: var(--mono); font-size: 11px; letter-spacing: .04em; text-decoration: none; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--rule); background: var(--paper); transition: border-color .2s; }
.tag-link:hover { border-color: var(--ink); }
.after-post { padding: 24px 0; border-top: 1px dashed var(--rule); border-bottom: 1px dashed var(--rule); }
.after-post-widget__title { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .12em; color: var(--mute); }

.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.post-nav__item > a { display: flex; flex-direction: column; gap: 8px; text-decoration: none; padding: 18px 0 0; border-top: 6px solid var(--pig); height: 100%; }
.post-nav__item--next > a { text-align: right; align-items: flex-end; }
.post-nav__dir { font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--mute); }
.post-nav__title { font-family: var(--display); font-size: clamp(19px, 2vw, 24px); line-height: 1.18; }
.post-nav__item > a:hover .post-nav__title { color: color-mix(in srgb, var(--pig) 75%, var(--ink)); }

/* ---------- Pages ---------- */
.page-head { padding-top: clamp(36px, 5vw, 64px); padding-bottom: 28px; }
.page-title { font-size: clamp(40px, 6vw, 76px); line-height: 1; letter-spacing: -.025em; margin-top: 20px; }
.page-updated { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); margin-top: 16px; }
.page-media { margin-top: 0; margin-bottom: 36px; }
.page-media img { border-radius: 8px; width: 100%; }
.page-entry .entry-content { padding-bottom: 64px; }
.page-entry { --pig: var(--viridian); }

/* ---------- Comments ---------- */
.comments { padding: 48px 0 24px; border-top: 1px solid var(--rule); margin-top: 32px; }
.comments__title, .comment-reply-title { font-size: clamp(26px, 3vw, 36px); margin-bottom: 24px; }
.comment-list { list-style: none; padding: 0; margin: 0 0 40px; }
.comment-list .children { list-style: none; padding-left: clamp(16px, 4vw, 40px); }
.comment-card { padding: 20px 0; border-bottom: 1px solid var(--rule); }
.comment-card__head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 8px; }
.comment-card__dot { width: 14px; height: 14px; border-radius: 4px; background: var(--pig); }
.comment-card__author a { text-decoration: none; }
.comment-card time { font-family: var(--mono); font-size: 10.5px; color: var(--mute); text-transform: uppercase; letter-spacing: .06em; }
.comment-card__body p:last-child { margin-bottom: 8px; }
.comment-reply-link, .cancel-reply { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; text-decoration: none; border-bottom: 1.5px solid var(--cadmium); }
.comment-form { display: grid; gap: 16px; }
.comment-form label { display: block; font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); margin-bottom: 6px; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea { width: 100%; padding: 14px 16px; border: 1.5px solid var(--rule); border-radius: 10px; background: var(--paper); font-size: 16px; }
.comment-form input:focus, .comment-form textarea:focus { outline: none; border-color: var(--ink); }
.comment-form-cookies-consent { display: flex; gap: 10px; align-items: flex-start; }
.comment-form-cookies-consent label { text-transform: none; letter-spacing: 0; font-family: var(--sans); font-size: 14px; }
.comment-notes, .logged-in-as { font-size: 14px; color: var(--mute); }

/* ---------- Empty / 404 ---------- */
.empty-state, .lost { text-align: center; padding: clamp(48px, 8vw, 96px) 0; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.empty-state .searchform, .lost .searchform { width: 100%; margin: 10px auto 18px; }
.empty-state__chip { width: 90px; height: 120px; border-radius: 6px 6px 12px 12px; background: linear-gradient(var(--ochre) 0 60%, color-mix(in srgb, var(--ochre) 50%, var(--paper)) 60% 80%, color-mix(in srgb, var(--ochre) 25%, var(--paper)) 80%); transform: rotate(-8deg); margin-bottom: 12px; }
.lost__chips { position: relative; width: 160px; height: 170px; margin-bottom: 18px; }
.lost__chips i { position: absolute; left: 50%; bottom: 0; width: 70px; height: 160px; margin-left: -35px; border-radius: 6px 6px 12px 12px; transform-origin: 50% 90%; }
.lost__chips i:nth-child(1) { background: var(--cobalt); transform: rotate(-22deg); }
.lost__chips i:nth-child(2) { background: var(--ochre); transform: rotate(0); }
.lost__chips i:nth-child(3) { background: var(--cadmium); transform: rotate(22deg); }
.lost__title { font-size: clamp(40px, 6vw, 80px); }
.lost__text { max-width: 48ch; color: var(--ink-2); }

/* ---------- Footer ---------- */
.colophon { margin-top: clamp(56px, 8vw, 96px); background: var(--ink); color: var(--gesso); position: relative; }
.colophon__deck { display: flex; align-items: flex-end; height: 34px; margin-top: -34px; padding-inline: var(--gutter); gap: 6px; max-width: var(--wrap); margin-inline: auto; }
.colophon__deck i { flex: 1; border-radius: 6px 6px 0 0; }
.colophon__deck i:nth-child(odd) { height: 100%; }
.colophon__deck i:nth-child(even) { height: 62%; }
.colophon__deck i:nth-child(3n) { height: 82%; }
.colophon__in { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: clamp(32px, 5vw, 72px); padding-top: clamp(48px, 6vw, 72px); padding-bottom: 48px; }
.colophon .brand img { height: 50px; }
.colophon__text { color: #C9C0B3; margin-top: 20px; max-width: 40ch; font-size: 15.5px; }
.colophon__label { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: #A79D90; margin-bottom: 16px; }
.foot-pages { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.foot-link { display: inline-block; text-decoration: none; padding: 5px 0; font-size: 16px; color: var(--gesso); background: linear-gradient(var(--ochre), var(--ochre)) 0 100% / 0 2px no-repeat; transition: background-size .3s var(--ease); }
.foot-link:hover { background-size: 100% 2px; }
.colophon .searchform__input { background: transparent; border-color: #5a524a; color: var(--gesso); }
.colophon .searchform__input::placeholder { color: #8d8378; }
.colophon .searchform__btn { background: var(--ochre); color: var(--ink); }
.colophon__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 22px; padding-bottom: 28px; border-top: 1px solid #39332d; font-family: var(--mono); font-size: 11px; letter-spacing: .08em; color: #A79D90; }
.colophon__base p { margin: 0; }
.to-top { text-decoration: none; color: var(--gesso); }
.to-top:hover { color: var(--ochre); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
	.pt__grid { --cols: 3; }
	.entry-layout { grid-template-columns: 170px minmax(0, 1fr); }
}
@media (max-width: 900px) {
	.masthead__issue { display: none; }
	.masthead__in { grid-template-columns: 1fr auto; min-height: 74px; }
	.brand img { height: 44px; }
	.hero__in { grid-template-columns: 1fr; }
	.hero::before { right: -30vw; top: auto; bottom: -10%; width: 110vw; }
	.fan { height: auto; display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 10px var(--gutter) 24px; margin-inline: calc(var(--gutter) * -1); scrollbar-width: none; }
	.fan::-webkit-scrollbar { display: none; }
	.fan .chip { position: relative; left: auto; bottom: auto; margin: 0; transform: rotate(calc(var(--r) / 10)); flex: 0 0 min(64vw, 240px); scroll-snap-align: center; }
	.fan .chip:hover, .fan .chip:focus-within { transform: none; }
	.fan .chip > a { min-height: 0; }
	.fan .chip__rivet { display: block; }
	.fan__rivet { display: none; }
	.stories__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.story--feature { grid-template-columns: 1fr; }
	.story--feature > a { display: flex; }
	.story--feature .story__media { margin-bottom: 20px; }
	.story--feature .story__foot { grid-column: auto; }
	.pt__head { grid-template-columns: 1fr; grid-template-areas: "eyebrow" "title" "intro"; }
	.pt__intro { justify-self: start; text-align: left; margin-top: 14px; }
	.entry-hero { background: color-mix(in srgb, var(--pig) 15%, var(--gesso)); }
	.entry-hero__in { grid-template-columns: 1fr; }
	.entry-layout { grid-template-columns: 1fr; }
	.entry-aside { position: static; flex-direction: row; align-items: center; flex-wrap: wrap; }
	.swatch-card { display: grid; grid-template-columns: 64px 1fr; grid-template-rows: auto auto auto; align-items: center; padding: 0; width: 100%; max-width: 360px; border-radius: 10px; }
	.swatch-card__colour { grid-row: 1 / span 3; height: 100%; min-height: 76px; }
	.swatch-card__tints { display: none; }
	.swatch-card p { padding: 0 14px; }
	.swatch-card__name { font-size: 20px; }
	.colophon__in { grid-template-columns: 1fr 1fr; }
	.colophon__brand { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
	.pt__grid { --cols: 2; }
	.chip__title { font-size: 17px; }
	.chip__label { padding: 12px 12px 36px; }
}
@media (max-width: 600px) {
	body { font-size: 16px; }
	.search-toggle__label { display: none; }
	.search-toggle { padding: 10px; }
	.brand img { height: 38px; }
	.stories__grid { grid-template-columns: 1fr; }
	.entry-content { font-size: 17.5px; }
	.post-nav { grid-template-columns: 1fr; }
	.post-nav__item--next > a { text-align: left; align-items: flex-start; }
	.colophon__in { grid-template-columns: 1fr; }
	.searchform__btn { padding: 0 16px; }
	.archive-head__row { align-items: flex-start; }
	.stories__grid { gap: 28px; }
	.story:not(.story--feature) { padding-bottom: 24px; border-bottom: 1px solid var(--rule); }
	.story:not(.story--feature) > a { display: grid; grid-template-columns: 38% 1fr; gap: 16px; align-items: start; }
	.story:not(.story--feature) .story__media { margin: 0; aspect-ratio: 1; }
	.story:not(.story--feature) .story__title { font-size: 20px; }
	.story:not(.story--feature) .story__excerpt { display: none; }
	.story:not(.story--feature) .story__foot { margin-top: 12px; }
}
@media (max-width: 380px) {
	.pt__grid { --cols: 1; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

@media print {
	.paint-rail, .masthead__tools, .pt, .colophon, .entry-aside, .read-progress, .post-nav, .comments { display: none !important; }
	body { background: #fff; }
}
