/* ============================================
   andreassiemes.de — V1.8.5
   Minimal, text-first personal site.
   Jost + IBM Plex Mono.
   Palette: White (#fff), Deep Petrol (#0d2a2d),
   Flexoki Orange (#CB6120), Navy (#1a1a2e). Shared DNA with OaC + BP.
   Signature: Diagonal clip-paths (40px)
   ============================================ */

/* --- Fonts (self-hosted) --- */

/* latin-ext */
@font-face {
  font-family: 'Jost';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/jost-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Jost';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/jost-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Jost';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/jost-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Jost';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/jost-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Jost';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/jost-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Jost';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/jost-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Jost';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(../fonts/jost-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Jost';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(../fonts/jost-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* IBM Plex Mono */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/ibm-plex-mono-400-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/ibm-plex-mono-400-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/ibm-plex-mono-500-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/ibm-plex-mono-500-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/ibm-plex-mono-600-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/ibm-plex-mono-600-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Fraunces — editorial serif for essay headlines */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(../fonts/fraunces-700.woff2) format('woff2');
}

/* --- Reset & Base --- */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 18px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  font-family: 'Jost', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.7;
  color: #1a1a2e;
  background: #fff;
  overflow-x: hidden;
}

/* --- Hero --- */

.hero {
  width: 100%;
  background: #0d2a2d;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 40px), 0 100%);
  position: relative;
  display: flex;
}

.section-nav {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2;
  background: #f5f5f5;
  padding: 0.45rem 1.5rem;
}

.nav-inner {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  justify-content: flex-start;
  max-width: 640px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section-nav a {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #1a1a2e;
  text-decoration: none;
  transition: color 0.15s ease;
}

.section-nav a:hover {
  color: #CB6120;
}

.hero-content {
  flex: 1;
  display: flex;
  align-items: flex-end;
  padding: 7rem 2rem 5.5rem max(1.5rem, calc(50vw - 320px + 1.5rem));
}

.hero-title {
  font-size: clamp(2.25rem, 6vw, 3.5rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 0.95;
  color: #fff;
  margin-bottom: 1.5rem;
}

.hero-accent {
  color: #CB6120;
}

.hero-question {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.6);
  font-style: italic;
  line-height: 1.6;
  border-left: 3px solid #CB6120;
  padding-left: 1rem;
  margin: 0;
  max-width: 420px;
}

.hero-portrait {
  flex: 0 0 25%;
  max-width: 300px;
  overflow: hidden;
  margin-top: 2rem;
}

.hero-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  filter: grayscale(20%);
}

/* --- Layout --- */

main {
  max-width: 640px;
  margin: 0 auto;
  padding: 1.5rem 1.5rem 0;
}

/* --- Typography --- */

h1 {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 0.25rem;
}

h2 {
  font-size: 1.15rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #CB6120;
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

h4 {
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #666;
  margin-bottom: 0.75rem;
}

p {
  margin-bottom: 0.85rem;
}

blockquote {
  border-left: 3px solid #CB6120;
  padding-left: 1.25rem;
  margin: 0 0 1.5rem 0;
  font-size: 1.05rem;
  font-style: italic;
  color: #444;
  line-height: 1.6;
}

strong {
  font-weight: 600;
}

/* --- Links --- */

a {
  color: #CB6120;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  transition: color 0.15s ease;
}

a:hover {
  color: #a34e18;
}

/* --- Sections --- */

main > section {
  margin-bottom: 3rem;
}

.intro {
  margin-bottom: 2rem;
}

/* --- Lists --- */

ul, ol {
  padding-left: 1.25rem;
  margin-bottom: 0.85rem;
}

li {
  margin-bottom: 0.4rem;
}

/* --- Career Periods --- */

.period {
  margin-bottom: 2rem;
  padding-left: 1.25rem;
  border-left: 2px solid #e0e0e0;
}

.period:first-of-type {
  border-left-color: #CB6120;
}

.period-years {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #888;
  font-variant-numeric: tabular-nums;
  margin-bottom: 0.2rem;
}

.period h3 {
  margin-bottom: 0.35rem;
}

.period p {
  color: #444;
  font-size: 0.95rem;
}

/* --- Artifact Block (full-bleed navy) --- */

.artifact {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  background: #0d2a2d;
  color: #fff;
  padding: calc(3rem + 40px) 0 calc(3rem + 40px);
  margin-top: -20px;
  margin-bottom: 3rem;
  clip-path: polygon(0 40px, 100% 0, 100% calc(100% - 40px), 0 100%);
}

.artifact-inner {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.artifact h2 {
  color: #CB6120;
}

.artifact h4 {
  color: rgba(203, 97, 32, 0.8);
}

.artifact p {
  color: rgba(255, 255, 255, 0.9);
}

.artifact a:not(.back-to-top) {
  color: #fff;
}

.artifact a:not(.back-to-top):hover {
  color: #fff;
}

.principles {
  margin: 1.25rem 0;
}

.principles ol {
  padding-left: 1.25rem;
}

.principles li {
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  color: rgba(255, 255, 255, 0.85);
}

.principles li strong {
  color: #fff;
}

.principles-intro {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0.5rem;
}

.artifact-links {
  list-style: none;
  padding-left: 0;
  margin-top: 1.25rem;
  margin-bottom: 0;
}

.artifact-links li {
  margin-bottom: 0.4rem;
}

.artifact-links a {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  font-weight: 500;
}

.artifact-links svg {
  flex-shrink: 0;
}


/* --- Bridge Quote (full-bleed white, with diagonals) --- */

.bridge-quote-section {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  background: #fff;
  clip-path: polygon(0 20px, 100% 0, 100% calc(100% - 20px), 0 100%);
  padding: calc(2rem + 20px) 0;
  margin-top: -2rem;
  margin-bottom: 0;
}

.bridge-quote-inner {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.bridge-quote {
  border-left: 3px solid #CB6120;
  padding-left: 1.25rem;
  margin: 0;
  font-size: 1.05rem;
  font-style: italic;
  color: #444;
  line-height: 1.6;
}

.bridge-quote cite {
  display: block;
  font-style: normal;
  font-size: 0.85rem;
  color: #888;
  margin-top: 0.5rem;
}

/* --- Artifact Block: Business Primitives (Navy) --- */

.artifact-bp {
  background: #0d2a2d;
}

.artifact-bp h2 {
  color: #CB6120;
}

.artifact-bp h4 {
  color: rgba(203, 97, 32, 0.8);
}

.artifact-bp a:not(.back-to-top) {
  color: #fff;
}

.artifact-bp a:not(.back-to-top):hover {
  color: #fff;
}

/* --- About CTA Quote (white, between About and Links) --- */

.about-cta-section {
  max-width: 640px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
}

.about-cta-section .bridge-quote a {
  color: #CB6120;
}

/* --- About Block (warm full-bleed) --- */

.about {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  background: #0d2a2d;
  color: #fff;
  padding: calc(3rem + 40px) 0 calc(3rem + 40px);
  margin-top: -20px;
  margin-bottom: 0;
  clip-path: polygon(0 40px, 100% 0, 100% calc(100% - 40px), 0 100%);
}

.about-inner {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.about h2 {
  color: #CB6120;
}

.about p {
  color: rgba(255, 255, 255, 0.9);
}

.about a:not(.back-to-top) {
  color: #fff;
}

.about a:not(.back-to-top):hover {
  color: #fff;
}

.about-cta {
  margin-top: 1.5rem;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.7);
  border-left-color: #CB6120;
}

.about-links {
  list-style: none;
  padding-left: 0;
  margin-top: 1.5rem;
  margin-bottom: 0;
}

.about-links li {
  margin-bottom: 0.4rem;
}

.about-links a {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  font-weight: 500;
}

.about-links svg {
  flex-shrink: 0;
}

/* --- Footer (minimal) --- */

.site-footer {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-top: 0;
  margin-bottom: 0;
  background: #fff;
  color: #1a1a2e;
  padding: 1rem 0 0.75rem;
}

.footer-inner {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 1.5rem;
  font-size: 0.85rem;
  color: #888;
}

.footer-inner a {
  color: #888;
}

.footer-inner a:hover {
  color: #CB6120;
}

.footer-inner .version {
  font-size: 0.75rem;
  color: #bbb;
}

/* --- Back to Top --- */

.back-to-top {
  display: block;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #ccc;
  text-decoration: none;
  margin: 2rem 0 2.5rem 0;
  transition: color 0.15s ease;
}

.back-to-top:hover {
  color: #CB6120;
}

/* Gold variant inside colored full-bleed sections */
.back-to-top--gold {
  color: rgba(203, 97, 32, 0.4);
  margin: 1.5rem 0 0 0;
}

.back-to-top--gold:hover {
  color: #CB6120;
}

/* --- Responsive (nav hide on small) --- */

@media (max-width: 600px) {
  .section-nav a.nav-hide-sm {
    display: none;
  }
}

/* --- Responsive (tablet) --- */

@media (max-width: 768px) {
  .hero {
    flex-direction: column-reverse;
  }

  .hero-portrait {
    flex: none;
    max-width: none;
    width: 100%;
    height: auto;
    max-height: 50vh;
    margin-top: 0;
  }

  .hero-portrait img {
    object-fit: cover;
    object-position: center top;
    height: auto;
    max-height: 50vh;
  }

  .hero-content {
    padding: 2rem 1.5rem 3rem;
  }

  .hero-title {
    font-size: clamp(2rem, 8vw, 3rem);
  }

  .section-nav {
    padding: 0.35rem 1rem;
  }

  .nav-inner {
    gap: 0.5rem 0.75rem;
  }

  .section-nav a {
    font-size: 0.65rem;
    letter-spacing: 0.08em;
  }
}

/* --- Responsive (mobile) --- */

@media (max-width: 480px) {
  html {
    font-size: 16px;
  }

  main {
    padding: 2rem 1.25rem 2rem;
  }

  .hero-portrait {
    max-height: 45vh;
  }

  .hero-portrait img {
    max-height: 45vh;
  }

  .hero-content {
    padding: 1.5rem 1.25rem 2.5rem;
  }

  .hero-title {
    font-size: clamp(1.75rem, 8vw, 2.5rem);
  }

  .section-nav {
    padding: 0.35rem 1.25rem;
  }

  .nav-inner {
    gap: 0.5rem 0.75rem;
  }

  .section-nav a {
    font-size: 0.65rem;
    letter-spacing: 0.08em;
  }

  .artifact {
    padding: calc(2.5rem + 40px) 0 calc(2.5rem + 40px);
  }

  .artifact-inner {
    padding: 0 1.25rem;
  }

  .about {
    padding: calc(2.5rem + 40px) 0 2.5rem;
  }

  .about-inner {
    padding: 0 1.25rem;
  }
}

/* --- Writing Section (homepage) --- */

.writing-section {
  max-width: 640px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
}

.writing-entry {
  margin-top: 0.5rem;
}

.writing-entry h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.writing-entry h3 a {
  color: #1a1a2e;
  text-decoration: none;
}

.writing-entry h3 a:hover {
  color: #CB6120;
}

/* --- Writing Card (essay teaser with image) --- */

.writing-card {
  display: block;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  margin-top: 1rem;
  margin-bottom: 1.5rem;
}

.writing-card:hover {
  border-color: #CB6120;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  color: inherit;
}

.writing-card-image {
  position: relative;
  overflow: hidden;
  line-height: 0;
}

.writing-card-image img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  object-position: center 30%;
  display: block;
  transition: transform 0.3s ease;
}

.writing-card:hover .writing-card-image img {
  transform: scale(1.02);
}

.writing-card-title {
  display: block;
  padding: 0.75rem 1rem 0.25rem;
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: #1a1a2e;
  line-height: 1.2;
}

.writing-card-body {
  padding: 0 1rem 0.75rem;
}

.writing-card-body .writing-meta {
  margin-bottom: 0.35rem;
}

.writing-card-body p:last-child {
  font-size: 0.9rem;
  color: #555;
  margin-bottom: 0;
  line-height: 1.5;
}

@media (max-width: 480px) {
  .writing-card-image img {
    height: 140px;
  }

  .writing-card-title {
    font-size: 1.15rem;
    padding: 0.6rem 0.75rem;
  }

  .writing-card-body {
    padding: 0.6rem 0.75rem;
  }
}

.writing-meta {
  font-size: 0.8rem;
  color: #888;
  font-weight: 500;
  letter-spacing: 0.02em;
  margin-bottom: 0.5rem;
}

.writing-entry > p:last-child {
  font-size: 0.95rem;
  color: #444;
  margin-bottom: 0;
}

.writing-section .bridge-quote {
  margin: 2rem 0 1.5rem;
}

.writing-section .writing-all-link {
  margin-top: 1.5rem;
  margin-bottom: 0;
}

@media (max-width: 600px) {
  .writing-section .bridge-quote {
    margin: 1.5rem 0 1.25rem;
    font-size: 0.95rem;
  }
}

/* --- Essay Hero Image (full-bleed, brand-treated) --- */

.essay-hero-image {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-top: 0;
  margin-bottom: 2.5rem;
}

.essay-hero-image .hero-image-wrap {
  position: relative;
  overflow: hidden;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 40px), 0 100%);
  line-height: 0;
}

.essay-hero-image img {
  width: 100%;
  height: auto;
  display: block;
  filter: brightness(0.92) contrast(1.05);
}

/* Petrol gradient + vignette overlay */
.essay-hero-image .hero-image-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center, transparent 50%, rgba(0, 0, 0, 0.2) 100%),
    linear-gradient(135deg, transparent 0%, rgba(0, 0, 0, 0.08) 40%, rgba(0, 0, 0, 0.3) 100%);
  z-index: 1;
  pointer-events: none;
}

/* Grain/noise texture */
.essay-hero-image .hero-image-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0.18;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 128px 128px;
  mix-blend-mode: overlay;
}

@media (max-width: 768px) {
  .essay-hero-image {
    margin-bottom: 2rem;
  }
}

/* --- Article Pages --- */

.article-page main {
  padding-top: 4rem;
}

.article-header {
  margin-bottom: 2.5rem;
}

.article-header h1 {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

/* Essay title — editorial style (Fraunces soft serif, large, sentence case) */
.article-header h1.essay-title {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(2rem, 5.5vw, 2.75rem);
  font-weight: 700;
  font-variation-settings: 'WONK' 1, 'opsz' 72;
  letter-spacing: -0.01em;
  line-height: 1.12;
  color: #1a1a2e;
  margin-bottom: 0.5rem;
}

.article-subtitle {
  font-family: 'Jost', sans-serif;
  font-size: 1.05rem;
  font-weight: 400;
  color: #666;
  line-height: 1.5;
  margin-bottom: 0.75rem;
}

.article-header h1.section-title {
  font-size: 1.4rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #CB6120;
}

.article-meta {
  font-size: 0.8rem;
  color: #888;
  font-weight: 500;
  letter-spacing: 0.02em;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

.article-meta .lang-switch {
  margin-left: auto;
}

.article-meta .lang-switch a {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.article-content {
  line-height: 1.8;
}

.article-content p {
  margin-bottom: 1.25rem;
}

.article-content h2 {
  font-size: 1.15rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #CB6120;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.article-content blockquote {
  border-left: 3px solid #CB6120;
  padding-left: 1.25rem;
  margin: 1.5rem 0;
  font-size: 1.05rem;
  font-style: italic;
  color: #444;
  line-height: 1.6;
}

.article-content strong {
  font-weight: 600;
}

.article-content code {
  font-family: 'IBM Plex Mono', 'Menlo', monospace;
  font-size: 0.85em;
  background: #f5f5f5;
  padding: 0.15em 0.35em;
  border-radius: 3px;
}

.article-content pre {
  background: #0d2a2d;
  color: rgba(255, 255, 255, 0.9);
  padding: 1.25rem 1.5rem;
  border-radius: 4px;
  overflow-x: auto;
  margin: 1.5rem 0;
  font-size: 0.82rem;
  line-height: 1.6;
}

.article-content pre code {
  background: none;
  padding: 0;
  border-radius: 0;
  font-size: inherit;
  color: inherit;
}

/* --- Essay Code Section (full-bleed dark, with diagonals) --- */

.essay-code-section {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  background: #0d2a2d;
  color: #fff;
  padding: calc(2.5rem + 40px) 0 calc(2.5rem + 40px);
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
  clip-path: polygon(0 40px, 100% 0, 100% calc(100% - 40px), 0 100%);
}

.essay-code-section-inner {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.essay-code-section p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 1rem;
  line-height: 1.8;
}

.essay-code-section p:last-of-type {
  margin-bottom: 0;
}

.essay-code-section pre {
  background: rgba(0, 0, 0, 0.25);
  color: rgba(255, 255, 255, 0.9);
  padding: 1.25rem 1.5rem;
  border-radius: 4px;
  overflow-x: auto;
  margin: 1rem 0;
  font-size: 0.82rem;
  line-height: 1.6;
}

.essay-code-section pre code {
  background: none;
  padding: 0;
  font-size: inherit;
  color: inherit;
}

.essay-code-section strong {
  color: #CB6120;
}

.essay-code-section a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.essay-code-section a:hover {
  color: #CB6120;
}

/* Syntax highlighting (matches org-as-code.com) */
.essay-code-section code .k { color: #9cdcfe; }
.essay-code-section code .s { color: #ce9178; }
.essay-code-section code .q { color: #CB6120; }
.essay-code-section code .v { color: #b5cea8; }
.essay-code-section code .p { color: #808080; }

@media (max-width: 480px) {
  .essay-code-section {
    padding: calc(2rem + 40px) 0 calc(2rem + 40px);
  }

  .essay-code-section-inner {
    padding: 0 1.25rem;
  }

  .essay-code-section pre {
    font-size: 0.75rem;
    padding: 1rem;
  }
}

/* --- Essay Pull Quote (full-bleed dark, with diagonals) --- */

.essay-pull-quote {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  background: #0d2a2d;
  color: #fff;
  padding: calc(2.5rem + 40px) 0 calc(2.5rem + 40px);
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
  clip-path: polygon(0 40px, 100% 0, 100% calc(100% - 40px), 0 100%);
}

.essay-pull-quote-inner {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.essay-pull-quote blockquote {
  border-left: 3px solid #CB6120;
  padding-left: 1.25rem;
  margin: 0;
  font-size: 1.1rem;
  font-style: italic;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
}

/* --- Essay Footnotes (full-bleed dark) --- */

.essay-footnotes {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  background: #0d2a2d;
  color: rgba(255, 255, 255, 0.6);
  padding: calc(2rem + 40px) 0 calc(2rem + 40px);
  margin-top: 2rem;
  clip-path: polygon(0 40px, 100% 0, 100% 100%, 0 100%);
}

.essay-footnotes-inner {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.essay-footnotes ol {
  font-size: 0.8rem;
  padding-left: 1.25rem;
  margin-bottom: 0;
}

.essay-footnotes li {
  margin-bottom: 0.4rem;
}

.essay-footnotes a {
  color: rgba(255, 255, 255, 0.7);
}

.essay-footnotes a:hover {
  color: #CB6120;
}

/* --- Essay CTA (bridge-quote style) --- */

.article-cta {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.article-cta blockquote {
  border-left: 3px solid #CB6120;
  padding-left: 1.25rem;
  margin: 0 0 1rem;
  font-size: 1.05rem;
  font-style: italic;
  color: #444;
  line-height: 1.6;
}

.article-cta .cta-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1rem;
  padding-left: 1.25rem;
}

.article-cta .cta-links a {
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  color: #CB6120;
  transition: color 0.15s ease;
}

.article-cta .cta-links a:hover {
  color: #a34e18;
}

/* --- Essay Hero Caption --- */

.essay-hero-image figcaption {
  font-size: 0.65rem;
  color: #aaa;
  text-align: right;
  padding: 0.2rem 1rem 0;
  line-height: 1.4;
  margin-top: -20px;
}

@media (max-width: 480px) {
  .essay-pull-quote {
    padding: calc(2rem + 40px) 0 calc(2rem + 40px);
  }

  .essay-pull-quote-inner,
  .essay-footnotes-inner {
    padding: 0 1.25rem;
  }
}

.article-back {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #888;
  text-decoration: none;
  margin-bottom: 2rem;
  transition: color 0.15s ease;
}

.article-back:hover {
  color: #CB6120;
}

/* --- Responsive (footer fix for all mobile) --- */

@media (max-width: 768px) {
  .site-footer {
    padding: 1.5rem 0 1.25rem;
  }
}
