@layer reset,tokens,base,prose,components,utilities;@layer reset{*, *::before, *::after { box-sizing: border-box; }
  * { margin: 0; }
  html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
  html, body { min-height: 100%; }
  body { -webkit-font-smoothing: antialiased; }
  img, picture, video, canvas, svg { display: block; max-width: 100%; height: auto; }
  input, button, textarea, select { font: inherit; }
  button { background: none; border: 0; cursor: pointer; color: inherit; }
  p, h1, h2, h3, h4, h5, h6 { overflow-wrap: break-word; }
  :focus-visible {
    outline: 2px solid var(--c-accent);
    outline-offset: 3px;
    border-radius: 2px;
  }
  
  body.has-hero .site-header a:focus-visible {
    outline-color: #fff;
    outline-offset: 4px;
  }
}@layer tokens{:root {
    --c-bg: #F6F4F1;
    --c-surface: #FFFFFF;
    --c-text: #1a1a1a;
    --c-muted: #5A5550;
    --c-border: #E2DED9;
    --c-accent: #b3312d;
    --c-accent-hover: #8f2823;

    --font-serif: 'Crimson Pro', Georgia, 'Times New Roman', serif;
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', Menlo, monospace;

    --fs-xs: clamp(0.75rem, 1.5vw, 0.875rem);
    --fs-sm: clamp(0.875rem, 1.75vw, 1rem);
    --fs-base: clamp(1rem, 2vw, 1.125rem);
    --fs-lg: clamp(1.125rem, 2.5vw, 1.5rem);
    --fs-h4: clamp(1.5rem, 3vw, 1.777rem);
    --fs-h3: clamp(1.777rem, 4vw, 2.369rem);
    --fs-h2: clamp(2.369rem, 5vw, 3.157rem);
    --fs-h1: clamp(3.157rem, 6vw, 4.209rem);

    --lh-tight: 1.2;
    --lh-body: 1.65;

    --measure: 66ch;

    --sp-xs: 4px;
    --sp-sm: 8px;
    --sp-md: 16px;
    --sp-lg: 24px;
    --sp-xl: 40px;
    --sp-2xl: 64px;

    --fw-regular: 400;
    --fw-semi: 600;
    --fw-bold: 700;
    --fw-black: 800;

    
    --c-positive: #2E7D32;
    --c-negative: #C62828;
    --c-neutral: #666666;

    
    --radius-sm: 4px;
    --radius-md: 6px;
    --radius-pill: 999px;
    --transition: 0.15s ease;

    
    --banner-mobile-h: clamp(180px, 56.25vw, 280px);
  }

  
  @media (prefers-color-scheme: dark) {
    :root {
      --c-bg: #121212;
      --c-surface: #1e1e1e;
      --c-text: #e2e8f0;
      --c-muted: #94a3b8;
      --c-border: #334155;
      --c-accent: #d44a47;
      --c-accent-hover: #e85a57;
    }
  }
}@layer base{body {
    font-family: var(--font-sans);
    font-size: var(--fs-base);
    line-height: var(--lh-body);
    color: var(--c-text);
    background: var(--c-bg);
    transition: background 0.2s ease, color 0.2s ease;
  }

  .container {
    max-width: min(100% - var(--sp-xl), 72ch);
    margin-inline: auto;
    padding-inline: var(--sp-md);
  }

  a {
    color: var(--c-accent);
    text-decoration: none;
    transition: color var(--transition), opacity var(--transition),
                text-decoration-color var(--transition);
  }
  a:hover { color: var(--c-accent-hover); }

  h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-sans);
    font-weight: var(--fw-black);
    line-height: var(--lh-tight);
    letter-spacing: -0.02em;
  }
  h1 { font-size: var(--fs-h1); }
  h2 { font-size: var(--fs-h2); }
  h3 { font-size: var(--fs-h3); }
  h4 { font-size: var(--fs-h4); }
}@layer prose{.prose {
    font-family: var(--font-serif);
    font-size: var(--fs-lg);
    line-height: 1.58; 
    max-width: var(--measure);
  }

  .prose > * + * { margin-top: 1.2em; }
  .prose h1, .prose h2, .prose h3, .prose h4 {
    font-family: var(--font-sans);
    margin-top: 2em;
    margin-bottom: 0.5em;
  }
  .prose h2 { font-size: var(--fs-h3); }
  .prose h3 { font-size: var(--fs-h4); }
  .prose h4 { font-size: var(--fs-lg); }

  .prose blockquote {
    border-left: 3px solid var(--c-accent);
    border-bottom: 1px solid var(--c-border);
    padding: var(--sp-xs) 0 var(--sp-md) var(--sp-lg);
    font-style: italic;
    color: var(--c-muted);
  }

  .prose ul, .prose ol { padding-left: 1.75em; }
  .prose li + li { margin-top: 0.5rem; }
  .prose li > ul, .prose li > ol { margin-top: 0.5rem; }

  .prose hr {
    border: 0;
    border-top: 1px solid var(--c-border);
    margin: var(--sp-xl) 0;
  }

  .prose code {
    font-family: var(--font-mono);
    font-size: 0.92em;
  }
  .prose :not(pre) > code {
    background: var(--c-surface);
    padding: 0.1em 0.4em;
    border-radius: var(--radius-sm);
    border: 1px solid var(--c-border);
    color: var(--c-muted);
  }
  .prose pre {
    background: #1e1e1e;
    color: #e2e8f0;
    padding: var(--sp-md) var(--sp-lg);
    border-radius: 6px;
    overflow-x: auto;
    font-size: var(--fs-sm);
    line-height: 1.5;
  }
  .prose pre code {
    background: transparent;
    padding: 0;
    border: 0;
    color: inherit;
  }
  
  .prose .code-block {
    position: relative;
    margin-bottom: 1.5rem;
  }
  .prose .code-lang {
    position: absolute;
    top: var(--sp-sm);
    left: var(--sp-md);
    font-family: var(--font-sans);
    font-size: var(--fs-xs);
    font-weight: var(--fw-semi);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #94a3b8;
    z-index: 1;
  }
  .prose .code-copy {
    position: absolute;
    top: var(--sp-sm);
    right: var(--sp-sm);
    font-family: var(--font-sans);
    font-size: var(--fs-xs);
    color: #94a3b8;
    padding: 0.3em 0.6em;
    border-radius: 3px;
    z-index: 1;
    transition: background 0.15s, color 0.15s;
  }
  .prose .code-copy:hover {
    background: rgba(255,255,255,0.08);
    color: #e2e8f0;
  }
  .prose .code-block pre {
    padding-top: calc(var(--sp-md) + var(--fs-base));
  }

  
  .prose .prose-heading {
    position: relative;
  }
  .prose .prose-heading .anchor {
    position: absolute;
    left: -1.5rem;
    color: var(--c-muted);
    opacity: 0;
    text-decoration: none;
    transition: opacity 0.15s;
  }
  .prose .prose-heading:hover .anchor,
  .prose .prose-heading .anchor:focus {
    opacity: 1;
  }

  
  .prose a.external .ext-icon {
    display: inline-block;
    margin-left: 0.15em;
    font-size: 0.85em;
    color: var(--c-muted);
  }

  .prose table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--fs-base);
  }
  .prose th, .prose td {
    padding: var(--sp-sm) var(--sp-md);
    border-bottom: 1px solid var(--c-border);
    text-align: left;
  }
  .prose th {
    font-family: var(--font-sans);
    font-weight: var(--fw-bold);
    background: var(--c-surface);
  }

  .prose img { border-radius: 6px; }
  .prose figure { text-align: center; }
  .prose figcaption {
    font-family: var(--font-sans);
    font-size: var(--fs-sm);
    color: var(--c-muted);
    margin-top: var(--sp-sm);
  }

  
  .prose a {
    color: var(--c-accent);
    font-weight: var(--fw-semi);
    text-decoration: underline;
    text-decoration-color: transparent;
    text-decoration-thickness: 2px;
    text-underline-offset: 0.2em;
    transition: text-decoration-color var(--transition), color var(--transition);
  }
  .prose a:hover {
    color: var(--c-accent-hover);
    text-decoration-color: currentColor;
  }

  
  .prose .footnotes {
    font-size: var(--fs-sm);
    border-top: 1px solid var(--c-border);
    margin-top: var(--sp-2xl);
    padding-top: var(--sp-lg);
  }

  
  .prose .video {
    margin: var(--sp-lg) 0;
  }
  .prose .video video {
    width: 100%;
    max-width: 600px;
    margin-inline: auto;
    border-radius: 6px;
  }
}@layer components{.chip,
  .tags li a,
  .lang-switch a,
  .social a,
  .project-tech li,
  .project-status,
  .project-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3em;
    padding: 0.35em 0.9em;
    font-family: var(--font-sans);
    font-size: var(--fs-xs);
    font-weight: var(--fw-semi);
    line-height: 1.2;
    letter-spacing: 0.01em;
    color: var(--c-muted);
    background: transparent;
    border: 1px solid var(--c-border);
    border-radius: var(--radius-pill);
    text-decoration: none;
    white-space: nowrap;
    transition: color var(--transition), background var(--transition),
                border-color var(--transition), transform var(--transition);
  }
  .chip:hover,
  .tags li a:hover,
  .lang-switch a:hover,
  .social a:hover,
  .project-tech li:hover {
    color: var(--c-accent);
    border-color: var(--c-accent);
  }
  .chip--active,
  .lang-switch a.active,
  .project-status,
  .project-status-badge {
    color: var(--c-accent);
    border-color: var(--c-accent);
    background: color-mix(in srgb, var(--c-accent) 13%, var(--c-bg));
  }
  .chip--accent {
    background: var(--c-accent);
    border-color: var(--c-accent);
    color: #fff;
  }
  .chip--accent:hover {
    background: var(--c-accent-hover);
    border-color: var(--c-accent-hover);
    color: #fff;
  }
  .chip--ghost,
  .project-tech li {
    border-color: transparent;
    background: var(--c-surface);
    cursor: default;
  }
  .chip--ghost:hover,
  .project-tech li:hover {
    border-color: var(--c-border);
    color: var(--c-muted);
  }
  
  .site-header {
    border-bottom: 1px solid var(--c-border);
    padding: var(--sp-md) 0;
    background: var(--c-bg);
  }
  
  body.has-hero .site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    background: transparent;
    border-bottom: 0;
    z-index: 10;
  }
  @media (max-width: 640px) {
    
    body.has-hero .site-header {
      position: fixed;
      background: transparent;
      border-bottom: 0;
      overflow: hidden;
      isolation: isolate;
    }
    body.has-hero .site-header::before {
      content: "";
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      height: var(--banner-mobile-h);
      
      background:
        linear-gradient(180deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.15) 60%, transparent 100%) center top / 100% 140px no-repeat,
        var(--hero-img) center center / cover no-repeat,
        var(--c-surface);
      z-index: -1;
    }
    body.has-hero .site-header .nav {
      position: relative;
      z-index: 1;
    }
    body.has-hero .site-header .brand,
    body.has-hero .site-header .nav-links a {
      text-shadow: 0 1px 2px rgba(0,0,0,0.85), 0 2px 6px rgba(0,0,0,0.5);
    }

    
    body.has-hero .site-header {
      height: 64px;
    }

    
    body.has-hero main::before {
      content: "";
      display: block;
      position: fixed;
      top: 64px;
      left: 0; right: 0;
      height: 48px;
      backdrop-filter: blur(16px) saturate(1.15);
      -webkit-backdrop-filter: blur(16px) saturate(1.15);
      mask-image: linear-gradient(180deg, #000 0%, #000 25%, transparent 100%);
      -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 25%, transparent 100%);
      pointer-events: none;
      z-index: 4;
    }
  }
  body.has-hero .site-header .brand { color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,0.5); }
  body.has-hero .site-header .nav-links a { color: rgba(255,255,255,0.92); text-shadow: 0 1px 3px rgba(0,0,0,0.5); }
  body.has-hero .site-header .nav-links a:hover,
  body.has-hero .site-header .nav-links a.active { color: #fff; }
  body.has-hero main { padding: 0; }
  body.has-hero main > .container:not(.home):not(.post):not(.project):not(.list-page):not(.pgp-page) {
    padding: var(--sp-xl) var(--sp-md);
  }
  .nav {
    display: flex;
    align-items: baseline;
    gap: var(--sp-xl);
  }
  .nav .brand {
    font-family: var(--font-sans);
    font-weight: var(--fw-black);
    font-size: 1.2rem;
    letter-spacing: -0.01em;
    color: var(--c-text);
    text-decoration: none;
    margin-right: auto;
  }
  .nav-links {
    display: flex;
    gap: var(--sp-lg);
    list-style: none;
    padding: 0;
    margin: 0;
    font-family: var(--font-sans);
    font-size: var(--fs-sm);
  }
  .nav-links a {
    color: var(--c-muted);
    text-decoration: none;
    font-weight: var(--fw-semi);
  }
  .nav-links a:hover,
  .nav-links a.active {
    color: var(--c-accent);
  }

  
  .home { padding: var(--sp-2xl) 0; }
  .home-bio.prose {
    font-size: var(--fs-lg);
    font-style: italic;
    color: var(--c-muted);
    max-width: 58ch;
    margin-bottom: var(--sp-xl);
    padding-bottom: var(--sp-lg);
    border-bottom: 1px solid var(--c-border);
  }
  .home-bio.prose p { margin: 0 0 0.7em; }

  
  .featured {
    padding-bottom: var(--sp-lg);
    margin-bottom: var(--sp-xl);
    border-bottom: 2px solid var(--c-text);
  }
  .featured-eyebrow {
    display: block;
    font-family: var(--font-sans);
    font-size: var(--fs-xs);
    font-weight: var(--fw-bold);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--c-accent);
    margin-bottom: var(--sp-sm);
  }
  .featured-title {
    font-family: var(--font-serif);
    font-weight: var(--fw-bold);
    font-size: clamp(1.9rem, 4vw, 2.8rem);
    line-height: var(--lh-tight);
    margin: 0 0 var(--sp-sm);
    letter-spacing: -0.015em;
  }
  .featured-title a {
    color: var(--c-text);
    text-decoration: none;
  }
  .featured-title a:hover { color: var(--c-accent); }
  .featured-desc {
    font-family: var(--font-serif);
    color: var(--c-muted);
    font-size: var(--fs-base);
    max-width: 60ch;
    margin: 0 0 var(--sp-sm);
    line-height: 1.5;
  }

  
  .section-head {
    font-family: var(--font-sans);
    font-size: var(--fs-xs);
    font-weight: var(--fw-bold);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--c-muted);
    margin: 0 0 var(--sp-md);
  }
  .post-list {
    list-style: none;
    padding: 0;
    margin: 0;
  }
  .post-list li {
    padding: var(--sp-lg) var(--sp-md);
    margin: 0 calc(var(--sp-md) * -1);
    border-bottom: 1px solid var(--c-border);
    display: grid;
    grid-template-columns: 6.5rem 1fr 110px;
    grid-template-areas:
      "date title thumb"
      "date desc  thumb";
    column-gap: var(--sp-lg);
    row-gap: var(--sp-sm);
    align-items: start;
    border-radius: var(--radius-sm);
    transition: background var(--transition);
  }
  .post-list li:hover {
    background: color-mix(in srgb, var(--c-accent) 3%, var(--c-bg));
  }
  .post-list-thumb {
    grid-area: thumb;
    display: block;
    align-self: center;
    width: 110px;
    aspect-ratio: 1 / 1;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--c-surface);
    transition: transform var(--transition), box-shadow var(--transition);
  }
  .post-list-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }
  .post-list li:hover .post-list-thumb {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px -4px rgba(0,0,0,0.15);
  }
  .post-list time {
    grid-area: date;
    font-family: var(--font-sans);
    font-variant-numeric: tabular-nums;
    font-size: var(--fs-sm);
    font-weight: var(--fw-semi);
    color: var(--c-muted);
    padding-top: 0.35em;
    letter-spacing: 0.02em;
    transition: color var(--transition);
  }
  .post-list li:hover time { color: var(--c-text); }
  .post-list .post-list-title,
  .post-list > li > a.post-list-title {
    grid-area: title;
    font-family: var(--font-serif);
    font-size: var(--fs-h4);
    font-weight: var(--fw-semi);
    color: var(--c-text);
    text-decoration: none;
    line-height: 1.25;
    letter-spacing: -0.01em;
  }
  .post-list > li > a.post-list-title:hover,
  .post-list li:hover .post-list-title { color: var(--c-accent); }
  .post-list-desc {
    grid-area: desc;
    font-family: var(--font-serif);
    font-size: var(--fs-base);
    color: var(--c-text);
    line-height: 1.55;
    margin: 0;
    max-width: 58ch;
    opacity: 0.82;
  }
  .post-list.compact li {
    padding: var(--sp-sm) 0;
    grid-template-areas: "date title";
    grid-template-columns: 5rem 1fr;
    row-gap: 0;
  }
  .post-list.compact > li > a {
    font-size: var(--fs-base);
    font-weight: var(--fw-regular);
  }
  @media (max-width: 640px) {
    .post-list li {
      grid-template-columns: 1fr;
      grid-template-areas:
        "thumb"
        "date"
        "title"
        "desc";
      row-gap: var(--sp-sm);
    }
    .post-list time { padding-top: 0; }
    .post-list-thumb {
      width: 100%;
      aspect-ratio: 2 / 1;
    }
    .post-list.compact li {
      grid-template-columns: 1fr;
      grid-template-areas: "date" "title";
    }
  }
  .more-link {
    margin-top: var(--sp-md);
    font-family: var(--font-sans);
    font-size: var(--fs-sm);
  }

  
  .post-hero {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    aspect-ratio: 4 / 1;
    max-height: 360px;
    min-height: 180px;
    overflow: hidden;
    margin-bottom: 0;
    background: var(--c-surface);
  }
  body.has-hero .post-hero {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: clamp(180px, 25vw, 360px);
    aspect-ratio: auto; 
    z-index: 5;
  }
  
  @media (min-width: 641px) {
    body.has-hero main::before {
      content: "";
      position: fixed;
      top: calc(clamp(180px, 25vw, 360px) - 1px);
      left: 0;
      right: 0;
      height: 72px;
      backdrop-filter: blur(18px) saturate(1.05);
      -webkit-backdrop-filter: blur(18px) saturate(1.05);
      background: linear-gradient(180deg,
        color-mix(in srgb, var(--c-bg) 55%, transparent) 0%,
        color-mix(in srgb, var(--c-bg) 20%, transparent) 60%,
        transparent 100%);
      mask-image: linear-gradient(180deg, #000 0%, #000 35%, transparent 100%);
      -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 35%, transparent 100%);
      pointer-events: none;
      z-index: 4;
    }
    body.has-hero main {
      padding-top: clamp(180px, 25vw, 360px);
    }
  }
  @media (max-width: 640px) {
    
    body.has-hero .post-hero {
      position: relative;
      top: auto; left: auto; right: auto;
      width: 100vw;
      aspect-ratio: auto;
      height: var(--banner-mobile-h);
      max-height: none;
      min-height: unset;
      
      z-index: 5;
    }
    body.has-hero main { padding-top: 0; }
  }
  
  body.has-hero .post-hero::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 140px;
    background: linear-gradient(180deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.15) 60%, transparent 100%);
    pointer-events: none;
    z-index: 1;
  }
  body.has-hero .post-hero::after {
    content: "";
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 60%;
    background: linear-gradient(0deg, rgba(0,0,0,0.78) 0%, rgba(0,0,0,0.25) 55%, transparent 100%);
    pointer-events: none;
    z-index: 1;
  }

  
  .hero-overlay {
    position: absolute;
    left: 0; right: 0;
    bottom: 0;
    padding-top: var(--sp-xl);
    padding-bottom: var(--sp-lg);
    z-index: 2;
    pointer-events: none;
  }
  .hero-overlay a { pointer-events: auto; }
  .hero-title {
    font-family: var(--font-sans);
    font-weight: var(--fw-black);
    font-size: clamp(2rem, 5vw, 3.8rem);
    line-height: var(--lh-tight);
    letter-spacing: -0.02em;
    color: #fff;
    
    -webkit-text-stroke: 1.2px rgba(0,0,0,0.85);
    paint-order: stroke fill;
    text-shadow:
      0 2px 8px rgba(0,0,0,0.65),
      0 1px 2px rgba(0,0,0,0.45);
    margin: 0;
  }
  .hero-subtitle {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: var(--fs-lg);
    color: #fff;
    -webkit-text-stroke: 0.6px rgba(0,0,0,0.75);
    paint-order: stroke fill;
    text-shadow:
      0 1px 4px rgba(0,0,0,0.7),
      0 2px 10px rgba(0,0,0,0.4);
    margin: var(--sp-sm) 0 0;
    max-width: 58ch;
  }
  
  .post-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
  }
  
  .home-hero img { object-position: center 25%; }

  
  .post { padding: 0 0 var(--sp-xl); }
  .post > .post-header,
  .post > .prose,
  .post > .post-nav { padding-top: 0; }
  .post-header {
    padding-top: var(--sp-xl);
    margin-bottom: var(--sp-xl);
    padding-bottom: var(--sp-lg);
    border-bottom: 1px solid var(--c-border);
  }
  .post-description {
    font-family: var(--font-serif);
    font-size: var(--fs-lg);
    color: var(--c-muted);
    line-height: 1.5;
    margin: var(--sp-md) 0 0;
    max-width: 60ch;
  }
  .post-nav {
    margin-top: var(--sp-2xl);
    padding-top: var(--sp-lg);
    border-top: 1px solid var(--c-border);
    display: flex;
    justify-content: space-between;
    gap: var(--sp-md);
    font-family: var(--font-sans);
    font-size: var(--fs-sm);
  }
  .post-nav a { color: var(--c-muted); text-decoration: none; flex: 1 1 40%; }
  .post-nav a.next { text-align: right; }
  .post-nav a:hover { color: var(--c-accent); }
  .post-title {
    font-family: var(--font-sans);
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: var(--fw-black);
    letter-spacing: -0.02em;
    line-height: var(--lh-tight);
    margin: 0 0 var(--sp-md);
  }
  .post-meta {
    font-family: var(--font-sans);
    font-size: var(--fs-sm);
    color: var(--c-muted);
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-xs) var(--sp-md);
    align-items: center;
  }
  .post-meta time { font-variant-numeric: tabular-nums; }
  .post-meta .tags {
    display: inline-flex;
    gap: var(--sp-xs);
    list-style: none;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
    flex-basis: 100%;        
    margin-top: var(--sp-sm);
  }
  .post-meta .tags li { margin: 0; padding: 0; }

  
  .list-page { padding: var(--sp-xl) 0; }
  .list-header { margin-bottom: var(--sp-xl); }
  .list-title {
    font-family: var(--font-sans);
    font-size: var(--fs-h2);
    font-weight: var(--fw-black);
    margin: 0 0 var(--sp-sm);
  }
  .list-description {
    font-family: var(--font-serif);
    color: var(--c-muted);
    font-size: var(--fs-lg);
    max-width: 58ch;
  }

  
  .taxonomy-cloud {
    list-style: none;
    padding: 0;
    margin: var(--sp-xl) 0 var(--sp-2xl);
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-sm);
  }
  .taxonomy-cloud a { text-decoration: none; }
  .eyebrow-label {
    font-family: var(--font-sans);
    font-size: var(--fs-xs);
    font-weight: var(--fw-bold);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--c-accent);
    margin: 0 0 var(--sp-xs);
  }
  .back-link-inline {
    font-family: var(--font-sans);
    font-size: var(--fs-sm);
    color: var(--c-muted);
    text-decoration: none;
  }
  .back-link-inline:hover { color: var(--c-accent); }

  
  .textos-toolbar {
    display: flex;
    flex-direction: column;
    gap: var(--sp-sm);
    margin-bottom: var(--sp-lg);
    padding-bottom: var(--sp-md);
    border-bottom: 1px solid var(--c-border);
  }
  .textos-toolbar-row {
    display: flex;
    gap: var(--sp-sm);
    align-items: center;
  }
  .textos-search {
    flex: 1;
    font-family: var(--font-sans);
    font-size: var(--fs-sm);
    padding: 0.5em 0.9em;
    border: 1px solid var(--c-border);
    border-radius: var(--radius-pill);
    background: var(--c-surface);
    color: var(--c-text);
    transition: border-color var(--transition), background var(--transition);
  }
  .textos-search:focus {
    border-color: var(--c-accent);
    outline: none;
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--c-accent) 18%, transparent);
  }
  .textos-search::placeholder {
    color: var(--c-muted);
    font-style: italic;
  }
  .textos-tags-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.5em;
    font-family: var(--font-sans);
    font-size: var(--fs-sm);
    font-weight: var(--fw-semi);
    padding: 0.5em 0.95em;
    background: transparent;
    border: 1px solid var(--c-border);
    border-radius: var(--radius-pill);
    color: var(--c-muted);
    cursor: pointer;
    transition: border-color var(--transition), color var(--transition);
  }
  .textos-tags-toggle:hover { border-color: var(--c-accent); color: var(--c-accent); }
  .toggle-label-short { display: none; }
  @media (max-width: 540px) {
    .toggle-label-full { display: none; }
    .toggle-label-short { display: inline; }
    .textos-tags-toggle { white-space: nowrap; }
  }
  .textos-tags-toggle[aria-expanded="true"] {
    color: var(--c-accent);
    border-color: var(--c-accent);
  }
  .textos-tags-toggle[aria-expanded="true"] .toggle-icon { transform: rotate(180deg); }
  .toggle-icon { transition: transform var(--transition); display: inline-block; }
  .toggle-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: var(--fs-xs);
    font-weight: var(--fw-bold);
    min-width: 1.5em;
    padding: 0 0.4em;
    border-radius: var(--radius-pill);
    background: var(--c-border);
    color: var(--c-muted);
  }
  .textos-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-xs);
    padding: var(--sp-sm) 0 var(--sp-xs);
  }
  .textos-tags[hidden] { display: none; }
  [hidden] { display: none !important; }
  .chip-tag {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.4em;
  }
  .chip-tag .chip-count {
    font-size: 0.75em;
    opacity: 0.7;
    font-variant-numeric: tabular-nums;
  }
  .textos-filter-status {
    font-family: var(--font-sans);
    font-size: var(--fs-xs);
    color: var(--c-muted);
    font-style: italic;
  }
  .textos-empty {
    font-family: var(--font-serif);
    font-style: italic;
    color: var(--c-muted);
    text-align: center;
    padding: var(--sp-2xl) 0;
  }

  
  .project-list {
    list-style: none;
    padding: 0;
    margin: 0 0 var(--sp-2xl);
    border-top: 1px solid var(--c-border);
  }
  .project-card {
    margin: 0;
    padding: 0;
    border-bottom: 1px solid var(--c-border);
  }
  .project-card-link {
    display: grid;
    grid-template-columns: 1fr auto;
    column-gap: var(--sp-xl);
    align-items: center;
    padding: var(--sp-xl) var(--sp-md);
    color: var(--c-text);
    text-decoration: none;
    transition: background var(--transition), padding var(--transition);
    border-radius: var(--radius-sm);
  }
  .project-card-link:hover {
    background: color-mix(in srgb, var(--c-accent) 4%, var(--c-bg));
    padding-left: var(--sp-lg);
  }
  .project-card-title {
    font-family: var(--font-serif);
    font-weight: var(--fw-bold);
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    line-height: var(--lh-tight);
    margin: 0;
    letter-spacing: -0.015em;
    transition: color var(--transition);
  }
  .project-card-link:hover .project-card-title { color: var(--c-accent); }
  .project-card-desc {
    font-family: var(--font-serif);
    font-size: var(--fs-base);
    color: var(--c-muted);
    line-height: 1.5;
    margin: var(--sp-xs) 0 0;
    max-width: 58ch;
  }
  @media (max-width: 640px) {
    .project-card-link {
      grid-template-columns: 1fr;
      row-gap: var(--sp-sm);
    }
    .project-card-link:hover { padding-left: var(--sp-md); }
  }
  
  .project-card-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.4em;
    padding: 0.6em 1.2em;
    border-radius: var(--radius-pill);
    background: var(--c-accent);
    border: 0;
    color: #fff;
    font-family: var(--font-sans);
    font-size: var(--fs-sm);
    font-weight: var(--fw-bold);
    letter-spacing: 0.01em;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: background var(--transition), transform var(--transition),
                box-shadow var(--transition);
  }
  .project-card-link:hover .project-card-cta {
    background: var(--c-accent-hover);
    transform: translateX(2px);
    box-shadow: 0 3px 8px rgba(179,49,45,0.25);
  }

  .projectos-footer {
    padding-top: var(--sp-xl);
    margin-top: var(--sp-xl);
    border-top: 1px solid var(--c-border);
    font-family: var(--font-sans);
    font-size: var(--fs-sm);
    color: var(--c-muted);
  }
  .projectos-footer p { margin: 0 0 var(--sp-sm); }
  .projectos-footer a { color: var(--c-muted); text-decoration: underline; text-underline-offset: 0.2em; }
  .projectos-footer a:hover { color: var(--c-accent); }
  .archived-note { font-size: var(--fs-sm); }

  
  .project { padding: var(--sp-xl) 0; }
  .project-header { margin-bottom: var(--sp-xl); }
  .project-header .post-title { margin-top: var(--sp-sm); }
  .project-cta {
    display: inline-block;
    font-family: var(--font-sans);
    font-weight: var(--fw-semi);
    background: var(--c-accent);
    color: white;
    padding: 0.6em 1.2em;
    border-radius: 4px;
    text-decoration: none;
    margin-top: var(--sp-sm);
  }
  .project-cta:hover { background: var(--c-accent-hover); color: white; }
  .project-link { margin: var(--sp-md) 0; }
  .back-link {
    margin-top: var(--sp-2xl);
    padding-top: var(--sp-lg);
    border-top: 1px solid var(--c-border);
    font-family: var(--font-sans);
    font-size: var(--fs-sm);
  }
  .back-link a { color: var(--c-muted); text-decoration: none; }
  .back-link a:hover { color: var(--c-accent); }

  
  .site-footer {
    border-top: 1px solid var(--c-border);
    padding: var(--sp-xl) 0 var(--sp-2xl);
    margin-top: var(--sp-2xl);
    font-family: var(--font-sans);
    font-size: var(--fs-sm);
    color: var(--c-muted);
  }
  .site-footer .container {
    display: flex;
    flex-direction: column;
    gap: var(--sp-lg);
  }
  .social {
    display: flex;
    gap: var(--sp-sm);
    list-style: none;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
  }
  
  .footer-license {
    display: flex;
    gap: var(--sp-md);
    align-items: flex-start;
    max-width: 60ch;
  }
  .license-badge { flex-shrink: 0; line-height: 0; }
  .license-badge img { display: block; }
  .license-note {
    margin: 0;
    color: var(--c-muted);
    font-size: var(--fs-xs);
    line-height: 1.5;
  }

  
  .pgp-page { padding: var(--sp-xl) 0; }
  .pgp-header { margin-bottom: var(--sp-xl); }
  .lang-switch {
    list-style: none;
    padding: 0;
    margin: var(--sp-md) 0 0;
    display: flex;
    gap: var(--sp-sm);
    font-family: var(--font-sans);
    font-size: var(--fs-sm);
  }
  .lang-switch a {
    color: var(--c-muted);
    text-decoration: none;
    padding: 0.25em 0.7em;
    border: 1px solid var(--c-border);
    border-radius: 3px;
  }
  .lang-switch a.active,
  .lang-switch a:hover {
    color: var(--c-accent);
    border-color: var(--c-accent);
  }
  .pgp-key-block {
    margin-top: var(--sp-xl);
    padding-top: var(--sp-lg);
    border-top: 1px solid var(--c-border);
  }
  .pgp-key-block summary {
    cursor: pointer;
    font-family: var(--font-sans);
    font-size: var(--fs-sm);
    color: var(--c-muted);
    font-weight: var(--fw-semi);
    padding: var(--sp-sm) 0;
  }
  .pgp-key-block summary:hover { color: var(--c-accent); }
  .pgp-key {
    background: var(--c-text);
    color: var(--c-bg);
    padding: var(--sp-md);
    border-radius: 4px;
    overflow-x: auto;
    font-family: var(--font-mono);
    font-size: var(--fs-xs);
    line-height: 1.4;
    margin-top: var(--sp-sm);
  }

  
  .page-404 {
    text-align: center;
    padding: var(--sp-2xl) 0;
  }
  .page-404 h1 {
    font-size: clamp(4rem, 10vw, 8rem);
    margin: 0 0 var(--sp-md);
  }

  
  .pagination {
    display: flex;
    justify-content: center;
    gap: var(--sp-sm);
    margin: var(--sp-xl) 0;
    list-style: none;
    padding: 0;
    font-family: var(--font-sans);
    font-size: var(--fs-sm);
  }
  .pagination a,
  .pagination .page-item {
    padding: var(--sp-xs) var(--sp-sm);
    color: var(--c-muted);
    text-decoration: none;
  }
  .pagination .active a { color: var(--c-accent); font-weight: var(--fw-bold); }
}@layer utilities{.sr-only {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  
  .skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 1000;
    padding: var(--sp-sm) var(--sp-md);
    background: var(--c-accent);
    color: #fff;
    font-family: var(--font-sans);
    font-weight: var(--fw-semi);
    border-radius: var(--radius-sm);
    text-decoration: none;
  }
  .skip-link:focus {
    left: var(--sp-md);
    top: var(--sp-md);
    outline: 2px solid #fff;
    outline-offset: 2px;
  }
  .text-positive { color: var(--c-positive); }
  .text-negative { color: var(--c-negative); }
  .text-neutral  { color: var(--c-neutral); }
}