/* Covering Letter static website — no JavaScript or build tools required. */
:root {
  --background: oklch(0.975 0.01 85);
  --foreground: oklch(0.27 0.02 150);
  --card: oklch(1 0 0);
  --primary: oklch(0.48 0.06 150);
  --on-primary: oklch(0.98 0.01 85);
  --secondary: oklch(0.93 0.025 140);
  --muted: oklch(0.94 0.015 85);
  --muted-foreground: oklch(0.43 0.02 150);
  --accent: oklch(0.52 0.09 55);
  --border: oklch(0.9 0.015 100);
  --font-display: "Newsreader", 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); line-height: 1.65; }
a { color: inherit; }
img { display: block; max-width: 100%; }
.wide { width: min(100% - 3rem, 90rem); margin-inline: auto; }
.skip-link { position: fixed; top: .5rem; left: .5rem; z-index: 100; padding: .75rem 1rem; background: var(--card); transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }
.site-header { position: sticky; top: 0; z-index: 20; border-bottom: 1px solid var(--border); background: color-mix(in oklab, var(--background) 90%, transparent); backdrop-filter: blur(12px); }
.header-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { font-family: var(--font-display); font-size: 1.6rem; line-height: 1.2; text-decoration: none; }
.brand em { color: var(--primary); }
nav { display: flex; gap: .25rem; }
.nav-link { border-radius: 999px; padding: .55rem 1rem; color: var(--muted-foreground); font-size: .875rem; font-weight: 500; text-decoration: none; transition: color .2s, background .2s; }
.nav-link:hover, .nav-link:focus-visible { color: var(--foreground); background: var(--muted); }
.nav-link.active { color: var(--foreground); background: var(--secondary); }
.hero-wrap { margin-top: 1.5rem; }
.hero { position: relative; overflow: hidden; min-height: 560px; border-radius: 1.75rem; }
.hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, oklch(0.22 0.03 150 / .88) 0%, oklch(0.22 0.03 150 / .45) 55%, transparent 100%); }
.hero-copy { position: relative; z-index: 1; min-height: 560px; max-width: 750px; display: flex; flex-direction: column; justify-content: center; padding: 4rem; color: var(--on-primary); }
.eyebrow { margin: 0; color: var(--accent); font-size: .75rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; }
.hero .eyebrow { color: oklch(0.88 0.08 85); }
h1, h2, h3, p { overflow-wrap: break-word; }
.hero h1 { margin: 1rem 0 0; max-width: 680px; font-family: var(--font-display); font-size: clamp(3rem, 6vw, 4.8rem); font-weight: 400; line-height: 1.05; }
.hero-copy > p:last-child { max-width: 520px; margin: 1.5rem 0 0; color: color-mix(in oklab, var(--on-primary) 88%, transparent); font-size: 1.125rem; }
.category-section { padding-top: 5rem; }
.category-intro { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 3rem; margin-bottom: 2.5rem; }
.category-intro > img { width: 100%; height: 288px; object-fit: cover; border-radius: 1.75rem; }
.category-intro.reverse > img { order: 2; }
.category-intro h2, .category-page h1 { margin: 0; font-family: var(--font-display); font-size: clamp(3rem, 5vw, 4rem); font-weight: 400; line-height: 1.1; }
.category-intro p { max-width: 470px; margin: 1rem 0 0; color: var(--muted-foreground); font-size: 1.125rem; }
.button { display: inline-block; margin-top: 1.5rem; border-radius: 999px; padding: .8rem 1.5rem; background: var(--primary); color: var(--on-primary); font-size: .875rem; font-weight: 700; text-decoration: none; }
.button:hover, .button:focus-visible { opacity: .88; }
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.card { display: flex; flex-direction: column; min-width: 0; border-radius: 1.25rem; padding: 1.75rem; background: var(--card); box-shadow: 0 1px 2px oklch(0.3 0.02 150 / .06), 0 12px 32px -12px oklch(0.3 0.02 150 / .18); transition: transform .3s, box-shadow .3s; }
.card:hover { transform: translateY(-4px); box-shadow: 0 24px 48px -16px oklch(0.3 0.02 150 / .3); }
.card-date { margin-bottom: .75rem; }
.card h3 { margin: 0; font-family: var(--font-display); font-size: 1.65rem; font-weight: 400; line-height: 1.3; }
.card h3 a { text-decoration: none; }
.card h3 a:hover { color: var(--primary); }
.card > p:not(.eyebrow) { margin: .75rem 0 0; color: var(--muted-foreground); }
.read-more { margin-top: auto; padding-top: 1.25rem; color: var(--primary); font-size: .875rem; font-weight: 700; text-decoration: none; }
.category-page { padding-block: 2.5rem 5rem; }
.category-banner { width: 100%; height: 320px; object-fit: cover; border-radius: 1.75rem; }
.category-label { margin-top: 2.5rem; }
.category-page h1 { margin-top: .75rem; font-size: clamp(3.5rem, 7vw, 5rem); }
.category-count { margin: .75rem 0 2.5rem; color: var(--muted-foreground); }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 4rem; padding-block: 4rem; }
.article-header { position: sticky; top: 110px; align-self: start; }
.article-header h1 { margin: 1rem 0 0; font-family: var(--font-display); font-size: clamp(2.5rem, 4vw, 3.5rem); font-weight: 400; line-height: 1.15; }
.back-link { display: inline-block; margin-top: 2rem; color: var(--primary); font-size: .875rem; font-weight: 600; text-decoration: none; }
.back-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.prose-body { max-width: 52rem; font-size: 1.125rem; line-height: 1.85; }
.prose-body p { margin: 0 0 1.5rem; }
.prose-body > p:first-child { font-family: var(--font-display); font-size: 1.6rem; line-height: 1.6; }
.prose-body h2 { margin: 2.5rem 0 1rem; font-family: var(--font-display); font-size: 2rem; font-weight: 400; line-height: 1.3; }
.list-item { padding-left: .25rem; }
.keep-reading { padding-block: 3.5rem; background: var(--muted); }
.related-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; margin-top: 1.5rem; }
.related-card { color: var(--foreground); font-family: var(--font-display); font-size: 1.35rem; line-height: 1.35; text-decoration: none; }
.related-card small { margin-top: .75rem; color: var(--muted-foreground); font-family: var(--font-sans); font-size: .875rem; }
footer { margin-top: 4rem; background: var(--secondary); }
.keep-reading + footer { margin-top: 0; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding-block: 3rem; color: var(--muted-foreground); font-size: .875rem; }
.not-found { min-height: 65vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 3rem 1.5rem; text-align: center; }
.error-number { margin: 0; font-size: 5rem; font-weight: 700; line-height: 1; }
.not-found h1 { margin: 1rem 0 0; font-family: var(--font-display); font-size: 2.5rem; font-weight: 400; }
.not-found p:not(.error-number) { color: var(--muted-foreground); }
@media (max-width: 1050px) {
  .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .article-layout { grid-template-columns: 1fr; gap: 2.5rem; }
  .article-header { position: static; max-width: 52rem; }
}
@media (max-width: 720px) {
  .wide { width: min(100% - 2rem, 90rem); }
  .header-inner { flex-wrap: wrap; padding-block: 1rem; }
  .brand { font-size: 1.4rem; }
  .nav-link { padding: .45rem .7rem; }
  .hero, .hero-copy { min-height: 500px; }
  .hero-copy { padding: 2rem; }
  .hero-overlay { background: linear-gradient(90deg, oklch(0.22 0.03 150 / .9), oklch(0.22 0.03 150 / .55)); }
  .category-intro { grid-template-columns: 1fr; gap: 1.5rem; }
  .category-intro.reverse > img { order: 0; }
  .category-intro > img { height: 230px; }
  .post-grid, .related-grid { grid-template-columns: 1fr; }
  .category-section { padding-top: 3.5rem; }
  .category-banner { height: 230px; }
  .article-layout { padding-block: 2.5rem; }
  .prose-body { font-size: 1.05rem; }
  .prose-body > p:first-child { font-size: 1.4rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card, .nav-link { transition: none; }
}
