/* Template parts stay out of the layout, so the sticky header has the whole page to stick to */
.wp-block-template-part { display: contents; }
:root {
  color-scheme: light dark;
  --ground: light-dark(#F7F6F9, #141118);
  --surface: light-dark(#FFFFFF, #28232E);
  --tint: light-dark(#F2EDF7, #211B27);
  --soft: light-dark(#EAE3F2, #2B2334);
  --lavender: light-dark(#D3C4E3, #CBB7E1);
  --ink: light-dark(#211B27, #EDE9F1);
  --ink-2: light-dark(#3A3442, #D6D0DC);
  --muted: light-dark(#4F4758, #B2ABBA);
  --rule: light-dark(#E8E3ED, #2B2631);
  --rule-strong: light-dark(#D1CAD8, #443E4C);
  --field-line: light-dark(#857A90, #7A7086);
  --field: light-dark(#FFFFFF, #2A2331);
  --accent: light-dark(#573F74, #D0B9E9);
  --link: light-dark(#5A2D8C, #D9C2FF);
  --deep: light-dark(#503B68, #C5B0DD);
  --on-deep: light-dark(#FFFFFF, #19141F);
  --mark: color-mix(in oklab, var(--lavender) 60%, var(--surface));
  --scrim: rgb(12 10 16 / .82);
  --code-ground: #1A1B26;
  --pad: clamp(16px, 4.4vw, 64px);
  --wrap: 1312px;
  --read: 760px;
  --display: "Instrument Serif", "Times New Roman", serif;
  --body: "Atkinson Hyperlegible Next", system-ui, sans-serif;
  --sans: "Geist", system-ui, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --float-near: light-dark(rgb(33 27 39 / .05), rgb(0 0 0 / .2));
  --float-far: light-dark(rgb(33 27 39 / .16), rgb(0 0 0 / .4));
  --float-shadow: 0 1px 2px var(--float-near), 0 10px 24px -12px var(--float-far);
  --float-shadow-hover: 0 1px 3px var(--float-near), 0 14px 30px -14px var(--float-far);
}
:root.theme-light { color-scheme: light; }
:root.theme-dark { color-scheme: dark; }
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--ground);
  color: var(--ink);
  scrollbar-color: var(--rule-strong) var(--ground);
  scroll-padding-top: 64px;
}
body {
  overflow-x: hidden;
  caret-color: var(--accent);
  font-variant-numeric: lining-nums;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img, svg, video, iframe { max-width: 100%; }
img, video {
  display: block;
  height: auto;
}
button, input, select, textarea {
  color: inherit;
  font: inherit;
}
button { cursor: pointer; }
h1, h2, h3, h4, h5, h6 {
  margin: 0;
  text-wrap: balance;
}
p {
  margin: 0 0 1em;
  text-wrap: pretty;
}
a {
  text-decoration-color: color-mix(in oklab, currentColor 45%, transparent);
  text-decoration-thickness: 1px;
  text-underline-offset: .22em;
}
a:hover { text-decoration-color: currentColor; }
:focus-visible {
  border-radius: 3px;
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
::selection {
  background: var(--deep);
  color: var(--on-deep);
}
mark {
  padding: 0 .12em;
  border-radius: 2px;
  background: var(--mark);
  color: inherit;
}
kbd {
  padding: .1em .45em;
  border-radius: 4px;
  border-bottom: 2px solid var(--rule-strong);
  background: var(--surface);
  color: var(--ink);
  font-family: var(--mono);
  font-size: .78em;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}
.screen-reader-text {
  position: absolute !important;
  overflow: hidden;
  width: 1px;
  height: 1px;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip-link:focus {
  z-index: 100;
  top: 12px;
  left: 12px;
  width: auto;
  height: auto;
  padding: 12px 18px;
  border-radius: 999px;
  clip-path: none;
  background: var(--deep);
  color: var(--on-deep);
  font-weight: 600;
  text-decoration: none;
}
.wrap {
  width: min(100% - 2 * var(--pad), var(--wrap));
  margin-inline: auto;
}
.read, .article-head:not(:has(> figure)) {
  position: relative;
  width: min(100% - 2 * var(--pad), var(--read));
  margin-inline: auto;
}

/* Line icons from svg/icons.svg; stroke and fill pass into the <use> */
.ic {
  flex: none;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
  vertical-align: middle;
}
.ic-sm {
  width: 16px;
  height: 16px;
}

/* Small meta text: Geist with tabular figures */
.meta-text {
  font-family: var(--sans);
  font-size: 14.5px;
  font-variant-numeric: tabular-nums;
  line-height: 1.45;
}
.meta-line {
  display: flex;
  flex-wrap: wrap;
  margin: 0;
  gap: 4px 18px;
  color: var(--muted);
}

/* A card's comment count leads to the comments */
.meta-line .wp-block-post-comments-link a {
  color: inherit;
  text-decoration: none;
}
.meta-line .wp-block-post-comments-link a:hover {
  color: var(--accent);
  text-decoration: underline;
}

/* The editor's flow layout spaces block wrappers apart; meta stays one row */
.meta-line.meta-line > *, .byline .meta.meta > * { margin: 0; }
.muted { color: var(--muted); }
.btn, .bigsearch .wp-block-search__button {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0 20px;
  gap: 10px;
  border: 0;
  border-radius: 999px;
  background: var(--deep);
  color: var(--on-deep);
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  transition: background .2s var(--ease), transform .2s var(--ease);
}
.btn:hover, .bigsearch .wp-block-search__button:hover {
  background: color-mix(in oklab, var(--deep) 86%, var(--ink));
}
.btn:active { transform: translateY(1px); }

/* Lifted off any ground it sits on, with an edge that holds in dark */
.btn-ghost {
  background: var(--field);
  box-shadow: inset 0 0 0 1px var(--rule-strong);
  color: var(--ink);
}
.btn-ghost:hover {
  background: var(--soft);
  box-shadow: inset 0 0 0 1px var(--field-line);
}
.btn[disabled] {
  cursor: not-allowed;
  opacity: .45;
}
.textlink {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-weight: 500;
  text-decoration: none;
}
.textlink:hover { text-decoration: underline; }

/* Section headings used across views */
.sec-title {
  margin-bottom: 32px;
  font-size: clamp(40px, 4vw, 60px);
  line-height: 1;
}
.h-sec {
  margin-bottom: 24px;
  font-size: clamp(36px, 3.4vw, 52px);
}
.sub {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 16px;
}

/* Edit link for logged-in users */
.site-head {
  position: relative;
  z-index: 20;
  color: var(--ink);
}
.site-head .bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  padding: 28px var(--pad) 0;
  gap: 24px;
}
.nav { justify-self: start; }
.nav .wp-block-navigation__container {
  display: flex;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  gap: 4px 30px;
  list-style: none;
}
.nav a {
  display: block;
  padding: 6px 0;
  color: var(--muted);
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
}
.nav a:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: .3em;
}

/* Colour and a line mark the current section; the weight stays put */
.nav a[aria-current="page"] {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: .45em;
}

/* Away from the top the head floats over the page while awake (js/modules/site-head.js) */
@media (scripting: enabled) {
  .head-floating:not(:has(.article-head > figure)) .wp-site-blocks { padding-top: var(--head-h); }
  :root .head-floating .site-head.site-head {
    position: fixed;
    inset: 0 0 auto;
    border-bottom: 1px solid var(--rule);
    background: var(--ground);
    color: var(--ink);
    opacity: 0;
    transform: translateY(-100%);
    transition: opacity .5s ease-in-out, transform .5s ease-in-out, visibility 0s .5s;
    visibility: hidden;
  }
  :root .head-floating.head-awake .site-head,
  :root .head-floating .site-head.site-head:has(:focus-visible, .is-menu-open) {
    opacity: 1;
    transform: none;
    transition-delay: 0s;
    visibility: visible;
  }
  :root .head-floating .site-head.site-head .bar { padding-block: 14px; }
}

/* The Rollemaa logo as it has always been: umbrella and ROLLEMAA */
.brand {
  display: inline-flex;
  align-items: center;
  padding: 10px 0;
  color: inherit;
  font-family: Muli, "Inter", system-ui, sans-serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 1px;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
}
.brand svg {
  width: 24px;
  height: 24px;
  margin-right: 11px;
  transform-origin: left;
  transition: transform .33s, color .33s;
}
.brand:hover svg, .brand:focus-visible svg {
  color: var(--accent);
  transform: rotate(-8deg);
}

/* In the editor a block wrapper sits between the button and the grid */
.site-head .bar > :has(.search-btn) { justify-self: end; }
.search-btn {
  display: inline-flex;
  align-items: center;
  justify-self: end;
  padding: 6px 0;
  gap: 10px;
  border: 0;
  background: none;
  color: inherit;
  font-size: 16px;
  font-weight: 500;
}
.search-btn kbd { font-size: 12px; }
.search-btn:hover .lbl {
  text-decoration: underline;
  text-underline-offset: .3em;
}
@media (max-width: 860px) {
  .site-head .bar {
    grid-template-columns: minmax(0, 1fr) auto;
    padding-top: 16px;
    gap: 4px 12px;
  }
  .brand {
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
    font-size: 16px;
  }
  .brand svg {
    width: 22px;
    height: 22px;
  }
  .search-btn {
    grid-column: 2;
    grid-row: 1;
    padding: 8px 0 8px 8px;
  }
  .search-btn .lbl, .search-btn kbd { display: none; }
  .search-btn .ic {
    width: 22px;
    height: 22px;
  }
  .nav {
    grid-column: 1 / -1;
    grid-row: 2;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .nav .wp-block-navigation__container {
    flex-wrap: nowrap;
    gap: 24px;
  }
  .nav .wp-block-navigation__container li { flex: none; }
}
.site-foot {
  margin-top: 96px;
  padding: 72px var(--pad) 36px;
  border-top: 1px solid color-mix(in oklab, var(--rule) 60%, transparent);
  background: var(--tint);
  color: var(--ink);
}

/* The comments band already closes the page */
body:has(.comments) .site-foot { margin-top: 0; }
.site-foot .inner {
  width: min(100%, var(--wrap));
  margin: 0 auto;
}
.foot-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 32px 56px;
}
.sign {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 20px;
}
.foot-mark {
  display: inline-block;
  color: var(--accent);
}

/* Umbrella top on the first line's cap height */
.foot-mark svg {
  display: block;
  width: 44px;
  height: 44px;
  margin-top: -4px;
}
.foot-line {
  max-width: 34em;
  margin: 0;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.5;
}
.foot-stats {
  margin: 6px 0 0;
  color: var(--muted);
}
.foot-follow {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 16px;
}

/* Every other place: small muted logos, named for screen readers */
.foot-elsewhere ul {
  display: flex;
  flex-wrap: wrap;
  margin: 12px 0 0 -11px;
  padding: 0;
  list-style: none;
}
.foot-elsewhere a {
  display: grid;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--muted);
  place-items: center;
}
.foot-elsewhere a:hover {
  background: var(--soft);
  color: var(--accent);
}
.foot-elsewhere .ic {
  width: 17px;
  height: 17px;
}
.foot-base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  margin-top: 56px;
  padding-top: 28px;
  gap: 16px;
  border-top: 1px solid color-mix(in oklab, var(--rule-strong) 45%, transparent);
  color: var(--muted);
  font-size: 14.5px;
}
.foot-base p { margin: 0; }
.themesw {
  display: inline-flex;
  position: relative;
  padding: 3px;
  gap: 2px;
  border-radius: 999px;
  background: var(--surface);
}

/* The pressed highlight, moved by js/modules/theme-switch.js; it stretches as it goes */
.themesw::before {
  position: absolute;
  top: 3px;
  bottom: 3px;
  left: 0;
  width: var(--pill-w, 0);
  border-radius: 999px;
  background: light-dark(var(--soft), var(--rule-strong));
  content: "";
  transform: translateX(var(--pill-x, 0));
}
.themesw.is-ready::before {
  transition: transform .45s cubic-bezier(.65, 0, .35, 1), width .6s cubic-bezier(.34, 1.56, .64, 1);
}
@media (prefers-reduced-motion: reduce) {
  .themesw.is-ready::before { transition: none; }
}
.themesw button {
  display: inline-flex;
  position: relative;
  align-items: center;
  padding: 7px 12px;
  gap: 7px;
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--ink);
  font-size: 14.5px;
}

/* Same weight in both states, so choosing a theme never shifts the text */
.themesw button[aria-pressed="true"] { color: var(--deep); }
@media (max-width: 860px) {
  .site-foot {
    margin-top: 72px;
    padding: 56px var(--pad) 32px;
  }
  .sign {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .themesw button {
    padding: 8px 10px;
    gap: 6px;
    font-size: 14px;
  }
}

/* The four theme choices fit the narrowest phones */
@media (max-width: 430px) {
  .themesw button {
    padding-inline: 6px;
    gap: 5px;
  }
}
@media (max-width: 360px) {
  .themesw button {
    padding-inline: 3px;
    gap: 3px;
    font-size: 12px;
  }
}

/* Ten icons don't fit one line on a phone, so two even rows */
@media (max-width: 440px) {
  .foot-elsewhere ul {
    display: grid;
    grid-template-columns: repeat(5, 40px);
  }
}

/* Core's default gaps. They stop being printed once blockGap is editable */
:root { --wp--style--block-gap: .5em; }
:where(.is-layout-flex, .is-layout-grid) { gap: .5em; }
:where(.wp-block-columns.is-layout-flex, .wp-block-columns.is-layout-grid) { gap: 2em; }
:where(.wp-block-post-template, .wp-block-latest-posts, .wp-block-term-template):where(.is-layout-flex, .is-layout-grid) {
  gap: 1.25em;
}
:where(.wp-block-gallery):where(.is-layout-flex, .is-layout-grid) { gap: .5em; }
[hidden] { display: none !important; }

/* Phones: one row, the sections behind a menu button (core navigation's own overlay) */
@media (max-width: 599px) {
  .site-head .bar {
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 4px;
  }
  .site-head .nav {
    grid-column: 3;
    grid-row: 1;
    overflow: visible;
  }
  .nav .wp-block-navigation__responsive-container-open {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    color: inherit;
  }
  .nav .is-menu-open .wp-block-navigation-item__content {
    padding: 6px 0;
    font-family: var(--display);
    font-size: 44px;
    line-height: 1.1;
    text-underline-offset: .12em;
  }
}

/* The phone menu is a frosted sheet: it slides down as tall as its links,
 lets the page show through, and follows a finger back up (js/modules/phone-menu.js) */
@media (max-width: 599px) {
  .site-head .nav.wp-block-navigation .wp-block-navigation__responsive-container.is-menu-open.is-menu-open {
    inset: 0 0 auto;
    padding: max(24px, env(safe-area-inset-top)) var(--pad) 24px;
    overflow: visible;
    border-bottom: 1px solid color-mix(in oklab, var(--ink) 10%, transparent);
    border-radius: 0 0 28px 28px;
    background: linear-gradient(180deg, color-mix(in oklab, var(--ground) 52%, transparent), color-mix(in oklab, var(--ground) 34%, transparent));
    box-shadow: inset 0 -1px 0 color-mix(in oklab, #fff 14%, transparent), inset 0 1px 18px color-mix(in oklab, #fff 6%, transparent), 0 18px 40px rgb(0 0 0 / .22);
    color: var(--ink);
    -webkit-backdrop-filter: blur(18px) saturate(1.9) brightness(1.05);
    backdrop-filter: blur(18px) saturate(1.9) brightness(1.05);
    touch-action: none;
    transition: transform .25s ease-out;
  }
  .site-head .nav .is-menu-open .wp-block-navigation__responsive-container-content {
    padding-top: 0;
  }

  /* The glass takes the page's colours, so the links do too, also over a photo */
  :root .site-head .nav .is-menu-open a.wp-block-navigation-item__content.wp-block-navigation-item__content {
    color: var(--ink);
  }
  .site-head .nav .is-menu-open .wp-block-navigation__container { gap: 4px; }

  /* Where the open button was, round and quiet */
  .site-head .nav .wp-block-navigation__responsive-container-close.wp-block-navigation__responsive-container-close {
    top: calc(max(16px, env(safe-area-inset-top)) - max(24px, env(safe-area-inset-top)));
    right: 0;
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: color-mix(in oklab, var(--ink) 8%, transparent);
    color: var(--ink);
  }
  .site-head .nav .wp-block-navigation__responsive-container-close svg {
    width: 22px;
    height: 22px;
  }
  .site-head .nav .is-menu-open .wp-block-navigation__responsive-container-close:hover {
    background: color-mix(in oklab, var(--ink) 14%, transparent);
  }

  /* A handle says it can be pulled */
  .site-head .nav .is-menu-open .wp-block-navigation__responsive-close::after {
    display: block;
    width: 40px;
    height: 5px;
    margin: 18px auto 0;
    border-radius: 3px;
    background: color-mix(in oklab, var(--ink) 25%, transparent);
    content: "";
  }
}
@media (max-width: 599px) and (prefers-reduced-motion: no-preference) {
  .site-head .nav.wp-block-navigation .wp-block-navigation__responsive-container.is-menu-open.is-menu-open {
    animation: sheet-down .26s cubic-bezier(.2, .9, .25, 1);
  }
}
@keyframes sheet-down {
  from { transform: translateY(-100%); }
}
