/* corepadqzxm — static site styles */
@font-face { font-family: 'Manrope'; src: url('../fonts/manrope-var.woff2') format('woff2'); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: 'Source Serif 4'; src: url('../fonts/sourceserif4-var.woff2') format('woff2'); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: 'Source Serif 4'; src: url('../fonts/sourceserif4-italic.woff2') format('woff2'); font-weight: 400; font-style: italic; font-display: swap; }

:root {
  --background: #ffffff;
  --foreground: #142019;
  --primary: #174d39;
  --primary-fg: #ffffff;
  --secondary: #f3f6df;
  --muted-fg: #596356;
  --accent: #a12f20;
  --accent-fg: #ffffff;
  --border: #d4d8c4;
  --font-display: 'Source Serif 4', Georgia, serif;
  --font-sans: 'Manrope', system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--background); color: var(--foreground); font-family: var(--font-sans); -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-family: var(--font-display); letter-spacing: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
[id] { scroll-margin-top: 24px; }
.wrap { max-width: 72rem; margin: 0 auto; padding: 0 1.25rem; }

/* Header */
.site-header { border-bottom: 2px solid var(--foreground); background: var(--background); }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; border-bottom: 1px solid var(--border); padding: .75rem 0; font-size: .75rem; color: var(--muted-fg); }
.masthead-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.75rem 0; }
.menu-btn { background: none; border: 0; padding: .4rem; cursor: pointer; color: var(--foreground); display: inline-flex; }
.masthead { font-family: var(--font-display); font-weight: 600; font-size: 3rem; line-height: 1.1; margin: 0; text-align: center; }
.masthead .dot { color: var(--accent); }
.write-link { font-size: .75rem; font-weight: 700; display: inline-flex; align-items: center; gap: .4rem; }
.main-nav { display: flex; justify-content: center; gap: 1.5rem; overflow-x: auto; padding: .75rem 0; font-size: .75rem; font-weight: 700; }
.main-nav a { white-space: nowrap; }
.mobile-nav { display: none; flex-wrap: wrap; justify-content: center; gap: 1.25rem; border-top: 1px solid var(--border); padding: 1.25rem 0; font-size: .875rem; }
.mobile-nav.open { display: flex; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; border-radius: 999px; padding: .75rem 1.5rem; font-size: .875rem; font-weight: 700; cursor: pointer; border: 0; font-family: var(--font-sans); }
.btn-primary { background: var(--primary); color: var(--primary-fg); }
.btn-primary:hover { background: var(--accent); color: var(--accent-fg); }
.btn-outline { background: transparent; border: 1px solid var(--border); padding: .45rem .9rem; font-size: .75rem; }
.btn-outline:hover, .btn-outline[aria-pressed="true"] { border-color: var(--foreground); }
.btn-icon { background: none; border: 0; padding: .45rem; cursor: pointer; color: var(--foreground); border-radius: 999px; }
.btn-icon:hover { color: var(--accent); }

/* Kicker row */
.kicker { display: flex; align-items: center; gap: .75rem; border-bottom: 1px solid var(--border); padding: 1rem 0; font-size: .75rem; }
.kicker .label { font-weight: 800; color: var(--accent); }
.kicker .dim { color: var(--muted-fg); }

/* Article head */
.article-head { padding-top: 2.25rem; }
.eyebrow { font-size: .75rem; font-weight: 800; text-transform: uppercase; color: var(--accent); margin: 0; }
.article-head h1 { font-size: 3.4rem; font-weight: 600; line-height: 1.13; margin: 1rem 0 0; max-width: 56rem; }
.article-head h1 em { font-weight: 400; }
.article-head .standfirst { margin: 1.25rem 0 0; max-width: 48rem; font-size: 1.125rem; line-height: 1.625; color: var(--muted-fg); }
.byline { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin: 1.75rem 0 1.5rem; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 1rem 0; font-size: .75rem; }
.byline .meta span { color: var(--muted-fg); }
.byline .reading { margin-top: .5rem; display: flex; align-items: center; gap: .35rem; color: var(--muted-fg); }
.byline .actions { display: flex; gap: .5rem; }
.copy-status { margin: 0 0 1rem; font-size: .875rem; color: var(--primary); }

/* Hero figure */
.hero img { width: 100%; max-height: 580px; object-fit: cover; }
figcaption { font-family: var(--font-sans); font-size: .6875rem; line-height: 1.6; color: var(--muted-fg); margin-top: .5rem; padding-bottom: 1rem; border-bottom: 1px solid var(--border); }

/* Article layout */
.article-grid { display: grid; gap: 3rem; margin-top: 2.5rem; }
.article-copy { font-family: var(--font-display); font-size: 19px; line-height: 1.8; max-width: 48rem; }
.article-copy p { margin-top: 1.2rem; }
.article-copy .lead { margin-top: 0; font-size: 23px; line-height: 1.5; border-left: 3px solid var(--accent); padding-left: 1.3rem; }
.article-copy h2 { font-size: 32px; font-weight: 600; line-height: 1.2; margin: .7rem 0 0; }
.article-copy section { margin-top: 2.7rem; }
.article-copy .section-number { font-family: var(--font-sans); font-size: 11px; font-weight: 700; color: var(--accent); margin: 0; }
.article-copy figure { margin: 1.7rem 0 0; }
.article-copy figure img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.article-copy blockquote { margin: 2rem 0; padding: 1.5rem 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); font-size: 29px; line-height: 1.4; font-style: italic; color: var(--primary); }
.habit-list { list-style: decimal; padding-left: 1.5rem; margin: 1.5rem 0 0; }
.habit-list li { padding-left: .5rem; margin-top: 1rem; }
.habit-list p { margin-top: .2rem; }
.mail-cta { margin-top: 2.5rem; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 1.5rem 0; font-family: var(--font-sans); }
.mail-cta h3 { font-size: 1.5rem; margin: .75rem 0 0; }
.mail-cta p { font-size: .875rem; color: var(--muted-fg); margin: .5rem 0 0; }

/* Sidebar */
.sidebar { display: flex; flex-direction: column; gap: 2rem; }
.toc { border-top: 2px solid var(--foreground); padding-top: 1rem; }
.toc nav { margin-top: 1.25rem; display: flex; flex-direction: column; font-size: .875rem; }
.toc a { display: flex; justify-content: space-between; gap: .75rem; padding: 1rem 0; border-bottom: 1px solid var(--border); }
.sidebar .note { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 1.5rem 0; }
.sidebar .note p.big { font-family: var(--font-display); font-size: 1.5rem; line-height: 1.3; margin: 0; }
.sidebar .note p.desc { margin: .75rem 0 0; font-size: .875rem; line-height: 1.625; color: var(--muted-fg); }
.sidebar .anchor-block .eyebrow { display: block; margin-bottom: .75rem; }
.sidebar .anchor-block p.quote { font-family: var(--font-display); font-size: 1.25rem; line-height: 1.625; margin: .75rem 0 0; }

/* Legal pages */
.legal { max-width: 48rem; margin: 0 auto; padding: 3.5rem 1.25rem; }
.legal h1 { font-size: 2.75rem; margin: .75rem 0 0; }
.legal .updated { margin: 1rem 0 0; font-size: .875rem; }
.legal h2 { font-size: 1.5rem; margin: 2.5rem 0 .75rem; }
.legal p, .legal li { line-height: 1.625; color: var(--muted-fg); }
.legal a { color: var(--primary); text-decoration: underline; }

/* Footer */
.site-footer { margin-top: 4rem; border-top: 2px solid var(--foreground); background: var(--secondary); }
.site-footer .inner { padding: 2.5rem 0; }
.footer-top { display: flex; flex-direction: column; justify-content: space-between; gap: 1.5rem; }
.footer-top .brand { font-family: var(--font-display); font-weight: 600; font-size: 1.875rem; margin: 0; }
.footer-top .brand .dot { color: var(--accent); }
.footer-top .tagline { margin: .5rem 0 0; font-size: .875rem; color: var(--muted-fg); }
.footer-links { display: flex; flex-wrap: wrap; gap: 1.25rem; font-size: .875rem; }
.footer-bottom { display: flex; flex-direction: column; justify-content: space-between; gap: .75rem; margin-top: 2rem; border-top: 1px solid var(--border); padding-top: 1.25rem; font-size: .75rem; color: var(--muted-fg); }
.footer-bottom p { margin: 0; }

@media (min-width: 1024px) {
  .article-grid { grid-template-columns: minmax(0, 1fr) 280px; column-gap: 5rem; }
  .footer-top { flex-direction: row; }
  .footer-bottom { flex-direction: row; }
}
@media (max-width: 640px) {
  .article-copy { font-size: 18px; }
  .article-copy h2 { font-size: 28px; }
  .article-copy .lead { font-size: 21px; }
  .article-head h1 { font-size: 2.4rem; }
  .masthead { font-size: 1.8rem; }
  .article-copy blockquote { font-size: 24px; }
  .topbar .hide-sm { display: none; }
  .write-link { display: none; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
