@font-face {
  font-family: Fraunces;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../assets/Fraunces.woff2') format('woff2');
}

@font-face {
  font-family: DMSans;
  font-style: normal;
  font-weight: 100 1000;
  font-display: swap;
  src: url('../assets/DMSans.woff2') format('woff2');
}

/* Variable fonts usage:
:root { font-family: "Inter", sans-serif; }
@supports (font-variation-settings: normal) {
  :root { font-family: "InterVariable", sans-serif; font-optical-sizing: auto; }
} */
/*
 @font-face {
   font-family: InterVariable;
   font-style: normal;
   font-weight: 100 900;
   font-display: swap;
   src: url('../assets/InterVariable.woff2') format('woff2');
 }
 @font-face {
   font-family: InterVariable;
   font-style: italic;
   font-weight: 100 900;
   font-display: swap;
   src: url('../assets/InterVariable-Italic.woff2') format('woff2');
}
*/

:root {
  color-scheme: light dark;

  /* Some blacks */
  --obsidian: #0b1215;
  --oil-black: #0c0c0c;
  --burnt-mocha: #120309;
  --night-forest: #111812;
  --midnight-sea: #051118;

  /* Purple Sunset & Tropical Beach Color Scheme */

  /* Dark Mode - Purple Sunset */
  --sunset-deep-purple: hsl(260, 45%, 25%);
  --sunset-royal-purple: hsl(270, 60%, 65%);
  --sunset-lavender: hsl(280, 50%, 75%);
  --sunset-periwinkle: hsl(250, 40%, 80%);
  --sunset-amethyst: hsl(290, 35%, 60%);

  /* Light Mode - Warm Cream */
  --beach-sand: hsl(40, 35%, 96%);
  --beach-coral: hsl(15, 65%, 55%);
  --beach-turquoise: hsl(180, 50%, 30%);
  --beach-navy: hsl(0, 0%, 20%);
  --beach-teal: hsl(180, 45%, 35%);

  /* Atom One Light */
  --syntax-hue-light: 230;
  --syntax-saturation-light: 1%;
  --syntax-lightness-light: 98%;

  /* Atom One Dark */
  --syntax-hue-dark: 220;
  --syntax-saturation-dark: 13%;
  --syntax-lightness-dark: 18%;

  /* Monochrome ----------------------------------- */
  /* default text color */
  --mono-1-light: hsl(var(--syntax-hue-light), 8%, 24%);
  --mono-1-dark: hsl(var(--syntax-hue-dark), 14%, 71%);

  --mono-2-light: hsl(var(--syntax-hue-light), 6%, 44%);
  --mono-2-dark: hsl(var(--syntax-hue-dark), 9%, 55%);

  --mono-3-light: hsl(var(--syntax-hue-light), 4%, 64%);
  --mono-3-dark: hsl(var(--syntax-hue-dark), 10%, 40%);

  /* Colors --------------------------------------- */
  --hue-1: hsl(187, 47%, 55%); /* <-cyan */
  --hue-2: hsl(207, 82%, 66%); /* <-blue */
  --hue-3: hsl(286, 60%, 67%); /* <-purple */
  --hue-4: hsl(95, 38%, 62%); /* <-green */

  --hue-5: hsl(355, 65%, 65%); /* <-red 1 */
  --hue-5-2: hsl(5, 48%, 51%); /* <-red 2 */

  --hue-6: hsl(29, 54%, 61%); /* <-orange 1 */
  --hue-6-2: hsl(39, 67%, 69%); /* <-orange 2 */

  --syntax-bg-2: hsl(var(--syntax-hue), var(--syntax-saturation), 24%);

  /* Base colors */
  --bg-dark: var(--sunset-deep-purple);
  --bg-light: var(--beach-sand);
  --bg-1: var(--syntax-bg-2);
  --fg-dark: var(--sunset-periwinkle);
  --fg-light: var(--beach-navy);

  /* Semantic header colors with improved contrast */
  --heading-primary-light: var(--beach-coral);
  --heading-primary-dark: var(--sunset-royal-purple);
  --heading-secondary-light: var(--beach-turquoise);
  --heading-secondary-dark: var(--sunset-lavender);

  /* layout */
  --max-page-width: 52rem;
  --radius: 0.5rem;

  /* Navigation */
  --nav-height: 3rem;
  --nav-bg-dark: var(--bg-dark);
  --nav-bg-light: var(--bg-light);
  --nav-shadow: 0 0 10px -3px var(--bg-dark);
  --nav-border: 1px solid light-dark(var(--fg-dark), transparent);

  --font-family: DMSans, -apple-system, BlinkMacSystemFont, avenir next, avenir,
    segoe ui, helvetica neue, Adwaita Sans, Cantarell, Ubuntu, roboto, noto,
    helvetica, arial, sans-serif;
}

.light {
  color-scheme: light;
}

.dark {
  color-scheme: dark;
}

/*** Reset ***/
*,
*::before,
*::after {
  box-sizing: border-box;
}
* {
  margin: 0;
  padding: 0;
  border: 0 solid transparent;
}
html:focus-within {
  scroll-behavior: smooth;
}
body {
  min-height: 100vh;
}
audio,
canvas,
embed,
iframe,
img,
object,
picture,
svg,
video {
  display: block;
  max-width: 100%;
}
button,
input,
select,
textarea {
  font: inherit;
  line-height: inherit;
  color: inherit;
}
a {
  cursor: pointer;
  color: inherit;
  text-decoration: inherit;
}
a:not([class]) {
  text-decoration-skip-ink: auto;
}
button,
[role='button'] {
  cursor: pointer;
  background-color: transparent;
}
code {
  font: inherit;
  font-size: inherit;
}
h1,
h2,
h3,
h4,
h5,
h6 {
  font-size: inherit;
  font-weight: inherit;
}
ul[role='list'],
ol[role='list'] {
  list-style: none;
}
table {
  border-collapse: collapse;
  border-spacing: 0;
}
textarea {
  vertical-align: top;
  overflow: auto;
}

@media (prefers-reduced-motion: reduce) {
  html:focus-within {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

html,
body {
  background-color: light-dark(var(--bg-light), var(--bg-dark));
  color: light-dark(var(--fg-light), var(--fg-dark));
  font-family: var(--font-family);
  font-size: 100%;
  margin: 0;
  padding: 0;
  text-rendering: optimizeLegibility;
}

h1 {
  color: light-dark(var(--heading-primary-light), var(--heading-primary-dark));
  font-family: Fraunces, serif;
  letter-spacing: -0.05rem;
  paint-order: stroke fill;
  text-shadow: 2px 2px var(--obsidian);
  -webkit-text-stroke: 2px var(--obsidian);
  font-weight: 700;
  font-size: 2.875rem;
}

h2,
h3,
h4 {
  font-weight: 700;
  font-family: Fraunces, serif;
  color: light-dark(
    var(--heading-secondary-light),
    var(--heading-secondary-dark)
  );
}

h2 {
  font-size: 2.5rem;
}

h3 {
  font-size: 2rem;
}

h4 {
  font-size: 1.5rem;
}

p,
li,
blockquote {
  line-height: 1.8;
}

input,
textarea {
  color: var(--bg);
}

code {
  font-family: monospace;
  display: inline-block;
  background-color: light-dark(transparent, var(--fg-dark));
  color: var(--fg-light);
  border-radius: 3px;
  padding: 0 0.2rem;
  max-inline-size: calc(
    100vw - 4rem
  ); /* 4rem = padding of containers usually. Should probably live in some spacing var */
  overflow-wrap: break-word;
}

@supports not (color: light-dark(black, white)) {
  html,
  body {
    background-color: var(--bg-dark);
    color: var(--fg-dark);
  }

  h1 {
    color: var(--heading-primary-dark);
  }

  h2,
  h3,
  h4 {
    color: var(--heading-secondary-dark);
  }
}

@media (max-width: 48rem) {
  h1 {
    font-size: 2.4rem;
  }

  h2 {
    font-size: 2rem;
  }

  h3 {
    font-size: 1.5rem;
  }

  h4 {
    font-size: 1.2rem;
  }
}

/* ============================================================
   EDITORIAL REDESIGN — Derived semantic tokens
   These bridge the existing color vars to component shorthand.
   Wired to existing --bg-*, --fg-*, --heading-* vars above.
============================================================ */
:root {
  --font-serif: Fraunces, serif;
  --font-mono: monospace;
  --code-block-bg: hsl(220, 13%, 16%);

  --h1-color: light-dark(
    var(--heading-primary-light),
    var(--heading-primary-dark)
  );
  --h2-color: light-dark(
    var(--heading-secondary-light),
    var(--heading-secondary-dark)
  );
  --fg-muted: light-dark(hsl(0, 0%, 40%), hsl(260, 25%, 60%));
  --fg-faint: light-dark(hsl(0, 0%, 41%), hsl(260, 20%, 55%));
  --border: light-dark(rgba(0, 0, 0, 0.1), rgba(255, 255, 255, 0.1));
  --border-mid: light-dark(rgba(0, 0, 0, 0.2), rgba(255, 255, 255, 0.2));
  --surface: light-dark(rgba(0, 0, 0, 0.03), rgba(255, 255, 255, 0.04));
  --tag-bg: light-dark(rgba(0, 0, 0, 0.06), rgba(255, 255, 255, 0.08));
  --code-inline-bg: light-dark(hsl(230, 5%, 85%), rgba(0, 0, 0, 0.3));

  /* Type scale
     2xs  → mono labels, tags, section headers, meta numbers
     xs   → dates, footer, author role, article-back
     sm   → nav links, code filenames
     md   → bios, project descriptions
     base → card excerpts
     lg   → hero subtitle
     xl   → prose body, prose li
     2xl  → card titles, project names, avatar initials
     3xl  → featured card title
     4xl  → nav logo, about name
  */
  --text-2xs: 10px;
  --text-xs: 11px;
  --text-sm: 12px;
  --text-md: 13px;
  --text-base: 14px;
  --text-lg: 15px;
  --text-xl: 16px;
  --text-2xl: 18px;
  --text-3xl: 19px;
  --text-4xl: 20px;
  --text-code: 12.5px;

  /* Display sizes (rem, for headings and hero) */
  --text-pullquote: 1.2rem;
  --text-prose-h3: 1.15rem;
  --text-prose-h2: 1.5rem;
  --text-display-sm: 2.375rem; /* article title */
  --text-display: 2.5rem;      /* hero title */
}

/* ============================================================
   EDITORIAL — Tag pill
============================================================ */
.tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: var(--text-2xs);
  letter-spacing: 0.05em;
  padding: 2px 7px;
  border-radius: 2px;
  background: var(--tag-bg);
  color: var(--fg-muted);
  border: 0.5px solid var(--border);
}

/* ============================================================
   EDITORIAL — Section header (label + horizontal rule)
============================================================ */
.section-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.section-label {
  font-family: var(--font-mono);
  font-size: var(--text-2xs);
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--fg-faint);
  white-space: nowrap;
  margin: 0;
}

.section-line {
  flex: 1;
  height: 0.5px;
  background: var(--border);
}

/* ============================================================
   EDITORIAL — Navigation
   (Supplements the site-nav element's scoped styles)
============================================================ */
.ed-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.75rem 0 1.25rem;
  border-bottom: 0.5px solid var(--border);
}

.ed-nav-logo {
  font-family: var(--font-serif);
  font-optical-sizing: auto;
  font-size: var(--text-4xl);
  font-weight: 700;
  color: var(--h1-color);
  letter-spacing: -0.02em;
  text-shadow: none;
  -webkit-text-stroke: 0;
}

.ed-nav-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.ed-nav-links a {
  font-size: var(--text-sm);
  color: var(--fg-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: color 0.15s;
}

.ed-nav-links a:hover,
.ed-nav-links a.active {
  color: light-dark(var(--fg-light), var(--fg-dark));
}

@media (max-width: 30rem) {
  .ed-nav-logo {
    display: none;
  }
  .ed-nav-links {
    gap: 0.875rem;
  }
  .ed-nav-links a {
    letter-spacing: 0;
  }
  site-nav nav {
    padding: 0 0.5rem !important;
  }
}

/* ============================================================
   EDITORIAL — Page shell
============================================================ */
.ed-page {
  max-width: var(--max-page-width);
  margin: 0 auto;
  padding: 2.5rem 1.5rem 3rem;
}

/* ============================================================
   EDITORIAL — Hero (homepage)
============================================================ */
.hero {
  margin-bottom: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 0.5px solid var(--border);
}

.hero-tag {
  font-family: var(--font-mono);
  font-size: var(--text-2xs);
  color: var(--fg-faint);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.hero-title {
  font-family: var(--font-serif);
  font-optical-sizing: auto;
  font-size: var(--text-display);
  font-weight: 700;
  line-height: 1.15;
  color: var(--h1-color);
  letter-spacing: -0.04em;
  margin-top: 0;
  margin-bottom: 1rem;
  text-shadow: none;
  -webkit-text-stroke: 0;
}

.hero-title em {
  font-style: italic;
  font-weight: 300;
  color: var(--h2-color);
}

.hero-subtitle {
  font-size: var(--text-lg);
  color: var(--fg-muted);
  line-height: 1.75;
  margin-bottom: 1.1rem;
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.meta-date {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--fg-faint);
}

.meta-dot {
  color: var(--fg-faint);
}

.hero-cover {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 4px;
  display: block;
}

.post-card-cover {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 3px;
  display: block;
  margin-bottom: 0.75rem;
}

.post-card--featured .post-card-cover {
  height: 100%;
  margin-bottom: 0;
  align-self: stretch;
}

.article-cover {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 4px;
  display: block;
  margin-bottom: 2.5rem;
}

.placeholder-label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--fg-faint);
}

/* ============================================================
   EDITORIAL — Pull quote
============================================================ */
.pullquote {
  font-family: var(--font-serif);
  font-optical-sizing: auto;
  font-size: var(--text-pullquote);
  font-weight: 300;
  font-style: italic;
  line-height: 1.55;
  color: var(--h1-color);
  border-left: 2px solid var(--h1-color);
  padding-left: 1.25rem;
  margin-bottom: 2.5rem;
  opacity: 0.9;
}

/* ============================================================
   EDITORIAL — Post cards grid
============================================================ */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.post-card--featured {
  grid-column: span 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  padding: 1.1rem;
  background: var(--surface);
  border: 0.5px solid var(--border);
  border-radius: 4px;
}

.post-num {
  font-family: var(--font-mono);
  font-size: var(--text-2xs);
  color: var(--fg-faint);
  margin-bottom: 0.4rem;
}

.post-title {
  font-family: var(--font-serif);
  font-optical-sizing: auto;
  font-size: var(--text-2xl);
  font-weight: 700;
  line-height: 1.3;
  color: var(--h2-color);
  margin-top: 0;
  margin-bottom: 0.4rem;
  text-shadow: none;
  -webkit-text-stroke: 0;
}

.post-card--featured .post-title {
  font-size: var(--text-3xl);
  line-height: 1.2;
}

.post-title em {
  font-style: italic;
  font-weight: 300;
}

.post-excerpt {
  font-size: var(--text-base);
  color: var(--fg-muted);
  line-height: 1.65;
  margin-bottom: 0.6rem;
}

.post-meta {
  font-family: var(--font-mono);
  font-size: var(--text-2xs);
  color: var(--fg-faint);
}

/* ============================================================
   EDITORIAL — Project cards grid
============================================================ */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.project-card {
  padding: 1.1rem;
  background: var(--surface);
  border: 0.5px solid var(--border);
  border-radius: 4px;
  transition: border-color 0.15s;
}

.project-card:hover {
  border-color: var(--border-mid);
}

.project-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.4rem;
}

.project-name {
  font-family: var(--font-serif);
  font-optical-sizing: auto;
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--h2-color);
  text-shadow: none;
  -webkit-text-stroke: 0;
}

.project-arrow {
  font-size: var(--text-base);
  color: var(--fg-faint);
}

.project-desc {
  font-size: var(--text-md);
  color: var(--fg-muted);
  line-height: 1.6;
  margin-bottom: 0.65rem;
}

.project-stack {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}

/* ============================================================
   EDITORIAL — About strip (homepage)
============================================================ */
.about-strip {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.5rem;
  padding: 1.5rem;
  background: var(--surface);
  border: 0.5px solid var(--border);
  border-radius: 4px;
  align-items: center;
  margin-bottom: 2.5rem;
}

.avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--tag-bg);
  border: 0.5px solid var(--border-mid);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: light-dark(hsl(180, 30%, 30%), hsl(180, 30%, 72%));
  flex-shrink: 0;
}

.about-name {
  font-family: var(--font-serif);
  font-optical-sizing: auto;
  font-size: var(--text-4xl);
  font-weight: 700;
  color: var(--h1-color);
  margin-bottom: 2px;
  text-shadow: none;
  -webkit-text-stroke: 0;
}

.about-role {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--fg-faint);
  margin-bottom: 0.5rem;
}

.about-bio {
  font-size: var(--text-md);
  color: var(--fg-muted);
  line-height: 1.7;
}

/* ============================================================
   EDITORIAL — Footer
============================================================ */
.ed-footer {
  padding-top: 1.5rem;
  border-top: 0.5px solid var(--border);
  display: flex;
  justify-content: space-between;
}

.footer-text {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--fg-faint);
}

/* ============================================================
   EDITORIAL — Posts index page
============================================================ */
.posts-index-heading {
  font-family: var(--font-serif);
  font-optical-sizing: auto;
  font-size: var(--text-display-sm);
  font-weight: 700;
  color: var(--h1-color);
  letter-spacing: -0.02em;
  line-height: 1.1;
  text-shadow: none;
  -webkit-text-stroke: 0;
  margin: 0 0 2rem;
}

.post-list-item {
  display: block;
  padding: 2.5rem 0;
  border-bottom: 0.5px solid var(--border);
}

.post-list-item:first-child {
  border-top: 0.5px solid var(--border);
}

.post-list-item:hover .post-list-title {
  color: var(--h1-color);
}

.post-list-title {
  font-family: var(--font-serif);
  font-optical-sizing: auto;
  font-size: var(--text-display-sm);
  font-weight: 700;
  color: var(--h2-color);
  line-height: 1.15;
  margin: 0.4rem 0 0.75rem;
  text-shadow: none;
  -webkit-text-stroke: 0;
  transition: color 0.15s;
}

.post-list-excerpt {
  font-size: var(--text-xl);
  color: var(--fg-muted);
  line-height: 1.65;
  margin: 0;
}

/* ============================================================
   EDITORIAL — Article page
============================================================ */
.article-wrap {
  max-width: 680px;
  margin: 0 auto;
  padding-top: 2rem;
}

.article-back {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--fg-faint);
  margin-bottom: 1.75rem;
  transition: color 0.15s;
}

.article-back:hover {
  color: var(--fg-muted);
}

.article-tag {
  font-family: var(--font-mono);
  font-size: var(--text-2xs);
  color: var(--fg-faint);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.article-title {
  font-family: var(--font-serif);
  font-optical-sizing: auto;
  font-size: var(--text-display-sm);
  font-weight: 700;
  line-height: 1.15;
  color: var(--h1-color);
  letter-spacing: -0.04em;
  margin-bottom: 1rem;
  text-shadow: none;
  -webkit-text-stroke: 0;
}

.article-title em {
  font-style: italic;
  font-weight: 300;
  color: var(--h2-color);
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 0.5px solid var(--border);
}

/* ============================================================
   EDITORIAL — Prose (article body)
============================================================ */
.prose p {
  font-size: var(--text-xl);
  line-height: 1.85;
  color: light-dark(var(--fg-light), var(--fg-dark));
  margin-bottom: 1.4rem;
}

.prose h2 {
  font-family: var(--font-serif);
  font-optical-sizing: auto;
  font-size: var(--text-prose-h2);
  font-weight: 700;
  color: var(--h2-color);
  margin: 2.5rem 0 0.75rem;
  line-height: 1.2;
  text-shadow: none;
  -webkit-text-stroke: 0;
}

.prose h3 {
  font-family: var(--font-serif);
  font-optical-sizing: auto;
  font-size: var(--text-prose-h3);
  font-weight: 700;
  font-style: italic;
  color: var(--h2-color);
  margin: 2rem 0 0.6rem;
  text-shadow: none;
  -webkit-text-stroke: 0;
}

.prose ol {
  margin: 0 0 1.4rem 1.25rem;
  padding: 0;
  list-style: decimal;
}

.prose ol li {
  font-size: var(--text-xl);
  line-height: 1.85;
  color: light-dark(var(--fg-light), var(--fg-dark));
  margin-bottom: 0.4rem;
  padding-left: 0.4rem;
}

.prose code {
  font-family: var(--font-mono);
  font-size: var(--text-md);
  background: var(--code-inline-bg);
  color: var(--h2-color);
  padding: 1px 5px;
  border-radius: 3px;
}

.prose hr {
  border: none;
  border-top: 0.5px solid var(--border);
  margin: 2.5rem 0;
}

.prose .pullquote {
  margin: 2rem 0;
}

/* ============================================================
   EDITORIAL — Code block (always dark)
============================================================ */
.code-block {
  background: var(--code-block-bg);
  border-radius: 6px;
  margin: 1.5rem 0;
  overflow: hidden;
}

.code-block-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.55rem 1rem;
  border-bottom: 0.5px solid rgba(255, 255, 255, 0.06);
}

.code-filename {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.35);
}

.code-lang {
  font-family: var(--font-mono);
  font-size: var(--text-2xs);
  color: rgba(255, 255, 255, 0.18);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.code-block pre {
  margin: 0;
  padding: 1.1rem 1rem;
  overflow-x: auto;
}

.code-block code {
  font-family: var(--font-mono);
  font-size: var(--text-code);
  line-height: 1.7;
  color: var(--mono-1-dark);
  background: none;
  padding: 0;
  border-radius: 0;
  white-space: pre;
  display: block;
}

.tok-keyword {
  color: var(--hue-3);
}
.tok-string {
  color: var(--hue-4);
}
.tok-comment {
  color: var(--mono-3-dark);
  font-style: italic;
}
.tok-prop {
  color: var(--hue-2);
}
.tok-value {
  color: var(--hue-6);
}
.tok-tag {
  color: var(--hue-5);
}
.tok-cyan {
  color: var(--hue-1);
}

/* ============================================================
   EDITORIAL — Author strip (end of article)
============================================================ */
.author-strip {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.4rem;
  background: var(--surface);
  border: 0.5px solid var(--border);
  border-radius: 6px;
  margin-top: 3rem;
}

.author-name {
  font-family: var(--font-serif);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--h1-color);
  margin-bottom: 2px;
  text-shadow: none;
  -webkit-text-stroke: 0;
}

.author-role {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--fg-faint);
}

/* ============================================================
   EDITORIAL — Related posts (end of article)
============================================================ */
.related-posts {
  margin-top: 2.5rem;
}

.related-label {
  font-family: var(--font-mono);
  font-size: var(--text-2xs);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--fg-faint);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.related-label::after {
  content: '';
  flex: 1;
  height: 0.5px;
  background: var(--border);
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.related-card {
  padding: 1rem;
  border: 0.5px solid var(--border);
  border-radius: 4px;
  transition: border-color 0.15s;
}

.related-card:hover {
  border-color: var(--border-mid);
}

.related-title {
  font-family: var(--font-serif);
  font-optical-sizing: auto;
  font-size: var(--text-base);
  font-weight: 700;
  line-height: 1.3;
  color: var(--h2-color);
  margin-bottom: 0.3rem;
  text-shadow: none;
  -webkit-text-stroke: 0;
}

.related-meta {
  font-family: var(--font-mono);
  font-size: var(--text-2xs);
  color: var(--fg-faint);
}

/* ============================================================
   EDITORIAL — Uses page
============================================================ */
.uses-intro {
  font-size: var(--text-lg);
  color: var(--fg-muted);
  line-height: 1.75;
  margin-bottom: 2.5rem;
}

.uses-category {
  margin-bottom: 2.5rem;
}

.uses-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.uses-item {
  padding: 0.85rem 0;
  border-bottom: 0.5px solid var(--border);
}

.uses-item:last-child {
  border-bottom: none;
}

.uses-item-name {
  font-family: var(--font-serif);
  font-optical-sizing: auto;
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--h2-color);
  margin-bottom: 0.2rem;
  text-shadow: none;
  -webkit-text-stroke: 0;
}

.uses-item-name a {
  color: inherit;
  transition: color 0.15s;
}

.uses-item-name a:hover {
  color: var(--h1-color);
}

.uses-arrow {
  font-size: var(--text-sm);
  color: var(--fg-faint);
}

.uses-item-desc {
  font-size: var(--text-base);
  color: var(--fg-muted);
  line-height: 1.6;
  margin: 0;
}

/* ============================================================
   EDITORIAL — Responsive
============================================================ */
@media (max-width: 48rem) {
  .hero {
    grid-template-columns: 1fr;
  }
  .hero-title {
    font-size: clamp(1.75rem, 8vw, var(--text-display));
  }
  .posts-grid {
    grid-template-columns: 1fr;
  }
  .post-card--featured {
    grid-column: span 1;
    grid-template-columns: 1fr;
  }
  .projects-grid {
    grid-template-columns: 1fr;
  }
  .related-grid {
    grid-template-columns: 1fr;
  }
  .article-title {
    font-size: var(--text-display-sm);
  }
  .ed-page {
    padding: 0 1rem 2rem;
  }
}

/* ============================================================
   EDITORIAL — Focus states (keyboard nav)
============================================================ */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--h1-color);
  outline-offset: 3px;
  border-radius: 2px;
}
