/* Maddagu Minimal — quiet, image-led pages. */
:root {
  --page: #f5f5f7;
  --card: #fff;
  --ink: #1d1d1f;
  --muted: #68686e;
  --quiet: #68686e;
  --accent: #335b48;
  --soft: #e8ebe8;
  --line: #dedee2;
  --shadow: 0 4px 22px rgb(0 0 0 / .035);
  --radius: 20px;
  --reading-width: 800px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --paper: var(--page);
  --surface: var(--soft);
  --sans: var(--font);
  color-scheme: light;
}
:root[data-theme="dark"], :root.no-js[data-color-default="dark"] {
  --page: #101112;
  --card: #1d1e20;
  --ink: #f5f5f7;
  --muted: #a8a9ae;
  --quiet: #a8a9ae;
  --accent: #b3cbbd;
  --soft: #2b302d;
  --line: #3b3c40;
  --shadow: 0 4px 22px rgb(0 0 0 / .12);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root.no-js[data-color-default="system"] {
    --page: #101112; --card: #1d1e20; --ink: #f5f5f7; --muted: #a8a9ae;
    --quiet: #a8a9ae; --accent: #b3cbbd; --soft: #2b302d; --line: #3b3c40;
    --shadow: 0 4px 22px rgb(0 0 0 / .12); color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 28px; }
body { margin: 0; background: var(--page); color: var(--ink); font: 16px/1.5 var(--font); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { color: inherit; cursor: pointer; border: 0; background: none; }
img { display: block; max-width: 100%; height: auto; }
svg { max-width: 100%; }
h1, h2, h3, h4, h5, h6, p, figure { margin: 0; }
h1, h2, h3, h4, h5, h6 { font-weight: 650; letter-spacing: -.035em; line-height: 1.12; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; }
[hidden] { display: none !important; }
.container { width: min(1060px, calc(100% - 64px)); margin-inline: auto; }
.skip-link { position: fixed; z-index: 10000; left: 20px; top: -100px; padding: 12px 18px; background: var(--card); border-radius: 8px; }
.skip-link:focus { top: 12px; }
.site-header { background: var(--card); position: relative; z-index: 20; }
.header-inner { width: min(1060px, calc(100% - 64px)); margin: auto; display: flex; align-items: center; min-height: 76px; gap: 28px; }
.wordmark { font-size: 26px; font-weight: 700; letter-spacing: -1.4px; line-height: 1.1; overflow-wrap: anywhere; }
.custom-logo-link { display: block; flex-shrink: 0; }
.custom-logo { width: auto; max-width: 200px; max-height: 44px; object-fit: contain; }
.header-actions { display: flex; align-items: center; gap: 12px; margin-left: auto; flex-shrink: 0; }
.site-nav { margin-left: auto; }
.primary-menu, .primary-menu .sub-menu { margin: 0; padding: 0; list-style: none; }
.primary-menu { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 4px 24px; }
.primary-menu li { position: relative; }
.primary-menu > li { display: flex; align-items: center; }
.primary-menu a { display: block; font-size: 13px; color: var(--muted); padding: 12px 0; overflow-wrap: anywhere; }
.primary-menu a:hover, .primary-menu a[aria-current="page"], .primary-menu .current-menu-ancestor > a { color: var(--ink); }
.submenu-toggle { display: inline-grid; place-items: center; width: 28px; height: 40px; flex: 0 0 28px; border-radius: 8px; padding: 5px; }
.submenu-toggle svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.submenu-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.submenu-toggle:hover { background: var(--page); }
.primary-menu .sub-menu { display: none; position: absolute; z-index: 25; top: 100%; left: -12px; width: 220px; padding: 8px; background: var(--card); border-radius: 14px; box-shadow: 0 8px 32px rgb(0 0 0 / .12); }
.primary-menu .is-open > .sub-menu, .no-js .primary-menu li:hover > .sub-menu, .no-js .primary-menu li:focus-within > .sub-menu { display: block; }
.primary-menu .sub-menu li { display: flex; align-items: center; }
.primary-menu .sub-menu a { padding: 10px 12px; flex: 1; border-radius: 8px; font-size: 14px; }
.primary-menu .sub-menu a:hover { background: var(--page); }
.primary-menu .sub-menu .sub-menu { left: 100%; top: 0; }
.primary-menu > .opens-left > .sub-menu { left: auto; right: -12px; }
.primary-menu .sub-menu .opens-left > .sub-menu { left: auto; right: 100%; }
.icon-button { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; padding: 10px; }
.icon-button:hover { background: var(--page); }
.icon-button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; }
.menu-toggle { display: none; }
.no-js .theme-toggle, .no-js .submenu-toggle { display: none; }
main { min-height: calc(100vh - 174px); }
.home-page, .collection-page, .tpl-page { padding-block: 52px 64px; }
.page-heading, .tpl-intro { margin-bottom: 28px; }
.page-heading h1, .tpl-intro h1 { font-size: 36px; letter-spacing: -1.15px; overflow-wrap: anywhere; }
.page-heading p, .tpl-lead { color: var(--muted); max-width: 560px; font-size: 17px; margin-top: 12px; line-height: 1.6; }
.tpl-lead p { margin: 0; }
.story-card { background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); min-width: 0; }
.card-link { display: flex; flex-direction: column; height: 100%; }
.story-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s cubic-bezier(.2, .7, .3, 1); }
.card-image { aspect-ratio: 1.65; overflow: hidden; background: var(--soft); }
.card-link:hover img { transform: scale(1.018); }
.card-copy { padding: 28px 30px 30px; min-width: 0; }
.ai-label { display: inline-block; color: var(--muted); font-size: 11px; line-height: 1.5; font-weight: 500; text-transform: none; letter-spacing: 0; margin-bottom: 12px; }
.post-heading > .category .ai-label { margin: 0 0 0 10px; }
/* Keep metadata styles off WordPress’s body.category archive class. */
.card-copy > .category, .post-heading > .category { font-size: 11px; font-weight: 650; letter-spacing: .025em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.card-copy h2 { font-size: 28px; line-height: 1.15; margin-bottom: 16px; overflow-wrap: anywhere; }
.card-date, .card-copy time { display: block; font-size: 12px; color: var(--quiet); margin-top: 22px; }
.card-copy .excerpt { color: var(--muted); font-size: 15px; line-height: 1.6; max-width: 410px; overflow-wrap: anywhere; }
.story-featured .card-link { display: grid; grid-template-columns: 1.16fr 1fr; min-height: 414px; }
.story-featured .card-image { aspect-ratio: auto; height: 100%; min-height: 414px; }
.story-featured .card-copy { align-self: center; padding: 38px 42px; }
.story-featured h2 { font-size: 39px; letter-spacing: -1.5px; line-height: 1.08; margin-bottom: 18px; max-width: 350px; }
.story-featured .excerpt { font-size: 16px; line-height: 1.6; }
.story-featured .card-date, .story-featured time { margin-top: 28px; }
.story-featured.has-no-image .card-link { display: block; min-height: 0; }
.story-featured.has-no-image h2, .story-featured.has-no-image .excerpt { max-width: 680px; }
.journal-grid, .story-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.journal-grid > .story-featured { grid-column: 1 / -1; }
.story-featured + .story-grid { margin-top: 24px; }
.story-card:focus-within { outline: 3px solid var(--accent); outline-offset: 5px; }
.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 26px 34px; color: var(--quiet); font-size: 12px; }
.site-footer ul { display: flex; flex-wrap: wrap; list-style: none; gap: 10px 22px; padding: 0; margin: 0; }
.site-footer a { display: inline-block; padding-block: 6px; }
.site-footer a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.post-page { padding-block: 38px 64px; }
.back-link { display: inline-flex; gap: 8px; align-items: center; color: var(--muted); font-size: 13px; padding: 8px 0; margin-bottom: 28px; }
.back-link:hover { color: var(--accent); }
.post-page > .back-link { display: flex; width: min(100%, var(--reading-width)); margin-inline: auto; }
.post-heading { max-width: var(--reading-width); margin: 0 auto 32px; }
.post-heading .category { margin-bottom: 14px; }
.post-heading h1 { font-size: 52px; letter-spacing: -1.8px; max-width: 100%; line-height: 1.06; overflow-wrap: anywhere; }
.post-deck { font-size: 20px; line-height: 1.5; color: var(--muted); margin-top: 20px; max-width: 100%; }
.post-deck p { margin: 0; }
.post-byline { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; font-size: 12px; color: var(--muted); margin-top: 24px; }
.byline-author { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--ink); border-radius: 8px; }
.byline-author:hover span { text-decoration: underline; text-underline-offset: 3px; }
.avatar, body .wp-block-avatar img { aspect-ratio: 1; object-fit: cover; border-radius: 20%; }
.byline-avatar, .post-byline .avatar { width: 32px; height: 32px; object-fit: cover; border-radius: 7px; background: var(--soft); flex-shrink: 0; }
.post-byline time::before { content: '·'; margin-right: 9px; }
.post-cover { position: relative; overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 1.95; background: var(--soft); margin-bottom: 48px; }
.post-cover img { width: 100%; height: 100%; object-fit: cover; }
.motion-enabled .post-cover .parallax-image { position: absolute; top: -14%; height: 128%; left: 0; }
.cover-caption { position: absolute; left: 20px; bottom: 16px; right: 20px; width: fit-content; max-width: calc(100% - 40px); font-size: 11px; padding: 5px 10px; color: #fff; background: rgb(0 0 0 / .55); border-radius: 6px; }
.article-layout { width: 100%; max-width: var(--reading-width); margin-inline: auto; }
.article-layout > *, .article-main, .article-body { min-width: 0; }
.article-body { font-size: 18px; line-height: 1.8; }
.post-end { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px; margin-top: 32px; font-size: 12px; color: var(--muted); }
.author-page { padding-block: 56px 64px; }
.author-profile { display: grid; grid-template-columns: 160px minmax(0, 620px); gap: 40px; align-items: center; padding-block: 12px 54px; }
.author-portrait { width: 160px; height: 160px; border-radius: var(--radius); object-fit: cover; background: var(--soft); box-shadow: 0 5px 18px rgb(0 0 0 / .04); }
.author-profile:not(:has(.author-portrait)) { grid-template-columns: minmax(0, 780px); }
.author-details { min-width: 0; }
.author-details h1 { font-size: 46px; letter-spacing: -1.5px; margin-bottom: 16px; overflow-wrap: anywhere; }
.author-bio { font-size: 17px; line-height: 1.75; color: var(--muted); overflow-wrap: anywhere; }
.author-bio p + p { margin-top: 12px; }
.author-bio a, .author-website { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.author-website { display: inline-block; margin-top: 14px; font-size: 14px; }
.author-posts > h2 { font-size: 26px; letter-spacing: -.6px; margin-bottom: 24px; }
.author-post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.author-post-grid .card-copy { padding: 24px; }
.author-post-grid .card-copy h2 { font-size: 24px; line-height: 1.2; letter-spacing: -.7px; }
.author-post-grid .card-copy .excerpt { font-size: 14px; }
.author-post-grid .card-date, .author-post-grid .card-copy time { margin-top: 20px; }
.tpl-content, .page-content { max-width: 680px; }
.tpl-content:empty { display: none; }
.tpl-content:not(:empty) { margin-bottom: 36px; }
.tpl-media-page .tpl-content, .tpl-gallery-page .tpl-content { max-width: 100%; }
.tpl-page-feature, .page-featured-image { margin-bottom: 36px; }
.tpl-page-feature img, .page-featured-image img { width: 100%; height: auto; border-radius: var(--radius); box-shadow: var(--shadow); }
.tpl-filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 16px; margin-bottom: 30px; max-width: 820px; }
.tpl-filters label { display: block; min-width: 0; }
.tpl-filters .tpl-search { flex: 1 1 230px; }
.tpl-label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.tpl-filters input, .tpl-filters select { display: block; width: 100%; min-width: 0; height: 46px; border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; color: var(--ink); background: var(--card); font-size: 14px; }
.button, .text-link { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-size: 13px; }
.button { border-radius: 10px; min-height: 46px; padding: 11px 19px; background: var(--accent); color: var(--card); }
:root[data-theme="dark"] .button { color: var(--page); }
.text-link { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }
.tpl-archive-heading { display: flex; justify-content: space-between; gap: 20px; max-width: 760px; margin-bottom: 18px; color: var(--muted); font-size: 12px; }
.tpl-archive-list, .archive-list { max-width: 760px; }
.tpl-archive-row, .archive-item { position: relative; display: block; background: var(--card); border-radius: 16px; padding: 26px 30px; margin-bottom: 14px; box-shadow: var(--shadow); }
.tpl-archive-row time, .archive-item time { font-size: 12px; color: var(--muted); }
.tpl-archive-row h2, .archive-item h2 { font-size: 24px; margin: 10px 0; line-height: 1.2; overflow-wrap: anywhere; }
.tpl-archive-row h2 a:hover, .archive-item:hover h2 { color: var(--accent); }
.tpl-excerpt, .archive-excerpt, .archive-item p { font-size: 15px; line-height: 1.6; color: var(--muted); }
.tpl-excerpt p, .archive-excerpt p { margin: 0; }
.tpl-archive-row .eyebrow { color: var(--muted); font-size: 11px; margin-top: 10px; }
.tpl-row-arrow { position: absolute; right: 22px; top: 22px; color: var(--muted); }
.tpl-small, .tpl-tag, .agent-label { font-size: 12px; color: var(--muted); }
.agent-label { display: inline-block; margin-bottom: 18px; }
.tpl-agent-banner { color: var(--muted); font-size: 12px; margin-bottom: 24px; }
.tpl-agent-banner .eyebrow { margin-right: 12px; }
.tpl-empty, .tpl-admin-note { color: var(--muted); margin-block: 24px; max-width: 680px; }
.tpl-admin-note { font-size: 13px; }
.tpl-footnote { margin-top: 32px; color: var(--muted); font-size: 12px; }
.tpl-footnote a { text-decoration: underline; text-underline-offset: 3px; }
.page-edit-link { margin-top: 32px; color: var(--muted); font-size: 12px; text-decoration: underline; text-underline-offset: 3px; }
.empty-state { padding-block: 20px; max-width: 680px; }
.empty-state h2 { font-size: 28px; margin-bottom: 16px; }
.empty-state p { color: var(--muted); margin-bottom: 24px; }
.screen-reader-text { border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute !important; width: 1px; word-wrap: normal !important; }
.screen-reader-text:focus { clip: auto !important; clip-path: none; display: block; height: auto; left: 12px; top: 12px; width: auto; padding: 12px 18px; background: var(--card); color: var(--ink); z-index: 10000; }
@media (max-width: 1000px) {
  .header-inner { flex-wrap: wrap; column-gap: 18px; padding-block: 16px; }
  .site-nav { order: 3; flex-basis: 100%; margin: 0; }
  .js .site-nav { display: none; }
  .js .site-nav.is-open { display: block; }
  .menu-toggle { display: flex; flex-direction: column; justify-content: center; gap: 5px; }
  .menu-toggle span { display: block; width: 18px; height: 1.5px; background: currentColor; }
  .no-js .menu-toggle { display: none; }
  .primary-menu { display: block; padding-top: 8px; }
  .primary-menu li, .primary-menu .sub-menu li { display: flex; flex-wrap: wrap; }
  .primary-menu a { flex: 1; font-size: 15px; min-height: 44px; padding: 10px 0; }
  .primary-menu .submenu-toggle { width: 44px; height: 44px; flex-basis: 44px; }
  .primary-menu .sub-menu, .primary-menu .sub-menu .sub-menu, .primary-menu .opens-left > .sub-menu { position: static; flex-basis: 100%; width: auto; padding: 0 0 8px 16px; margin: 0; border-radius: 0; box-shadow: none; }
  .primary-menu .sub-menu a { padding: 10px 8px; }
  .no-js .primary-menu .sub-menu { display: block; }
}
@media (max-width: 900px) {
  .story-featured .card-link { grid-template-columns: 1.05fr 1fr; min-height: 350px; }
  .story-featured .card-image { min-height: 350px; }
  .story-featured .card-copy { padding: 30px; }
  .story-featured h2 { font-size: 33px; }
  .post-heading h1 { font-size: 46px; }
  .card-copy { padding: 24px; }
  .author-profile { grid-template-columns: 136px minmax(0, 1fr); gap: 30px; }
  .author-portrait { width: 136px; height: 136px; }
  .author-post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 650px) {
  .container, .header-inner { width: calc(100% - 40px); }
  .header-inner { min-height: 68px; gap: 14px; padding-block: 14px; }
  .wordmark { font-size: 24px; }
  .header-actions { gap: 8px; }
  .custom-logo { max-width: 160px; max-height: 36px; }
  .home-page, .collection-page, .tpl-page { padding-block: 34px 38px; }
  .page-heading, .tpl-intro { margin-bottom: 22px; }
  .page-heading h1, .tpl-intro h1 { font-size: 30px; letter-spacing: -.8px; }
  .page-heading p, .tpl-lead { font-size: 16px; }
  .story-featured .card-link { display: flex; min-height: 0; }
  .story-featured .card-image { min-height: 0; aspect-ratio: 1.42; height: auto; }
  .story-featured .card-copy { padding: 25px; }
  .story-featured h2 { font-size: 32px; letter-spacing: -1px; max-width: none; }
  .story-featured .excerpt { font-size: 15px; }
  .story-featured .card-date, .story-featured time { margin-top: 20px; }
  .journal-grid, .story-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .story-featured + .story-grid { margin-top: 20px; }
  .card-image { aspect-ratio: 1.55; }
  .card-copy h2 { font-size: 27px; }
  .card-copy { padding: 25px; }
  .site-footer { align-items: flex-start; flex-direction: column; gap: 8px; padding-block: 22px 28px; }
  .post-page { padding-top: 20px; }
  .back-link { margin-bottom: 22px; }
  .post-heading h1 { font-size: 38px; letter-spacing: -1.25px; }
  .post-deck { font-size: 18px; }
  .post-byline { font-size: 11px; gap: 8px; }
  .post-cover { aspect-ratio: 1.35; margin-bottom: 32px; border-radius: 16px; }
  .article-body { font-size: 17px; }
  .author-page { padding-block: 34px 38px; }
  .author-profile { grid-template-columns: minmax(0, 1fr); gap: 22px; padding: 0 0 38px; }
  .author-portrait { width: 112px; height: 112px; }
  .author-details h1 { font-size: 36px; letter-spacing: -1px; margin-bottom: 14px; }
  .author-bio { font-size: 16px; line-height: 1.7; }
  .author-posts > h2 { font-size: 23px; margin-bottom: 20px; }
  .author-post-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .author-post-grid .card-copy { padding: 25px; }
  .author-post-grid .card-copy h2 { font-size: 27px; }
  .author-post-grid .card-copy .excerpt { font-size: 15px; }
  .tpl-filters { gap: 14px; }
  .tpl-filters > label { flex-basis: 100%; }
  .tpl-archive-row, .archive-item { padding: 22px; }
  .tpl-archive-row h2, .archive-item h2 { font-size: 22px; }
}
@media (max-width: 360px) {
  .container, .header-inner { width: calc(100% - 32px); }
  .wordmark { font-size: 22px; }
  .header-inner { column-gap: 10px; }
  .header-actions { gap: 2px; }
  .post-heading h1 { font-size: 34px; }
  .card-copy, .story-featured .card-copy { padding: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
