:root {
  --paper: #f7f3ec;
  --paper-strong: #efe6d8;
  --surface: #ffffff;
  --ink: #17191d;
  --muted: #5f6873;
  --line: #ded4c6;
  --teal: #087e8b;
  --teal-deep: #055d66;
  --coral: #cf5b3f;
  --olive: #758c1f;
  --blue: #315bb7;
  --gold: #b77c1c;
  --shadow: 0 24px 80px rgba(23, 25, 29, 0.08);
  --radius: 8px;
  --max-width: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(90deg, rgba(8, 126, 139, 0.05) 1px, transparent 1px),
    linear-gradient(0deg, rgba(207, 91, 63, 0.05) 1px, transparent 1px),
    var(--paper);
  background-size: 72px 72px;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  letter-spacing: 0;
}

body.nav-open {
  overflow: hidden;
}

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

a {
  color: inherit;
}

code {
  border: 1px solid rgba(23, 25, 29, 0.08);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--teal-deep);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.92em;
  padding: 0.1rem 0.32rem;
}

pre {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #17191d;
  color: #f7f3ec;
  padding: 1rem;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 50;
  transform: translateY(-140%);
  border-radius: 6px;
  background: var(--ink);
  color: var(--paper);
  padding: 0.65rem 0.85rem;
  text-decoration: none;
  transition: transform 160ms ease;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(222, 212, 198, 0.9);
  background: rgba(247, 243, 236, 0.9);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(var(--max-width), calc(100% - 32px));
  min-height: 72px;
  margin: 0 auto;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  display: grid;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(8, 126, 139, 0.25);
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--paper);
  font-size: 0.84rem;
  font-weight: 800;
}

.brand-copy {
  display: grid;
  min-width: 0;
}

.brand-copy strong,
.brand-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-copy strong {
  font-size: 0.98rem;
}

.brand-copy small {
  color: var(--muted);
  font-size: 0.78rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.2rem;
}

.site-nav a {
  border-radius: 6px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
  padding: 0.5rem 0.68rem;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a.is-active {
  background: rgba(8, 126, 139, 0.1);
  color: var(--teal-deep);
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  cursor: pointer;
}

.menu-button span:not(.sr-only) {
  display: block;
  width: 18px;
  height: 2px;
  margin: 3px auto;
  background: var(--ink);
}

.section-shell {
  width: min(var(--max-width), calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  padding: 64px 0 36px;
}

.hero-grid {
  display: grid;
  align-items: center;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.88fr);
  gap: 3rem;
}

.kicker {
  margin: 0 0 0.8rem;
  color: var(--teal-deep);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

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

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

h1 {
  max-width: 780px;
  font-size: 4.25rem;
}

h2 {
  font-size: 2.35rem;
}

h3 {
  font-size: 1.18rem;
}

.hero-lede,
.page-hero p,
.contact-panel p {
  max-width: 690px;
  color: var(--muted);
  font-size: 1.1rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  margin-top: 2rem;
  gap: 0.85rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 800;
  line-height: 1.2;
  padding: 0.78rem 1rem;
  text-align: center;
  text-decoration: none;
}

.button.primary {
  background: var(--ink);
  color: var(--paper);
}

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

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

.hero-visual {
  margin: 0;
}

.hero-visual img {
  width: 100%;
  aspect-ratio: 5 / 4;
  border: 1px solid rgba(23, 25, 29, 0.12);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  object-fit: cover;
}

.hero-visual figcaption {
  border-left: 3px solid var(--coral);
  margin-top: 0.9rem;
  color: var(--muted);
  font-size: 0.92rem;
  padding-left: 0.8rem;
}

.metrics-band {
  padding: 0 0 48px;
}

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

.metric {
  min-height: 132px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.74);
  padding: 1.2rem;
}

.metric strong {
  display: block;
  color: var(--ink);
  font-size: 2rem;
  line-height: 1;
}

.metric span {
  display: block;
  margin-top: 0.65rem;
  color: var(--muted);
  font-weight: 700;
}

.content-section {
  padding: 72px 0;
}

.content-section.tinted {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(239, 230, 216, 0.58);
}

.split-section {
  display: grid;
  grid-template-columns: 0.72fr 1fr;
  gap: 3rem;
}

.focus-grid,
.principles-grid,
.project-grid,
.post-grid {
  display: grid;
  gap: 1rem;
}

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

.focus-item,
.principle-item,
.project-card,
.post-card,
.experience-item,
.contact-panel,
.contact-link {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 16px 48px rgba(23, 25, 29, 0.05);
}

.focus-item,
.principle-item,
.experience-item,
.contact-panel,
.contact-link {
  padding: 1.25rem;
}

.focus-item h3,
.principle-item h3,
.experience-item h3,
.project-card h3,
.post-card h3,
.contact-link h3 {
  margin-bottom: 0.58rem;
}

.focus-item p,
.principle-item p,
.experience-item p,
.project-card p,
.post-card p,
.contact-link p {
  margin: 0;
  color: var(--muted);
}

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

.text-link {
  color: var(--teal-deep);
  font-weight: 900;
  text-decoration-color: rgba(8, 126, 139, 0.35);
  text-underline-offset: 0.25rem;
}

.roadmap-preview {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.roadmap-preview-card {
  position: relative;
  min-height: 190px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 1.1rem;
}

.roadmap-preview-card::before {
  content: "";
  display: block;
  width: 42px;
  height: 4px;
  margin-bottom: 1rem;
  border-radius: 999px;
  background: var(--coral);
}

.roadmap-preview-card:nth-child(2)::before {
  background: var(--teal);
}

.roadmap-preview-card:nth-child(3)::before {
  background: var(--olive);
}

.roadmap-preview-card:nth-child(4)::before {
  background: var(--blue);
}

.roadmap-preview-card span,
.meta-line,
.tag-row {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
}

.roadmap-preview-card h3 {
  margin-bottom: 0.65rem;
}

.roadmap-preview-card p {
  color: var(--muted);
  margin: 0;
}

.page-hero {
  padding: 76px 0 42px;
}

.page-hero h1 {
  max-width: 930px;
  font-size: 3.4rem;
}

.page-hero p {
  margin-top: 1rem;
}

.roadmap-track {
  position: relative;
  display: grid;
  gap: 1rem;
}

.roadmap-track::before {
  content: "";
  position: absolute;
  top: 20px;
  bottom: 20px;
  left: 145px;
  width: 2px;
  background: linear-gradient(var(--teal), var(--coral), var(--olive), var(--blue));
}

.roadmap-item {
  position: relative;
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 3rem;
  align-items: start;
}

.roadmap-year {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 900;
  padding-top: 1.2rem;
  text-align: right;
}

.roadmap-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.84);
  padding: 1.3rem;
}

.roadmap-card::before {
  content: "";
  position: absolute;
  top: 1.45rem;
  left: -2.1rem;
  width: 13px;
  height: 13px;
  border: 3px solid var(--paper);
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 1px rgba(8, 126, 139, 0.34);
}

.roadmap-item:nth-child(2n) .roadmap-card::before {
  background: var(--coral);
}

.roadmap-item:nth-child(3n) .roadmap-card::before {
  background: var(--olive);
}

.status-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 0.8rem;
  gap: 0.55rem;
}

.status-dot {
  display: inline-block;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--coral);
}

.roadmap-card p {
  color: var(--muted);
}

.bullet-list {
  display: grid;
  margin: 1rem 0 0;
  padding: 0;
  gap: 0.45rem;
  list-style: none;
}

.bullet-list li {
  position: relative;
  color: var(--muted);
  padding-left: 1rem;
}

.bullet-list li::before {
  content: "";
  position: absolute;
  top: 0.68rem;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--teal);
}

.experience-list {
  display: grid;
  gap: 1rem;
}

.experience-item {
  display: grid;
  grid-template-columns: 0.5fr 1fr;
  gap: 2rem;
}

.experience-time {
  color: var(--teal-deep);
  font-weight: 900;
}

.experience-stack,
.project-stack,
.post-tags {
  display: flex;
  flex-wrap: wrap;
  margin-top: 1rem;
  gap: 0.45rem;
}

.stack-token {
  border: 1px solid rgba(23, 25, 29, 0.1);
  border-radius: 6px;
  background: rgba(247, 243, 236, 0.8);
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 800;
  padding: 0.25rem 0.45rem;
}

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

.project-card,
.post-card {
  overflow: hidden;
}

.project-card img,
.post-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.project-card-body,
.post-card-body {
  padding: 1.15rem;
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  margin-top: 1rem;
  gap: 0.7rem;
}

.card-actions a {
  color: var(--teal-deep);
  font-weight: 900;
  text-decoration-color: rgba(8, 126, 139, 0.3);
  text-underline-offset: 0.22rem;
}

.post-card h3 a {
  text-decoration: none;
}

.post-card h3 a:hover,
.post-card h3 a:focus-visible {
  color: var(--teal-deep);
}

.post-layout {
  width: min(860px, calc(100% - 32px));
  margin: 0 auto;
  padding: 58px 0 78px;
}

.post-hero-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin: 1.6rem 0 2rem;
  object-fit: cover;
}

.post-meta {
  color: var(--muted);
  font-weight: 800;
}

.post-content {
  color: #25282d;
  font-size: 1.06rem;
}

.post-content h2 {
  margin-top: 2.3rem;
  font-size: 1.9rem;
}

.post-content h3 {
  margin-top: 1.8rem;
}

.post-content p,
.post-content ul,
.post-content ol,
.post-content blockquote,
.post-content .post-table-wrap,
.post-diagram {
  margin: 1rem 0;
}

.post-content ul,
.post-content ol {
  padding-left: 1.2rem;
}

.post-content blockquote {
  border-left: 3px solid var(--coral);
  color: var(--muted);
  padding-left: 1rem;
}

.post-diagram {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.78);
  overflow: hidden;
}

.post-diagram img {
  width: 100%;
  height: auto;
}

.post-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.82);
}

.post-content table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 0.94rem;
}

.post-content th,
.post-content td {
  border-bottom: 1px solid var(--line);
  padding: 0.72rem 0.82rem;
  text-align: left;
  vertical-align: top;
}

.post-content th {
  background: rgba(8, 126, 139, 0.08);
  color: var(--ink);
  font-size: 0.8rem;
  text-transform: uppercase;
}

.post-content tr:last-child td {
  border-bottom: 0;
}

.post-loading,
.notice {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 1rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.7fr);
  gap: 1rem;
}

.contact-panel {
  min-height: 340px;
}

.contact-links {
  display: grid;
  gap: 1rem;
}

.contact-link a {
  color: var(--teal-deep);
  font-weight: 900;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.62);
  padding: 26px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(var(--max-width), calc(100% - 32px));
  margin: 0 auto;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.footer-links a {
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}

@media (max-width: 980px) {
  h1 {
    font-size: 3.2rem;
  }

  h2 {
    font-size: 2rem;
  }

  .hero-grid,
  .split-section,
  .experience-item,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    gap: 2rem;
  }

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

  .experience-item {
    gap: 1rem;
  }

  .roadmap-track::before {
    left: 25px;
  }

  .roadmap-item {
    grid-template-columns: 1fr;
    gap: 0.45rem;
    padding-left: 3.4rem;
  }

  .roadmap-year {
    padding-top: 0;
    text-align: left;
  }

  .roadmap-card::before {
    left: -2.43rem;
  }
}

@media (max-width: 760px) {
  .header-inner {
    min-height: 66px;
  }

  .brand-copy small {
    display: none;
  }

  .menu-button {
    display: grid;
  }

  .site-nav {
    position: fixed;
    top: 66px;
    right: 16px;
    left: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
    padding: 0.5rem;
  }

  body.nav-open .site-nav {
    display: flex;
  }

  .site-nav a {
    padding: 0.82rem 0.9rem;
  }

  .hero {
    padding-top: 42px;
  }

  h1,
  .page-hero h1 {
    font-size: 2.45rem;
  }

  h2 {
    font-size: 1.72rem;
  }

  .hero-lede,
  .page-hero p,
  .contact-panel p {
    font-size: 1rem;
  }

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

  .button {
    width: 100%;
  }

  .metrics-grid,
  .focus-grid,
  .principles-grid,
  .roadmap-preview,
  .project-grid,
  .post-grid {
    grid-template-columns: 1fr;
  }

  .content-section {
    padding: 52px 0;
  }

  .page-hero {
    padding: 52px 0 28px;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 440px) {
  .section-shell,
  .header-inner,
  .footer-inner,
  .post-layout {
    width: calc(100% - 24px);
  }

  .brand-mark {
    flex-basis: 40px;
    width: 40px;
    height: 40px;
  }

  h1,
  .page-hero h1 {
    font-size: 2.1rem;
  }

  .metric {
    min-height: 112px;
  }
}
