@font-face{font-family:'Cormorant Garamond';src:url('../fonts/cormorant-garamond-latin-500-normal.woff2') format('woff2');font-weight:500;font-style:normal;font-display:swap;}
@font-face{font-family:'Cormorant Garamond';src:url('../fonts/cormorant-garamond-latin-500-italic.woff2') format('woff2');font-weight:500;font-style:italic;font-display:swap;}
@font-face{font-family:'Jost';src:url('../fonts/jost-latin-400-normal.woff2') format('woff2');font-weight:400;font-style:normal;font-display:swap;}
@font-face{font-family:'Jost';src:url('../fonts/jost-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; }
}

/* ==========================================================================
   Spåland – Stjärnatlas. Pergament by day, the night sky in the hero and the
   footer, antique gold as the one accent. Cormorant Garamond / Jost.
   ========================================================================== */
:root {
  --bg: #f4efe5;
  --surface: #ebe3d4;
  --ink: #1b1d26;
  --muted: #5b5750;
  --action: #7a5712;
  --action-ink: #fffaf0;
  --link: #7a5712;
  --g-dark: #10192a;
  --dark-ink: #ece4d2;
  --gold: #d2ad5b;
  --f-display: 'Cormorant Garamond', 'Iowan Old Style', Georgia, serif;
  --f-text: 'Jost', 'Avenir Next', 'Segoe UI', sans-serif;
  --display-weight: 500;
  --track-display: -0.012em;
  --r-lg: 4px; --r-md: 4px; --r-sm: 2px; --r-btn: 999px;
  --t-h1: clamp(44px, 3.6vw + 28px, 88px);
  --t-h2: clamp(34px, 1.9vw + 24px, 56px);
  --t-card: clamp(21px, .4vw + 19px, 24px);
}
body { font-weight: 400; }
.muted { color: var(--muted); }
h1, h2, h3 { font-feature-settings: "liga", "dlig"; }
.brand { color: var(--ink); }
.brand .mark { width: 30px; height: 30px; color: var(--action); }
.brand__name { font-size: 27px; font-weight: 500; letter-spacing: .01em; }

/* nav: parchment with a gold hairline */
.nav { --nav-line: color-mix(in oklab, var(--action) 30%, transparent); }
.nav__list a { font-size: 15px; letter-spacing: .01em; }

/* ------------------------------------------------------------------ hero: the night sky */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--g-dark); color: var(--dark-ink);
  min-height: calc(100svh - var(--nav));
  display: flex; align-items: center;
  padding: var(--s-8) 0;
  --line: color-mix(in oklab, var(--dark-ink) 18%, transparent);
}
.admin-bar .hero { min-height: calc(100svh - var(--nav) - 32px); }
.hero__sky {
  position: absolute; inset: 0; z-index: -1; opacity: .9;
  background:
    radial-gradient(1.2px 1.2px at 12% 18%, #fff8 50%, transparent 51%),
    radial-gradient(1px 1px at 22% 64%, #fff7 50%, transparent 51%),
    radial-gradient(1.6px 1.6px at 31% 32%, #f5dfa6 50%, transparent 51%),
    radial-gradient(1px 1px at 41% 82%, #fff6 50%, transparent 51%),
    radial-gradient(1.3px 1.3px at 47% 12%, #fff9 50%, transparent 51%),
    radial-gradient(1px 1px at 58% 46%, #fff5 50%, transparent 51%),
    radial-gradient(1.8px 1.8px at 66% 88%, #f5dfa6 50%, transparent 51%),
    radial-gradient(1px 1px at 74% 22%, #fff7 50%, transparent 51%),
    radial-gradient(1.2px 1.2px at 83% 58%, #fff8 50%, transparent 51%),
    radial-gradient(1px 1px at 91% 9%, #fff6 50%, transparent 51%),
    radial-gradient(1.4px 1.4px at 7% 90%, #fff7 50%, transparent 51%),
    radial-gradient(1px 1px at 96% 74%, #fff5 50%, transparent 51%);
  background-size: 520px 520px, 610px 610px, 700px 700px, 450px 450px, 560px 560px, 380px 380px, 760px 760px, 490px 490px, 640px 640px, 410px 410px, 580px 580px, 530px 530px;
}
.hero__sky::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(60% 70% at 78% 50%, color-mix(in oklab, var(--gold) 10%, transparent), transparent 70%);
}
.hero__wrap { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; align-items: center; }
.hero__text { grid-column: 1 / span 6; }
.hero__wheel { grid-column: 7 / -1; justify-self: end; width: min(100%, 600px); }
.hero__eyebrow { font-size: var(--t-label); font-weight: 500; letter-spacing: .02em; color: var(--gold); margin-bottom: var(--s-5); }
.hero__title { font-size: var(--t-h1); line-height: 1.02; color: #f7f0de; }
.hero__lead { margin-top: var(--s-5); font-size: var(--t-lead); line-height: 1.55; max-width: 34ch; opacity: .82; }
.hero .btn-row { margin-top: var(--s-6); }
.hero .btn--primary { background: var(--gold); color: #10192a; }
.hero .btn--primary:hover { background: color-mix(in oklab, var(--gold) 86%, #fff); }
.hero .btn--secondary { color: var(--dark-ink); border-color: color-mix(in oklab, var(--dark-ink) 30%, transparent); }
.hero .btn--secondary:hover { background: color-mix(in oklab, var(--dark-ink) 8%, transparent); }
.hero__now { display: flex; align-items: center; gap: 12px; margin-top: var(--s-7); font-size: 15px; opacity: .86; }
.hero__now-glyph {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid color-mix(in oklab, var(--gold) 60%, transparent); color: var(--gold); font-size: 20px; line-height: 1;
  font-family: 'Segoe UI Symbol', 'Apple Symbols', 'Noto Sans Symbols 2', var(--f-text);
}
@media (max-width: 1023px) {
  .hero { min-height: 0; padding: var(--s-8) 0 var(--s-9); }
  .hero__text { grid-column: 1 / -1; }
  .hero__wheel { grid-column: 1 / -1; justify-self: center; width: min(100%, 520px); margin-top: var(--s-6); }
}

/* the wheel */
.wheel { width: 100%; height: auto; overflow: visible; }
.wheel__ring { fill: none; stroke: color-mix(in oklab, var(--gold) 70%, transparent); stroke-width: 1.2; }
.wheel__ring--thin { stroke-width: .7; stroke: color-mix(in oklab, var(--gold) 40%, transparent); }
.wheel__tick { stroke: color-mix(in oklab, var(--gold) 55%, transparent); stroke-width: .8; }
.wheel__spoke { stroke: color-mix(in oklab, var(--gold) 45%, transparent); stroke-width: .8; pointer-events: none; }
.wheel__hit { fill: transparent; transition: fill var(--m-out) var(--ease); }
.wheel__glyph { fill: var(--dark-ink); font-size: 30px; font-family: 'Segoe UI Symbol', 'Apple Symbols', 'Noto Sans Symbols 2', serif; pointer-events: none; transition: fill var(--m-out) var(--ease); }
.wheel__name { fill: color-mix(in oklab, var(--dark-ink) 72%, transparent); font-family: var(--f-text); font-size: 12.5px; letter-spacing: .06em; pointer-events: none; }
.wheel__seg { cursor: pointer; outline: none; }
.wheel__seg:hover .wheel__hit, .wheel__seg:focus-visible .wheel__hit { fill: color-mix(in oklab, var(--gold) 16%, transparent); transition-duration: var(--m-in); }
.wheel__seg:focus-visible .wheel__hit { stroke: var(--gold); stroke-width: 2; }
.wheel__seg:hover .wheel__glyph, .wheel__seg:focus-visible .wheel__glyph { fill: var(--gold); }
.wheel__seg.is-now .wheel__hit { fill: color-mix(in oklab, var(--gold) 22%, transparent); }
.wheel__seg.is-now .wheel__glyph, .wheel__seg.is-now .wheel__name { fill: var(--gold); }
.wheel__star { fill: color-mix(in oklab, var(--gold) 85%, transparent); }
.wheel__star--b { fill: color-mix(in oklab, var(--gold) 40%, transparent); }
.wheel__dot { fill: var(--g-dark); stroke: var(--gold); stroke-width: 1.5; }
.wheel__core { transform-origin: 300px 300px; }
@media (prefers-reduced-motion: no-preference) {
  html.js:not(.is-entered) .hero__wheel .wheel { opacity: 0; transform: rotate(-24deg) scale(.96); }
  .hero__wheel .wheel { transition: opacity 1100ms var(--ease-enter), transform 1600ms var(--ease-enter); transform-origin: 50% 50%; }
  .hero__wheel:hover .wheel__core { transform: rotate(22.5deg); transition: transform 900ms var(--ease-enter); }
  .wheel__core { transition: transform 700ms var(--ease-enter); }
}

/* ------------------------------------------------------------------ finder + signs */
.finder { background: var(--bg); }
.finder__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; align-items: start; }
.finder__form {
  grid-column: 1 / span 4; position: sticky; top: calc(var(--nav) + 24px);
  padding: var(--s-6); background: var(--g-dark); color: var(--dark-ink); border-radius: var(--r-lg);
  --line: color-mix(in oklab, var(--dark-ink) 20%, transparent);
}
.finder__fields { display: grid; grid-template-columns: 1fr 1.6fr; gap: 12px; }
.field label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 8px; opacity: .85; }
.field select {
  width: 100%; height: 48px; padding: 0 36px 0 14px; font-size: 16px;
  border: 1px solid var(--line); border-radius: var(--r-sm); background: transparent; color: inherit;
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23d2ad5b' stroke-width='1.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
.field select option { color: #1b1d26; }
.finder__result { margin-top: var(--s-6); padding-top: var(--s-6); border-top: 1px solid var(--line); }
.finder__glyph { display: block; font-size: 64px; line-height: 1; color: var(--gold); font-family: 'Segoe UI Symbol', 'Apple Symbols', 'Noto Sans Symbols 2', serif; }
.finder__name { font-family: var(--f-display); font-size: 44px; line-height: 1.05; margin-top: var(--s-4); color: #f7f0de; }
.finder__meta { margin-top: 6px; font-size: 15px; opacity: .8; }
.finder__result .btn { margin-top: var(--s-5); width: 100%; background: var(--gold); color: #10192a; }
@media (prefers-reduced-motion: no-preference) {
  .finder__result.is-new .finder__glyph, .finder__result.is-new .finder__name { animation: spl-rise 520ms var(--ease-enter); }
}
@keyframes spl-rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.signs { list-style: none; grid-column: 5 / -1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.section--signs .signs { grid-column: auto; }
.sign { background: var(--bg); }
.sign__link {
  display: grid; grid-template-rows: auto auto auto 1fr; gap: 4px; height: 100%; min-height: 168px;
  padding: 20px; text-decoration: none; color: inherit; position: relative;
  transition: background-color var(--m-out) var(--ease);
}
.sign__glyph { font-size: 30px; line-height: 1; color: var(--action); font-family: 'Segoe UI Symbol', 'Apple Symbols', 'Noto Sans Symbols 2', serif; margin-bottom: 10px; }
.sign__name { font-family: var(--f-display); font-size: 26px; line-height: 1.05; }
.sign__dates { font-size: 14px; color: var(--muted); }
.sign__el { align-self: end; font-size: 13px; font-weight: 500; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.sign__el::before { content: ""; width: 8px; height: 8px; border: 1px solid currentColor; transform: rotate(45deg); }
.sign[data-element="eld"] .sign__el::before { background: #b8562e; border-color: #b8562e; }
.sign[data-element="jord"] .sign__el::before { background: #6f7d3c; border-color: #6f7d3c; }
.sign[data-element="luft"] .sign__el::before { background: #d9c690; border-color: #a99554; }
.sign[data-element="vatten"] .sign__el::before { background: #3f6f8f; border-color: #3f6f8f; }
.sign__link:hover { background: var(--surface); transition-duration: var(--m-in); }
.sign.is-current .sign__link { background: var(--g-dark); color: var(--dark-ink); }
.sign.is-current .sign__glyph { color: var(--gold); }
.sign.is-current .sign__dates, .sign.is-current .sign__el { color: color-mix(in oklab, var(--dark-ink) 75%, transparent); }
@media (max-width: 1279px) { .signs { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 1023px) {
  .finder__form { grid-column: 1 / -1; position: static; }
  .signs { grid-column: 1 / -1; }
}
@media (max-width: 639px) { .signs { grid-template-columns: repeat(2, minmax(0, 1fr)); } .sign__link { min-height: 150px; padding: 16px; } }

/* ------------------------------------------------------------------ the page's own text on the front page */
.reading { background: var(--bg); padding-top: var(--s-8); border-top: 1px solid var(--line); }
.reading .entry__layout { padding-bottom: 0; }
.prose > p:first-of-type::first-letter {
  float: left; font-family: var(--f-display); font-size: 4.6em; line-height: .8; padding: .08em .1em 0 0; color: var(--action);
}
.prose h2 { font-size: clamp(30px, 1.2vw + 23px, 40px); }
.prose h2::before { content: "✦"; display: block; font-size: 14px; color: var(--action); margin-bottom: 14px; font-family: var(--f-text); }
.prose blockquote { font-style: italic; border-left-color: var(--action); }
.prose img { border-radius: 2px; box-shadow: 0 0 0 1px var(--line); }

/* ------------------------------------------------------------------ cards: plates in an atlas */
.latest { background: var(--surface); }
.card__media { border-radius: 2px; box-shadow: 0 0 0 1px var(--line); }
.card__no {
  display: block; position: absolute; left: 12px; top: 10px; z-index: 1;
  font-family: var(--f-display); font-style: italic; font-size: 17px; line-height: 1; color: #f2e6c6;
  padding: 4px 8px; background: color-mix(in oklab, #10192a 55%, transparent); border-radius: 2px;
  pointer-events: none;
}
.card__no::before { content: "Pl. "; }
.card__title { font-family: var(--f-display); font-size: var(--t-card); font-weight: 500; line-height: 1.15; }
.card__eyebrow { color: var(--action); }
.chart { width: 100%; height: 100%; }
.chart__ground { fill: var(--g-dark); }
.chart__ring { fill: none; stroke: color-mix(in oklab, var(--gold) 45%, transparent); stroke-width: 1; }
.chart__ring--dash { stroke-dasharray: 2 5; }
.chart__axis { stroke: color-mix(in oklab, var(--gold) 22%, transparent); stroke-width: .8; }
.chart__line { fill: none; stroke: color-mix(in oklab, var(--gold) 80%, transparent); stroke-width: 1.2; }
.chart__star { fill: #f3ead2; opacity: .8; }
.chart__node { fill: var(--gold); }
.card .card__media:has(.chart) { box-shadow: none; }

/* entry pages */
.entry__head { background: var(--bg); }
.entry__title { max-width: 18ch; line-height: 1.04; }
.entry__eyebrow a { color: var(--action); }
.entry__hero img { border-radius: 2px; }
.related { background: var(--surface); }
.section--signs { background: var(--surface); }
.section--signs .section__title { margin-bottom: var(--s-7); }

/* archive */
.archive__title { line-height: 1.02; }

/* ------------------------------------------------------------------ footer: back to the night */
.closing { background: var(--g-dark); }
.closing .brand { color: var(--dark-ink); }
.closing .brand .mark { color: var(--gold); }
.close { display: grid; grid-template-columns: auto 1fr auto; gap: 8px 32px; align-items: center; }
.close__now { grid-column: 1 / 3; display: flex; align-items: center; gap: 20px; font-family: var(--f-display); font-size: clamp(32px, 2.2vw + 20px, 60px); line-height: 1.05; color: #f7f0de; }
.close__glyph { display: grid; place-items: center; flex: none; width: 1.4em; height: 1.4em; border: 1px solid color-mix(in oklab, var(--gold) 60%, transparent); border-radius: 50%; color: var(--gold); font-size: .8em; font-family: 'Segoe UI Symbol', 'Apple Symbols', 'Noto Sans Symbols 2', serif; }
.close__dates { grid-column: 1 / 3; font-size: 16px; opacity: .75; }
.close .btn { grid-column: 3; grid-row: 1 / 3; background: var(--gold); color: #10192a; }
@media (max-width: 767px) {
  .close { grid-template-columns: 1fr; }
  .close__now, .close__dates, .close .btn { grid-column: 1; grid-row: auto; }
  .close .btn { justify-self: start; margin-top: var(--s-4); }
}
.closing__dir { border-top-color: color-mix(in oklab, var(--gold) 30%, transparent); }

.close--search { grid-template-columns: 1fr; }
.close--search .close__now { grid-column: 1; }
.close--search .searchform { margin-top: var(--s-5); max-width: 640px; }
.close--search .searchform__label { color: var(--dark-ink); opacity: .8; }
.close--search .searchform__input { background: transparent; color: var(--dark-ink); border-color: color-mix(in oklab, var(--dark-ink) 30%, transparent); }
.close--search .btn { grid-column: auto; grid-row: auto; }
