:root {
  --background: #10110f;
  --surface: #191b18;
  --surface-soft: #242620;
  --text: #f2f0e8;
  --muted: #a7aaa0;
  --border: #34372f;
  --acid: #d9ff5a;
  --blue: #748cff;
  --green: #1d4c3e;
  --green-dark: #12362c;
  --orange: #ff7a45;
  --radius: 16px;
  --shadow: 0 18px 44px rgba(0, 0, 0, 0.24);
  --container: 1080px;
  --page-padding: clamp(18px, 4vw, 44px);
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  max-width: 100%;
  scroll-behavior: smooth;
}

body {
  background: var(--background);
  color: var(--text);
  margin: 0;
  max-width: 100%;
  min-width: 320px;
  overflow-x: hidden;
  overflow-wrap: break-word;
}

@supports (overflow: clip) {
  body {
    overflow-x: clip;
  }
}

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

.container {
  margin-inline: auto;
  max-width: calc(var(--container) + (var(--page-padding) * 2));
  padding-inline: var(--page-padding);
  width: 100%;
}

.skip-link {
  background: var(--acid);
  border-radius: 8px;
  color: #10110f;
  font-weight: 700;
  left: 16px;
  padding: 11px 14px;
  position: fixed;
  top: -80px;
  z-index: 100;
}

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

.site-header {
  background: rgba(16, 17, 15, 0.9);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 20;
}

@supports (backdrop-filter: blur(12px)) {
  .site-header {
    backdrop-filter: blur(12px);
  }
}

.header-inner {
  align-items: center;
  display: flex;
  justify-content: space-between;
  min-height: 64px;
}

.brand {
  align-items: center;
  display: inline-flex;
  font-size: 0.9rem;
  font-weight: 750;
  gap: 9px;
  min-height: 42px;
}

.brand-mark {
  align-items: center;
  background: var(--acid);
  border-radius: 8px;
  color: #10110f;
  display: inline-flex;
  font-size: 0.76rem;
  height: 32px;
  justify-content: center;
  width: 32px;
}

.main-nav {
  align-items: center;
  display: flex;
  gap: clamp(4px, 1.5vw, 20px);
}

.main-nav a {
  align-items: center;
  border-radius: 7px;
  color: var(--muted);
  display: inline-flex;
  font-size: 0.8rem;
  font-weight: 650;
  min-height: 42px;
  padding-inline: 8px;
}

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

.main-nav .nav-github {
  border: 1px solid var(--border);
  color: var(--text);
  gap: 7px;
  padding-inline: 12px;
}

.hero {
  display: grid;
  gap: clamp(28px, 5vw, 64px);
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
  overflow: clip;
  padding-block: clamp(52px, 6vw, 72px) 34px;
}

.hero > * {
  min-width: 0;
}

.hero-copy {
  align-self: center;
  min-width: 0;
}

.section-label {
  align-items: center;
  color: var(--muted);
  display: flex;
  font-size: 0.68rem;
  font-weight: 750;
  gap: 10px;
  letter-spacing: 0.1em;
  margin: 0 0 18px;
  text-transform: uppercase;
}

.hero h1 {
  font-size: clamp(4rem, 8vw, 8rem);
  font-weight: 620;
  letter-spacing: -0.075em;
  line-height: 0.82;
  margin: 0;
  max-width: 10ch;
}

.hero h1 em {
  color: var(--acid);
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: -0.06em;
  padding-left: 0.3em;
}

.hero-intro {
  color: var(--muted);
  font-size: clamp(0.96rem, 1.5vw, 1.08rem);
  line-height: 1.65;
  margin: clamp(28px, 4vw, 42px) 0 22px;
  max-width: 590px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.hero-button {
  align-items: center;
  border: 1px solid transparent;
  border-radius: 8px;
  display: inline-flex;
  font-size: 0.74rem;
  font-weight: 750;
  gap: 15px;
  justify-content: center;
  min-height: 42px;
  padding-inline: 14px;
}

.hero-button-primary {
  background: var(--acid);
  color: #10110f;
}

.hero-button-quiet {
  border-color: var(--border);
  color: var(--muted);
}

.hero-object {
  align-self: center;
  height: clamp(360px, 40vw, 500px);
  max-width: 100%;
  min-width: 0;
  position: relative;
}

.orbit {
  border: 1px solid rgba(217, 255, 90, 0.22);
  border-radius: 50%;
  inset: 5% 0 0 8%;
  position: absolute;
}

.orbit-one {
  animation: rotate 24s linear infinite;
}

.orbit-one::after,
.orbit-two::after {
  background: var(--acid);
  border-radius: 50%;
  content: "";
  height: 9px;
  left: 48%;
  position: absolute;
  top: -5px;
  width: 9px;
}

.orbit-two {
  inset: 17% 12% 10% 20%;
  transform: rotate(30deg);
}

.orbit-two::after {
  background: var(--blue);
}

.object-card {
  border-radius: 14px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: absolute;
}

.object-card-back {
  background: var(--blue);
  color: #10110f;
  height: 51%;
  padding: 18px;
  right: 4%;
  top: 13%;
  transform: rotate(12deg);
  width: 38%;
}

.object-card-back strong {
  font-size: clamp(3rem, 6vw, 5.2rem);
  letter-spacing: -0.1em;
  line-height: 0.8;
}

.object-card-front {
  background: var(--text);
  color: #10110f;
  height: 58%;
  left: 10%;
  padding: 20px;
  top: 25%;
  transform: rotate(-8deg);
  width: 46%;
}

.object-card-front strong {
  color: var(--orange);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(5rem, 9vw, 8rem);
  font-weight: 500;
  line-height: 0.5;
}

.object-card span,
.object-card small {
  font-size: 0.6rem;
  font-weight: 750;
  letter-spacing: 0.08em;
}

.object-sticker {
  align-items: center;
  background: var(--orange);
  border-radius: 50%;
  bottom: 9%;
  color: #10110f;
  display: flex;
  font-size: clamp(0.9rem, 2vw, 1.25rem);
  font-weight: 800;
  height: 23%;
  justify-content: center;
  line-height: 0.9;
  position: absolute;
  right: 10%;
  text-align: center;
  transform: rotate(9deg);
  width: 23%;
}

.hero-meta {
  border-top: 1px solid var(--border);
  display: flex;
  gap: clamp(32px, 7vw, 88px);
  grid-column: 1 / -1;
  padding-top: 20px;
}

.hero-meta div {
  display: grid;
  gap: 5px;
}

.hero-meta span {
  color: var(--muted);
  font-size: 0.58rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-meta strong {
  font-size: 0.75rem;
}

.projects {
  padding-bottom: clamp(70px, 9vw, 106px);
  scroll-margin-top: 86px;
}

.section-heading {
  align-items: end;
  border-top: 1px solid var(--border);
  display: grid;
  gap: 32px;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 0.55fr);
  margin-bottom: clamp(28px, 4vw, 42px);
  padding-top: 22px;
}

.section-heading .section-label {
  margin-bottom: 9px;
}

.section-heading h2 {
  font-size: clamp(1.9rem, 3.2vw, 2.7rem);
  font-weight: 680;
  letter-spacing: -0.048em;
  line-height: 1;
  margin: 0;
}

.section-heading > p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.65;
  margin: 0;
  max-width: 430px;
}

.project-list {
  display: grid;
  gap: clamp(18px, 2.5vw, 26px);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
}

.project-visual {
  height: clamp(255px, 30vw, 320px);
  overflow: hidden;
  padding: clamp(18px, 2.5vw, 26px);
  position: relative;
}

.visual-label {
  font-size: 0.65rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  position: relative;
  text-transform: uppercase;
  z-index: 2;
}

.poker-visual {
  background: var(--green);
  color: #dff5ea;
}

.poker-table {
  background: var(--green-dark);
  border: 9px solid #d1b682;
  border-radius: 48%;
  bottom: 8%;
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.1), var(--shadow);
  left: 8%;
  position: absolute;
  right: 8%;
  top: 17%;
  transform: rotate(-3deg);
}

.playing-card {
  background: #fffefa;
  border-radius: 8px;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.22);
  color: #171916;
  display: flex;
  flex-direction: column;
  height: clamp(132px, 15vw, 170px);
  justify-content: space-between;
  padding: 10px;
  position: absolute;
  top: 20%;
  width: clamp(88px, 10vw, 114px);
}

.playing-card b {
  font-size: clamp(1.35rem, 2vw, 1.8rem);
}

.playing-card span {
  align-self: center;
  font-size: clamp(2.7rem, 4.5vw, 4rem);
}

.card-one {
  left: 24%;
  transform: rotate(-9deg);
}

.card-two {
  color: #c84444;
  left: 49%;
  transform: rotate(7deg);
}

.poker-chip {
  align-items: center;
  background: #db554e;
  border: 5px dashed white;
  border-radius: 50%;
  bottom: 10%;
  color: white;
  display: flex;
  font-size: 0.62rem;
  font-weight: 800;
  height: 56px;
  justify-content: center;
  left: 10%;
  position: absolute;
  transform: rotate(10deg);
  width: 56px;
}

.tracker-visual {
  background: var(--orange);
  color: #351a10;
}

.tracker-panel {
  background: #f9f7f0;
  border: 1px solid rgba(53, 26, 16, 0.18);
  border-radius: 12px;
  bottom: 8%;
  box-shadow: var(--shadow);
  color: #26241f;
  display: flex;
  flex-direction: column;
  left: 8%;
  padding: clamp(15px, 2vw, 22px);
  position: absolute;
  right: 8%;
  top: 17%;
}

.tracker-head,
.tracker-footer {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.tracker-head span,
.tracker-footer {
  color: #6c6961;
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
}

.tracker-head strong {
  color: #d75525;
  font-size: clamp(1.5rem, 3vw, 2.3rem);
  letter-spacing: -0.05em;
}

.chart {
  align-items: end;
  border-bottom: 1px solid #d7d4cb;
  display: flex;
  flex: 1;
  gap: clamp(6px, 1.3vw, 13px);
  justify-content: center;
  margin-block: 15px;
  min-height: 100px;
}

.chart i {
  background: #df6538;
  border-radius: 5px 5px 0 0;
  height: var(--bar);
  max-width: 30px;
  opacity: 0.44;
  width: 11%;
}

.chart i:nth-last-child(-n + 2) {
  opacity: 1;
}

.project-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 19px;
  justify-content: space-between;
  padding: clamp(22px, 3vw, 30px);
}

.project-meta {
  color: var(--muted);
  display: flex;
  font-size: 0.63rem;
  font-weight: 750;
  justify-content: space-between;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.status {
  align-items: center;
  display: inline-flex;
  gap: 6px;
}

.status i {
  background: #5ee6b3;
  border-radius: 50%;
  height: 6px;
  width: 6px;
}

.project-kicker {
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 750;
  letter-spacing: 0.06em;
  margin: 0 0 10px;
  text-transform: uppercase;
}

.project-content h3 {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 680;
  letter-spacing: -0.055em;
  line-height: 0.98;
  margin: 0;
}

.project-description {
  color: var(--muted);
  font-size: 0.87rem;
  line-height: 1.65;
  margin: 14px 0 0;
  max-width: 500px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.tags li {
  background: var(--surface-soft);
  border-radius: 999px;
  color: #d5d7ce;
  font-size: 0.61rem;
  font-weight: 700;
  padding: 6px 9px;
}

.project-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.button {
  align-items: center;
  border: 1px solid transparent;
  border-radius: 8px;
  display: inline-flex;
  font-size: 0.72rem;
  font-weight: 750;
  gap: 11px;
  justify-content: center;
  min-height: 40px;
  padding-inline: 12px;
}

.button-dark {
  background: var(--acid);
  color: #10110f;
}

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

.site-footer {
  border-top: 1px solid var(--border);
}

.footer-inner {
  align-items: center;
  color: var(--muted);
  display: grid;
  font-size: 0.7rem;
  gap: 22px;
  grid-template-columns: 1fr auto 1fr;
  min-height: 96px;
}

.footer-inner p {
  margin: 0;
}

.footer-inner p:last-child {
  justify-self: end;
}

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

@media (hover: hover) {
  .hero-button,
  .button,
  .main-nav a,
  .brand {
    transition: color 150ms ease, background-color 150ms ease, border-color 150ms ease;
  }

  .hero-button-primary:hover,
  .button-dark:hover {
    background: #eefdb4;
  }

  .button-secondary:hover,
  .hero-button-quiet:hover,
  .main-nav .nav-github:hover {
    background: var(--surface-soft);
    border-color: #64685b;
  }

  .project-card:hover {
    box-shadow: var(--shadow);
  }
}

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

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

  .hero-object {
    height: 430px;
    justify-self: center;
    max-width: 500px;
    width: min(82vw, 500px);
  }

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

  .project-card {
    display: grid;
    grid-template-columns: minmax(280px, 0.85fr) minmax(0, 1.15fr);
  }

  .project-card-reverse .project-visual {
    grid-column: 2;
    grid-row: 1;
  }

  .project-card-reverse .project-content {
    grid-column: 1;
    grid-row: 1;
  }

  .project-visual {
    height: auto;
    min-height: 390px;
  }
}

@media (max-width: 680px) {
  .main-nav {
    gap: 2px;
  }

  .main-nav a {
    font-size: 0.75rem;
    padding-inline: 7px;
  }

  .main-nav .nav-github {
    border: 0;
    padding-inline: 7px;
  }

  .hero {
    padding-block: 42px 28px;
  }

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

  .section-heading {
    align-items: start;
    grid-template-columns: 1fr;
  }

  .hero-object {
    height: 360px;
    width: min(100%, 430px);
  }

  .hero-meta {
    gap: 24px;
  }

  .project-card,
  .project-card-reverse {
    display: flex;
    flex-direction: column;
  }

  .project-visual {
    height: 320px;
    min-height: 320px;
  }

  .project-content {
    padding: 22px 19px;
  }

  .footer-inner {
    grid-template-columns: 1fr auto;
    min-height: 86px;
  }

  .footer-inner > p:first-of-type {
    display: none;
  }
}

@media (max-width: 420px) {
  .brand > span:last-child {
    display: none;
  }

  .hero h1 {
    font-size: clamp(3.2rem, 15vw, 4.3rem);
  }

  .hero h1 em {
    padding-left: 0;
  }

  .hero-object {
    height: 310px;
  }

  .hero-meta {
    align-items: start;
    flex-direction: column;
    gap: 14px;
  }

  .project-visual {
    height: 286px;
    min-height: 286px;
  }

  .playing-card {
    height: 120px;
    width: 80px;
  }

  .card-one {
    left: 17%;
  }

  .card-two {
    left: 48%;
  }

  .poker-chip {
    height: 48px;
    width: 48px;
  }

  .tracker-panel {
    left: 6%;
    right: 6%;
  }

  .chart {
    min-height: 90px;
  }

  .project-actions {
    align-items: stretch;
    display: grid;
    grid-template-columns: 1fr;
  }

  .button {
    width: 100%;
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

@keyframes rotate {
  to {
    transform: rotate(360deg);
  }
}
