
:root {
  color-scheme: dark;
  --bg: #090c0a;
  --panel: #111713;
  --panel-hover: #171f19;
  --line: #28342b;
  --text: #edf3ee;
  --muted: #a0aea3;
  --accent: #a6f36a;
  --accent-soft: rgba(166, 243, 106, 0.09);
  --radius: 16px;
  --max: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  margin: 0;
  background:
    radial-gradient(ellipse at 15% -10%, rgba(166,243,106,.08), transparent 38%),
    var(--bg);
  color: var(--text);
  font: 16px/1.7 Inter, "Segoe UI", Arial, sans-serif;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: #d2ffb0;
}

button {
  font: inherit;
}

img {
  max-width: 100%;
  height: auto;
}

.wrap,
.container {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
}

/* Skip link */

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--accent);
  color: #10170c;
}

.skip-link:focus {
  top: 16px;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
  padding: 12px max(20px, calc((100% - var(--max)) / 2));
  border-bottom: 1px solid var(--line);
  background: rgba(9, 12, 10, .94);
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  flex-shrink: 0;
  color: var(--text);
  font-size: 1.08rem;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -.04em;
}

.brand:hover {
  color: var(--text);
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 12px;
  background: var(--accent);
  color: #10170c;
  font-size: 1rem;
  font-weight: 900;
}

.brand small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: .65rem;
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
}

/* Navigation */

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

.site-nav a {
  padding: 9px 12px;
  border: 1px solid transparent;
  border-radius: 9px;
  color: var(--muted);
  font-size: .87rem;
  font-weight: 600;
  transition: background .18s, color .18s;
}

.site-nav a:hover {
  background: var(--panel);
  color: var(--text);
}

.site-nav a[aria-current="page"] {
  border-color: rgba(166,243,106,.18);
  background: var(--accent-soft);
  color: var(--accent);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 42px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 4px 0;
  border-radius: 2px;
  background: var(--text);
}

/* Outdated notice */

.notice-wrap {
  padding: 12px 20px 0;
}

.outdated-notice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: min(var(--max), 100%);
  margin: 0 auto;
  padding: 15px 18px;
  border: 1px solid rgba(166,243,106,.24);
  border-radius: 12px;
  background: linear-gradient(100deg, rgba(166,243,106,.09), rgba(166,243,106,.025));
  color: var(--muted);
  font-size: .86rem;
}

.outdated-notice strong {
  display: block;
  margin-bottom: 3px;
  color: var(--accent);
  font-size: .77rem;
  letter-spacing: .06em;
}

.notice-icon {
  display: grid;
  width: 25px;
  height: 25px;
  flex-shrink: 0;
  place-items: center;
  border: 1px solid rgba(166,243,106,.3);
  border-radius: 50%;
  color: var(--accent);
  font-weight: 800;
}

/* Main content */

main {
  min-height: 65vh;
}

.hero {
  padding: 90px 0 62px;
}

.hero .wrap,
.hero .container {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
}

.eyebrow,
.section-label {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--accent);
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 950px;
  margin-bottom: 22px;
  font-size: clamp(2.8rem, 7vw, 5.8rem);
  font-weight: 850;
  line-height: 1;
  letter-spacing: -.075em;
}

h1 span {
  color: var(--accent);
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(1.7rem, 3.5vw, 2.5rem);
  line-height: 1.15;
  letter-spacing: -.05em;
}

h3 {
  margin-bottom: 9px;
  font-size: 1.13rem;
  line-height: 1.35;
}

p {
  margin-bottom: 16px;
}

.lede,
.hero p {
  max-width: 760px;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.18rem);
  line-height: 1.85;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

/* Buttons */

.btn,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 45px;
  padding: 11px 17px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  color: var(--text);
  font-size: .9rem;
  font-weight: 700;
  transition: transform .18s, border-color .18s;
}

.btn:hover,
.button:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
}

.btn.primary,
.button.primary {
  border-color: var(--accent);
  background: var(--accent);
  color: #11170c;
}

.btn.primary:hover,
.button.primary:hover {
  background: #d2ffb0;
  color: #11170c;
}

/* Sections */

.section {
  padding: 35px 0 72px;
}

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

.section-head p {
  max-width: 500px;
  margin-bottom: 0;
  color: var(--muted);
}

.text-link {
  flex-shrink: 0;
  color: var(--accent);
  font-size: .9rem;
  font-weight: 700;
}

/* Cards and grids */

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

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

.card,
.project-card,
.skill-card,
.dashboard-card {
  min-width: 0;
  padding: 23px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(255,255,255,.025), transparent 75%), var(--panel);
  transition: transform .2s, border-color .2s, background .2s;
}

.card:hover,
.project-card:hover,
.skill-card:hover,
.dashboard-card:hover {
  border-color: #50634b;
  background-color: var(--panel-hover);
}

.card.link-card:hover,
.project-card:hover {
  transform: translateY(-3px);
}

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

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.icon-box {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid #354535;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
}

.tag,
.status,
.badge {
  display: inline-flex;
  width: fit-content;
  padding: 4px 9px;
  border: 1px solid var(--line);
  border-radius: 99px;
  color: var(--muted);
  font-size: .72rem;
  font-weight: 700;
}

.tag.active,
.status-active,
.badge-active {
  border-color: rgba(166,243,106,.25);
  background: var(--accent-soft);
  color: var(--accent);
}

.status-discontinued,
.badge-discontinued {
  color: #ffaaaa;
}

/* Page headers and prose */

.page-hero {
  padding: 65px 0 36px;
}

.page-hero h1 {
  font-size: clamp(2.7rem, 6vw, 4.7rem);
}

.breadcrumbs {
  margin-bottom: 18px;
  color: var(--muted);
  font-size: .82rem;
}

.prose {
  max-width: 780px;
}

.prose p,
.prose li {
  color: var(--muted);
}

.prose h2 {
  margin-top: 34px;
}

.prose a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Lists */

.list {
  display: grid;
  gap: 10px;
}

.list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 17px 19px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
}

.list-item p,
.muted {
  color: var(--muted);
}

.list-item p {
  margin: 4px 0 0;
  font-size: .9rem;
}

/* Callouts */

.callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 26px;
  border: 1px solid rgba(166,243,106,.23);
  border-radius: var(--radius);
  background: linear-gradient(110deg, rgba(166,243,106,.08), transparent);
}

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

/* Footer */

.site-footer,
footer {
  margin-top: 35px;
  padding: 28px 0 35px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .84rem;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 15px;
}

.footer-inner p {
  margin: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

/* General utility styles */

.small {
  font-size: .84rem;
}

.text-muted {
  color: var(--muted);
}

hr {
  height: 1px;
  margin: 25px 0;
  border: 0;
  background: var(--line);
}

code,
pre {
  font-family: Consolas, "Courier New", monospace;
}

code {
  color: var(--accent);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

/* Responsive navigation */

@media (max-width: 900px) {
  .site-header {
    min-height: 68px;
    padding-inline: 20px;
  }

  .menu-toggle {
    display: block;
    flex-shrink: 0;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    align-items: stretch;
    flex-direction: column;
    gap: 5px;
    padding: 14px 20px 20px;
    border-bottom: 1px solid var(--line);
    background: #0b0f0c;
  }

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

  .site-nav a {
    padding: 12px;
  }

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

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

@media (max-width: 560px) {
  .wrap,
  .container {
    width: calc(100% - 28px);
  }

  .site-header {
    padding-inline: 14px;
  }

  .brand {
    font-size: 1rem;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .brand small {
    font-size: .58rem;
  }

  .notice-wrap {
    padding: 10px 14px 0;
  }

  .outdated-notice {
    padding: 13px;
    font-size: .8rem;
  }

  .hero {
    padding: 58px 0 42px;
  }

  .hero h1 {
    font-size: clamp(2.7rem, 12vw, 4rem);
  }

  .page-hero {
    padding-top: 46px;
  }

  .section {
    padding: 28px 0 48px;
  }

  .grid,
  .grid.two,
  .card-grid,
  .project-grid,
  .skills-grid,
  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .card,
  .project-card,
  .skill-card,
  .dashboard-card {
    padding: 19px;
  }

  .list-item,
  .callout {
    align-items: flex-start;
    flex-direction: column;
  }

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

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
}
