:root {
  color-scheme: light;
  --ink: #111827;
  --muted: #52606d;
  --quiet: #7b8794;
  --line: #d9e2ec;
  --paper: #f7faf7;
  --panel: #ffffff;
  --panel-soft: #eef5ff;
  --red: #ef3f4b;
  --red-dark: #bd2434;
  --blue: #1f6feb;
  --blue-dark: #164ea6;
  --yellow: #f7d154;
  --code: #0f172a;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  max-width: 100%;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 82% 8%, rgba(31, 111, 235, 0.13), transparent 24rem),
    linear-gradient(180deg, #fbfdfb 0%, var(--paper) 100%);
  line-height: 1.55;
  overflow-x: hidden;
}

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

.space {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.eu-field,
.eu-ring {
  position: absolute;
  will-change: transform;
}

.eu-field {
  inset: -20vh -10vw;
  background-repeat: repeat;
}

.eu-field-a {
  opacity: 0.24;
  background-image:
    radial-gradient(circle, rgba(31, 111, 235, 0.34) 0 1px, transparent 1.7px),
    radial-gradient(circle, rgba(247, 209, 84, 0.42) 0 1px, transparent 1.7px);
  background-size: 108px 108px, 180px 180px;
  background-position: 18px 24px, 72px 86px;
}

.eu-field-b {
  opacity: 0.16;
  background-image:
    linear-gradient(90deg, rgba(31, 111, 235, 0.13) 1px, transparent 1px),
    linear-gradient(180deg, rgba(31, 111, 235, 0.13) 1px, transparent 1px);
  background-size: 120px 120px;
  background-position: 40px 30px;
}

.eu-ring {
  aspect-ratio: 1;
  border-radius: 50%;
  opacity: 0.46;
  transform-origin: center;
  --star-radius: clamp(120px, 18vw, 260px);
}

.eu-ring-one {
  width: clamp(340px, 40vw, 620px);
  right: -9vw;
  top: 12vh;
  --star-radius: clamp(124px, 18vw, 260px);
}

.eu-ring-two {
  width: clamp(220px, 26vw, 420px);
  left: -7vw;
  top: 58vh;
  opacity: 0.30;
  --star-radius: clamp(82px, 12vw, 170px);
}

.eu-ring span {
  position: absolute;
  left: 50%;
  top: 50%;
  color: var(--yellow);
  font-size: clamp(14px, 1.8vw, 24px);
  line-height: 1;
  text-shadow: 0 2px 10px rgba(247, 209, 84, 0.42);
}

.eu-ring span:nth-child(1) { transform: translate(-50%, -50%) rotate(0deg) translateY(calc(-1 * var(--star-radius))) rotate(0deg); }
.eu-ring span:nth-child(2) { transform: translate(-50%, -50%) rotate(30deg) translateY(calc(-1 * var(--star-radius))) rotate(-30deg); }
.eu-ring span:nth-child(3) { transform: translate(-50%, -50%) rotate(60deg) translateY(calc(-1 * var(--star-radius))) rotate(-60deg); }
.eu-ring span:nth-child(4) { transform: translate(-50%, -50%) rotate(90deg) translateY(calc(-1 * var(--star-radius))) rotate(-90deg); }
.eu-ring span:nth-child(5) { transform: translate(-50%, -50%) rotate(120deg) translateY(calc(-1 * var(--star-radius))) rotate(-120deg); }
.eu-ring span:nth-child(6) { transform: translate(-50%, -50%) rotate(150deg) translateY(calc(-1 * var(--star-radius))) rotate(-150deg); }
.eu-ring span:nth-child(7) { transform: translate(-50%, -50%) rotate(180deg) translateY(calc(-1 * var(--star-radius))) rotate(-180deg); }
.eu-ring span:nth-child(8) { transform: translate(-50%, -50%) rotate(210deg) translateY(calc(-1 * var(--star-radius))) rotate(-210deg); }
.eu-ring span:nth-child(9) { transform: translate(-50%, -50%) rotate(240deg) translateY(calc(-1 * var(--star-radius))) rotate(-240deg); }
.eu-ring span:nth-child(10) { transform: translate(-50%, -50%) rotate(270deg) translateY(calc(-1 * var(--star-radius))) rotate(-270deg); }
.eu-ring span:nth-child(11) { transform: translate(-50%, -50%) rotate(300deg) translateY(calc(-1 * var(--star-radius))) rotate(-300deg); }
.eu-ring span:nth-child(12) { transform: translate(-50%, -50%) rotate(330deg) translateY(calc(-1 * var(--star-radius))) rotate(-330deg); }

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
  padding: 18px clamp(20px, 5vw, 76px);
  background: rgba(251, 253, 251, 0.88);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 4;
  backdrop-filter: blur(12px);
}

.brand,
.nav,
.actions {
  display: flex;
  align-items: center;
}

.brand {
  gap: 12px;
  font-weight: 900;
}

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

.nav {
  gap: 20px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
}

.nav a {
  white-space: nowrap;
}

.nav a:hover {
  color: var(--ink);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border: 2px solid var(--ink);
  border-radius: 6px;
  color: var(--ink);
  background: var(--panel);
  font-weight: 900;
  box-shadow: 4px 4px 0 rgba(17, 24, 39, 0.12);
}

.button.primary {
  color: white;
  border-color: var(--red-dark);
  background: var(--red);
}

.button:hover {
  transform: translate(-1px, -1px);
  box-shadow: 5px 5px 0 rgba(17, 24, 39, 0.18);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 440px);
  gap: clamp(34px, 7vw, 90px);
  align-items: center;
  min-height: calc(100vh - 76px);
  padding: clamp(58px, 9vw, 118px) clamp(20px, 5vw, 76px);
  border-bottom: 1px solid var(--line);
}

.hero-copy {
  max-width: 930px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--red-dark);
  font-size: 0.8rem;
  font-weight: 950;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 980px;
  margin: 0;
  font-size: clamp(3rem, 8.4vw, 7.4rem);
  line-height: 0.92;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.55rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin: 0 0 10px;
  font-size: 1.12rem;
}

.lead {
  max-width: 760px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: clamp(1.15rem, 1.7vw, 1.35rem);
  font-weight: 650;
}

.why-panel {
  max-width: 820px;
  margin-top: 28px;
  padding: 22px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: #fff9d7;
  box-shadow: 8px 8px 0 rgba(17, 24, 39, 0.10);
}

.why-panel p {
  margin: 0;
  color: #354052;
}

.why-panel strong {
  color: var(--ink);
}

.actions {
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.repo-card {
  overflow: hidden;
  border: 2px solid var(--ink);
  border-radius: 10px;
  background: var(--panel);
  box-shadow: 12px 12px 0 rgba(17, 24, 39, 0.12);
}

.repo-orbit {
  position: relative;
  min-height: 280px;
  overflow: hidden;
  border-bottom: 2px solid var(--ink);
}

.repo-orbit img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

.repo-card dl {
  margin: 0;
}

.repo-card div:not(.repo-orbit) {
  display: grid;
  grid-template-columns: 116px 1fr;
  gap: 16px;
  padding: 20px;
  border-bottom: 1px solid var(--line);
}

.repo-card div:last-child {
  border-bottom: 0;
}

dt {
  color: var(--quiet);
  font-size: 0.84rem;
  font-weight: 800;
}

dd {
  margin: 0;
  font-weight: 900;
}

.section {
  padding: clamp(58px, 8vw, 104px) clamp(20px, 5vw, 76px);
  border-bottom: 1px solid var(--line);
}

.feature-band,
.blog-section {
  background: rgba(255, 255, 255, 0.72);
}

.section-heading {
  max-width: 850px;
  margin-bottom: 32px;
}

.section-heading p {
  color: var(--muted);
  font-size: 1.04rem;
}

.grid,
.skill-grid,
.command-grid,
.timeline,
.thesis-grid,
.blog-grid,
.footer-grid {
  display: grid;
  gap: 18px;
}

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

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

.timeline {
  grid-template-columns: repeat(4, minmax(220px, 1fr));
}

.grid article,
.skill-grid article,
.command-grid article,
.timeline article,
.thesis-grid article,
.blog-card,
.trust-panel {
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 7px 7px 0 rgba(17, 24, 39, 0.10);
}

.grid article,
.skill-grid article,
.command-grid article,
.timeline article,
.thesis-grid article {
  min-height: 190px;
  padding: 22px;
}

.grid p,
.skill-grid p,
.timeline p,
.thesis-grid p,
.steps,
.blog-card p:not(.blog-meta),
.trust-panel p {
  color: var(--muted);
}

.skill-grid span,
.timeline span,
.blog-meta {
  display: block;
  margin-bottom: 16px;
  color: var(--blue-dark);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.76rem;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.split {
  display: grid;
  grid-template-columns: minmax(240px, 0.72fr) minmax(0, 1fr);
  gap: clamp(28px, 6vw, 76px);
}

.steps {
  margin: 0;
  padding-left: 22px;
  font-size: 1.07rem;
}

.steps li + li {
  margin-top: 14px;
}

.steps strong {
  color: var(--ink);
}

pre {
  margin: 0;
  padding: 22px;
  overflow-x: auto;
  border: 2px solid var(--ink);
  border-radius: 8px;
  color: #dfffe7;
  background: var(--code);
  box-shadow: 7px 7px 0 rgba(17, 24, 39, 0.10);
}

code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.94rem;
}

.command-grid pre {
  margin-top: 18px;
  box-shadow: none;
}

.plugin-list {
  grid-template-columns: repeat(7, minmax(220px, 1fr));
  overflow-x: auto;
  padding-bottom: 8px;
}

.trust-panel {
  padding: clamp(22px, 4vw, 34px);
  background: #fff9d7;
}

.draft {
  padding: 16px;
  border: 2px solid var(--blue-dark);
  border-radius: 8px;
  color: var(--ink) !important;
  background: #eaf2ff;
  font-weight: 900;
}

.thesis {
  background: #f2f6ff;
}

.thesis-grid span {
  display: inline-grid;
  place-items: center;
  width: 50px;
  height: 50px;
  margin-bottom: 22px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  color: var(--ink);
  background: #ffd6dc;
  font-weight: 950;
  box-shadow: 4px 4px 0 rgba(17, 24, 39, 0.10);
}

.blog-grid {
  grid-template-columns: 2fr 1fr;
}

.blog-card {
  overflow: hidden;
}

.blog-feature {
  display: grid;
  grid-template-columns: minmax(240px, 0.92fr) minmax(0, 1fr);
}

.blog-image {
  position: relative;
  display: grid;
  place-items: end start;
  min-height: 340px;
  padding: 24px;
  color: var(--ink);
  background:
    linear-gradient(145deg, rgba(239, 63, 75, 0.62), transparent 48%),
    radial-gradient(circle at 72% 28%, rgba(247, 209, 84, 0.9), transparent 0 10%, transparent 34%),
    repeating-linear-gradient(135deg, rgba(17, 24, 39, 0.08) 0 1px, transparent 1px 14px),
    #eaf2ff;
  border-right: 2px solid var(--ink);
}

.blog-image span {
  position: relative;
  z-index: 1;
  font-size: clamp(1.6rem, 4vw, 3.6rem);
  font-weight: 950;
  line-height: 0.95;
}

.blog-copy {
  padding: clamp(22px, 4vw, 32px);
}

.blog-card h3 {
  margin-bottom: 14px;
  font-size: clamp(1.25rem, 2vw, 1.7rem);
  line-height: 1.1;
}

.text-link {
  display: inline-flex;
  margin-top: 12px;
  color: var(--blue-dark);
  font-weight: 950;
}

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

.blog-more {
  display: flex;
  justify-content: flex-end;
  margin-top: 18px;
}

.footer {
  padding: clamp(42px, 7vw, 72px) clamp(20px, 5vw, 76px) 28px;
  color: var(--muted);
  background: #101827;
  border-top: 6px solid var(--red);
}

.footer-grid {
  grid-template-columns: minmax(260px, 1.3fr) minmax(180px, 0.7fr) minmax(220px, 0.8fr);
  gap: clamp(28px, 6vw, 72px);
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  color: white;
  font-weight: 950;
}

.footer-logo img {
  width: 42px;
  height: 42px;
  border-radius: 10px;
}

.footer h2 {
  margin: 0 0 18px;
  color: white;
  font-size: 0.92rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer p,
.footer a,
.footer-list {
  color: #cbd5e1;
}

.footer-links,
.footer-list {
  display: grid;
  gap: 10px;
}

.footer-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-list li {
  position: relative;
  padding-left: 18px;
}

.footer-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.68em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--red);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: clamp(34px, 6vw, 56px);
  padding-top: 20px;
  border-top: 1px solid rgba(203, 213, 225, 0.22);
  color: #94a3b8;
  font-size: 0.92rem;
}

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

@media (max-width: 900px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .hero,
  .split,
  .skill-grid,
  .command-grid,
  .thesis-grid,
  .blog-grid,
  .blog-feature,
  .footer-grid,
  .timeline {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .blog-image {
    min-height: 260px;
    border-right: 0;
    border-bottom: 2px solid var(--ink);
  }

  .blog-more {
    justify-content: flex-start;
  }

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

@media (max-width: 560px) {
  .button {
    width: 100%;
  }

  .repo-card div:not(.repo-orbit) {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}
