/*
Theme Name: Ash Bento
Theme URI: https://ashleygiles.me
Author: Ashley Giles
Author URI: https://ashleygiles.me
Description: A quiet, bento-style personal site. A homepage of cards, breadcrumb navigation with "keep exploring" cards on inner pages, a live Last.fm listening card (now playing and the track before it), and light and dark modes.
Version: 1.1.5
Requires at least: 6.0
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: ash-bento
*/

/* ==========================================================================
   1. Tokens
   Off-white, greys, forest greens and blacks. The four Mosaic colours are used
   only for The Mosaic (the tile mark on the newsletter card).
   ========================================================================== */

:root {
  --ab-ground: #ECECE7;
  --ab-card: #FBFBF9;
  --ab-line: #DADAD5;
  --ab-card-line: transparent; /* set to var(--ab-line) to draw a fine outline on every card */
  --ab-strong: #B5B6B0;
  --ab-ink: #161816;
  --ab-ink2: #464946;
  --ab-muted: #5F625E;
  --ab-sage: #DCE4DD;
  --ab-stone: #E1E1DC;
  --ab-tline: rgba(22, 24, 22, 0.14);
  --ab-btn-bg: #161816;
  --ab-btn-fg: #FAFAF8;
  --ab-input: #FFFFFF;
  --ab-focus: #2F6B52;

  --ab-forest: #1F4A38;
  --ab-forest-fg: #F1F2EE;
  --ab-forest-fg2: #BFD3C7;
  --ab-forest-line: rgba(255, 255, 255, 0.18);

  --ab-night: #121412;
  --ab-night-rule: rgba(255, 255, 255, 0.12);

  --ab-saffron: #F0B12F;
  --ab-coral: #E5553D;
  --ab-cobalt: #4F6BEA;
  --ab-jade: #2AA285;

  --ab-serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  --ab-sans: 'Schibsted Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --ab-ground: #0E100E;
  --ab-card: #191B19;
  --ab-line: #2B2E2B;
  --ab-strong: #454945;
  --ab-ink: #EDEEEA;
  --ab-ink2: #B5B8B3;
  --ab-muted: #8F938D;
  --ab-sage: #17261D;
  --ab-stone: #1F211F;
  --ab-tline: rgba(255, 255, 255, 0.12);
  --ab-btn-bg: #EDEEEA;
  --ab-btn-fg: #0F110F;
  --ab-input: #0F110F;
  --ab-focus: #8FCFAE;
  --ab-forest: #1C3B2D;
  --ab-forest-fg: #EEF0EB;
  --ab-forest-fg2: #A9C4B5;
  --ab-forest-line: rgba(255, 255, 255, 0.16);
  --ab-night: #070807;
}

/* No-JavaScript fallback: follow the visitor's system setting */
@media (prefers-color-scheme: dark) {
  html:not([data-theme]) {
    color-scheme: dark;
    --ab-ground: #0E100E;
    --ab-card: #191B19;
    --ab-line: #2B2E2B;
    --ab-strong: #454945;
    --ab-ink: #EDEEEA;
    --ab-ink2: #B5B8B3;
    --ab-muted: #8F938D;
    --ab-sage: #17261D;
    --ab-stone: #1F211F;
    --ab-tline: rgba(255, 255, 255, 0.12);
    --ab-btn-bg: #EDEEEA;
    --ab-btn-fg: #0F110F;
    --ab-input: #0F110F;
    --ab-focus: #8FCFAE;
    --ab-forest: #1C3B2D;
    --ab-forest-fg: #EEF0EB;
    --ab-forest-fg2: #A9C4B5;
    --ab-forest-line: rgba(255, 255, 255, 0.16);
    --ab-night: #070807;
  }
}

/* ==========================================================================
   2. Base
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--ab-ground);
  color: var(--ab-ink);
  font-family: var(--ab-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img, svg, video { max-width: 100%; height: auto; }
a { color: inherit; }
button, input { font: inherit; }

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--ab-focus);
  outline-offset: 3px;
}

.card--night a:focus-visible,
.card--night button:focus-visible,
.card--forest a:focus-visible,
.card--forest button:focus-visible {
  outline-color: #A8DDBF;
}

.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  overflow: hidden; clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link:focus {
  position: fixed !important;
  top: 12px; left: 12px; z-index: 100;
  width: auto; height: auto; margin: 0; padding: 12px 16px;
  clip: auto; clip-path: none;
  background: var(--ab-btn-bg); color: var(--ab-btn-fg);
  border-radius: 12px; text-decoration: none;
}

/* ==========================================================================
   3. Layout
   ========================================================================== */

.site {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 880px;
  margin: 0 auto;
  padding: 56px 0 40px;
}

.site-main {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.card-row {
  display: flex;
  gap: 16px;
}

.card-row > .card {
  flex: 1 1 0;
  min-width: 0;
}

.card {
  border: 1px solid var(--ab-card-line);
  border-radius: 24px;
  padding: 36px;
}

.card--paper  { background: var(--ab-card); }
.card--sage   { background: var(--ab-sage); }
.card--stone  { background: var(--ab-stone); }
.card--forest { background: var(--ab-forest); color: var(--ab-forest-fg); }
.card--night  { background: var(--ab-night); color: #F4F5F2; padding: 0; }

.card-title {
  margin: 0 0 20px;
  font-family: var(--ab-serif);
  font-weight: 500;
  font-size: 28px;
  line-height: 1.15;
}

.card-title a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
}

.card-title a:hover { text-decoration: underline; text-underline-offset: 5px; }

/* ==========================================================================
   4. Controls
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 48px;
  padding: 0 20px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-family: var(--ab-sans);
  font-size: 16px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
}

.btn--primary { background: var(--ab-btn-bg); color: var(--ab-btn-fg); border-color: var(--ab-btn-bg); }
.btn--ghost   { background: transparent; color: var(--ab-ink); border-color: var(--ab-strong); }
.btn:hover    { opacity: 0.88; }
.btn[disabled] { opacity: 0.6; cursor: default; }

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid var(--ab-strong);
  background: transparent;
  color: var(--ab-ink);
  cursor: pointer;
}

.theme-toggle .icon-sun { display: none; }
html[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
html[data-theme="dark"] .theme-toggle .icon-sun { display: block; }

/* ==========================================================================
   5. Header (inner pages): breadcrumb + theme toggle
   ========================================================================== */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 44px;
}

.breadcrumb { flex: 1 1 0; min-width: 0; }

.breadcrumb ol {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 16px;
  line-height: 1.2;
}

.breadcrumb li {
  display: flex;
  align-items: center;
  min-height: 44px;
  flex-shrink: 0;
}

.breadcrumb li + li::before {
  content: "/";
  margin: 0 10px;
  color: var(--ab-muted);
}

.breadcrumb li:last-child { flex: 1 1 0; min-width: 0; }

.breadcrumb a {
  color: var(--ab-ink2);
  text-decoration: underline;
  text-decoration-color: var(--ab-strong);
  text-underline-offset: 5px;
}

.breadcrumb a:hover { color: var(--ab-ink); text-decoration-color: currentColor; }

.breadcrumb [aria-current="page"] {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 500;
  color: var(--ab-ink);
}

/* ==========================================================================
   6. Homepage cards
   ========================================================================== */

/* Intro */
.intro { padding: 24px 48px 48px; }

.intro__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 36px;
}

.intro__name {
  margin: 0;
  font-family: var(--ab-serif);
  font-weight: 500;
  font-size: 24px;
  line-height: 1.2;
}

.intro__body { display: flex; align-items: flex-start; gap: 48px; }
.intro__text { flex: 1 1 0; min-width: 0; }

.intro__statement {
  margin: 0 0 32px;
  font-family: var(--ab-serif);
  font-weight: 400;
  font-size: 40px;
  line-height: 1.16;
  letter-spacing: -0.01em;
}

.intro__buttons { display: flex; flex-wrap: wrap; gap: 12px; }

.intro__photo { flex-shrink: 0; width: 184px; margin: 0; }
.intro__photo img { display: block; width: 100%; height: auto; border-radius: 16px; }

/* Currently */
.currently__list { margin: 0; padding: 0; list-style: none; }

.currently__list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin: 0 0 14px;
  font-size: 16px;
  line-height: 1.5;
}

.currently__list li::before {
  content: "";
  flex-shrink: 0;
  width: 7px; height: 7px;
  margin-top: 8px;
  background: var(--ab-ink);
}

.currently__list a { text-underline-offset: 3px; }

/* The Mosaic: the only place the four colours live */
.mosaic { display: flex; flex-direction: column; }

.mosaic-mark {
  display: grid;
  grid-template-columns: repeat(2, 24px);
  gap: 4px;
  margin-bottom: 20px;
}

.mosaic-mark i { display: block; width: 24px; height: 24px; border-radius: 4px; }
.mosaic-mark i:nth-child(1) { background: var(--ab-saffron); }
.mosaic-mark i:nth-child(2) { background: var(--ab-coral); }
.mosaic-mark i:nth-child(3) { background: var(--ab-cobalt); }
.mosaic-mark i:nth-child(4) { background: var(--ab-jade); }

.mosaic .card-title { margin-bottom: 12px; }
.mosaic__blurb { margin: 0 0 24px; font-size: 16px; line-height: 1.55; }
.mosaic__form-wrap { margin-top: auto; }
.mosaic-form { display: flex; gap: 10px; }

.mosaic-form input[type="email"] {
  flex: 1 1 0;
  min-width: 0;
  height: 48px;
  padding: 0 16px;
  border-radius: 12px;
  border: 1px solid var(--ab-strong);
  background: var(--ab-input);
  color: var(--ab-ink);
  font-size: 16px;
}

.mosaic-form input::placeholder { color: var(--ab-muted); opacity: 1; }

.mosaic__note,
.mosaic__thanks { margin: 12px 0 0; font-size: 14px; line-height: 1.4; color: var(--ab-ink2); }
.mosaic__thanks { font-weight: 500; color: var(--ab-ink); }

.mosaic__powered,
.mosaic__legal { margin: 12px 0 0; font-size: 13px; line-height: 1.5; color: var(--ab-muted); }
.mosaic__legal a { text-underline-offset: 3px; }

/* Latest article */
.latest { display: flex; flex-direction: column; }

.latest__title {
  margin: 0 0 12px;
  font-family: var(--ab-serif);
  font-weight: 500;
  font-size: 25px;
  line-height: 1.25;
}

.latest__title a { text-decoration: none; }
.latest__title a:hover { text-decoration: underline; text-underline-offset: 4px; }
.latest__excerpt { margin: 0 0 24px; font-size: 16px; line-height: 1.55; }

.latest__more {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 8px;
  min-height: 44px;
  margin-top: auto;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Say hello */
.contact__list { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; }

.contact__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  text-decoration: none;
  color: var(--ab-forest-fg);
}

.contact__list li + li .contact__row { border-top: 1px solid var(--ab-forest-line); }
.contact__label { color: var(--ab-forest-fg2); }
.contact__value { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; text-align: right; overflow-wrap: anywhere; }
.contact__row:hover .contact__value { text-decoration: underline; text-underline-offset: 4px; }

/* Full contact-page list sits on a paper card, not the forest card the base
   rules above were written for — override to the paper card's own text
   and border tokens so it actually has contrast. */
.contact__list--full .contact__row { color: var(--ab-ink); min-height: 56px; }
.contact__list--full .contact__label { color: var(--ab-muted); }
.contact__list--full li + li .contact__row { border-top: 1px solid var(--ab-line); }

/* ==========================================================================
   7. Listening card: the track playing now, and the one before it
   ========================================================================== */

.listening { display: flex; align-items: stretch; }
.listening[hidden] { display: none; }

.listening__panel {
  display: flex;
  align-items: center;
  min-width: 0;
  padding: 32px;
  color: #F4F5F2;
  text-decoration: none;
}

.listening__panel[hidden], .listening__rule[hidden] { display: none; }
.listening__panel--now { flex: 1.4 1 0; gap: 28px; }
.listening__panel--before { flex: 1 1 0; gap: 20px; padding-right: 36px; }
.listening__rule { width: 1px; margin: 28px 0; background: var(--ab-night-rule); }
.listening__text { display: block; flex: 1 1 0; min-width: 0; }

.listening__status { display: block; margin-bottom: 4px; font-size: 16px; line-height: 1.4; color: #9DA19B; }
.listening__panel--now.is-playing .listening__status { color: #A8DDBF; }
.listening__panel--before .listening__status { font-size: 15px; }

.listening__title {
  display: block;
  margin-bottom: 4px;
  font-family: var(--ab-serif);
  font-weight: 400;
  font-size: 38px;
  line-height: 1.12;
  overflow-wrap: anywhere;
}

.listening__panel--before .listening__title { font-size: 24px; }
.listening__artist { display: block; font-size: 18px; line-height: 1.4; color: #B5B8B3; }
.listening__panel--before .listening__artist { font-size: 15px; }
.listening__panel:hover .listening__title { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }

/* The marble: clear glass, colour only in a few wisps taken from the cover art */
.np {
  --s: 96px;
  position: relative;
  display: block;
  flex: 0 0 auto;
  width: calc(var(--s) + 16px);
  height: calc(var(--s) + 26px);
}

.np--now    { --s: 96px; }
.np--before { --s: 64px; }

.np::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 4px;
  width: calc(var(--s) * 0.8);
  height: 9px;
  margin-left: calc(var(--s) * -0.4);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  filter: blur(5px);
}

.np-ball {
  position: absolute;
  top: 4px;
  left: 8px;
  width: var(--s);
  height: var(--s);
  border-radius: 50%;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.02) 55%, rgba(255, 255, 255, 0) 72%),
    radial-gradient(circle at 50% 50%, rgba(140, 160, 170, 0) 58%, rgba(140, 160, 170, 0.24) 100%);
  -webkit-mask-image: radial-gradient(closest-side, #000 98%, transparent 100%);
  mask-image: radial-gradient(closest-side, #000 98%, transparent 100%);
}

.np-swirl::before,
.np-swirl::after {
  content: "";
  position: absolute;
  inset: -25%;
  background-image: var(--np-art, conic-gradient(from 0deg, #2A7A5F, #8FB8AE, #DCE4DD, #2A7A5F));
  background-size: cover;
  background-position: center;
  -webkit-mask-image: url("assets/img/marble-wisps.svg");
  mask-image: url("assets/img/marble-wisps.svg");
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}

.np-swirl::before {
  filter: saturate(1.8) contrast(1.15) blur(1.2px);
  transform: rotate(-20deg) scale(1.15);
  animation: ab-drift-a 18s linear infinite;
}

.np-swirl::after {
  background-size: 190%;
  background-position: 15% 85%;
  filter: saturate(1.7) blur(1.4px);
  opacity: 0.6;
  transform: scaleX(-1) rotate(40deg) scale(1.25);
  animation: ab-drift-b 26s linear infinite;
}

@keyframes ab-drift-a {
  from { transform: rotate(-20deg) scale(1.15); }
  to   { transform: rotate(340deg) scale(1.15); }
}

@keyframes ab-drift-b {
  from { transform: scaleX(-1) rotate(40deg) scale(1.25); }
  to   { transform: scaleX(-1) rotate(400deg) scale(1.25); }
}

.np--rest .np-swirl::before,
.np--rest .np-swirl::after { animation: none; }

.listening__panel:hover .np-swirl::before,
.listening__panel:hover .np-swirl::after,
.listening__panel:focus-visible .np-swirl::before,
.listening__panel:focus-visible .np-swirl::after { animation-play-state: paused; }

.np-gloss {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    radial-gradient(ellipse 30% 18% at 30% 20%, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0) 100%),
    radial-gradient(circle at 70% 78%, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0) 24%),
    radial-gradient(circle at 50% 46%, rgba(255, 255, 255, 0) 50%, rgba(0, 0, 0, 0.3) 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.3),
    inset 0 0 0 2px rgba(255, 255, 255, 0.06),
    inset 3px 4px 8px rgba(255, 255, 255, 0.2),
    inset -5px -7px 12px rgba(0, 0, 0, 0.4);
}

@media (prefers-reduced-motion: reduce) {
  .np-swirl::before,
  .np-swirl::after { animation: none; }
}

/* ==========================================================================
   8. Inner pages: content card, article tiles, "keep exploring"
   ========================================================================== */

.entry { padding: 56px; }
.entry__inner { max-width: 680px; }

.entry-title {
  margin: 0 0 24px;
  font-family: var(--ab-serif);
  font-weight: 500;
  font-size: 48px;
  line-height: 1.1;
  letter-spacing: -0.01em;
  overflow-wrap: anywhere;
}

.entry-meta { margin: -12px 0 32px; font-size: 15px; line-height: 1.4; color: var(--ab-muted); }

.entry-hero { margin: 0 0 36px; }
.entry-hero img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 16px; }

.entry-content { font-size: 17px; line-height: 1.65; }
.entry-content > *:first-child { margin-top: 0; }
.entry-content > *:last-child { margin-bottom: 0; }
.entry-content p { margin: 0 0 20px; }

.entry-content .lede,
.entry-content p.is-lede {
  font-family: var(--ab-serif);
  font-size: 26px;
  line-height: 1.4;
  margin-bottom: 28px;
}

.entry-content h2, .entry-content h3, .entry-content h4 {
  font-family: var(--ab-serif);
  font-weight: 500;
  line-height: 1.2;
  margin: 40px 0 16px;
}

.entry-content h2 { font-size: 30px; }
.entry-content h3 { font-size: 24px; }
.entry-content h4 { font-size: 20px; }

.entry-content a { text-underline-offset: 3px; }
.entry-content a:hover { text-decoration-thickness: 2px; }

.entry-content ul, .entry-content ol { margin: 0 0 24px; padding: 0; list-style: none; }
.entry-content li { position: relative; margin: 0 0 10px; padding-left: 24px; }
.entry-content ul > li::before { content: ""; position: absolute; left: 0; top: 0.68em; width: 6px; height: 6px; background: var(--ab-ink); }
.entry-content ol { counter-reset: ab-item; }
.entry-content ol > li { counter-increment: ab-item; padding-left: 34px; }
.entry-content ol > li::before { content: counter(ab-item, decimal-leading-zero); position: absolute; left: 0; top: 0.1em; font-size: 13px; font-weight: 500; color: var(--ab-muted); font-variant-numeric: tabular-nums; }

.entry-content .cv-role { margin-bottom: 28px; }
.entry-content .cv-role h3 { margin-bottom: 4px; }
.entry-content .cv-meta {
  font-family: var(--ab-sans);
  font-size: 13px;
  color: var(--ab-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0 0 12px;
}
.entry-content .cv-download {
  margin: 4px 0 32px;
}

.cv-brief-card h2 {
  color: var(--ab-forest);
  margin-top: 0;
}
.cv-brief-card p { color: var(--ab-ink2); }
.cv-brief-card .cv-brief-label {
  font-family: var(--ab-sans);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ab-muted);
  margin: 18px 0 8px;
}
.cv-brief-card .cv-brief-label:first-of-type { margin-top: 0; }
.cv-brief-card .cv-brief-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-top: 1px solid var(--ab-line);
  font-family: var(--ab-sans);
}
.cv-brief-card .cv-brief-row:last-of-type { border-bottom: 1px solid var(--ab-line); }
.cv-brief-card .cv-brief-row .role-title { font-family: var(--ab-serif); font-size: 14px; color: var(--ab-ink); }
.cv-brief-card .cv-brief-row .role-date { font-size: 11px; color: var(--ab-muted); flex-shrink: 0; white-space: nowrap; }
.cv-brief-card .btn { margin-top: 20px; }
.entry-content .cv-download::after {
  content: "";
  display: inline-block;
  width: 15px;
  height: 15px;
  margin-left: 2px;
  background-color: currentColor;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%271.8%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%27M12%203v12%27%2F%3E%3Cpath%20d%3D%27M7%2010l5%205%205-5%27%2F%3E%3Cpath%20d%3D%27M4%2019h16%27%2F%3E%3C%2Fsvg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%271.8%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%27M12%203v12%27%2F%3E%3Cpath%20d%3D%27M7%2010l5%205%205-5%27%2F%3E%3Cpath%20d%3D%27M4%2019h16%27%2F%3E%3C%2Fsvg%3E");
}

.entry-content blockquote {
  margin: 32px 0;
  padding: 4px 0 4px 22px;
  border-left: 2px solid var(--ab-ink);
  font-family: var(--ab-serif);
  font-size: 22px;
  line-height: 1.45;
  color: var(--ab-ink2);
}

.entry-content blockquote p { margin-bottom: 12px; }
.entry-content figure { margin: 32px 0; }
.entry-content img { border-radius: 12px; }
.entry-content figcaption, .entry-content .wp-caption-text { margin-top: 10px; font-size: 14px; color: var(--ab-muted); }
.entry-content hr { margin: 40px 0; border: 0; border-top: 1px solid var(--ab-line); }
.entry-content code, .entry-content pre { font-size: 0.9em; background: var(--ab-stone); border-radius: 6px; }
.entry-content code { padding: 2px 6px; }
.entry-content pre { padding: 16px; overflow-x: auto; }
.entry-content pre code { padding: 0; background: none; }
.entry-content table { width: 100%; border-collapse: collapse; margin: 0 0 24px; font-size: 16px; }
.entry-content th, .entry-content td { padding: 10px 12px; border-bottom: 1px solid var(--ab-line); text-align: left; }
.entry-content .alignleft { float: left; margin: 4px 24px 16px 0; }
.entry-content .alignright { float: right; margin: 4px 0 16px 24px; }
.entry-content .aligncenter { display: block; margin-left: auto; margin-right: auto; }
.entry-content iframe, .entry-content video { max-width: 100%; border-radius: 12px; }
.entry-content .wp-block-button__link { border-radius: 12px; background: var(--ab-btn-bg); color: var(--ab-btn-fg); }

.page-head { padding: 36px 48px; }
.page-head .entry-title { margin: 0; font-size: 40px; }

/* The Newsletter page */
.newsletter .mosaic-mark { grid-template-columns: repeat(2, 40px); gap: 6px; margin-bottom: 32px; }
.newsletter .mosaic-mark i { width: 40px; height: 40px; border-radius: 8px; }
.newsletter .entry-title { margin-bottom: 16px; }

.newsletter__lede {
  max-width: 560px;
  margin: 0 0 32px;
  font-family: var(--ab-serif);
  font-size: 26px;
  line-height: 1.4;
}

.newsletter .mosaic__form-wrap { max-width: 520px; margin-top: 0; }
.newsletter__archive { margin: 36px 0 0; }

/* Shown only to logged-in admins, when the listening card cannot appear */
.listening-notice p { margin: 0 0 12px; font-size: 16px; line-height: 1.55; }
.listening-notice .btn { margin-top: 8px; }

/* Article tiles (Articles page, archives, search) */
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }

.tile {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 28px;
  border: 1px solid var(--ab-card-line);
  border-radius: 24px;
  background: var(--ab-stone);
}

.tile:nth-child(4n + 1), .tile:nth-child(4n + 4) { background: var(--ab-sage); }

.tile__image { display: block; margin: 0 0 20px; }
.tile__image img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 14px; }

.tile__title {
  margin: 0 0 8px;
  font-family: var(--ab-serif);
  font-weight: 500;
  font-size: 26px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.tile:not(:has(.tile__image)) .tile__title { font-size: 30px; }
.tile__title a { text-decoration: none; }
.tile__title a:hover { text-decoration: underline; text-underline-offset: 4px; }
.tile__excerpt { flex: 1 1 auto; margin: 0 0 20px; font-size: 16px; line-height: 1.55; color: var(--ab-ink2); }
.tile__meta { margin: 0; font-size: 14px; color: var(--ab-muted); }
.no-results { padding: 36px; }

.mosaic-list__heading {
  margin-top: 28px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ab-muted);
}
.mosaic-list {
  display: flex;
  flex-direction: column;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}
.mosaic-list li + li a { border-top: 1px solid var(--ab-line); }
.mosaic-list a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  min-height: 48px;
  color: var(--ab-ink);
  text-decoration: none;
}
.mosaic-list a:hover { color: var(--ab-forest); text-decoration: underline; text-underline-offset: 4px; }
.mosaic-list a span { flex-shrink: 0; font-size: 13px; color: var(--ab-muted); }

.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; }

.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 16px;
  border-radius: 12px;
  border: 1px solid var(--ab-strong);
  text-decoration: none;
  font-weight: 500;
}

.pagination .page-numbers.current { background: var(--ab-btn-bg); color: var(--ab-btn-fg); border-color: var(--ab-btn-bg); }

/* Keep exploring */
.explore { display: flex; gap: 16px; }

.explore__card {
  display: flex;
  flex-direction: column;
  flex: 1 1 0;
  gap: 8px;
  min-width: 0;
  padding: 28px 28px 26px;
  border: 1px solid var(--ab-card-line);
  border-radius: 24px;
  color: var(--ab-ink);
  text-decoration: none;
}

.explore__card--sage  { background: var(--ab-sage); }
.explore__card--stone { background: var(--ab-stone); }
.explore__card--paper { background: var(--ab-card); }
.explore__card .mosaic-mark { margin: 0 0 4px; grid-template-columns: repeat(2, 16px); gap: 3px; }
.explore__card .mosaic-mark i { width: 16px; height: 16px; border-radius: 3px; }

.explore__title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--ab-serif);
  font-weight: 500;
  font-size: 26px;
  line-height: 1.15;
}

.explore__card:hover .explore__title { text-decoration: underline; text-underline-offset: 5px; }
.explore__blurb { font-size: 16px; line-height: 1.5; color: var(--ab-ink2); }

/* Footer */
.site-footer { padding-top: 16px; }
.site-footer p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--ab-muted); }

/* ==========================================================================
   9. Smaller screens
   ========================================================================== */

@media (max-width: 960px) {
  .site { padding-left: 20px; padding-right: 20px; }
}

@media (max-width: 720px) {
  .site { gap: 12px; padding: 24px 20px 40px; }
  .site-main { gap: 12px; }
  .card { padding: 28px 24px; border-radius: 20px; }
  .card--night { padding: 0; }
  .card-row { flex-direction: column; gap: 12px; }
  .card-title { font-size: 26px; }

  .intro { padding: 20px 24px 28px; }
  .intro__top { margin-bottom: 24px; }
  .intro__name { font-size: 22px; }
  .intro__body { flex-direction: column; gap: 0; }
  .intro__photo { order: -1; width: 168px; margin-bottom: 24px; }
  .intro__statement { margin-bottom: 24px; font-size: 30px; }
  .intro__buttons { flex-direction: column; }
  .intro__buttons .btn { width: 100%; }

  .mosaic-form { flex-direction: column; }
  .mosaic-form input[type="email"] { flex: 0 0 auto; width: 100%; }
  .mosaic-form .btn { width: 100%; }

  .listening { flex-direction: column; }
  .listening__panel { padding: 24px; }
  .listening__panel--now { gap: 16px; }
  .listening__panel--before { gap: 16px; padding-right: 24px; }
  .listening__rule { width: auto; height: 1px; margin: 0 24px; }
  .np--now { --s: 80px; }
  .np--before { --s: 56px; }
  .listening__title { font-size: 30px; }
  .listening__panel--before .listening__title { font-size: 22px; }
  .listening__artist { font-size: 16px; }

  .entry { padding: 28px 24px 32px; }
  .entry-title { font-size: 36px; }
  .newsletter .mosaic-mark { grid-template-columns: repeat(2, 32px); margin-bottom: 24px; }
  .newsletter .mosaic-mark i { width: 32px; height: 32px; border-radius: 7px; }
  .newsletter__lede { font-size: 22px; }
  .entry-content { font-size: 16px; }
  .entry-content .lede, .entry-content p.is-lede { font-size: 22px; }
  .page-head { padding: 28px 24px; }
  .page-head .entry-title { font-size: 34px; }

  .tiles { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .tile { padding: 24px; border-radius: 20px; }
  .no-results { padding: 28px 24px; }

  .explore { flex-direction: column; gap: 12px; }
  .explore__card { padding: 24px; border-radius: 20px; }
  .explore__title { font-size: 24px; }

  .site-header .breadcrumb ol { font-size: 16px; }
}
