/* Perez Pereira Editorial — extension of Dawn; no build step required. */
:root, html.theme-light {
    --paper: #f0f3f5;
    --paper-inset: #e4eaf0;
    --ink: #1f304b;
    --muted: #546479;
    --rule: #cbd5df;
    --accent: #9c3159;
    --brand-color: var(--accent);
    --primary-text-color: var(--ink);
    --secondary-text-color: var(--muted);
    --darker-gray-color: var(--ink);
    --white-color: var(--paper);
    --light-gray-color: var(--rule);
    --lighter-gray-color: var(--paper-inset);
    --content-font-size: 1.9rem;
}
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { background: var(--paper); color: var(--ink); -webkit-font-smoothing: antialiased; }
::selection { background: #e6c9d5; color: #1f304b; }
a { color: inherit; }
a, button { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
.gh-inner { max-width: 1120px; }
.gh-outer { padding-right: max(24px, 5vw); padding-left: max(24px, 5vw); }
.skip-link { position: fixed; top: 8px; left: 16px; z-index: 1000; padding: 12px 18px; background: var(--ink); color: var(--paper); transform: translateY(-180%); }
.skip-link:focus { transform: none; }
#gh-head { background: var(--paper); height: 102px; }
.gh-head-inner { border-bottom: 1px solid var(--rule); }
.gh-head-logo { display: inline-flex; align-items: center; gap: 12px; font-size: 20px; }
.gh-head-logo .editorial-mark { width: 35px; max-height: 42px; object-fit: contain; }
.editorial-wordmark { display: block; font-family: var(--font-serif); font-size: 20px; font-weight: 700; letter-spacing: -.55px; line-height: 1.35; white-space: nowrap; }
.editorial-wordmark > span { display: block; margin-top: 3px; font-family: var(--font-sans); font-size: 10px; font-weight: 400; letter-spacing: .9px; text-transform: uppercase; color: var(--muted); }
.gh-head-menu .nav { gap: 25px; font-size: 13px; }
.gh-head-menu .nav-current a { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 7px; text-decoration-thickness: 1px; }
.gh-head-actions { gap: 22px; }
.gh-head-members { gap: 20px; font-size: 13px; }
.gh-head-btn.gh-btn { background: var(--ink); color: var(--paper); border-radius: 4px; padding: 11px 17px; min-height: 40px; font-size: 12px; }
.gh-head-link { font-size: 13px; }
.gh-icon-btn { color: var(--ink); }
.editorial-cover { padding-top: 74px; padding-bottom: 64px; }
.editorial-intro { display: grid; grid-template-columns: 1.65fr 1fr; gap: 72px; align-items: end; }
.eyebrow { font-family: var(--font-sans); font-size: 10px; font-weight: 700; line-height: 1.5; letter-spacing: 1.6px; text-transform: uppercase; color: var(--accent); }
.editorial-intro-main > .eyebrow { margin: 0 0 22px; }
.editorial-intro h1 { font-family: var(--font-serif); font-size: clamp(44px, 5vw, 68px); font-weight: 400; line-height: 1.12; letter-spacing: -2.7px; max-width: 650px; margin: 0 0 28px; color: var(--ink); }
.text-link { display: inline-flex; align-items: center; gap: 16px; font-size: 13px; font-weight: 700; line-height: 1.6; text-decoration: none; color: var(--accent); }
.text-link:hover { text-decoration: underline; text-underline-offset: 5px; }
.text-link > span { font-size: 19px; font-weight: 400; }
.editorial-intro-note { padding: 8px 0 9px 30px; border-left: 1px solid var(--rule); }
.editorial-intro-note > p { margin: 0 0 24px; font-size: 16px; line-height: 1.85; color: var(--muted); max-width: 320px; }
.editorial-button { display: inline-flex; align-items: center; justify-content: center; gap: 20px; padding: 13px 17px; min-height: 46px; background: var(--accent); color: #fff; border: 1px solid var(--accent); border-radius: 4px; font-size: 12px; font-weight: 700; transition: background .15s; }
.editorial-button:hover { background: #802346; color: #fff; }
.editorial-caption { display: block; color: var(--muted); font-size: 11px; line-height: 1.7; margin-top: 12px; }
.home-template .site-content, .paged .site-content { padding-top: 0; }
.editorial-section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; padding: 22px 0; border-top: 1px solid var(--ink); }
.editorial-section-heading h2 { font-size: 11px; line-height: 1.6; letter-spacing: 1.8px; text-transform: uppercase; font-weight: 700; margin: 0; }
.editorial-section-heading > span { font-size: 11px; color: var(--muted); }
.editorial-feed { display: block; }
.feed.editorial-lead { display: grid; grid-template-columns: 190px 1fr; gap: 40px; padding: 26px 0 40px; overflow: visible; line-height: 1.5; }
.editorial-lead-kicker { display: flex; flex-direction: column; gap: 12px; padding-top: 9px; }
.editorial-lead-kicker time { font-size: 12px; color: var(--muted); }
.editorial-lead-copy { max-width: 780px; }
.editorial-lead-copy h2 { font-family: var(--font-serif); font-size: clamp(30px, 3.1vw, 42px); line-height: 1.23; font-weight: 400; letter-spacing: -1px; margin: 0 0 17px; }
.editorial-lead-copy h2 a:hover, .editorial-row h2 a:hover, .editorial-pick h3 a:hover { color: var(--accent); }
.editorial-lead-copy > p { font-size: 15px; line-height: 1.85; color: var(--muted); margin: 0 0 22px; max-width: 710px; }
.editorial-lead-bottom { display: flex; align-items: center; gap: 28px; }
.editorial-lead-bottom > span { color: var(--muted); font-size: 11px; }
.feed.editorial-row { display: grid; grid-template-columns: 150px minmax(0, 1fr) 52px 24px; column-gap: 30px; align-items: center; padding: 25px 0; overflow: visible; line-height: 1.5; border-bottom: 1px solid var(--rule); border-top: 0; }
.feed.editorial-row:first-child { border-top: 1px solid var(--rule); }
.editorial-lead + .editorial-row { border-top: 1px solid var(--rule); }
.editorial-row-date { font-size: 11px; font-variant-numeric: tabular-nums; color: var(--muted); }
.editorial-row .feed-title { font-family: var(--font-serif); font-size: 23px; font-weight: 400; line-height: 1.4; letter-spacing: -.35px; overflow: visible; white-space: normal; text-overflow: clip; padding: 0; margin: 0; }
.editorial-row-excerpt { margin: 8px 0 0; color: var(--muted); font-size: 12px; line-height: 1.7; }
.editorial-row .feed-length { color: var(--muted); font-size: 11px; }
.editorial-row-arrow { font-size: 22px; color: var(--accent); padding: 8px 0; text-align: right; }
.feed:hover .feed-title { opacity: 1; }
.feed + .feed.feed-paged { margin-top: 0; }
.load-more { margin: 32px 0 0; }
.load-more .button { font-size: 11px; font-weight: 700; letter-spacing: .6px; text-transform: none; border: 1px solid var(--rule); color: var(--ink); background: transparent; border-radius: 4px; padding: 13px 24px; min-height: 44px; }
.load-more .button:hover { background: var(--paper-inset); }
.editorial-selection { margin-top: 64px; padding-top: 40px; padding-bottom: 48px; background: var(--paper-inset); }
.editorial-selection .editorial-section-heading { border-top: 0; padding-top: 0; padding-bottom: 28px; }
.editorial-picks { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 30px; }
.editorial-pick-image { display: block; aspect-ratio: 16 / 9; margin-bottom: 18px; overflow: hidden; border-radius: 3px; }
.editorial-pick-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.editorial-pick-image:hover img { transform: scale(1.025); }
.editorial-pick .eyebrow { font-size: 9px; color: var(--muted); letter-spacing: .9px; }
.editorial-pick h3 { font-family: var(--font-serif); font-weight: 400; font-size: 23px; line-height: 1.35; letter-spacing: -.4px; margin: 9px 0 0; }
.gh-foot { padding-top: 36px; padding-bottom: 36px; }
.gh-foot-inner { color: var(--muted); font-size: 11px; }
.gh-foot a { color: var(--muted); }
.home-template .site-content { padding-bottom: 0; }
/* Reading: keep Ghost's native canvas and all Koenig cards. */
.post-template .site-content, .page-template .site-content { padding-top: 52px; }
.single-header { text-align: left; margin-bottom: 34px; }
.single-meta { font-size: 10px; line-height: 1.8; letter-spacing: .65px; font-weight: 400; text-transform: none; margin-bottom: 12px; }
.single-title { font-family: var(--font-serif) !important; font-size: clamp(34px,4.2vw,53px); font-weight: 400; line-height: 1.2; letter-spacing: -1.5px; }
.editorial-back { font-size: 11px; color: var(--accent); margin-bottom: 20px; grid-row: 1; display: inline-block; }
.single-excerpt { font-family: var(--font-sans) !important; font-size: 18px; line-height: 1.7; color: var(--muted); }
.single-content { font-family: var(--font-serif); font-size: 19px; line-height: 1.85; }
.gh-content > p, .gh-content > ul, .gh-content > ol { font-family: var(--font-serif); font-size: 19px; line-height: 1.85; }
.gh-content > h2 { font-family: var(--font-serif); font-size: 30px; font-weight: 700; line-height: 1.35; letter-spacing: -.6px; margin-top: 2em; }
.gh-content > h3 { font-family: var(--font-serif); font-size: 24px; line-height: 1.4; }
.gh-content > blockquote:not([class]) { border-left: 2px solid var(--accent); font-family: var(--font-serif); color: var(--muted); }
.gh-content > p a, .gh-content > ul a, .gh-content > ol a { color: var(--accent); text-decoration-color: #b37a94; text-underline-offset: 3px; }
.gh-content pre { font-size: 14px; border-radius: 4px; }
.single-content figcaption { font-family: var(--font-sans); font-size: 12px; color: var(--muted); }
.single-footer { padding: 28px 0; border-top: 1px solid var(--rule); margin-top: 54px; }
.single-footer-title { font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }
.related-wrapper { margin-top: 40px; }
.related-title { font-size: 12px; letter-spacing: 1.3px; text-transform: uppercase; font-weight: 700; }
.related-feed .editorial-row { grid-template-columns: 95px minmax(0,1fr) 42px; gap: 16px; }
.related-feed .editorial-row-arrow { display: none; }
.related-feed .feed-title { font-size: 19px; }
.related-feed .editorial-row-excerpt { display: none; }
.author-name,.tag-name { font-family: var(--font-serif); font-weight: 400; }
/* Accessibility and compact screens. */
@media (max-width: 1000px) {
    .editorial-intro { gap: 38px; grid-template-columns: 1.5fr 1fr; }
    .editorial-intro h1 { font-size: 52px; }
    .feed.editorial-lead { grid-template-columns: 145px minmax(0,1fr); gap: 30px; }
    .feed.editorial-row { grid-template-columns: 115px minmax(0,1fr) 45px 20px; gap: 20px; }
}
@media (max-width: 767px) {
    .gh-outer { padding-left: 24px; padding-right: 24px; }
    #gh-head { height: 82px; }
    .gh-head-brand { min-height: 82px; }
    .gh-head-logo { gap: 9px; }
    .gh-head-logo .editorial-mark { width: 25px; max-height: 32px; }
    .editorial-wordmark { font-size: 16px; letter-spacing: -.4px; }
    .editorial-wordmark > span { font-size: 8px; letter-spacing: .55px; }
    .gh-head-brand > .gh-search { margin-right: 2px; }
    .gh-burger { width: 26px; }
    .is-head-open #gh-head { height: 100%; background: var(--paper); }
    .is-head-open .gh-head-menu .nav { gap: 22px; font-size: 24px; }
    .is-head-open .gh-head-inner { border: 0; }
    .editorial-cover { padding-top: 40px; padding-bottom: 36px; }
    .editorial-intro { display: block; }
    .editorial-intro-main > .eyebrow { font-size: 9px; letter-spacing: 1.2px; margin-bottom: 18px; }
    .editorial-intro h1 { font-size: clamp(38px,10.8vw,52px); line-height: 1.12; letter-spacing: -1.7px; margin-bottom: 18px; }
    .editorial-intro-note { border: 0; padding: 0; margin-top: 28px; }
    .editorial-intro-note > p { font-size: 14px; line-height: 1.8; max-width: none; margin-bottom: 18px; }
    .editorial-caption { font-size: 10px; }
    .editorial-section-heading { padding: 19px 0; }
    .editorial-section-heading > span { display: none; }
    .feed.editorial-lead { display: block; padding: 8px 0 30px; }
    .editorial-lead-kicker { flex-direction: row; justify-content: space-between; align-items: baseline; padding: 0; margin-bottom: 17px; gap: 12px; }
    .editorial-lead-kicker .eyebrow { font-size: 9px; letter-spacing: .8px; }
    .editorial-lead-kicker time { font-size: 10px; }
    .editorial-lead-copy h2 { font-size: 29px; line-height: 1.3; letter-spacing: -.7px; }
    .editorial-lead-copy > p { font-size: 13px; line-height: 1.8; }
    .editorial-lead-bottom { justify-content: space-between; gap: 12px; }
    .feed.editorial-row { grid-template-columns: minmax(0,1fr) auto; gap: 9px 14px; padding: 23px 0; }
    .editorial-row-date { grid-column: 1; grid-row: 1; font-size: 10px; }
    .editorial-row .feed-length { grid-column: 2; grid-row: 1; font-size: 10px; }
    .editorial-row-content { grid-column: 1 / -1; grid-row: 2; }
    .editorial-row .feed-title { font-size: 22px; line-height: 1.35; }
    .editorial-row-excerpt { font-size: 12px; line-height: 1.7; margin-top: 9px; }
    .editorial-row-arrow { display: none; }
    .editorial-selection { margin-top: 38px; padding-top: 30px; padding-bottom: 30px; }
    .editorial-picks { display: flex; flex-direction: column; gap: 23px; }
    .editorial-pick { display: grid; grid-template-columns: 82px minmax(0,1fr); gap: 17px; align-items: start; }
    .editorial-pick:not(:has(.editorial-pick-image)) { display: block; }
    .editorial-pick-image { width: 82px; aspect-ratio: 1; margin: 0; }
    .editorial-pick h3 { font-size: 19px; margin-top: 6px; }
    .editorial-pick .eyebrow { font-size: 8px; }
    .gh-foot { padding-top: 28px; padding-bottom: 28px; }
    .gh-foot-inner { row-gap: 20px; }
    .post-template .site-content, .page-template .site-content { padding-top: 30px; }
    .single-title { font-size: 34px; letter-spacing: -1px; }
    .single-meta { font-size: 9px; }
    .editorial-back { margin-bottom: 22px; }
    .single-content, .gh-content > p, .gh-content > ul, .gh-content > ol { font-size: 18px; line-height: 1.8; }
    .gh-content > h2 { font-size: 27px; }
    .related-feed .editorial-row { grid-template-columns: minmax(0,1fr) auto; gap: 9px; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *,*::before,*::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* A quieter archive: the writing supplies the personality. */
.editorial-cover { padding-top: 36px; padding-bottom: 32px; }
.editorial-intro { display: block; }
.editorial-intro h1 { font-family: var(--font-sans); font-size: 18px; font-weight: 400; line-height: 1.6; letter-spacing: 0; margin: 0; color: var(--muted); }
.editorial-cover .gh-inner, .editorial-archive .gh-inner, .editorial-selection .gh-inner { max-width: 860px; }
.editorial-section-heading { border-top: 0; padding: 0 0 16px; }
.editorial-section-heading h2 { font-size: 14px; text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--muted); }
.feed.editorial-row { grid-template-columns: 105px minmax(0,1fr) 42px; column-gap: 24px; padding: 28px 0; align-items: baseline; }
.editorial-row .feed-title { font-size: 26px; }
.editorial-row-excerpt { font-size: 14px; }
.editorial-row-date, .editorial-row .feed-length { font-size: 12px; }
.editorial-selection { background: transparent; margin-top: 50px; padding-top: 0; }
.editorial-picks { display: block; }
.editorial-pick { display: block; padding: 12px 0; }
.editorial-pick-image, .editorial-pick .eyebrow { display: none; }
.editorial-pick h3 { font-size: 19px; margin: 0; }
@media (max-width: 767px) {
    .editorial-cover { padding-top: 28px; padding-bottom: 30px; }
    .editorial-intro h1 { font-size: 16px; }
    .feed.editorial-row { grid-template-columns: minmax(0,1fr) auto; gap: 10px 16px; padding: 23px 0; }
    .editorial-row .feed-title { font-size: 24px; }
    .editorial-row-excerpt { font-size: 14px; }
    .editorial-pick { display: block; }
}

/* Alegreya's humanist forms pair a literary serif with an open sans. */
:root, html.theme-light {
    --font-serif: 'Alegreya', Georgia, serif;
    --font-sans: 'Alegreya Sans', sans-serif;
    --color-primary-text: var(--ink);
    --color-secondary-text: var(--muted);
    --color-white: var(--paper);
    --color-lighter-gray: var(--paper-inset);
    --color-light-gray: var(--rule);
    --color-darker-gray: var(--ink);
}
body, button, input, textarea, select { font-family: var(--font-sans); }
.editorial-wordmark { font-size: 23px; letter-spacing: -.3px; }
.editorial-row .feed-title { font-size: 29px; line-height: 1.25; letter-spacing: -.25px; }
.editorial-row-excerpt { font-size: 17px; line-height: 1.55; }
.editorial-row-date, .editorial-row .feed-length { font-size: 14px; }
.gh-head-menu .nav, .gh-head-link, .gh-head-members { font-size: 16px; }
.gh-head-btn.gh-btn { font-size: 15px; }
.editorial-intro h1 { font-size: 21px; }
.editorial-section-heading h2 { font-size: 16px; }
.gh-content > p, .gh-content > ul, .gh-content > ol, .single-content { font-size: 21px; line-height: 1.7; }
.single-title { letter-spacing: -.5px; }
.editorial-pick h3 { font-size: 23px; }
.gh-foot-inner { font-size: 14px; }
.load-more .button { font-family: var(--font-sans); font-size: 15px; letter-spacing: 0; }
@media (max-width: 767px) {
    .editorial-wordmark { font-size: 19px; }
    .editorial-intro h1 { font-size: 19px; }
    .editorial-row .feed-title { font-size: 27px; }
    .editorial-row-excerpt { font-size: 17px; }
    .gh-content > p, .gh-content > ul, .gh-content > ol, .single-content { font-size: 20px; }
}

/* Follow the device preference, including changes while the page is open. */
html.theme-auto { color-scheme: light dark; }
@media (prefers-color-scheme: dark) {
    html.theme-auto:root {
        --paper: #141e2c;
        --paper-inset: #1d2a3c;
        --ink: #e3eaf2;
        --muted: #aab9cb;
        --rule: #3b4b60;
        --accent: #f09ab8;
        --primary-text-color: var(--ink);
        --secondary-text-color: var(--muted);
        --white-color: var(--paper);
        --lighter-gray-color: var(--paper-inset);
        --light-gray-color: var(--rule);
        --mid-gray-color: var(--muted);
        --dark-gray-color: var(--ink);
        --darker-gray-color: var(--ink);
        --color-primary-text: var(--ink);
        --color-secondary-text: var(--muted);
        --color-white: var(--paper);
        --color-lighter-gray: var(--paper-inset);
        --color-light-gray: var(--rule);
        --color-mid-gray: var(--muted);
        --color-dark-gray: var(--ink);
        --color-darker-gray: var(--ink);
    }
    html.theme-auto .gh-head-logo img.editorial-mark:first-child:not(:only-child) { opacity: 1; }
    .editorial-button { color: var(--paper); }
    .editorial-button:hover { background: #f5b8ce; color: var(--paper); }
    .kg-signup-card-input { background: var(--paper-inset); color: var(--ink); }
    .kg-signup-card-input::placeholder { color: var(--muted); }
    .gh-content pre { background: var(--paper-inset); color: var(--ink); }
}

/* Readability: one open, uncondensed family and larger supporting text. */
:root, html.theme-light {
    --font-sans: 'Atkinson Hyperlegible', system-ui, sans-serif;
    --font-serif: 'Atkinson Hyperlegible', system-ui, sans-serif;
}
body { font-size: 18px; }
body h1, body h2, body h3, body h4, body h5, body h6,
body .single-excerpt { font-family: var(--font-sans) !important; }
.editorial-wordmark { font-size: 22px; letter-spacing: 0; }
.editorial-row .feed-title { font-size: 28px; font-weight: 600; line-height: 1.3; letter-spacing: 0; }
.editorial-row-excerpt { font-size: 18px; line-height: 1.6; }
.feed.editorial-row { grid-template-columns: 115px minmax(0,1fr) 48px; }
.editorial-row-date, .editorial-row .feed-length,
.single-meta, .editorial-back, .single-content figcaption,
.single-footer-title, .gh-foot-inner { font-size: 16px; line-height: 1.5; letter-spacing: 0; }
.editorial-section-heading h2, .gh-head-menu .nav,
.gh-head-link, .gh-head-members, .gh-head-btn.gh-btn,
.load-more .button { font-size: 17px; }
.single-title { font-weight: 600; font-size: clamp(32px,4vw,48px); line-height: 1.2; letter-spacing: -.3px; }
.single-content, .gh-content > p, .gh-content > ul, .gh-content > ol { font-size: 21px; line-height: 1.7; }
.gh-content > blockquote:not([class]) { font-size: 21px; line-height: 1.7; }
.gh-content pre { font-size: 16px; }
.editorial-pick h3 { font-size: 23px; font-weight: 600; line-height: 1.4; }
.related-title { font-size: 17px; letter-spacing: 0; text-transform: none; }
@media (max-width: 767px) {
    .editorial-wordmark { font-size: 19px; }
    .feed.editorial-row { grid-template-columns: minmax(0,1fr) auto; }
    .editorial-row .feed-title { font-size: 26px; }
    .single-title { font-size: 32px; }
    .single-content, .gh-content > p, .gh-content > ul, .gh-content > ol { font-size: 20px; line-height: 1.65; }
    .gh-content > h2 { font-size: 27px; }
    .gh-content > h3 { font-size: 23px; }
    .is-head-open .gh-head-menu .nav { font-size: 26px; }
}
@media (max-width: 359px) {
    .gh-outer { padding-left: 18px; padding-right: 18px; }
    .gh-head-logo { gap: 7px; }
    .editorial-wordmark { font-size: 17px; }
}

/* Wider letterforms; use the family's actual bold weight. */
.editorial-row .feed-title, .single-title, .editorial-pick h3 { font-weight: 700; }
.editorial-wordmark { font-size: 21px; }
@media (max-width: 767px) {
    .editorial-wordmark { font-size: 18px; }
}
@media (max-width: 359px) {
    .gh-head-logo .editorial-mark { width: 20px; }
    .gh-head-logo { gap: 6px; }
    .editorial-wordmark { font-size: 16px; }
}
@media (max-width: 600px) {
    .kg-signup-card .kg-signup-card-fields { flex-direction: column; gap: 10px; background: transparent; border: 0; padding: 0; }
    .kg-signup-card .kg-signup-card-input { width: 100%; min-width: 0; min-height: 52px; padding: 12px 16px; border: 1px solid var(--rule); border-radius: 4px; background: var(--paper-inset); color: var(--ink); }
    .kg-signup-card .kg-signup-card-button { width: 100%; min-height: 52px; }
}
