/*
  Global baseline for parshvagala.com.

  This file is intentionally not page-specific. It defines shared tokens,
  safer browser defaults, accessibility affordances, and small utilities that
  future pages can rely on. It avoids cascade layers so Safari, Chromium, and
  Firefox based browsers all receive the same core styles.
*/


  :root {
    color-scheme: light;

    --color-page: #edeae5;
    --color-surface: #fbfaf7;
    --color-surface-soft: #f5f1eb;
    --color-surface-muted: #efe8de;
    --color-ink: #132126;
    --color-ink-soft: #3f4b50;
    --color-muted: #667175;
    --color-faint: #dcd6ce;
    --color-dark: #122228;
    --color-sage: #dbe8d8;
    --color-moss: #e1ead7;
    --color-sand: #efe1cc;
    --color-clay: #8b6248;
    --color-accent: #7b6349;
    --color-accent-soft: #efe1cc;
    --color-link: #49614b;
    --color-focus: #49614b;

    --font-sans: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --font-serif: "Playfair Display", Georgia, "Times New Roman", serif;
    --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;

    --space-2xs: 0.25rem;
    --space-xs: 0.5rem;
    --space-sm: 0.75rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;

    --container-xs: 44rem;
    --container-sm: 58rem;
    --container-md: 72rem;
    --container-lg: 88rem;
    --container-page: min(100% - clamp(2rem, 8vw, 16.25rem), var(--container-lg));

    --radius-xs: 4px;
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --shadow-soft: 0 24px 70px rgba(34, 31, 27, 0.14);
    --shadow-focus: 0 0 0 3px rgba(73, 97, 75, 0.2);

    --leading-tight: 1;
    --leading-heading: 1.08;
    --leading-body: 1.55;
    --tracking-caps: 0.08em;

    --duration-fast: 160ms;
    --duration-base: 220ms;
    --ease-standard: cubic-bezier(0.2, 0, 0, 1);

    /* Backwards-compatible aliases for current page styles. */
    --page: var(--color-page);
    --surface: var(--color-surface);
    --surface-soft: var(--color-surface-soft);
    --ink: var(--color-ink);
    --muted: var(--color-muted);
    --faint: var(--color-faint);
    --dark: var(--color-dark);
    --sage: var(--color-sage);
    --moss: var(--color-moss);
    --sand: var(--color-sand);
    --clay: var(--color-clay);
    --accent: var(--color-accent);
    --accent-soft: var(--color-accent-soft);
    --shadow: var(--shadow-soft);
    --radius: var(--radius-md);
  }

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

  * {
    min-width: 0;
  }

  html {
    min-height: 100%;
    scroll-behavior: smooth;
    text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%;
  }

  body {
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0;
  }

  :where(body, h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd) {
    margin-block: 0;
  }

  body,
  h1,
  h2,
  h3,
  h4,
  h5,
  h6,
  p,
  figure,
  blockquote,
  dl,
  dd {
    margin: 0;
  }

  :where(ul, ol) {
    margin-block: 0;
  }

  ul,
  ol {
    margin-top: 0;
    margin-bottom: 0;
  }

  :where(img, picture, video, canvas, svg, iframe) {
    display: block;
    max-width: 100%;
  }

  img,
  picture,
  video,
  canvas,
  svg,
  iframe {
    display: block;
    max-width: 100%;
  }

  :where(img, video, canvas, svg) {
    height: auto;
  }

  img,
  video,
  canvas,
  svg {
    height: auto;
  }

  :where(button, input, textarea, select) {
    font: inherit;
  }

  button,
  input,
  textarea,
  select {
    font: inherit;
  }

  :where(button) {
    border-radius: 0;
  }

  :where(button, [role="button"], summary) {
    cursor: pointer;
  }

  :where(table) {
    width: 100%;
    border-collapse: collapse;
  }

  table {
    width: 100%;
    border-collapse: collapse;
  }

  body {
    overflow-x: hidden;
    background: var(--color-surface);
    color: var(--color-ink);
    font-family: var(--font-sans);
    line-height: var(--leading-body);
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }

  :where(h1, h2, h3, h4) {
    color: var(--color-ink);
    font-family: var(--font-serif);
    font-weight: 500;
    line-height: var(--leading-heading);
    text-wrap: balance;
  }

  h1,
  h2,
  h3,
  h4 {
    color: var(--color-ink);
    font-family: var(--font-serif);
    font-weight: 500;
    line-height: var(--leading-heading);
  }

  :where(h5, h6) {
    color: var(--color-ink);
    font-family: var(--font-sans);
    font-weight: 700;
    line-height: var(--leading-heading);
    text-wrap: balance;
  }

  h5,
  h6 {
    color: var(--color-ink);
    font-family: var(--font-sans);
    font-weight: 700;
    line-height: var(--leading-heading);
  }

  :where(p, li, dd, blockquote) {
    overflow-wrap: anywhere;
  }

  p,
  li,
  dd,
  blockquote {
    overflow-wrap: anywhere;
  }

  :where(p) {
    text-wrap: pretty;
  }

  :where(a) {
    color: inherit;
    text-decoration-thickness: from-font;
    text-underline-offset: 0.18em;
  }

  a {
    color: inherit;
    text-underline-offset: 0.18em;
  }

  :where(a:not([class])) {
    color: var(--color-link);
  }

  :where(strong, b) {
    font-weight: 700;
  }

  :where(code, kbd, samp, pre) {
    font-family: var(--font-mono);
  }

  code,
  kbd,
  samp,
  pre {
    font-family: var(--font-mono);
  }

  :where(pre) {
    max-width: 100%;
    overflow-x: auto;
    white-space: pre;
  }

  :where(hr) {
    height: 1px;
    margin: var(--space-2xl) 0;
    border: 0;
    background: var(--color-faint);
  }

  :where(:focus) {
    outline: none;
  }

  :where(:focus-visible) {
    outline: 2px solid var(--color-focus);
    outline-offset: 3px;
  }

  :where(::selection) {
    background: var(--color-sage);
    color: var(--color-ink);
  }

  :where([hidden]) {
    display: none !important;
  }

  .site-shell {
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    overflow: hidden;
    background: var(--color-surface);
  }

  .page-section {
    padding-block: clamp(3.5rem, 7vw, 6.5rem);
  }

  .container,
  .page-container {
    width: var(--container-page);
    margin-inline: auto;
  }

  .container--xs {
    max-width: var(--container-xs);
  }

  .container--sm {
    max-width: var(--container-sm);
  }

  .container--md {
    max-width: var(--container-md);
  }

  .container--lg {
    max-width: var(--container-lg);
  }

  .flow > * + * {
    margin-block-start: var(--flow-space, var(--space-lg));
  }

  .cluster {
    display: flex;
    flex-wrap: wrap;
    gap: var(--cluster-gap, var(--space-md));
    align-items: var(--cluster-align, center);
    justify-content: var(--cluster-justify, flex-start);
  }

  .stack {
    display: flex;
    flex-direction: column;
    gap: var(--stack-gap, var(--space-md));
  }

  .grid-auto {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--grid-min, 16rem)), 1fr));
    gap: var(--grid-gap, var(--space-lg));
  }

  .skip-link {
    position: fixed;
    top: var(--space-sm);
    left: var(--space-sm);
    z-index: 1000;
    transform: translateY(calc(-100% - var(--space-lg)));
    border-radius: var(--radius-sm);
    background: var(--color-dark);
    color: #fff;
    padding: var(--space-sm) var(--space-md);
    font-weight: 700;
    text-decoration: none;
    transition: transform var(--duration-fast) var(--ease-standard);
  }

  .skip-link:focus-visible {
    transform: translateY(0);
  }

  .button,
  .text-button {
    display: inline-flex;
    min-height: 2.75rem;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    font-weight: 700;
    line-height: 1.1;
    text-decoration: none;
    transition:
      background-color var(--duration-fast) var(--ease-standard),
      border-color var(--duration-fast) var(--ease-standard),
      color var(--duration-fast) var(--ease-standard),
      transform var(--duration-fast) var(--ease-standard);
  }

  .button {
    padding: 0 var(--space-lg);
    background: var(--color-dark);
    color: #fff;
  }

  .button:hover {
    transform: translateY(-1px);
  }

  .button--secondary {
    border-color: var(--color-faint);
    background: var(--color-surface);
    color: var(--color-ink);
  }

  .text-button {
    min-height: auto;
    padding: 0;
    color: var(--color-link);
  }

  .media-frame {
    overflow: hidden;
    border-radius: var(--radius-md);
    background: var(--color-surface-soft);
  }

  .media-frame > :where(img, picture, video) {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .prose {
    max-width: 46rem;
    color: var(--color-ink-soft);
    font-size: clamp(1rem, 0.95rem + 0.25vw, 1.14rem);
    line-height: 1.7;
  }

  .prose :where(h2, h3, h4) {
    color: var(--color-ink);
    margin-block-start: 2em;
    margin-block-end: 0.65em;
  }

  .prose :where(p, ul, ol, blockquote, pre, figure) {
    margin-block-start: 1.1em;
  }

  .prose :where(ul, ol) {
    padding-inline-start: 1.25em;
  }

  .prose :where(blockquote) {
    padding-inline-start: var(--space-lg);
    border-inline-start: 2px solid var(--color-faint);
    color: var(--color-muted);
  }

  .site-header {
    position: relative;
    z-index: 5;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    min-height: 70px;
    padding: 0 clamp(24px, 7vw, 130px);
    border-bottom: 1px solid var(--color-faint);
    background: rgba(251, 250, 247, 0.9);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
  }

  @supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .site-header {
      background: rgba(251, 250, 247, 0.98);
    }
  }

  .site-header a,
  .mobile-nav a,
  .site-footer a {
    text-decoration: none;
  }

  .brand {
    font-family: var(--font-serif);
    font-size: clamp(1.65rem, 2vw, 2rem);
    font-weight: 600;
    line-height: 1;
  }

  .desktop-nav {
    display: flex;
    align-items: center;
    gap: clamp(24px, 3vw, 42px);
    color: #1e2d31;
    font-size: 0.92rem;
    font-weight: 600;
  }

  .desktop-nav a {
    position: relative;
    padding: 25px 0 23px;
  }

  .desktop-nav a::after {
    position: absolute;
    right: 0;
    bottom: 18px;
    left: 0;
    height: 1px;
    background: currentColor;
    opacity: 0;
    transform: scaleX(0.4);
    transition: opacity 180ms ease, transform 180ms ease;
    content: "";
  }

  .desktop-nav a:hover::after,
  .desktop-nav a.is-active::after {
    opacity: 1;
    transform: scaleX(1);
  }

  .header-cta {
    justify-self: end;
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    padding: 0 22px;
    border-radius: 6px;
    background: var(--color-dark);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 700;
    box-shadow: 0 10px 24px rgba(18, 34, 40, 0.18);
  }

  .menu-button {
    display: none;
    justify-self: end;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 0;
    background: transparent;
  }

  .menu-button span {
    display: block;
    width: 24px;
    height: 2px;
    margin: 5px auto;
    border-radius: 99px;
    background: var(--color-ink);
    transition: transform 180ms ease, opacity 180ms ease;
  }

  .menu-button.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .menu-button.is-open span:nth-child(2) {
    opacity: 0;
  }

  .menu-button.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .mobile-nav {
    display: none;
  }

  .site-footer {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr auto;
    gap: 34px;
    align-items: end;
    padding: 28px clamp(24px, 7vw, 130px) 34px;
    border-top: 1px solid var(--color-faint);
    background: rgba(242, 239, 234, 0.78);
  }

  .site-footer p {
    margin: 16px 0 0;
    color: var(--color-muted);
    font-size: 0.88rem;
  }

  .site-footer h2 {
    margin: 0 0 14px;
    color: var(--color-ink);
    font-family: var(--font-sans);
    font-size: 0.96rem;
    font-weight: 800;
    line-height: 1.2;
  }

  .footer-socials {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 0.92rem;
    font-weight: 700;
  }

  .footer-socials a,
  .domain {
    color: #354247;
    transition: color 180ms ease, transform 180ms ease;
  }

  .footer-socials a:hover,
  .domain:hover {
    color: var(--color-accent);
    transform: translateY(-1px);
  }

  .domain {
    font-size: 0.92rem;
    font-weight: 600;
  }

  @media (max-width: 1050px) {
    .site-header {
      display: flex;
      min-height: 58px;
      justify-content: space-between;
      padding: 0 20px;
    }

    .desktop-nav,
    .header-cta {
      display: none;
    }

    .menu-button {
      display: block;
    }

    .mobile-nav {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 1px;
      max-height: 0;
      overflow: hidden;
      border-bottom: 0 solid var(--color-faint);
      background: var(--color-faint);
      transition: max-height 220ms ease, border-bottom-width 220ms ease;
    }

    .mobile-nav.is-open {
      max-height: 260px;
      border-bottom-width: 1px;
    }

    .mobile-nav a {
      min-height: 48px;
      padding: 14px 20px;
      background: var(--color-surface);
      color: #223136;
      font-weight: 700;
    }

    .mobile-nav a.is-active {
      color: var(--color-accent);
    }

    .site-footer {
      grid-template-columns: 1fr;
      gap: 18px;
      padding: 22px 20px 26px;
      text-align: center;
    }

    .site-footer .brand {
      display: inline-block;
    }

    .site-footer p {
      margin-top: 10px;
    }

    .site-footer h2 {
      margin-bottom: 6px;
    }

    .footer-socials {
      justify-content: center;
    }
  }

  @media (max-width: 560px) {
    .brand {
      font-size: 1.55rem;
    }

    .mobile-nav {
      grid-template-columns: 1fr;
    }
  }

  body.projects-page,
  body.blog-page,
  body.entry-page {
    background:
      linear-gradient(180deg, rgba(245, 241, 235, 0.66) 0%, rgba(251, 250, 247, 0) 28%),
      var(--color-surface);
  }

  body.project-entry {
    --accent: var(--color-link);
    --accent-soft: var(--color-sage);
  }

  .home-page .site-shell {
    background: var(--color-surface);
  }

  .projects-page .site-shell,
  .blog-page .site-shell {
    background:
      linear-gradient(180deg, rgba(245, 241, 235, 0.66) 0%, rgba(251, 250, 247, 0) 28%),
      var(--color-surface);
  }

  .hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(420px, 1.05fr);
    min-height: 680px;
    overflow: hidden;
    background: linear-gradient(90deg, #fbfaf7 0%, #f8f5ef 48%, #ece5dc 100%);
  }

  .hero::before {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
      linear-gradient(90deg, #fbfaf7 0%, #fbfaf7 38%, rgba(251, 250, 247, 0.92) 47%, rgba(251, 250, 247, 0.45) 58%, rgba(251, 250, 247, 0.06) 72%, rgba(251, 250, 247, 0) 100%),
      linear-gradient(0deg, rgba(19, 33, 38, 0.12), rgba(19, 33, 38, 0));
    pointer-events: none;
    content: "";
  }

  .hero-copy {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    grid-column: 1;
    justify-content: center;
    padding: clamp(56px, 8vw, 112px) clamp(28px, 8vw, 130px);
  }

  .eyebrow {
    margin: 0 0 14px;
    color: #7a6857;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: var(--tracking-caps);
    text-transform: uppercase;
  }

  .hero h1 {
    max-width: 760px;
    margin: 0;
    font-size: clamp(4.25rem, 8.2vw, 7rem);
    line-height: 0.95;
  }

  .hero-text {
    max-width: 640px;
    margin: 22px 0 0;
    color: var(--color-ink-soft);
    font-size: clamp(1.15rem, 1.9vw, 1.45rem);
  }

  .hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin-top: 42px;
  }

  .hero-actions .button {
    min-width: 210px;
    min-height: 54px;
    gap: 22px;
    padding: 0 24px;
    font-weight: 800;
  }

  .button-primary {
    background: var(--color-dark);
    color: #fff;
    box-shadow: 0 14px 28px rgba(18, 34, 40, 0.18);
  }

  .button-secondary {
    border-color: #a9a19a;
    background: rgba(255, 255, 255, 0.42);
    color: var(--color-ink);
  }

  .button-secondary:hover {
    background: #fff;
  }

  .social-links {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-top: 34px;
  }

  .social-links a {
    color: #243237;
    transition: color 180ms ease, transform 180ms ease;
  }

  .social-links a:hover {
    color: var(--color-accent);
    transform: translateY(-1px);
  }

  .social-links svg {
    width: 28px;
    height: 28px;
    fill: currentColor;
  }

  .hero-image-wrap {
    position: absolute;
    inset: 0 0 0 35%;
    z-index: 0;
    min-height: 680px;
    margin: 0;
    overflow: hidden;
    background: #e9e0d4;
  }

  .hero-image {
    width: 100%;
    height: 100%;
    min-height: inherit;
    object-fit: cover;
    object-position: 52% center;
    filter: saturate(0.86) contrast(0.96) brightness(1.04);
  }

  .section,
  .content-grid,
  .projects-hero,
  .project-list-section,
  .blog-hero,
  .blog-list-section {
    padding-right: clamp(24px, 7vw, 130px);
    padding-left: clamp(24px, 7vw, 130px);
  }

  .section {
    padding-top: 32px;
    padding-bottom: 28px;
  }

  .section-projects {
    border-top: 1px solid var(--color-faint);
  }

  .section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 20px;
  }

  .section-heading h2 {
    margin: 0;
    color: var(--color-ink);
    font-size: 1.38rem;
    line-height: 1.2;
  }

  .section-heading a {
    color: #354247;
    font-size: 0.92rem;
    font-weight: 600;
    text-decoration: none;
  }

  .project-grid,
  .blog-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .project-grid {
    gap: 20px;
  }

  .blog-grid {
    gap: 16px;
  }

  .project-card,
  .blog-card {
    display: block;
    border: 1px solid var(--color-faint);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.34);
    box-shadow: 0 14px 30px rgba(40, 33, 26, 0.04);
    text-decoration: none;
    transition: border-color 180ms ease, transform 180ms ease, background 180ms ease;
  }

  a.project-card:hover,
  a.blog-card:hover {
    border-color: #c9b9a4;
    background: rgba(255, 255, 255, 0.54);
    transform: translateY(-2px);
  }

  .project-card {
    min-height: 150px;
    padding: 24px;
  }

  .blog-card {
    min-height: 176px;
    padding: 22px;
  }

  .project-card h3,
  .blog-card h3 {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 600;
    line-height: 1.18;
  }

  .project-card p,
  .blog-card p {
    color: var(--color-muted);
  }

  .project-card p,
  .blog-card p {
    margin: 12px 0 0;
  }

  .blog-card p {
    min-height: 48px;
  }

  .content-grid {
    padding-bottom: 46px;
  }

  .content-grid .section {
    padding: 0;
  }

  .empty-state {
    margin: 0;
    color: var(--color-muted);
  }

  .project-grid .empty-state,
  .blog-grid .empty-state {
    grid-column: 1 / -1;
    padding: 22px;
    border: 1px dashed var(--color-faint);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.26);
  }

  .projects-hero,
  .blog-hero {
    max-width: 980px;
    padding-top: clamp(58px, 8vw, 108px);
    padding-bottom: clamp(38px, 5vw, 70px);
  }

  .projects-hero {
    max-width: 900px;
  }

  .projects-hero h1,
  .blog-hero h1 {
    margin: 0;
    font-size: clamp(4.5rem, 8.8vw, 8.2rem);
    line-height: 0.95;
  }

  .projects-hero p:not(.eyebrow),
  .blog-hero p:not(.eyebrow) {
    max-width: 640px;
    margin: 24px 0 0;
    color: var(--color-ink-soft);
    font-size: clamp(1.02rem, 1.4vw, 1.2rem);
  }

  .projects-hero p:not(.eyebrow) {
    max-width: 560px;
  }

  .project-list-section,
  .blog-list-section {
    padding-bottom: clamp(54px, 7vw, 96px);
  }

  .project-list,
  .blog-list {
    display: grid;
  }

  .project-list {
    border-top: 1px solid var(--color-faint);
  }

  .blog-list-header {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 0 0 18px;
    border-bottom: 1px solid var(--color-faint);
    color: #7d766f;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: var(--tracking-caps);
    text-transform: uppercase;
  }

  .project-row,
  .blog-row {
    display: grid;
    grid-template-columns: 74px minmax(0, 1fr) auto;
    gap: clamp(24px, 4vw, 62px);
    align-items: start;
    border-bottom: 1px solid var(--color-faint);
  }

  .project-row {
    padding: clamp(26px, 4vw, 46px) 0;
  }

  .blog-row {
    padding: clamp(28px, 4vw, 48px) 0;
  }

  .project-number,
  .blog-number,
  .blog-meta {
    color: #7d766f;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: var(--tracking-caps);
    text-transform: uppercase;
  }

  .project-copy,
  .blog-copy {
    display: block;
    text-decoration: none;
  }

  .project-copy h2,
  .blog-copy h2 {
    font-size: clamp(2rem, 3.3vw, 3.7rem);
    font-weight: 500;
    line-height: 1;
    transition: color 180ms ease;
  }

  .project-copy h2 {
    margin: 0;
  }

  .blog-copy h2 {
    max-width: 860px;
    margin: 8px 0 0;
  }

  .project-copy:hover h2 {
    color: var(--color-link);
  }

  .blog-copy:hover h2 {
    color: var(--color-clay);
  }

  .project-copy p,
  .blog-copy p {
    max-width: 760px;
    margin: 16px 0 0;
    color: var(--color-muted);
    font-size: clamp(0.98rem, 1.2vw, 1.1rem);
  }

  .project-status,
  .blog-category {
    justify-self: end;
    min-width: 72px;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 800;
    text-align: center;
  }

  .project-status {
    background: var(--color-sage);
    color: var(--color-link);
  }

  .blog-category {
    background: var(--color-moss);
    color: #526143;
  }

  .project-list .empty-state,
  .blog-list .empty-state {
    padding: 26px 0;
    border-bottom: 1px solid var(--color-faint);
  }

  .entry-layout {
    width: min(100% - 48px, 980px);
    margin: 0 auto;
    padding: clamp(54px, 8vw, 104px) 0 clamp(58px, 8vw, 110px);
  }

  .entry-back {
    display: inline-flex;
    margin-bottom: 26px;
    color: var(--accent);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: var(--tracking-caps);
    text-decoration: none;
    text-transform: uppercase;
  }

  .entry-back:hover {
    color: var(--color-ink);
  }

  .entry-kicker {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 16px;
    color: var(--accent);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: var(--tracking-caps);
    text-transform: uppercase;
  }

  .entry-kicker span:not(:first-child)::before {
    margin-right: 10px;
    color: #a7a09a;
    content: "/";
  }

  .entry-hero h1 {
    max-width: 900px;
    margin: 0;
    font-size: clamp(3.3rem, 8vw, 7rem);
    line-height: 0.98;
  }

  .entry-summary {
    max-width: 720px;
    margin: 24px 0 0;
    color: var(--color-ink-soft);
    font-size: clamp(1.08rem, 1.6vw, 1.34rem);
    line-height: 1.55;
  }

  .entry-content {
    max-width: 760px;
    margin-top: clamp(44px, 7vw, 78px);
    color: #253236;
    font-size: clamp(1rem, 1.05vw, 1.08rem);
  }

  .entry-content > * + * {
    margin-top: 1.15em;
  }

  .entry-content h2,
  .entry-content h3 {
    margin-top: 1.8em;
    margin-bottom: 0;
    color: var(--color-ink);
    line-height: 1.16;
  }

  .entry-content h2 {
    font-size: clamp(2rem, 3vw, 3rem);
    font-weight: 500;
  }

  .entry-content h3 {
    font-size: 1.28rem;
  }

  .entry-content p,
  .entry-content ul,
  .entry-content ol {
    margin-bottom: 0;
  }

  .entry-content a {
    color: var(--accent);
    font-weight: 700;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
  }

  .entry-content ul,
  .entry-content ol {
    padding-left: 1.35rem;
  }

  .entry-content li + li {
    margin-top: 0.55em;
  }

  .entry-content blockquote {
    margin-right: 0;
    margin-left: 0;
    padding: 18px 0 18px 22px;
    border-left: 3px solid var(--accent);
    color: #465256;
    font-family: var(--font-serif);
    font-size: clamp(1.35rem, 2.2vw, 2rem);
    line-height: 1.3;
  }

  .entry-content figure {
    margin-right: 0;
    margin-left: 0;
  }

  .entry-content figure.wide {
    width: min(980px, calc(100vw - 48px));
    max-width: none;
  }

  .entry-content img,
  .entry-content video {
    width: 100%;
    border-radius: var(--radius-md);
    background: var(--color-surface-soft);
  }

  .entry-content figcaption {
    margin-top: 10px;
    color: var(--color-muted);
    font-size: 0.88rem;
  }

  .entry-content code {
    padding: 0.12em 0.34em;
    border-radius: 4px;
    background: var(--color-surface-soft);
    font-size: 0.92em;
  }

  .entry-content pre {
    overflow: auto;
    padding: 18px;
    border-radius: var(--radius-md);
    background: #16252a;
    color: #f6f1e9;
  }

  .entry-content pre code {
    padding: 0;
    background: transparent;
    color: inherit;
  }

  .entry-content .button-link {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    padding: 0 18px;
    border-radius: 6px;
    background: var(--color-dark);
    color: #fff;
    text-decoration: none;
  }

  .entry-links {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    max-width: 760px;
    margin-top: clamp(36px, 6vw, 62px);
    padding-top: 22px;
    border-top: 1px solid var(--color-faint);
  }

  .entry-links a {
    display: flex;
    min-height: 104px;
    flex-direction: column;
    justify-content: space-between;
    padding: 16px;
    border: 1px solid var(--color-faint);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.34);
    text-decoration: none;
    transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
  }

  .entry-links a:hover {
    border-color: #c9b9a4;
    background: rgba(255, 255, 255, 0.58);
    transform: translateY(-1px);
  }

  .entry-links span {
    color: #7d766f;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: var(--tracking-caps);
    text-transform: uppercase;
  }

  .entry-links strong {
    color: var(--color-ink);
    font-family: var(--font-serif);
    font-size: 1.22rem;
    font-weight: 600;
    line-height: 1.15;
  }

  @media (max-width: 1050px) {
    .hero {
      position: relative;
      display: flex;
      flex-direction: column-reverse;
      min-height: 0;
      background: var(--color-surface);
    }

    .hero::before {
      display: none;
    }

    .hero-image-wrap {
      position: relative;
      inset: auto;
      z-index: 0;
      min-height: auto;
      aspect-ratio: 1.45 / 1;
    }

    .hero-image {
      min-height: 0;
      object-position: 56% 38%;
    }

    .hero-copy {
      padding: 22px 20px 30px;
    }

    .hero h1 {
      max-width: 8ch;
      font-size: clamp(3.1rem, 10.5vw, 5.25rem);
    }

    .hero-text {
      max-width: 430px;
      margin-top: 14px;
      font-size: 1rem;
    }

    .hero-actions {
      display: grid;
      gap: 10px;
      margin-top: 24px;
    }

    .hero-actions .button {
      width: 100%;
      min-width: 0;
      min-height: 44px;
      gap: 16px;
      font-size: 0.9rem;
    }

    .social-links {
      justify-content: center;
      gap: 26px;
      margin-top: 20px;
    }

    .social-links svg {
      width: 20px;
      height: 20px;
    }

    .section,
    .content-grid,
    .projects-hero,
    .project-list-section,
    .blog-hero,
    .blog-list-section {
      padding-right: 20px;
      padding-left: 20px;
    }

    .section {
      padding-top: 24px;
      padding-bottom: 18px;
    }

    .section-heading {
      margin-bottom: 14px;
    }

    .section-heading h2 {
      font-size: 1rem;
    }

    .section-heading a {
      font-size: 0.82rem;
    }

    .wide-label {
      display: none;
    }

    .project-grid {
      grid-template-columns: 1fr;
      gap: 12px;
      padding-bottom: 4px;
    }

    .project-card {
      min-height: 0;
      padding: 18px;
    }

    .content-grid {
      display: block;
      padding-bottom: 22px;
    }

    .blog-grid {
      display: block;
    }

    .blog-card {
      position: relative;
      min-height: 0;
      padding: 14px 40px 14px 14px;
      border-right: 0;
      border-bottom: 0;
      border-left: 0;
      border-radius: 0;
      background: transparent;
      box-shadow: none;
    }

    .blog-card:first-child {
      border-top: 1px solid var(--color-faint);
    }

    .blog-card::after {
      position: absolute;
      top: 50%;
      right: 12px;
      color: #5a6265;
      transform: translateY(-50%);
      content: ">";
    }

    .blog-card h3 {
      font-family: var(--font-sans);
      font-size: 0.95rem;
      font-weight: 700;
    }

    .blog-card p {
      min-height: 0;
      margin-top: 6px;
      padding-right: 4px;
      font-size: 0.88rem;
    }

    .projects-hero,
    .blog-hero {
      padding-top: 46px;
    }

    .project-row,
    .blog-row {
      grid-template-columns: 44px minmax(0, 1fr);
      gap: 16px;
    }

    .project-status,
    .blog-category {
      grid-column: 2;
      justify-self: start;
      margin-top: 4px;
    }

    .entry-layout {
      width: calc(100% - 40px);
      padding-top: 46px;
    }

    .entry-links {
      grid-template-columns: 1fr;
    }
  }

  @media (max-width: 560px) {
    body.home-page {
      background: var(--color-surface);
    }

    .hero-image-wrap {
      aspect-ratio: 1.1 / 1;
    }

    .projects-hero,
    .blog-hero {
      padding-top: 40px;
      padding-bottom: 34px;
    }

    .projects-hero h1,
    .blog-hero h1 {
      font-size: clamp(3.6rem, 17vw, 5.4rem);
    }

    .projects-hero p:not(.eyebrow),
    .blog-hero p:not(.eyebrow) {
      margin-top: 24px;
    }

    .blog-list-header {
      align-items: flex-start;
      flex-direction: column;
      gap: 6px;
    }

    .project-row,
    .blog-row {
      grid-template-columns: 1fr;
      gap: 10px;
      padding: 28px 0;
    }

    .project-copy h2,
    .blog-copy h2 {
      font-size: clamp(2rem, 11vw, 3rem);
    }

    .project-status,
    .blog-category {
      grid-column: 1;
    }

    .entry-layout {
      width: calc(100% - 40px);
      padding-top: 40px;
      padding-bottom: 64px;
    }

    .entry-hero h1 {
      font-size: clamp(3rem, 16vw, 4.9rem);
    }
  }

  .visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    clip-path: inset(50%) !important;
    border: 0 !important;
    white-space: nowrap !important;
  }

  .truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .balance {
    text-wrap: balance;
  }

  .pretty {
    text-wrap: pretty;
  }

  .no-scroll {
    overflow: hidden;
  }

  .full-bleed {
    width: 100vw;
    margin-inline: calc(50% - 50vw);
  }

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

  @media print {
    *,
    *::before,
    *::after {
      background: transparent !important;
      box-shadow: none !important;
      text-shadow: none !important;
    }

    body {
      color: #000;
      background: #fff;
    }

    a,
    a:visited {
      color: #000;
      text-decoration: underline;
    }

    img,
    svg,
    video {
      max-width: 100% !important;
      page-break-inside: avoid;
    }

    h1,
    h2,
    h3 {
      page-break-after: avoid;
    }
  }
