:root {
  color-scheme: light;
  --bg: #f7f8fa;
  --surface: #ffffff;
  --ink: #161816;
  --muted: #626860;
  --line: #dfe4de;
  --teal: #087c78;
  --teal-dark: #095f5c;
  --amber: #d69724;
  --coal: #20231f;
  --shadow: 0 18px 50px rgba(20, 24, 22, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

code {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fbfcfd;
  padding: 0.08rem 0.3rem;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.92em;
}

pre {
  overflow-x: auto;
  border: 1px solid #2c332d;
  border-radius: 8px;
  background: #141713;
  color: #eef4ec;
  padding: 1.1rem;
}

pre code {
  border: 0;
  background: transparent;
  padding: 0;
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
  border-bottom: 1px solid rgba(223, 228, 222, 0.82);
  background: rgba(247, 248, 250, 0.92);
  padding: 0 5vw;
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
  font-size: 0.98rem;
  font-weight: 800;
}

.brand__mark {
  width: 0.85rem;
  height: 0.85rem;
  border: 3px solid var(--teal);
  border-right-color: var(--amber);
  border-radius: 50%;
  flex: 0 0 auto;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.site-nav a {
  border-radius: 6px;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 700;
  padding: 0.5rem 0.75rem;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a[aria-current="page"] {
  background: #eaf4f3;
  color: var(--teal-dark);
  outline: 0;
}

.hero {
  min-height: 74vh;
  max-height: 760px;
  display: grid;
  align-items: center;
  background:
    linear-gradient(90deg, rgba(247, 248, 250, 0.98) 0%, rgba(247, 248, 250, 0.86) 43%, rgba(247, 248, 250, 0.3) 100%),
    url("hero-workspace.png") center right / cover no-repeat;
  border-bottom: 1px solid var(--line);
  padding: 7rem 5vw 5rem;
}

.hero__content {
  width: min(660px, 100%);
}

.eyebrow {
  margin: 0 0 0.65rem;
  color: var(--teal-dark);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.08;
}

.hero h1 {
  max-width: 10ch;
  font-size: 4.2rem;
}

.hero__lead {
  max-width: 610px;
  margin: 1.4rem 0 0;
  color: #394039;
  font-size: 1.08rem;
}

.hero__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid var(--teal);
  border-radius: 8px;
  background: var(--teal);
  color: #ffffff;
  font-weight: 800;
  padding: 0.68rem 1rem;
}

.button:hover,
.button:focus-visible {
  background: var(--teal-dark);
  outline: 3px solid rgba(8, 124, 120, 0.18);
}

.button--ghost {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink);
}

.button--ghost:hover,
.button--ghost:focus-visible {
  background: #ffffff;
}

.section,
.page-hero,
.article,
.not-found {
  padding: 5rem 5vw;
}

.section__header {
  max-width: 760px;
  margin-bottom: 2rem;
}

.section h2,
.page-hero h1,
.article h1,
.not-found h1 {
  font-size: 2.4rem;
}

.section--line {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #ffffff;
}

.section--compact {
  padding-top: 3.5rem;
}

.section--ink {
  background: var(--coal);
  color: #f8fbf7;
}

.section--ink .eyebrow {
  color: #83d4ce;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 2rem;
  align-items: start;
}

.about-grid > p {
  max-width: 720px;
  margin: 0;
  color: #3f463f;
  font-size: 1.05rem;
}

.status-board {
  display: grid;
  gap: 0.85rem;
}

.status-board > div {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
  border-top: 1px solid var(--line);
  padding-top: 0.85rem;
}

.status-board__label {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

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

.project-card,
.post-card {
  min-height: 220px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.project-card {
  padding: 1.2rem;
}

.project-card__kicker {
  display: block;
  margin-bottom: 1.1rem;
  color: var(--teal-dark);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.project-card h3,
.post-card h3 {
  font-size: 1.25rem;
}

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

.post-card {
  overflow: hidden;
}

.post-card a {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1.2rem;
}

.post-card a:hover,
.post-card a:focus-visible {
  background: #f7fbfa;
  outline: 0;
}

.section--ink .post-card {
  border-color: #343b34;
  background: #f8fbf7;
  color: var(--ink);
  box-shadow: none;
}

.post-card__meta,
.article__meta {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
}

.post-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: auto;
  padding-top: 1rem;
}

.post-card__tags span,
.tag-row button {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f7f9f7;
  color: #4c554c;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 0.28rem 0.55rem;
}

.contact-band {
  display: grid;
  grid-template-columns: minmax(240px, 0.7fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: center;
  border-top: 1px solid var(--line);
}

.contact-band p {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
  padding: 1.5rem 5vw;
}

.site-footer a {
  color: var(--teal-dark);
  font-weight: 800;
}

.page-hero {
  background: #ffffff;
  border-bottom: 1px solid var(--line);
}

.page-hero p:last-child {
  max-width: 680px;
  margin: 1rem 0 0;
  color: var(--muted);
}

.blog-panel {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--line);
  background: #f0f4f2;
  padding: 1.25rem 5vw;
}

.search-field {
  display: grid;
  gap: 0.35rem;
  width: min(420px, 100%);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.search-field input {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  font: inherit;
  padding: 0.65rem 0.8rem;
}

.search-field input:focus {
  border-color: var(--teal);
  outline: 3px solid rgba(8, 124, 120, 0.16);
}

.tag-row {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.tag-row button {
  min-height: 36px;
  cursor: pointer;
}

.tag-row button[aria-pressed="true"] {
  border-color: var(--teal);
  background: var(--teal);
  color: #ffffff;
}

.post-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

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

.article {
  max-width: 860px;
  margin: 0 auto;
}

.article__header {
  border-bottom: 1px solid var(--line);
  margin-bottom: 2rem;
  padding-bottom: 2rem;
}

.article h2 {
  margin-top: 2rem;
  font-size: 1.5rem;
}

.article p,
.article li {
  color: #383f38;
}

.back-link {
  display: inline-flex;
  color: var(--teal-dark);
  font-weight: 900;
  margin-bottom: 2rem;
}

.not-found {
  min-height: 100vh;
  display: grid;
  place-content: center;
  gap: 1rem;
}

.not-found p {
  margin: 0;
  color: var(--muted);
}

@media (max-width: 920px) {
  .hero {
    min-height: 680px;
    background:
      linear-gradient(90deg, rgba(247, 248, 250, 0.98) 0%, rgba(247, 248, 250, 0.9) 58%, rgba(247, 248, 250, 0.46) 100%),
      url("hero-workspace.png") center right / cover no-repeat;
  }

  .hero h1 {
    font-size: 3.2rem;
  }

  .about-grid,
  .contact-band {
    grid-template-columns: 1fr;
  }

  .card-grid,
  .post-grid,
  .post-list {
    grid-template-columns: 1fr;
  }

  .blog-panel {
    align-items: stretch;
    flex-direction: column;
  }

  .tag-row {
    justify-content: flex-start;
  }
}

@media (max-width: 620px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    padding: 0.9rem 5vw;
  }

  .site-nav {
    justify-content: flex-start;
  }

  .site-nav a {
    padding: 0.42rem 0.54rem;
  }

  .hero {
    min-height: 620px;
    padding-top: 5.5rem;
  }

  .hero h1 {
    font-size: 2.55rem;
  }

  .section,
  .page-hero,
  .article,
  .not-found {
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
  }

  .section h2,
  .page-hero h1,
  .article h1,
  .not-found h1 {
    font-size: 2rem;
  }

  .status-board > div {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }
}
