/* ============================================================
   Martingallie Theme - main.css
   Layout and components for the block templates. Colours come from the
   theme.json palette (Appearance → Editor → Styles → Colors), with a second
   set for dark mode; the font is set in theme.json too.
   The gallery / workshop styles ship with the plugin.
   ============================================================ */

/* 1. Custom Properties — mapped from the palette so edits in Styles apply
   everywhere, and borders / hovers follow the text colour automatically. */
:root {
  --color-bg:              var(--wp--preset--color--background, #fafaf9);
  --color-surface:         var(--wp--preset--color--surface, #ffffff);
  --color-elevated:        var(--wp--preset--color--raised, #ffffff);
  --color-text:            var(--wp--preset--color--text, #0c0c0c);
  --color-text-muted:      var(--wp--preset--color--text-muted, #6b6b6b);
  --color-text-faint:      var(--wp--preset--color--text-faint, #a1a1a1);
  --color-border:          color-mix(in srgb, var(--color-text) 8%, transparent);
  --color-hover:           color-mix(in srgb, var(--color-text) 5%, transparent);
  --color-chip:            color-mix(in srgb, var(--color-text) 4.5%, transparent);
  --color-btn-active:      var(--color-text);
  --color-btn-text-active: var(--color-bg);
  --shadow-pop:            0 12px 40px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.06);
  --font-sans: var(--wp--preset--font-family--inter, 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif);
  --gap: 10px;
  --nav-height: 60px;
  --sidebar-w: 240px;
  --container-max: 1600px;
  --container-pad: 32px;
  --transition: 0.2s ease;
  --radius: 10px;
  --radius-img: 4px;
  --row-h: clamp(160px, 20vw, 280px);
  --admin-bar: 0px;
  /* An immersive Photo Slideshow leaves the sidebar free (top bar on phones, see 15). */
  --pp-ss-inset-left: var(--sidebar-w);
  --pp-ss-inset-top: 0px;
  color-scheme: light;
}

[data-theme="dark"] {
  --color-bg:              var(--wp--preset--color--dark-background, #0a0a0a);
  --color-surface:         var(--wp--preset--color--dark-surface, #131313);
  --color-elevated:        var(--wp--preset--color--dark-raised, #1a1a1a);
  --color-text:            var(--wp--preset--color--dark-text, #f0f0f0);
  --color-text-muted:      var(--wp--preset--color--dark-text-muted, #8e8e8e);
  --color-text-faint:      var(--wp--preset--color--dark-text-faint, #5a5a5a);
  --color-hover:           color-mix(in srgb, var(--color-text) 6%, transparent);
  --color-chip:            color-mix(in srgb, var(--color-text) 6%, transparent);
  --shadow-pop:            0 16px 48px rgba(0, 0, 0, 0.6), 0 2px 8px rgba(0, 0, 0, 0.4);
  color-scheme: dark;
}

/* 2. Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html.has-lightbox { overflow: hidden; }
body {
  font-family: var(--font-sans);
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color var(--transition), color var(--transition);
  padding-left: var(--sidebar-w);
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button { font-family: inherit; cursor: pointer; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--color-text); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--color-text); color: var(--color-bg); }
/* Header, main and footer sit flush; spacing comes from the sections themselves. */
body .wp-site-blocks > * + * { margin-block-start: 0; }

/* 3. Container */
.container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

/* 4. Site Navigation — the Sidebar part: fixed left on desktop, a top bar on phones (see 15). */
.site-nav {
  position: fixed;
  top: var(--admin-bar); bottom: 0; left: 0;
  z-index: 500;
  width: var(--sidebar-w);
  background: var(--color-bg);
  display: flex;
  flex-direction: column;
  padding: 40px 28px 28px;
  transition: background var(--transition);
}
.site-nav > * { margin-block: 0; }
/* Logged-in admin bar sits on top of the fixed header. */
.admin-bar { --admin-bar: 32px; }
@media (max-width: 782px) { .admin-bar { --admin-bar: 46px; } }
/* On small phones WordPress lets its admin bar scroll away, so the header does too. */
@media (max-width: 600px) { .admin-bar .site-nav { position: absolute; } }

.site-nav__brand { display: flex; align-items: center; min-width: 0; max-width: 100%; margin-bottom: 48px !important; }
.site-nav__title {
  font-size: 1.1875rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.2;
  color: var(--color-text);
}
.site-nav__brand .custom-logo-link { display: flex; align-items: center; }
.site-nav__brand .custom-logo {
  width: auto;
  max-width: 100%;
  max-height: 88px;
  object-fit: contain;
}
/* Homepage: the logo is the page's h1, without looking like a heading. */
.site-nav__h1 { margin: 0; font: inherit; display: flex; align-items: center; min-width: 0; max-width: 100%; }

/* Site tagline (Settings → General → Tagline; nothing shows when it's empty):
   under the logo in the sidebar, at the top of the opened menu on phones. */
.site-nav .site-nav__tagline { margin: 0 0 28px; font-size: .8125rem; line-height: 1.55; color: var(--color-text-muted); text-wrap: pretty; }

/* Optional dark-mode logo (Logo block) swaps in with the colour mode. */
.site-nav__brand .custom-logo--dark,
[data-theme="dark"] .site-nav__brand .custom-logo--light { display: none; }
[data-theme="dark"] .site-nav__brand .custom-logo--dark { display: block; }

.site-nav__panel { flex: 1; display: flex; flex-direction: column; min-height: 0; overflow-y: auto;
  /* Reach the sidebar edges, so the scroll box doesn't clip the current-page marker. */
  margin-inline: -28px; padding-inline: 28px; }
.site-nav__panel > * { margin-block: 0; }

/* Navigation block: a plain vertical list, aligned by the block's own
   "Justify items" setting (left / centre / right). Link colours need core's
   own specificity (it sets them to inherit with a doubled class). */
.site-nav .wp-block-navigation { font-size: 0.9375rem; }
.site-nav .wp-block-navigation .wp-block-navigation__container { flex-direction: column; align-self: stretch; align-items: stretch; gap: 2px; }
/* Full-width rows, so the current-page marker (on the row) sits on the sidebar edge. */
.site-nav .wp-block-navigation .wp-block-navigation-item { position: relative; justify-content: var(--navigation-layout-align, flex-start); }
.site-nav .wp-block-navigation .wp-block-navigation-item__content.wp-block-navigation-item__content {
  display: inline-block;
  padding: 5px 0;
  font-weight: 450;
  color: var(--color-text-muted);
  transition: color var(--transition), transform var(--transition);
}
.site-nav .wp-block-navigation .wp-block-navigation-item__content.wp-block-navigation-item__content:hover { color: var(--color-text); transform: translateX(2px); }
/* Current page: full-strength text plus a thin marker on the sidebar edge. */
.site-nav .wp-block-navigation .current-menu-item > .wp-block-navigation-item__content.wp-block-navigation-item__content,
.site-nav .wp-block-navigation .current-menu-parent > .wp-block-navigation-item__content.wp-block-navigation-item__content,
.site-nav .wp-block-navigation .wp-block-navigation-item__content.wp-block-navigation-item__content[aria-current="page"] { color: var(--color-text); font-weight: 550; }
.site-nav .current-menu-item > .wp-block-navigation-item__content::before,
.site-nav .current-menu-parent > .wp-block-navigation-item__content::before,
.site-nav .wp-block-navigation-item__content[aria-current="page"]::before {
  content: '';
  position: absolute;
  left: -28px; top: 50%;
  width: 2px; height: 16px;
  margin-top: -8px;
  background: var(--color-text);
  border-radius: 0 2px 2px 0;
}

/* Menu block: the Appearance → Menus menu, looking like the list above. */
.site-menu { font-size: 0.9375rem; }
.site-menu ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.site-menu .sub-menu { padding-left: 14px; }
.site-menu li { position: relative; }
.site-menu a {
  display: inline-block;
  padding: 5px 0;
  font-weight: 450;
  color: var(--color-text-muted);
  transition: color var(--transition), transform var(--transition);
}
.site-menu a:hover { color: var(--color-text); transform: translateX(2px); }
.site-menu .current-menu-item > a,
.site-menu .current-menu-parent > a,
.site-menu .current-menu-ancestor > a { color: var(--color-text); font-weight: 550; }
/* The marker sits on the sidebar edge, for top-level items. */
.site-menu__list > .current-menu-item > a::before,
.site-menu__list > .current-menu-parent > a::before,
.site-menu__list > .current-menu-ancestor > a::before {
  content: '';
  position: absolute;
  left: -28px; top: 50%;
  width: 2px; height: 16px;
  margin-top: -8px;
  background: var(--color-text);
  border-radius: 0 2px 2px 0;
}
.site-menu--empty { color: var(--color-text-muted); font-size: 0.8125rem; }

.site-nav__foot { margin-top: auto !important; padding-top: 32px; }
.site-nav__foot > * { margin-block: 0; }
.site-nav__copy { font-size: 0.75rem; color: var(--color-text-faint); line-height: 1.4; }
/* Room for the dark / light switch in the bottom-right corner: beside a
   left-aligned line, above a centred or right-aligned one. */
.site-nav .site-nav__copy { padding-right: 48px; }
.site-nav .site-nav__copy:is(.has-text-align-center, .has-text-align-right) { padding: 0 0 40px; }

/* Social links part (core Social Icons block; its "Justification" setting aligns
   them). Left-aligned, a negative margin lines the icons up with the text above. */
.social-links.social-links { display: flex; flex-wrap: wrap; gap: 4px; margin: 0 0 14px -7px; padding: 0; font-size: 17px; }
.social-links.social-links:is(.is-content-justification-center, .is-content-justification-right, .is-content-justification-space-between) { margin-left: 0; }
.social-links .wp-social-link.wp-social-link { margin: 0; background: none; color: var(--color-text-muted); border-radius: 8px; }
.social-links .wp-social-link a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border-radius: 8px;
  color: inherit;
  transition: color var(--transition), background var(--transition);
}
.social-links .wp-social-link:hover { color: var(--color-text); background: var(--color-hover); transform: none; }
.social-links .wp-social-link svg { width: 17px; height: 17px; }

.site-nav__menu-toggle,
.site-nav__theme-toggle {
  background: none;
  border: 0;
  border-radius: 999px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  flex-shrink: 0;
  transition: color var(--transition), background var(--transition);
}
.site-nav__menu-toggle:hover,
.site-nav__theme-toggle:hover { color: var(--color-text); background: var(--color-hover); }
/* Bottom-right corner of the sidebar, level with the copyright line. */
.site-nav__theme-toggle { position: absolute; right: 20px; bottom: 20px; }
.site-nav__theme-toggle .icon-sun,
[data-theme="dark"] .site-nav__theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .site-nav__theme-toggle .icon-sun { display: block; }

/* Hamburger — shown only on small screens (see section 15). */
.site-nav__menu-toggle { display: none; order: 3; color: var(--color-text); }
.site-nav__burger,
.site-nav__burger::before,
.site-nav__burger::after {
  display: block;
  width: 16px;
  height: 1.5px;
  background: currentColor;
  border-radius: 1px;
  transition: transform var(--transition), background var(--transition);
}
.site-nav__burger { position: relative; }
.site-nav__burger::before,
.site-nav__burger::after { content: ''; position: absolute; left: 0; }
.site-nav__burger::before { top: -5px; }
.site-nav__burger::after  { top: 5px; }
[aria-expanded="true"] .site-nav__burger { background: transparent; }
[aria-expanded="true"] .site-nav__burger::before { transform: translateY(5px) rotate(45deg); }
[aria-expanded="true"] .site-nav__burger::after  { transform: translateY(-5px) rotate(-45deg); }

.skip-link.screen-reader-text:focus {
  position: fixed; top: 8px; left: 8px; z-index: 1100;
  width: auto; height: auto; clip: auto; clip-path: none; margin: 0;
  padding: 8px 14px; background: var(--color-elevated); color: var(--color-text);
  border-radius: var(--radius);
}

/* 5. Page sections */
.site-main .container > * { margin-block: 0; }
.about-section h1 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

/* Titles: Inter like the text, heavier and tighter (theme.json sets it for
   headings). --font-display is kept as the name the slideshow and workshop
   titles use, so a display font can come back in one place. */
:root { --font-display: var(--wp--preset--font-family--inter, 'Inter', system-ui, sans-serif); }
.pp-ss .pp-ss__title,
.workshop-tile__title,
.workshop-article__title { font-family: var(--font-display); }
.pp-ss.pp-ss--cover .pp-ss__title { font-weight: 650; letter-spacing: -0.03em; line-height: 1.02; }
.pp-ss.pp-ss--framed .pp-ss__title { font-weight: 650; letter-spacing: -0.02em; }
.workshop-tile__title.workshop-tile__title { font-weight: 650; letter-spacing: -0.015em; }
.workshop-article__title.workshop-article__title { font-weight: 700; letter-spacing: -0.03em; }
/* The Workshops block's "Upcoming / Past" labels are headings too: keep them
   small Inter labels, also inside page text (which sizes its h2s up). */
.workshops-group__title.workshops-group__title { font-family: var(--wp--preset--font-family--inter); font-size: 0.75rem; letter-spacing: 0.08em; margin-top: 0; }

/* 6. Content (About, pages, posts, workshops) */
.about-section { max-width: 680px; padding-block: 72px; }
.about-section > h1 { margin-bottom: 36px; }
/* Pages: blocks use the Content width (Styles → Layout, 1000px); a block set
   to Wide / Full width goes wider. Posts and lists stay at 680px for reading. */
.about-section.page-article { max-width: none; }
.workshop-article { max-width: 760px; }
.entry-content { font-size: 1.0625rem; line-height: 1.75; color: var(--color-text); }
.entry-content > * + * { margin-top: 1.1em; }
.entry-content h2 { font-size: 1.5rem; font-weight: 650; letter-spacing: -0.025em; margin-top: 2em; }
.entry-content h3 { font-size: 1.1875rem; font-weight: 650; letter-spacing: -0.015em; margin-top: 1.6em; }
.entry-content ul, .entry-content ol { padding-left: 1.4em; }
.entry-content a { text-decoration: underline; text-decoration-color: var(--color-text-faint); text-underline-offset: 3px; }
.entry-content a:hover { text-decoration-color: var(--color-text); }
.entry-content img, .entry-content video, .entry-content iframe { max-width: 100%; border-radius: var(--radius-img); }
.entry-content figure { margin-block: 32px; }
.entry-content figcaption { margin-top: 8px; font-size: 0.8125rem; color: var(--color-text-muted); text-align: center; }
.entry-content .wp-block-gallery { gap: var(--gap); }
.entry-content blockquote { padding-left: 20px; border-left: 2px solid var(--color-text); font-size: 1.125rem; }
.entry-content .wp-block-button__link { border-radius: 999px; text-decoration: none; }
/* Whole-card links (workshop tiles) aren't underlined like links in text. */
.entry-content a.workshop-tile, .entry-content .workshop-tile a { text-decoration: none; }
.about-section .entry-meta { margin-top: -24px; margin-bottom: 32px; font-size: 0.875rem; color: var(--color-text-muted); }

/* Post lists (blog, categories, search): the Posts block from the plugin. */
.posts-archive { padding-block: 72px 0; }
.posts-archive > h1 { margin-bottom: 36px; font-size: clamp(1.75rem, 3vw, 2.5rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; }
.posts-archive > .wp-block-query-title:empty { display: none; }

/* A post (single.html): header with the featured image, then the text in a
   reading column (about 70 characters a line). Blocks set to Wide — the
   Photo Set is by default — use the article's full width; Full goes edge to
   edge of the content area. */
.post-article {
  --post-wide: 1160px;
  --post-text: 700px;
  max-width: var(--post-wide);
  margin-inline: auto;
  padding-block: 48px 80px;
}
.post-header { margin-bottom: clamp(32px, 4vw, 48px); }
.post-header__back {
  display: inline-flex;
  gap: 6px;
  margin-bottom: 24px;
  font-size: 0.875rem;
  color: var(--color-text-muted);
  transition: color var(--transition);
}
.post-header__back:hover { color: var(--color-text); }
.post-header__cover {
  margin: 0 0 clamp(28px, 3.5vw, 44px);
  aspect-ratio: 16 / 9;
  max-height: 78vh;
  width: 100%;
  overflow: hidden;
  background: var(--color-chip);
}
.post-header__cover--upright { aspect-ratio: 4 / 3; }
.post-header__img { width: 100%; height: 100%; object-fit: cover; }
.post-header__text { max-width: var(--post-text); margin-inline: auto; }
.post-header__title {
  font-size: clamp(1.875rem, 3.6vw, 2.875rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.post-header__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  margin-top: 16px;
  font-size: 0.875rem;
  color: var(--color-text-muted);
}
.post-header__meta a { color: inherit; text-decoration: underline; text-decoration-color: var(--color-text-faint); text-underline-offset: 3px; }
.post-header__meta a:hover { color: var(--color-text); }
.post-header__dot { color: var(--color-text-faint); }

.post-article__content { font-size: 1.125rem; line-height: 1.78; }
.post-article__content > * { max-width: var(--post-text); margin-inline: auto; }
.post-article__content > .alignwide { max-width: none; }
.post-article__content > .alignfull { max-width: none; }
.post-article__content > .alignwide,
.post-article__content > .alignfull,
.post-article__content > .wp-block-columns { margin-block: 40px; }
.post-article__content > .wp-block-columns.alignwide { gap: var(--pp-posts-gap, 28px); }
.post-article__content > .wp-block-image.alignwide img,
.post-article__content > .wp-block-image.alignfull img { width: 100%; }
/* Square corners for post photos, like the Journal tiles. */
.post-article__content img { border-radius: 0; }
.post-article__content > p:first-child { font-size: 1.25rem; line-height: 1.65; color: var(--color-text); }

/* Previous / next post. */
.post-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 72px;
  padding-top: 40px;
  border-top: 1px solid var(--color-border);
}
.post-nav__link { display: flex; align-items: center; gap: 18px; min-width: 0; color: var(--color-text); }
.post-nav__link--next { grid-column: 2; flex-direction: row-reverse; text-align: right; }
.post-nav__media {
  flex: 0 0 auto;
  width: clamp(96px, 12vw, 168px);
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--color-chip);
}
.post-nav__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s cubic-bezier(0.16, 0.8, 0.24, 1); }
.post-nav__text { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.post-nav__label { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-text-muted); }
.post-nav__title { font-family: var(--font-display); font-size: 1.1875rem; font-weight: 650; line-height: 1.2; letter-spacing: -0.02em; text-wrap: balance; }
@media (hover: hover) {
  .post-nav__link:hover .post-nav__media img { transform: scale(1.06); }
  .post-nav__link:hover .post-nav__title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
}

/* In the editor: stand-ins for the blocks that need a post. */
.post-header__cover--placeholder,
.post-nav--placeholder .post-nav__link { display: flex; align-items: center; justify-content: center; color: var(--color-text-muted); }
.post-nav--placeholder .post-nav__link { justify-content: flex-start; }

/* 7. Utilities & Footer */
.screen-reader-text,
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border-width: 0;
}
/* The sidebar carries copyright + social links on desktop; the Footer part is for phones. */
.site-footer { display: none; }

/* Short screens with the sidebar (phones held sideways): tighter spacing and a
   smaller logo so it all fits; if not, it scrolls without a visible bar. */
@media (max-height: 500px) and (min-width: 761px) {
  .site-nav { padding: 20px 24px 16px; }
  .site-nav__brand { margin-bottom: 20px !important; }
  .site-nav__brand .custom-logo { max-height: 56px; }
  .site-menu a { padding: 3px 0; }
  .site-nav__foot { padding-top: 16px; }
  .site-nav__panel { margin-inline: -24px; padding-inline: 24px; scrollbar-width: none; }
  .site-nav__panel::-webkit-scrollbar { display: none; }
  .site-menu__list > li > a::before { left: -24px !important; }
  .site-nav .site-nav__tagline { display: none; }
}

/* 15. Responsive — below 760px the sidebar becomes a top bar and the menu
   collapses behind the hamburger. */
@media (max-width: 760px) {
  :root { --container-pad: 20px; --pp-ss-inset-left: 0px; --pp-ss-inset-top: var(--nav-height); }
  body { padding-left: 0; padding-top: var(--nav-height); }
  .site-nav {
    bottom: auto; right: 0;
    width: auto;
    height: var(--nav-height);
    flex-direction: row;
    align-items: center;
    gap: 4px;
    padding: 0 12px 0 var(--container-pad);
    background: color-mix(in srgb, var(--color-bg) 85%, transparent);
    -webkit-backdrop-filter: blur(16px) saturate(1.5);
    backdrop-filter: blur(16px) saturate(1.5);
  }
  /* Logo on the left of the top bar, whatever its alignment in the sidebar. */
  .site-nav .site-nav__brand { margin: 0 auto 0 0 !important; justify-content: flex-start; }
  .site-nav__title { font-size: 1.0625rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .site-nav__brand .custom-logo { max-height: calc(var(--nav-height) - 22px); max-width: 180px; }
  .site-nav__menu-toggle { display: flex; }
  .site-nav__theme-toggle { position: static; order: 2; }
  .site-nav__panel {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    max-height: calc(100vh - var(--nav-height));
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    margin-inline: 0;
    padding: 12px var(--container-pad) 20px;
    box-shadow: var(--shadow-pop);
  }
  .site-nav__panel.is-open { display: flex; animation: mg-fade 0.15s ease; }
  .site-nav .wp-block-navigation { font-size: 1.0625rem; }
  .site-nav .wp-block-navigation .wp-block-navigation-item__content.wp-block-navigation-item__content { display: block; padding: 10px 0; }
  .site-nav .wp-block-navigation .wp-block-navigation-item__content.wp-block-navigation-item__content:hover { transform: none; }
  .site-nav .current-menu-item > .wp-block-navigation-item__content::before,
  .site-nav .current-menu-parent > .wp-block-navigation-item__content::before,
  .site-nav .wp-block-navigation-item__content[aria-current="page"]::before { left: calc(var(--container-pad) * -1); }
  .site-nav .site-nav__tagline { margin: 4px 0 10px; font-size: .9375rem; }
  .site-menu { font-size: 1.0625rem; }
  .site-menu a { display: block; padding: 10px 0; }
  .site-menu a:hover { transform: none; }
  .site-menu__list > li > a::before { left: calc(var(--container-pad) * -1) !important; }
  .site-nav__foot { padding: 20px 0 0; margin-top: 12px !important; border-top: 1px solid var(--color-border); }
  .site-nav .site-nav__copy { padding-inline: 0; }

  .site-footer {
    display: block;
    padding-block: 24px 40px;
    text-align: center;
    font-size: 0.75rem;
    color: var(--color-text-faint);
  }
  .site-footer > * { margin-block: 0; }
  .site-footer .social-links.social-links { justify-content: center; margin: 0 0 10px; }
  .about-section { padding-block: 40px; }
  .posts-archive { padding-block: 40px 0; }
  .post-article { padding-block: 24px 56px; }
  .post-header__cover { margin-inline: calc(var(--container-pad) * -1); width: auto; max-width: none; aspect-ratio: 3 / 2; }
  .post-header__back { margin-bottom: 16px; }
  .post-article__content { font-size: 1.0625rem; }
  .post-article__content > .alignfull { margin-inline: calc(var(--container-pad) * -1); }
  .post-nav { grid-template-columns: minmax(0, 1fr); gap: 20px; margin-top: 56px; padding-top: 32px; }
  .post-nav__link--next { grid-column: auto; }
}
@media (max-width: 600px) {
  :root { --container-pad: 16px; --gap: 6px; }
}
@keyframes mg-fade { from { opacity: 0; } }
