:root {
  color-scheme: light;
  --bg: #f6f8f5;
  --surface: #ffffff;
  --surface-soft: #eef3ee;
  --text: #19221d;
  --muted: #5d6a62;
  --border: #d9e2dc;
  --green: #08003C;
  --green-dark: #08003C;
  --amber: #c88719;
  --rust: #a4482d;
  --focus: #08003C;
  --shadow: 0 24px 60px rgba(28, 43, 35, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(246, 248, 245, 0.92)),
    var(--bg);
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: 1rem;
  z-index: 20;
  transform: translateY(-150%);
  border-radius: 0.5rem;
  background: var(--text);
  color: #fff;
  padding: 0.75rem 1rem;
  text-decoration: none;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(217, 226, 220, 0.9);
  background: rgba(246, 248, 245, 0.88);
  backdrop-filter: blur(18px);
}

.nav,
.hero,
.official-site,
.projects-section,
.site-footer {
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  text-decoration: none;
}

.brand-logo {
  display: block;
  width: 14rem;
  max-width: 48vw;
  height: auto;
}

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

.nav-links a {
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
  padding: 0.62rem 0.85rem;
  text-decoration: none;
}

.nav-links a:hover {
  background: rgba(8, 0, 60, 0.08);
  color: var(--green-dark);
}

.hero {
  padding: 4.75rem 0 3.25rem;
}

.hero-content {
  width: 100%;
  max-width: none;
}

.eyebrow,
.project-kicker {
  margin: 0 0 0.7rem;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

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

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

h1 {
  margin-bottom: 1.25rem;
  font-size: 3.2rem;
  max-width: 13ch;
}

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

.hero-title {
  margin-bottom: 1rem;
  color: var(--green-dark);
  font-size: 2rem;
  font-weight: 900;
  line-height: 1.08;
}

h2 {
  margin-bottom: 0.9rem;
  font-size: 2rem;
}

h3 {
  margin-bottom: 0.7rem;
  font-size: 1.45rem;
}

.intro {
  max-width: none;
  color: var(--muted);
  font-size: 1.18rem;
}

.hero-actions,
.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  border: 1px solid transparent;
  border-radius: 0.65rem;
  padding: 0.72rem 1rem;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

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

.button.primary {
  background: var(--green);
  color: #fff;
}

.button.primary:hover {
  background: var(--green-dark);
}

.button.secondary {
  border-color: var(--border);
  background: #fff;
  color: var(--text);
}

.button.secondary:hover {
  border-color: rgba(8, 0, 60, 0.4);
  color: var(--green-dark);
}

.icon-link {
  width: 2.85rem;
  min-width: 2.85rem;
  padding: 0.72rem;
}

.github-icon {
  display: block;
  font-size: 1.25rem;
  line-height: 1;
}

.official-site {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-top: 1.5rem;
  padding: 1.35rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.official-site h2 {
  margin-bottom: 0.3rem;
  font-size: 1.2rem;
}

.official-site p {
  margin-bottom: 0;
  color: var(--muted);
}

.text-link {
  flex: 0 0 auto;
  color: var(--green);
  font-weight: 800;
  text-decoration-thickness: 0.12em;
  text-underline-offset: 0.22em;
}

.projects-section {
  padding: 4rem 0 4.75rem;
}

.section-heading {
  max-width: 43rem;
  margin-bottom: 1.75rem;
}

.section-heading p {
  color: var(--muted);
}

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

.project-card {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 1.25rem;
  min-height: 100%;
  border: 1px solid rgba(217, 226, 220, 0.95);
  border-radius: 0.75rem;
  background: var(--surface);
  padding: 1.35rem;
  box-shadow: 0 16px 38px rgba(28, 43, 35, 0.08);
}

.project-logo {
  display: grid;
  place-items: center;
  width: 5.25rem;
  height: 5.25rem;
  overflow: hidden;
  border: 1px solid rgba(217, 226, 220, 0.95);
  border-radius: 0.75rem;
  background: #ffffff;
}

.project-logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.project-icon {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 0.7rem;
  background: var(--surface-soft);
}

.project-icon svg {
  width: 1.85rem;
  fill: none;
  stroke: var(--green);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.8;
}

.project-card:nth-child(2) .project-icon svg {
  stroke: var(--rust);
}

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

.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem 0 2.25rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: var(--green);
  font-weight: 800;
  text-decoration-thickness: 0.12em;
  text-underline-offset: 0.22em;
}

@media (max-width: 860px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.9rem;
    padding: 0.95rem 0;
  }

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

  .hero {
    padding-top: 3.5rem;
  }

  h1 {
    max-width: 15ch;
    font-size: 2.35rem;
  }

  .brand-logo {
    width: 15rem;
    max-width: 70vw;
  }

  .intro {
    font-size: 1.06rem;
  }

  .official-site {
    align-items: flex-start;
    flex-direction: column;
  }

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

@media (max-width: 520px) {
  .nav,
  .hero,
  .official-site,
  .projects-section,
  .site-footer {
    width: min(100% - 1rem, 1120px);
  }

  .nav-links a {
    padding-inline: 0.65rem;
  }

  .hero {
    padding-top: 2.5rem;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.55rem;
  }

  .button {
    width: 100%;
  }

  .button.icon-link {
    flex: 0 0 2.85rem;
    width: 2.85rem;
  }

  .project-card {
    padding: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .button {
    transition: none;
  }

  .button:hover {
    transform: none;
  }
}
