@font-face{font-family:'Roboto';src:url('../fonts/roboto-latin-300-normal.woff2') format('woff2');font-weight:300;font-style:normal;font-display:swap;}
@font-face{font-family:'Roboto';src:url('../fonts/roboto-latin-400-normal.woff2') format('woff2');font-weight:400;font-style:normal;font-display:swap;}
@font-face{font-family:'Roboto';src:url('../fonts/roboto-latin-400-italic.woff2') format('woff2');font-weight:400;font-style:italic;font-display:swap;}
@font-face{font-family:'Roboto';src:url('../fonts/roboto-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; }
}

/* ==========================================================================
   Periferi – Galleri (Material Design). Transparent header over a full-bleed
   picture that turns into a crimson bar, light Roboto headlines, raised
   buttons and cards, an edge-to-edge mosaic, a dark footer.
   ========================================================================== */
:root {
  --bg: #ffffff;
  --surface: #f5f5f5;
  --ink: #212121;
  --muted: #616161;
  --action: #ad1457;
  --action-ink: #ffffff;
  --accent: #ffb300;
  --link: #ad1457;
  --g-dark: #212121;
  --dark-ink: #e0e0e0;
  --f-display: 'Roboto', 'Helvetica Neue', Arial, sans-serif;
  --f-text: 'Roboto', 'Helvetica Neue', Arial, sans-serif;
  --display-weight: 300;
  --track-display: -0.01em;
  --r-lg: 4px; --r-md: 4px; --r-sm: 2px; --r-btn: 2px;
  --t-body: 17px;
  --e1: 0 1px 3px rgba(0,0,0,.12), 0 1px 2px rgba(0,0,0,.24);
  --e2: 0 3px 6px rgba(0,0,0,.16), 0 3px 6px rgba(0,0,0,.23);
  --e3: 0 10px 20px rgba(0,0,0,.19), 0 6px 6px rgba(0,0,0,.23);
  --ease-md: cubic-bezier(.4, 0, .2, 1);
}
body { font-weight: 400; color: var(--ink); }
h1, h2, h3 { font-weight: 300; }
.muted { color: var(--muted); }

/* ------------------------------------------------------------------ header: a crimson app bar */
.nav {
  --nav-bg: var(--action); --nav-ink: #fff; --nav-line: transparent;
  box-shadow: var(--e2);
  transition: background-color 300ms var(--ease-md), box-shadow 300ms var(--ease-md);
}
.brand { color: #fff; }
.brand .mark { width: 28px; height: 28px; }
.brand__name { font-family: var(--f-text); font-weight: 500; font-size: 22px; letter-spacing: .04em; text-transform: uppercase; }
.nav__list a { font-size: 14px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; border-radius: 2px; }
.nav__list a:hover { background: rgba(255,255,255,.12); }
.nav__list .current-menu-item > a, .nav__list .current_page_item > a { box-shadow: none; color: var(--accent); }
.nav__search input { border-color: rgba(255,255,255,.4); color: #fff; }
.nav__search input::placeholder { color: rgba(255,255,255,.75); }
.nav__search input:focus { border-color: #fff; }
.nav__search button { color: #fff; }
.nav__toggle { border-color: rgba(255,255,255,.5); color: #fff; }
.nav .sub-menu { background: #fff; color: var(--ink); box-shadow: var(--e2); border: 0; }
@media (max-width: 1023px) {
  .nav__menu { background: var(--action); }
  .nav__list a { border-bottom-color: rgba(255,255,255,.2); }
}
/* front page: clear over the picture, solid after scrolling */
.has-mhero .nav { position: fixed; left: 0; right: 0; background: transparent; box-shadow: none; }
.has-mhero.is-scrolled .nav, .has-mhero.is-menu-open .nav { background: var(--action); box-shadow: var(--e2); }

/* ------------------------------------------------------------------ material buttons */
.mbtn, .btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 28px; border: 0; border-radius: 2px;
  font-family: var(--f-text); font-size: 15px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; text-decoration: none;
  box-shadow: var(--e1); cursor: pointer;
  transition: box-shadow 280ms var(--ease-md), background-color 200ms var(--ease-md), transform 90ms var(--ease-md);
}
.mbtn:hover, .btn:hover { box-shadow: var(--e2); transform: none; }
.mbtn:active, .btn:active { box-shadow: var(--e3); }
.mbtn--primary, .btn--primary { background: var(--action); color: #fff; }
.mbtn--primary:hover, .btn--primary:hover { background: #c2185b; }
.mbtn--accent { background: var(--accent); color: #212121; }
.mbtn--accent:hover { background: #ffc107; }
.btn--secondary { background: #fff; color: var(--action); border: 0; }

/* ------------------------------------------------------------------ hero: today's work full-bleed */
.mhero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 100svh; display: flex; align-items: center; justify-content: center;
  padding: calc(var(--nav) + 48px) 0 96px; color: #fff; text-align: center; background: #1a1a1a;
}
.mhero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.mhero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(20, 10, 14, .58); }
.mhero__wrap { display: flex; flex-direction: column; align-items: center; }
.mhero__kicker { font-size: 14px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 20px; }
.mhero__title { font-weight: 300; font-size: clamp(44px, 4.6vw + 22px, 96px); line-height: 1.06; letter-spacing: -.01em; max-width: 16ch; color: #fff; }
.mhero__btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin-top: 40px; }
.mhero__credit { margin-top: 56px; font-size: 14px; color: rgba(255,255,255,.8); text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.35); padding-bottom: 2px; }
.mhero__credit:hover { color: #fff; border-color: #fff; }
.admin-bar .mhero { min-height: calc(100svh - 32px); }
@media (max-width: 639px) { .mhero__btns { flex-direction: column; width: 100%; } .mhero__btns .mbtn { width: 100%; } }

/* ------------------------------------------------------------------ sections */
.msec { padding: 112px 0; }
.msec--grey { background: var(--surface); }
.msec__title { text-align: center; font-weight: 300; font-size: clamp(34px, 1.8vw + 24px, 52px); line-height: 1.15; }
.msec__sub { text-align: center; color: var(--muted); font-size: 18px; margin: 12px auto 64px; max-width: 46ch; }
@media (max-width: 639px) { .msec { padding: 72px 0; } .msec__sub { margin-bottom: 40px; } }

/* the discover grid: icon, title, text */
.features { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px 40px; }
.feature a { display: grid; grid-template-columns: 40px 1fr; gap: 20px; text-decoration: none; color: inherit; }
.feature__icon { color: var(--action); padding-top: 2px; transition: transform 280ms var(--ease-md); }
.feature__title { display: block; font-size: 21px; font-weight: 400; line-height: 1.3; margin-bottom: 8px; }
.feature__text { display: block; font-size: 16px; line-height: 1.65; color: var(--muted); }
.feature a:hover .feature__title { color: var(--action); }
.feature a:hover .feature__icon { transform: scale(1.12); }
@media (max-width: 1023px) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 639px) { .features { grid-template-columns: 1fr; gap: 32px; } }

/* the gallery mosaic, edge to edge */
.msec--gallery { padding-bottom: 0; }
.mosaic {
  list-style: none; display: grid; gap: 4px; padding: 0 4px 4px;
  grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 22vw; grid-auto-flow: dense;
}
.mosaic__item--1 { grid-column: span 2; grid-row: span 2; }
.mosaic__item--4 { grid-column: span 2; grid-row: span 2; }
.mosaic__item--7 { grid-column: span 2; }
.mosaic__link { position: relative; display: block; width: 100%; height: 100%; overflow: hidden; background: #111; }
.mosaic__link img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease-md); }
.mosaic__over {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; padding: 28px;
  background: linear-gradient(to top, rgba(173,20,87,.92), rgba(173,20,87,.25) 60%, transparent);
  color: #fff; opacity: 0; transition: opacity 300ms var(--ease-md);
}
.mosaic__title { font-size: 22px; font-weight: 400; line-height: 1.25; }
.mosaic__meta { font-size: 13px; letter-spacing: .06em; text-transform: uppercase; opacity: .85; }
.mosaic__link:hover .mosaic__over, .mosaic__link:focus-visible .mosaic__over { opacity: 1; }
.mosaic__link:hover img { transform: scale(1.04); }
@media (hover: none) { .mosaic__over { opacity: 1; background: linear-gradient(to top, rgba(0,0,0,.75), transparent 55%); } }
@media (max-width: 1023px) { .mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 40vw; } }
@media (max-width: 639px) { .mosaic { grid-template-columns: 1fr; grid-auto-rows: 70vw; } .mosaic__item--1, .mosaic__item--4, .mosaic__item--7 { grid-column: auto; grid-row: auto; } }

/* the catalogue in a raised card */
.mcard { background: #fff; border-radius: 2px; box-shadow: var(--e1); }
.catalogue__grid { display: grid; grid-template-columns: minmax(0, 1fr) 34%; gap: 40px; padding: 32px 40px; position: relative; }
.catalogue__list { list-style: none; }
.catalogue__row[data-letter]::before { content: attr(data-letter); display: block; padding: 28px 0 8px; font-size: 13px; font-weight: 500; letter-spacing: .1em; color: var(--action); }
.catalogue__row:first-child[data-letter]::before { padding-top: 0; }
.catalogue__row a {
  display: grid; grid-template-columns: 52px 1fr auto; gap: 16px; align-items: baseline;
  padding: 13px 8px; border-bottom: 1px solid #eee; text-decoration: none; color: inherit;
  transition: background-color 200ms var(--ease-md);
}
.catalogue__row a:hover, .catalogue__row a:focus-visible { background: #fce4ec; }
.catalogue__no { font-size: 12px; color: #757575; font-variant-numeric: tabular-nums; }
.catalogue__title { font-size: 18px; font-weight: 400; }
.catalogue__year { font-size: 14px; color: var(--muted); }
.catalogue__peek { position: absolute; right: 40px; top: 32px; width: calc(34% - 40px); transform: translateY(var(--y, 0)); opacity: 0; transition: opacity 200ms var(--ease-md), transform 320ms var(--ease-md); pointer-events: none; box-shadow: var(--e3); border-radius: 2px; overflow: hidden; }
.catalogue__peek img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.catalogue__peek.is-on { opacity: 1; }
@media (max-width: 1023px) { .catalogue__grid { grid-template-columns: 1fr; padding: 16px 20px; } .catalogue__peek { display: none; } }
@media (max-width: 639px) { .catalogue__row a { grid-template-columns: 40px 1fr; } .catalogue__year { display: none; } }

/* ------------------------------------------------------------------ text, entries, cards */
.reading { background: #fff; }
.prose { font-size: 18px; line-height: 1.8; color: #333; }
.prose h2 { font-weight: 300; font-size: clamp(28px, 1vw + 22px, 38px); color: var(--ink); }
.prose h3 { font-weight: 400; }
.prose blockquote { border-left: 4px solid var(--action); padding: 8px 0 8px 24px; font-family: var(--f-text); font-weight: 300; font-style: italic; }
.prose img { border-radius: 2px; box-shadow: var(--e1); }
.toc__list a[aria-current] { color: var(--action); }

.entry__head { background: var(--action); color: #fff; padding: var(--s-8) 0; margin-bottom: var(--s-8); }
.entry__head .crumbs ol, .entry__head .crumbs a, .entry__head .meta { color: rgba(255,255,255,.85); }
.entry__eyebrow a { color: var(--accent); text-transform: uppercase; letter-spacing: .1em; font-size: 13px; }
.entry__title { font-weight: 300; color: #fff; max-width: 22ch; }
.entry__lead { color: rgba(255,255,255,.85); }
.entry__hero img { border-radius: 2px; box-shadow: var(--e2); aspect-ratio: auto; max-height: 80vh; width: auto; margin-inline: auto; }
.entry__hero { text-align: center; }

.card { background: #fff; border-radius: 2px; box-shadow: var(--e1); overflow: hidden; transition: box-shadow 280ms var(--ease-md); }
.card:hover { box-shadow: var(--e3); }
.card__link:hover { transform: none; }
.card__media { border-radius: 0; aspect-ratio: 16 / 10; }
.card__body { padding: 20px 24px 24px; }
.card__eyebrow { color: var(--action); text-transform: uppercase; letter-spacing: .08em; font-size: 12px; }
.card__title { font-weight: 400; font-size: 21px; }
.card__link:hover .card__title { text-decoration: none; color: var(--action); }
.card__no { display: none; }
.frame-empty { position: absolute; inset: 0; display: grid; place-items: center; background: #eceff1; }
.frame-empty span { width: 40px; height: 40px; border-radius: 50%; background: var(--action); opacity: .35; }
.related { background: var(--surface); }
.related__title { text-align: center; font-weight: 300; }
.archive { background: var(--surface); }
.archive__title { font-weight: 300; }
.pager .current { background: var(--action); border-color: var(--action); }

/* ------------------------------------------------------------------ footer: dark */
.closing { background: #212121; color: #e0e0e0; }
.closing .brand { color: #fff; }
.close__line { font-weight: 300; font-size: clamp(28px, 1.6vw + 18px, 44px); line-height: 1.2; max-width: 26ch; }
.close .searchform { margin-top: var(--s-6); }
.close .searchform__label { opacity: .8; }
.close .searchform__input { background: #2c2c2c; color: #fff; border: 0; border-bottom: 2px solid #616161; border-radius: 0; }
.close .searchform__input:focus { border-bottom-color: var(--accent); outline: none; }
.closing__legal { border-top: 1px solid #333; }
