/*
Theme Name: Macs Field Guide
Description: Lightweight editorial theme for Macs.su.
Version: 1.0.3
Requires PHP: 8.0
*/
:root {
    color-scheme: light;
    --paper: #f7f9fb;
    --white: #fff;
    --ink: #182532;
    --muted: #485a69;
    --line: #cbd6df;
    --accent: #005a70;
    --panel: #e2f0f4;
    font: 100%/1.6 -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--paper); }
a { color: var(--accent); text-underline-offset: .2em; }
a:hover { text-decoration-thickness: .13em; }
:focus-visible { outline: 3px solid #007991; outline-offset: 4px; }
.shell { width: min(68rem, calc(100% - 3rem)); margin-inline: auto; }
.skip-link { position: absolute; left: 1rem; top: -10rem; z-index: 100; background: var(--white); padding: .55rem; }
.skip-link:focus { top: 1rem; }
.site-header, .site-footer { background: var(--white); }
.site-header { border-bottom: 1px solid var(--line); }
.site-footer { border-top: 1px solid var(--line); margin-top: 4rem; }
.header-row, .footer-row { display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; min-height: 4.25rem; }
.wordmark { color: var(--ink); font-size: 1.5rem; font-weight: 800; text-decoration: none; letter-spacing: -.07em; }
.wordmark span { color: var(--accent); }
.header-row ul { display: flex; flex-wrap: wrap; gap: 1.25rem; padding: 0; margin: 0; list-style: none; }
.header-row nav a { padding-block: .5rem; font-size: .95rem; font-weight: 650; text-decoration: none; }
.header-row nav a:hover { text-decoration: underline; }
.footer-row p, .article-date { color: var(--muted); font-size: .9rem; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -.035em; }
h1 { margin: 0 0 1.25rem; font-size: clamp(2.35rem, 5.4vw, 4.3rem); text-wrap: balance; }
h2 { font-size: clamp(1.5rem, 3vw, 2.05rem); }
h3 { font-size: 1.25rem; }
.hero { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(1.5rem, 6vw, 5rem); align-items: center; padding-block: clamp(2.5rem, 7vw, 6rem) 3rem; }
.lead { color: var(--muted); max-width: 39ch; font-size: clamp(1.05rem, 2.4vw, 1.25rem); margin-bottom: 1.5rem; }
.primary-link { display: inline-block; padding: .62rem 1rem; background: var(--accent); color: var(--white); border-radius: .3rem; font-weight: 650; text-decoration: none; }
.primary-link:hover { text-decoration: underline; }
.format-panel { background: var(--panel); border-top: .3rem solid var(--accent); padding: 1.35rem 1.5rem; }
.format-panel h2 { font-size: 1.2rem; margin: 0 0 .5rem; }
.format-panel dl { margin: 0; }
.format-panel dl div { display: grid; grid-template-columns: 4.25rem 1fr; gap: .75rem; padding-block: .55rem; border-top: 1px solid #b2cbd4; }
.format-panel dt { font: 650 .95rem/1.7 ui-monospace, monospace; }
.format-panel dd { margin: 0; }
.guides { border-top: 1px solid var(--line); padding-top: 1.2rem; }
.guide-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.guide-grid article { background: var(--white); padding: 1.3rem; border: 1px solid var(--line); border-radius: .25rem; }
.guide-grid h3 { margin: 0; }
.guide-grid p { color: var(--muted); margin: .75rem 0 0; max-width: 52ch; }
.archive-callout { padding-block: 1rem; border-bottom: 1px solid var(--line); margin-top: 1rem; }
.article, .comments { max-width: 48rem; margin-inline: auto; }
.article-header, .listing { padding-top: clamp(2rem, 6vw, 4.75rem); }
.article-header h1, .listing h1 { font-size: clamp(2rem, 5vw, 3.45rem); }
.prose { font-size: 1.08rem; overflow-wrap: anywhere; }
.prose h2 { margin-top: 2.15em; }
.prose h3 { margin-top: 1.75em; }
.prose li + li { margin-top: .35em; }
.prose img, .prose video { max-width: 100%; height: auto; }
.prose iframe { max-width: 100%; }
.prose figure { margin-inline: 0; max-width: 100%; }
.prose pre { overflow: auto; }
.prose table { width: 100%; border-collapse: collapse; }
.prose th, .prose td { border: 1px solid var(--line); padding: .5rem; text-align: left; vertical-align: top; }
.prose th { background: var(--panel); }
.prose .callout { background: var(--panel); border-left: .25rem solid var(--accent); padding: 1rem; }
.archive-list { list-style: none; padding: 0; margin-block: 1.75rem; }
.archive-list li { display: flex; justify-content: space-between; gap: 1rem; padding-block: .65rem; border-top: 1px solid var(--line); }
.archive-list time { color: var(--muted); font-size: .9rem; flex: none; }
.search-form, .pagination { margin-block: 1.2rem; }
.page-numbers { padding: .3rem; }
input, textarea, button { font: inherit; max-width: 100%; }
input[type="search"], input[type="text"], input[type="email"], input[type="url"], textarea { padding: .35rem; border: 1px solid var(--muted); background: var(--white); }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 44rem) {
    .shell { width: calc(100% - 2rem); }
    .hero, .guide-grid { grid-template-columns: 1fr; }
    .archive-list li { flex-wrap: wrap; gap: .15rem 1rem; }
}
