:root {
  color-scheme: light;
  --bg: #f6f7f4;
  --bg-strong: #eef2f0;
  --panel: #ffffff;
  --panel-alt: #f8fafc;
  --ink: #20211d;
  --muted: #646a62;
  --subtle: #8a9189;
  --line: #dce2dc;
  --accent: #bd572f;
  --accent-dark: #934326;
  --accent-soft: #f2d9cd;
  --blue-soft: #dfe8f6;
  --green-soft: #dcefe8;
  --shadow: 0 20px 55px rgba(30, 32, 28, 0.08);
}

.dark {
  color-scheme: dark;
  --bg: #171915;
  --bg-strong: #20241f;
  --panel: #20231f;
  --panel-alt: #252923;
  --ink: #f2f4ee;
  --muted: #b7beb2;
  --subtle: #8d9588;
  --line: #363c34;
  --accent: #de7650;
  --accent-dark: #f0a080;
  --accent-soft: #573526;
  --blue-soft: #263244;
  --green-soft: #24392f;
  --shadow: 0 22px 65px rgba(0, 0, 0, 0.32);
}

* {
  box-sizing: border-box;
}

html {
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Geist, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  letter-spacing: 0;
}

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

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.shell {
  width: min(100% - 40px, 1152px);
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid color-mix(in srgb, var(--line), transparent 10%);
  background: color-mix(in srgb, var(--bg), transparent 8%);
  backdrop-filter: blur(14px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  gap: 20px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
}

.desktop-nav a:hover,
.desktop-nav a[aria-current="page"] {
  color: var(--accent);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-button {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--muted);
  cursor: pointer;
}

.icon-button:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.theme-moon,
.dark .theme-sun {
  display: none;
}

.dark .theme-moon {
  display: block;
}

.mobile-only,
.mobile-nav {
  display: none;
}

.mobile-nav {
  padding-bottom: 14px;
}

.mobile-nav.is-open {
  display: grid;
  gap: 4px;
}

.mobile-nav a {
  border-radius: 8px;
  padding: 10px 4px;
  color: var(--muted);
  font-weight: 600;
}

.mobile-nav a:hover,
.mobile-nav a[aria-current="page"] {
  color: var(--accent);
}

.hero-section {
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--green-soft), transparent 42%), transparent 55%),
    var(--bg-strong);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 56px;
  align-items: end;
  min-height: 430px;
  padding-block: 76px 62px;
}

.hero-copy {
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-family: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 20px;
  max-width: 720px;
  font-size: 4.1rem;
  line-height: 1.03;
  font-weight: 800;
}

.hero-lede {
  max-width: 680px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.18rem;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 32px;
}

.primary-action,
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-weight: 700;
}

.primary-action {
  min-height: 44px;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  padding: 0 18px;
}

.primary-action:hover {
  background: var(--accent-dark);
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.social-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--muted);
  padding: 0 12px;
  font-size: 0.9rem;
  font-weight: 700;
}

.social-link:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.hero-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--panel), transparent 8%);
  box-shadow: var(--shadow);
  padding: 24px;
}

.hero-panel p:last-child {
  margin-bottom: 0;
  color: var(--muted);
}

.panel-label {
  margin-bottom: 8px;
  color: var(--ink);
  font-weight: 800;
}

.projects-section,
.feed-section {
  padding-block: 54px;
}

.projects-section {
  border-bottom: 1px solid var(--line);
}

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

.section-heading h2 {
  margin-bottom: 0;
  font-size: 1.75rem;
  line-height: 1.2;
}

.section-note {
  max-width: 390px;
  margin-bottom: 0;
  color: var(--muted);
}

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

.projects-showcase {
  display: grid;
  gap: 18px;
}

.featured-project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.project-card {
  display: flex;
  min-height: 160px;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 18px;
}

.project-card:nth-child(2n) {
  background: color-mix(in srgb, var(--blue-soft), var(--panel) 68%);
}

.project-card:nth-child(3n) {
  background: color-mix(in srgb, var(--green-soft), var(--panel) 68%);
}

.project-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.featured-project {
  display: flex;
  min-height: 360px;
  flex-direction: column;
  justify-content: flex-start;
  gap: 34px;
  border: 1px solid color-mix(in srgb, var(--accent), var(--line) 35%);
  border-radius: 8px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent-soft), transparent 14%), transparent 62%),
    var(--panel);
  box-shadow: var(--shadow);
  padding: 28px;
}

.featured-project-top {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
}

.featured-project-mark {
  display: grid;
  width: 86px;
  height: 86px;
  place-items: center;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-family: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 1.3rem;
  font-weight: 800;
  overflow: hidden;
}

.featured-project-mark img,
.project-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.featured-project:hover {
  border-color: var(--accent);
}

.featured-project-title {
  display: block;
  color: var(--ink);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.04;
}

.featured-project-description {
  display: block;
  margin-top: 14px;
  max-width: 430px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.58;
}

.featured-project-link {
  display: inline-flex;
  width: fit-content;
  margin-top: 24px;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  padding: 10px 14px;
  font-weight: 800;
}

.project-card-top {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 16px;
}

.project-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-family: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.82rem;
  font-weight: 700;
  overflow: hidden;
}

.project-status {
  display: inline-flex;
  width: fit-content;
  border: 1px solid color-mix(in srgb, var(--accent), transparent 68%);
  border-radius: 999px;
  color: var(--accent-dark);
  padding: 4px 8px;
  font-family: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}

.project-name {
  color: var(--ink);
  font-size: 1rem;
  font-weight: 800;
}

.project-description {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.48;
}

.project-footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 18px;
}

.featured-post {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 34px;
  align-items: center;
  margin-bottom: 42px;
}

.featured-post.no-image {
  grid-template-columns: minmax(0, 760px);
}

.post-image {
  display: block;
  overflow: hidden;
  border-radius: 8px;
  aspect-ratio: 16 / 10;
  background: var(--bg-strong);
}

.post-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 220ms ease;
}

.featured-post:hover img,
.post-card:hover img {
  transform: scale(1.035);
}

.featured-copy,
.post-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.category-row,
.category-line {
  color: var(--accent);
  font-family: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
}

.category-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.category-row span {
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  padding: 5px 9px;
}

.category-line {
  margin-top: 14px;
  margin-bottom: 8px;
}

.post-title {
  color: var(--ink);
  font-size: 1.28rem;
  font-weight: 800;
  line-height: 1.22;
}

.featured-copy .post-title {
  font-size: 2.05rem;
  line-height: 1.12;
}

.post-excerpt {
  margin-top: 12px;
  color: var(--muted);
}

.post-card .post-excerpt {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: 0.95rem;
}

.post-meta {
  margin-top: 16px;
  color: var(--subtle);
  font-family: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.82rem;
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 34px 26px;
}

.post-card:hover .post-title,
.featured-post:hover .post-title,
.text-link:hover {
  color: var(--accent);
}

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--panel);
  padding-block: 48px;
}

.article-shell,
.archive-shell {
  padding-block: 64px;
}

.article-layout {
  width: min(100% - 40px, 760px);
  margin-inline: auto;
}

.page-layout {
  width: min(100% - 40px, 860px);
}

.article-header {
  margin-bottom: 34px;
}

.article-header h1,
.archive-header h1 {
  margin-bottom: 18px;
  font-size: clamp(2.45rem, 6vw, 4.35rem);
  line-height: 1.04;
}

.article-lede,
.archive-header p {
  color: var(--muted);
  font-size: 1.13rem;
  line-height: 1.72;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--accent);
  font-family: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
}

.article-meta span,
.article-meta a {
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  padding: 5px 9px;
}

.article-hero-image {
  overflow: hidden;
  margin: 0 0 34px;
  border-radius: 8px;
  background: var(--bg-strong);
}

.article-hero-image img {
  width: 100%;
  height: auto;
}

.wp-content {
  color: color-mix(in srgb, var(--ink), var(--muted) 18%);
  font-size: 1.06rem;
  line-height: 1.78;
}

.wp-content > * {
  margin-block: 0 1.35em;
}

.wp-content h2,
.wp-content h3,
.wp-content h4 {
  color: var(--ink);
  line-height: 1.18;
}

.wp-content h2 {
  margin-top: 2.1em;
  font-size: 1.9rem;
}

.wp-content h3 {
  margin-top: 1.8em;
  font-size: 1.45rem;
}

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

.wp-content ul,
.wp-content ol {
  padding-left: 1.4em;
}

.wp-content li + li {
  margin-top: 0.35em;
}

.wp-content blockquote {
  margin-inline: 0;
  border-left: 4px solid var(--accent);
  color: var(--muted);
  padding-left: 18px;
}

.wp-content pre {
  overflow-x: auto;
  border-radius: 8px;
  background: #111511;
  color: #edf4ed;
  padding: 18px;
  font-size: 0.92rem;
  line-height: 1.62;
}

.wp-content code {
  border-radius: 5px;
  background: color-mix(in srgb, var(--accent-soft), transparent 30%);
  color: var(--accent-dark);
  padding: 0.1em 0.28em;
  font-family: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.88em;
}

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

.wp-content img,
.wp-content video {
  height: auto;
  border-radius: 8px;
}

.wp-content figure {
  margin-inline: 0;
}

.wp-content figcaption {
  margin-top: 8px;
  color: var(--subtle);
  font-size: 0.92rem;
  text-align: center;
}

.archive-header {
  margin-bottom: 34px;
}

.archive-grid {
  padding-bottom: 32px;
}

.archive-pagination {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
  color: var(--subtle);
  font-family: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.82rem;
}

.archive-pagination .text-link:last-child {
  justify-self: end;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 36px;
}

.footer-grid p {
  max-width: 330px;
  color: var(--muted);
}

.footer-grid h2 {
  margin-bottom: 12px;
  color: var(--subtle);
  font-family: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.78rem;
  text-transform: uppercase;
}

.footer-grid a {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-weight: 600;
}

.footer-grid a:hover {
  color: var(--accent);
}

.footer-brand {
  margin-bottom: 14px;
}

@media (max-width: 900px) {
  .desktop-nav {
    display: none;
  }

  .mobile-only {
    display: grid;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 28px;
    min-height: 0;
    padding-block: 58px 44px;
  }

  .hero-panel {
    max-width: 520px;
  }

  h1 {
    font-size: 3.2rem;
  }

  .project-grid,
  .post-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .featured-project-grid {
    grid-template-columns: 1fr;
  }

  .featured-post {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .shell {
    width: min(100% - 28px, 1152px);
  }

  .header-inner {
    min-height: 62px;
  }

  .hero-grid {
    padding-block: 44px 36px;
  }

  h1 {
    font-size: 2.65rem;
  }

  .hero-lede {
    font-size: 1.03rem;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .primary-action {
    justify-content: center;
  }

  .social-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section-heading {
    align-items: start;
    flex-direction: column;
  }

  .project-grid,
  .featured-project-grid,
  .post-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .featured-project {
    min-height: 0;
  }

  .project-footer {
    justify-content: flex-start;
  }

  .featured-copy .post-title {
    font-size: 1.72rem;
  }

  .archive-pagination {
    grid-template-columns: 1fr;
  }

  .archive-pagination .text-link:last-child {
    justify-self: start;
  }
}
