:root {
  color-scheme: light;
  --orange: #f48120;
  --orange-dark: #cf6116;
  --ink: #111827;
  --muted: #536071;
  --line: #dfe6ee;
  --paper: #ffffff;
  --cloud: #f7f9fc;
  --blue: #2563eb;
  --teal: #0891b2;
  --shadow: 0 20px 50px rgba(17, 24, 39, 0.10);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(rgba(17, 24, 39, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 24, 39, 0.035) 1px, transparent 1px),
    var(--cloud);
  background-size: 48px 48px;
  color: var(--ink);
  line-height: 1.5;
  text-rendering: optimizeLegibility;
}

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

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

a:hover {
  color: var(--orange-dark);
}

.skip-link {
  background: var(--ink);
  color: var(--paper);
  left: 1rem;
  padding: 0.75rem 1rem;
  position: fixed;
  top: -5rem;
  z-index: 20;
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  backdrop-filter: blur(18px);
  background: rgba(247, 249, 252, 0.84);
  border-bottom: 1px solid rgba(223, 230, 238, 0.85);
  position: sticky;
  top: 0;
  z-index: 10;
}

.nav {
  align-items: center;
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr auto auto;
  margin: 0 auto;
  max-width: 1180px;
  min-height: 72px;
  padding: 0 1.5rem;
}

.brand,
.nav-links,
.hero-actions,
.project-links,
.tag-list {
  align-items: center;
  display: flex;
}

.brand {
  font-weight: 800;
  gap: 0.75rem;
  letter-spacing: 0;
}

.brand img {
  height: 40px;
  width: 40px;
}

.nav-links {
  gap: 1.25rem;
}

.nav-links a,
.nav-action {
  color: #344054;
  font-size: 0.95rem;
  font-weight: 700;
}

.nav-action {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.55rem 0.8rem;
}

.hero {
  align-items: center;
  display: grid;
  gap: clamp(2rem, 6vw, 5rem);
  grid-template-columns: minmax(0, 1.04fr) minmax(260px, 0.78fr);
  margin: 0 auto;
  max-width: 1180px;
  min-height: min(760px, calc(100svh - 72px));
  padding: clamp(3rem, 7vw, 6rem) 1.5rem clamp(2.5rem, 5vw, 4rem);
}

.eyebrow {
  color: var(--orange-dark);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  margin: 0 0 0.85rem;
  text-transform: uppercase;
}

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

h1 {
  font-size: clamp(4rem, 12vw, 8.6rem);
  letter-spacing: 0;
  line-height: 0.85;
  margin-bottom: 1.4rem;
  max-width: 8ch;
}

h2 {
  font-size: clamp(2.2rem, 6vw, 4.6rem);
  letter-spacing: 0;
  line-height: 0.95;
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.25rem;
  line-height: 1.15;
  margin-bottom: 0.7rem;
}

.hero-text {
  color: #344054;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  max-width: 680px;
}

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

.button,
.project-links a {
  align-items: center;
  border-radius: 8px;
  display: inline-flex;
  font-weight: 850;
  justify-content: center;
  min-height: 44px;
}

.button {
  padding: 0.8rem 1rem;
}

.button.primary {
  background: var(--orange);
  box-shadow: 0 14px 30px rgba(244, 129, 32, 0.24);
  color: #111827;
}

.button.primary:hover {
  background: #ff9f43;
  color: #111827;
}

.button.secondary {
  background: var(--paper);
  border: 1px solid var(--line);
}

.hero-visual {
  align-items: center;
  display: flex;
  justify-content: center;
  min-height: 320px;
}

.hero-visual img {
  filter: drop-shadow(0 22px 36px rgba(17, 24, 39, 0.20));
  width: min(420px, 100%);
}

.project-strip {
  background: #111827;
  color: var(--paper);
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(3, 1fr);
}

.project-strip div {
  background: #172033;
  min-height: 116px;
  padding: clamp(1.25rem, 3vw, 2rem);
}

.project-strip strong,
.project-strip span {
  display: block;
}

.project-strip strong {
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
}

.project-strip span {
  color: #cbd5e1;
}

.section {
  margin: 0 auto;
  max-width: 1180px;
  padding: clamp(4.5rem, 9vw, 7rem) 1.5rem;
}

.section-heading {
  max-width: 760px;
}

.section-heading p:not(.eyebrow),
.contribute-section p,
.stack-grid p,
.project-card p {
  color: var(--muted);
}

.project-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  margin-top: 2.5rem;
}

.project-grid-loading {
  color: var(--muted);
  grid-column: 1 / -1;
  margin: 0;
}

.project-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  min-height: 300px;
  padding: clamp(1.25rem, 3vw, 1.75rem);
}

.project-card-header {
  align-items: flex-start;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
}

.project-kicker {
  color: var(--teal);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

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

.tag-list span {
  background: #ecfeff;
  border: 1px solid #a5f3fc;
  border-radius: 999px;
  color: #155e75;
  font-size: 0.75rem;
  font-weight: 850;
  padding: 0.32rem 0.55rem;
}

.project-links {
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: auto;
}

.project-links a {
  background: #f8fafc;
  border: 1px solid var(--line);
  color: #1f2937;
  padding: 0.6rem 0.78rem;
}

.project-links a::after {
  content: "\2197";
  font-size: 0.9em;
  margin-left: 0.45rem;
}

.stack-section {
  border-top: 1px solid var(--line);
}

.stack-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 2.5rem;
}

.stack-grid > div {
  border-top: 3px solid var(--orange);
  padding-top: 1rem;
}

.stack-grid > div:nth-child(2) {
  border-color: var(--blue);
}

.stack-grid > div:nth-child(3) {
  border-color: var(--teal);
}

.stack-index {
  color: var(--muted);
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 900;
  margin-bottom: 1.25rem;
}

.contribute-section {
  align-items: center;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 2rem;
  justify-content: space-between;
}

.contribute-section > div {
  max-width: 760px;
}

.footer {
  align-items: center;
  background: var(--paper);
  border-top: 1px solid var(--line);
  color: var(--muted);
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  padding: 1.25rem max(1.5rem, calc((100vw - 1180px) / 2 + 1.5rem));
}

.footer p {
  margin: 0;
}

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

@media (max-width: 820px) {
  .nav {
    grid-template-columns: 1fr auto;
  }

  .nav-links {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-visual {
    display: none;
  }

  .project-strip,
  .stack-grid {
    grid-template-columns: 1fr;
  }

  .contribute-section,
  .footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .brand span {
    display: none;
  }

  h1 {
    font-size: clamp(3.4rem, 22vw, 4.8rem);
  }

  h2 {
    font-size: clamp(2rem, 13vw, 3rem);
  }

  .project-card-header {
    flex-direction: column;
  }

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

  .button,
  .project-links a {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
  }
}
