/*
Theme Name: Kasual Mondays
Theme URI: https://www.kasualmondays.com/
Description: Twenty Twenty-Four child theme for Kasual Mondays. Racing Silks palette (navy, gold, cardinal), Archivo Black + Inter + IBM Plex Mono.
Template: twentytwentyfour
Version: 1.0.0
Requires at least: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: kasual-mondays
*/

/* ==========================================================================
   Kasual Mondays — site stylesheet
   Layout uses flexbox only (maps to WordPress Row / Stack / Columns blocks).
   All brand values live in :root so the palette can be swapped in one place
   (these map 1:1 to theme.json "palette" + "fontFamilies" in Twenty Twenty-Four).
   ========================================================================== */

:root {
  /* Palette — placeholder until brand pass */
  --navy: #00162E;
  --navy-2: #0B2A4A;
  --cardinal: #990000;
  --cardinal-dk: #6E0000;
  --gold: #FFCC00;
  --gold-dk: #D9A800;
  --green: #67FF00;      /* accent only: badges, small labels on navy */
  --paper: #F5F0E3;
  --paper-2: #EDE5D0;
  --card: #FFFDF7;
  --ink: #00162E;
  --muted: #4F5B67;
  --rule: #D6CBB0;

  /* Type */
  --font-display: "Archivo Black", "Arial Black", Impact, sans-serif;
  --font-body: "Inter", "Segoe UI", Verdana, sans-serif;
  --font-mono: "IBM Plex Mono", "Courier New", monospace;

  /* Spacing scale */
  --s1: .5rem; --s2: .75rem; --s3: 1rem; --s4: 1.5rem; --s5: 2.25rem; --s6: 3.5rem; --s7: 5rem;
  --wrap: 1140px;
  --radius: 1.25rem;
  --shadow: 4px 4px 0 rgba(0, 22, 46, .14);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background-color: var(--paper);
  /* faint pinstripe, like an old ledger pad */
  background-image: repeating-linear-gradient(0deg, transparent 0 31px, rgba(0,22,46,.035) 31px 32px);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--cardinal); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; box-shadow: 0 0 0 6px var(--navy); }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 400; line-height: 1.1; margin: 0 0 var(--s3); letter-spacing: -.01em; }
h1 { font-size: clamp(2.3rem, 5.5vw, 3.8rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.05rem; }
p { margin: 0 0 var(--s3); }
.skip { position: absolute; left: -999px; top: 0; background: var(--gold); color: var(--navy); padding: var(--s1) var(--s3); z-index: 100; }
.skip:focus { left: var(--s3); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 780px; }

/* ---------- Racing-silks stripe (recurring motif) ---------- */
.silks { display: flex; height: 8px; }
.silks span { flex: 1; }
.silks span:nth-child(1) { background: var(--navy); flex: 6; }
.silks span:nth-child(2) { background: var(--gold); flex: 2; }
.silks span:nth-child(3) { background: var(--cardinal); flex: 3; }
.silks span:nth-child(4) { background: var(--gold); flex: 1; }
.silks span:nth-child(5) { background: var(--green); flex: .6; }

/* ---------- Header ---------- */
.site-header { background: var(--card); border-bottom: 1px solid var(--rule); position: relative; z-index: 20; }
.header-row { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s4); padding-top: var(--s3); padding-bottom: var(--s3); }
.brand { display: flex; align-items: flex-end; gap: var(--s2); text-decoration: none; color: var(--navy); }
.brand:hover { color: var(--navy); }
.brand img { width: 76px; height: auto; margin-bottom: -6px; }
.brand-text { display: flex; flex-direction: column; }
.brand-name { font-family: var(--font-display); font-size: clamp(1.5rem, 3.2vw, 2.15rem); line-height: .95; letter-spacing: -.02em; }
.brand-tag { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--cardinal); margin-top: 6px; }
.nav { display: flex; align-items: flex-end; gap: var(--s1); }
.nav a {
  font-size: .82rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  color: var(--navy); text-decoration: none; padding: 6px 10px; border-radius: 4px; border-bottom: 3px solid transparent;
  white-space: nowrap;
}
.nav a:hover { background: var(--paper-2); color: var(--cardinal); }
.nav a[aria-current="page"] { border-bottom-color: var(--gold); color: var(--cardinal); }
.menu-toggle { display: none; }


/* ---------- Banner ---------- */
.banner { position: relative; height: 240px; overflow: hidden; background: var(--navy); }
.banner img { width: 100%; height: 100%; object-fit: cover; }
.banner .tag { position: absolute; left: 16px; bottom: 14px; }
@media (max-width: 600px) { .banner { height: 150px; } }

.tag {
  display: inline-block; font-family: var(--font-mono); font-size: .72rem; letter-spacing: .06em; text-transform: uppercase;
  background: var(--gold); color: var(--navy); padding: 3px 9px; border: 2px solid var(--navy);
}
.badge {
  display: inline-block; font-family: var(--font-mono); font-size: .68rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  background: var(--navy); color: var(--green); padding: 2px 8px; border-radius: 3px; vertical-align: middle;
}

/* ---------- Page title block ---------- */
.page-head { padding: var(--s6) 0 var(--s4); }
.kicker { font-family: var(--font-mono); font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--cardinal); margin-bottom: var(--s2); display: block; }
.kicker::before { content: "» "; color: var(--navy); }
.lede { font-size: 1.2rem; color: var(--muted); max-width: 720px; }

/* ---------- Sections ---------- */
.section { padding: var(--s6) 0; }
.section.tight { padding: var(--s5) 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s3); flex-wrap: wrap; border-bottom: 3px double var(--navy); padding-bottom: var(--s2); margin-bottom: var(--s5); }
.section-head h2 { margin: 0; }
.band { background: var(--navy); color: var(--paper); }
.band h2, .band h3 { color: var(--gold); }
.band a { color: var(--gold); }

/* ---------- Flex rows / columns (WP Row + Columns) ---------- */
.row { display: flex; gap: var(--s5); }
.row.wrap-row { flex-wrap: wrap; }
.row.center { align-items: center; }
.col { flex: 1 1 0; min-width: 0; }
.col-2 { flex: 2 1 0; min-width: 0; }
@media (max-width: 860px) { .row { flex-direction: column; } }

/* ---------- Buttons ---------- */
.btns { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s4); }
.btn {
  display: inline-block; font-family: var(--font-body); font-weight: 800; font-size: 1rem; letter-spacing: 1px; line-height: 1.5;
  padding: .55rem 1.35rem; border-radius: var(--radius); text-decoration: none; cursor: pointer;
  color: var(--gold); background: linear-gradient(180deg, #B31414 0%, var(--cardinal) 55%, var(--cardinal-dk) 100%);
  border: .25rem solid var(--gold); box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 3px 3px 0 var(--navy);
  transition: transform .08s, box-shadow .08s;
}
.btn:hover { color: var(--paper); transform: translate(-1px, -1px); box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 4px 4px 0 var(--navy); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--navy); }
.btn.ghost { background: transparent; color: var(--navy); border-color: var(--navy); box-shadow: 3px 3px 0 var(--gold); }
.btn.ghost:hover { background: var(--navy); color: var(--gold); }
.band .btn.ghost { color: var(--gold); border-color: var(--gold); box-shadow: 3px 3px 0 var(--cardinal); }

/* ---------- Hero ---------- */
.hero { padding: var(--s6) 0; }
.hero h1 { font-size: clamp(2.8rem, 7vw, 5rem); color: var(--navy); }
.hero h1 em { font-style: normal; color: var(--cardinal); }
.hero p { font-size: 1.12rem; }
.polaroid { background: #fff; padding: 12px 12px 0; border: 1px solid var(--rule); box-shadow: 8px 8px 0 var(--navy); }
.polaroid figcaption { font-family: var(--font-mono); font-size: .78rem; color: var(--muted); padding: 10px 2px 12px; }
.polaroid img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }

/* ---------- Ticker band ---------- */
.ticker { background: var(--navy); color: var(--gold); border-top: 3px solid var(--gold); border-bottom: 3px solid var(--cardinal); }
.ticker .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s1) var(--s4); padding-top: var(--s2); padding-bottom: var(--s2); }
.ticker span { font-family: var(--font-mono); font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; }
.ticker .lbl { color: var(--green); }
.ticker s { color: rgba(245,240,227,.75); text-decoration-color: var(--gold); text-decoration-thickness: 2px; }

/* ---------- Cards ---------- */
.cards { display: flex; flex-wrap: wrap; gap: var(--s4); }
.card {
  flex: 1 1 300px; display: flex; flex-direction: column; background: var(--card);
  border: 1px solid var(--rule); border-top: 5px solid var(--navy); box-shadow: var(--shadow); padding: var(--s4);
}
.card.feature { border-top-color: var(--cardinal); }
.card h3 { margin-bottom: var(--s2); }
.card h3 a { color: var(--navy); text-decoration: none; }
.card h3 a:hover { color: var(--cardinal); text-decoration: underline; }
.card p { color: var(--muted); font-size: .98rem; }
.card .more { margin-top: auto; font-weight: 800; font-size: .9rem; letter-spacing: .04em; text-decoration: none; }
.card .more::after { content: " →"; }
.meta { font-family: var(--font-mono); font-size: .76rem; color: var(--muted); letter-spacing: .04em; margin-bottom: var(--s2); display: flex; gap: var(--s2); flex-wrap: wrap; align-items: center; }
.card-img { margin: calc(var(--s4) * -1) calc(var(--s4) * -1) var(--s3); }
.card-img img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

/* ---------- Widget box (2000s sidebar module) ---------- */
.widget { background: var(--card); border: 2px solid var(--navy); box-shadow: var(--shadow); }
.widget-title {
  background: linear-gradient(180deg, var(--navy-2), var(--navy)); color: var(--gold);
  font-family: var(--font-mono); font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; padding: 8px 14px;
  display: flex; justify-content: space-between; align-items: center; gap: var(--s2);
}
.widget-body { padding: var(--s4); }
.widget-body p:last-child { margin-bottom: 0; }

/* ---------- Icon boxes ---------- */
.icon-boxes { display: flex; flex-wrap: wrap; gap: var(--s4); }
.icon-box { flex: 1 1 240px; display: flex; flex-direction: column; gap: var(--s2); }
.icon {
  width: 56px; height: 56px; display: flex; align-items: center; justify-content: center;
  background: var(--gold); border: 3px solid var(--navy); border-radius: 50%; box-shadow: 3px 3px 0 var(--cardinal);
}
.icon svg { width: 26px; height: 26px; stroke: var(--navy); fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.icon-box h3 { margin: var(--s1) 0 0; }
.icon-box p { color: var(--muted); margin: 0; }
.band .icon-box p { color: rgba(245,240,227,.85); }

/* ---------- Ledger (struck-through former titles) ---------- */
.ledger { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--navy); }
.ledger li { display: flex; justify-content: space-between; gap: var(--s3); flex-wrap: wrap; padding: 12px 0; border-bottom: 1px dashed var(--rule); }
.ledger .role { font-weight: 700; text-decoration: line-through; text-decoration-color: var(--cardinal); text-decoration-thickness: 2px; }
.ledger .where { font-family: var(--font-mono); font-size: .82rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.ledger li.now .role { text-decoration: none; color: var(--cardinal); }
.ledger li.now .where { color: var(--cardinal); }

/* ---------- Gallery ---------- */
.gallery { display: flex; flex-wrap: wrap; gap: var(--s3); }
.gallery figure { flex: 1 1 260px; margin: 0; background: #fff; padding: 8px; border: 1px solid var(--rule); box-shadow: var(--shadow); }
.gallery a { display: block; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: filter .2s; }
.gallery a:hover img { filter: saturate(1.25) contrast(1.05); }
.gallery figcaption { font-family: var(--font-mono); font-size: .76rem; color: var(--muted); padding: 8px 2px 2px; line-height: 1.45; }
.gallery.tall img { aspect-ratio: 3 / 4; }
.gallery .top img { object-position: top; }

/* ---------- Accordion (WP Details block) ---------- */
.accordion details { background: var(--card); border: 2px solid var(--navy); margin-bottom: var(--s3); box-shadow: var(--shadow); }
.accordion summary {
  cursor: pointer; list-style: none; padding: 14px 18px; font-family: var(--font-display); font-size: 1.2rem;
  display: flex; justify-content: space-between; align-items: center; gap: var(--s3);
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: "+"; font-family: var(--font-mono); font-size: 1.4rem; color: var(--cardinal); }
.accordion details[open] summary { background: var(--navy); color: var(--gold); }
.accordion details[open] summary::after { content: "–"; color: var(--gold); }
.accordion .inner { padding: var(--s3) var(--s4) var(--s4); }
.res-list { list-style: none; margin: 0; padding: 0; }
.res-list li { display: flex; gap: var(--s3); justify-content: space-between; align-items: flex-start; flex-wrap: wrap; padding: 12px 0; border-bottom: 1px dashed var(--rule); }
.res-list li:last-child { border-bottom: 0; }
.res-list .res-text { flex: 1 1 360px; }
.res-list strong { display: block; }
.res-list span { color: var(--muted); font-size: .95rem; }
.res-list .ftype { font-family: var(--font-mono); font-size: .74rem; font-weight: 600; border: 2px solid var(--navy); padding: 2px 8px; text-decoration: none; color: var(--navy); white-space: nowrap; }
.res-list .ftype:hover { background: var(--gold); }

/* ---------- Article / post ---------- */
.prose { font-size: 1.1rem; }
.prose h2 { margin-top: var(--s5); }
.prose blockquote { margin: var(--s4) 0; padding: var(--s3) var(--s4); background: var(--card); border-left: 6px solid var(--gold); font-style: italic; }
.post-nav { display: flex; justify-content: space-between; gap: var(--s3); flex-wrap: wrap; border-top: 3px double var(--navy); margin-top: var(--s5); padding-top: var(--s4); }
.post-nav a { font-weight: 800; text-decoration: none; }

/* ---------- Calculator ---------- */
.calc { background: var(--card); border: 2px solid var(--navy); box-shadow: 8px 8px 0 var(--navy); }
.calc .widget-body { display: flex; flex-direction: column; gap: var(--s3); }
.field { display: flex; flex-direction: column; gap: 6px; flex: 1 1 180px; }
.field label { font-weight: 800; font-size: .85rem; letter-spacing: .05em; text-transform: uppercase; }
.field input, .field select {
  font-family: var(--font-mono); font-size: 1.15rem; padding: 10px 12px; border: 2px solid var(--navy); border-radius: 6px;
  background: #fff; color: var(--navy); width: 100%;
  box-shadow: inset 2px 2px 0 rgba(0,22,46,.08);
}
.field input:focus, .field select:focus { outline: none; border-color: var(--cardinal); box-shadow: 0 0 0 3px var(--gold); }
.field input.error { border-color: var(--cardinal); background: #FBECEC; }
.fields { display: flex; flex-wrap: wrap; gap: var(--s3); }
.readout { display: flex; flex-wrap: wrap; gap: var(--s3); }
.readout div { flex: 1 1 160px; background: var(--navy); color: var(--paper); padding: 12px 14px; border-left: 5px solid var(--gold); }
.readout small { display: block; font-family: var(--font-mono); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--green); }
.readout b { font-family: var(--font-mono); font-size: 1.5rem; font-weight: 600; color: var(--gold); }
.note { font-size: .92rem; color: var(--muted); background: var(--paper-2); padding: 12px 14px; border-left: 4px solid var(--cardinal); }

/* ---------- Footer ---------- */
.site-footer .silks span:nth-child(1) { background: var(--paper-2); }
.site-footer { background: var(--navy); color: rgba(245,240,227,.85); margin-top: var(--s6); }
.footer-row { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--s5); padding-top: var(--s5); padding-bottom: var(--s5); }
.footer-col { flex: 1 1 0; display: flex; flex-direction: column; gap: 6px; }
.footer-col.mid { text-align: center; align-items: center; }
.footer-col.right { text-align: right; align-items: flex-end; }
.footer-col h2 { font-family: var(--font-mono); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--green); margin: 0; }
.footer-col p { margin: 0; font-size: .92rem; }
.footer-brand { display: flex; align-items: center; gap: var(--s2); text-decoration: none; color: var(--paper); }
.footer-brand img { width: 54px; height: 54px; }
.footer-brand span { font-family: var(--font-display); font-size: 1.4rem; color: var(--gold); }
.footer-tag { font-style: italic; }
.site-footer a { color: var(--gold); }
.site-footer a:hover { color: var(--green); }
.legal { border-top: 1px solid rgba(255,255,255,.12); font-family: var(--font-mono); font-size: .72rem; letter-spacing: .05em; padding: 12px 0; color: rgba(245,240,227,.55); }
.legal .wrap { display: flex; justify-content: space-between; gap: var(--s3); flex-wrap: wrap; }
@media (max-width: 760px) {
  .footer-row { flex-direction: column; align-items: flex-start; }
  .footer-col.mid, .footer-col.right { text-align: left; align-items: flex-start; }
}

/* ---------- Utilities ---------- */
.mt0 { margin-top: 0; }
.center-text { text-align: center; }
.muted { color: var(--muted); }
.big-404 { font-size: clamp(5rem, 18vw, 11rem); color: var(--cardinal); line-height: .9; }

/* ==========================================================================
   WordPress-specific additions (appended after the shared site styles)
   ========================================================================== */

/* Let our own section spacing rule instead of WordPress's default block gaps */
.wp-site-blocks { padding: 0; }
.wp-site-blocks > * { margin-block-start: 0; }
.site-main > .wp-block-post-content > * { margin-block-start: 0; }
.wp-block-image { margin: 0; }
body .cards, body .gallery, body .icon-boxes { gap: var(--s4); }
body .gallery { gap: var(--s3); }
body .row { gap: var(--s5); }
body .ticker .wrap { gap: var(--s1) var(--s4); }
.cards > *, .gallery > *, .icon-boxes > *, .row > *, .footer-row > *, .header-row > * { margin-block-start: 0; }
.has-global-padding { padding-left: 0; padding-right: 0; }

/* Header */
.site-header .brand { gap: var(--s2); }
.site-header .brand-logo img { width: 76px; height: auto; }
.site-header .brand-logo { margin-bottom: -6px; }
.brand-name { margin: 0; font-family: var(--font-display); font-size: clamp(1.5rem, 3.2vw, 2.15rem); line-height: .95; letter-spacing: -.02em; }
.brand-name a { color: var(--navy); text-decoration: none; }
.brand-tag { margin: 6px 0 0; font-family: var(--font-mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--cardinal); }
.brand-text { gap: 0; }
.wp-block-navigation.nav { gap: var(--s1); }
.wp-block-navigation.nav .wp-block-navigation-item__content { font-size: .82rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--navy); padding: 6px 10px; border-radius: 4px; white-space: nowrap; }
.wp-block-navigation.nav .wp-block-navigation-item__content:hover { background: var(--paper-2); color: var(--cardinal); }
.wp-block-navigation.nav .current-menu-item > .wp-block-navigation-item__content { box-shadow: inset 0 -3px 0 var(--gold); color: var(--cardinal); }
.wp-block-navigation__responsive-container-open {
  background: var(--gold); border: 2px solid var(--navy); border-radius: 8px; padding: 8px; color: var(--navy);
}
.wp-block-navigation__responsive-container.is-menu-open { padding: var(--s6) var(--s5); }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
  font-family: var(--font-display); font-weight: 400; font-size: 2rem; text-transform: none; letter-spacing: 0; color: var(--paper); background: none;
}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content:hover { color: var(--gold); background: none; }
.wp-block-navigation__responsive-container-close { color: var(--gold); }
@media (max-width: 600px) { .site-header .brand-logo img { width: 56px; } .header-row { align-items: center; } }

/* Banner = Image block with class "banner"; its caption becomes the gold tag */
.wp-block-image.banner { position: relative; height: 240px; overflow: hidden; background: var(--navy); }
.wp-block-image.banner img { width: 100%; height: 100%; object-fit: cover; }
.wp-block-image.banner figcaption {
  position: absolute; left: 16px; bottom: 14px; margin: 0;
  font-family: var(--font-mono); font-size: .72rem; letter-spacing: .06em; text-transform: uppercase;
  background: var(--gold); color: var(--navy); padding: 3px 9px; border: 2px solid var(--navy);
}
@media (max-width: 600px) { .wp-block-image.banner { height: 150px; } }
.wp-block-post-featured-image.banner { height: 240px; margin: 0; }
.wp-block-post-featured-image.banner img { height: 100%; object-fit: cover; }

/* Buttons block = the beveled site buttons */
.wp-block-buttons { gap: var(--s2); margin-top: var(--s4); }
.wp-block-button__link {
  line-height: 1.5; padding: .55rem 1.35rem;
  background: linear-gradient(180deg, #B31414 0%, var(--cardinal) 55%, var(--cardinal-dk) 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 3px 3px 0 var(--navy);
  transition: transform .08s, box-shadow .08s;
}
.wp-block-button__link:hover { color: var(--paper); transform: translate(-1px, -1px); box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 4px 4px 0 var(--navy); }
.wp-block-button.is-style-outline > .wp-block-button__link { background: transparent; color: var(--navy); border-color: var(--navy); box-shadow: 3px 3px 0 var(--gold); padding: .55rem 1.35rem; }
.wp-block-button.is-style-outline > .wp-block-button__link:hover { background: var(--navy); color: var(--gold); }
.band .wp-block-button.is-style-outline > .wp-block-button__link { color: var(--gold); border-color: var(--gold); box-shadow: 3px 3px 0 var(--cardinal); }

/* Kicker on dark bands */
.band .kicker, .kicker.on-dark { color: var(--green); }
.band .kicker::before, .kicker.on-dark::before { color: var(--gold); }
.band p { color: rgba(245,240,227,.9); }
.band .widget p { color: var(--muted); }

/* Cards built from Group blocks and the Query Loop */
.card > * { margin-top: 0; }
.card .more { margin-top: auto; margin-bottom: 0; font-weight: 800; font-size: .9rem; letter-spacing: .04em; }
.card .more a { text-decoration: none; }
.card .more::after { content: " →"; color: var(--cardinal); }
.wp-block-post-template.cards { list-style: none; margin: 0; padding: 0; }
.wp-block-post-template.cards > li { flex: 1 1 300px; display: flex; margin: 0; }
.wp-block-post-template.cards > li > .card { flex: 1; }
.card .wp-block-post-title { font-size: 1.3rem; margin: 0 0 var(--s2); }
.card .wp-block-post-title a { color: var(--navy); text-decoration: none; }
.card .wp-block-post-title a:hover { color: var(--cardinal); text-decoration: underline; }
.card .wp-block-post-date { font-family: var(--font-mono); font-size: .76rem; color: var(--muted); letter-spacing: .04em; }
.card .wp-block-post-excerpt { color: var(--muted); font-size: .98rem; margin: var(--s2) 0 0; display: flex; flex-direction: column; flex: 1; }
.card .wp-block-post-excerpt__more-text { margin-top: auto; font-weight: 800; font-size: .9rem; }
.card .wp-block-post-excerpt__more-text a { text-decoration: none; }
.card .wp-block-post-excerpt__more-text a::after { content: " →"; }
.wp-block-query-pagination { margin-top: var(--s5); font-family: var(--font-mono); }

/* Single note */
.single-meta { font-family: var(--font-mono); font-size: .76rem; color: var(--muted); letter-spacing: .04em; gap: var(--s2); }
.single-meta a { color: var(--cardinal); }
.wp-block-post-navigation-link { font-weight: 800; }
.wp-block-post-navigation-link a { text-decoration: none; }

/* Footer */
.site-footer .footer-col { gap: 6px; }
.site-footer .footer-col > * { margin: 0; }
.site-footer .footer-tag { font-style: italic; margin: 0; font-size: .92rem; color: rgba(245,240,227,.85); }
.site-footer .legal p { margin: 0; }
.site-footer p { color: rgba(245,240,227,.85); }

.polaroid.conformation { max-width: 360px; margin-top: var(--s3); }
.polaroid.conformation img { aspect-ratio: auto; }
.inbox { gap: var(--s4); }
.inbox .icon { flex: 0 0 56px; }
.inbox h2 { font-size: 1.5rem; }

/* 404 */
.page-404 { padding: var(--s7) 16px; }
.big-404 { font-family: var(--font-display); }
.page-404 .lede { margin: 0 auto; }
.page-404 .wp-block-buttons { justify-content: center; }
.all-notes { margin-top: var(--s3); font-weight: 800; }

/* Details block = accordion */
.accordion .wp-block-details { padding: 0; }
.accordion .wp-block-details > .inner { margin: 0; }
