@font-face {
  font-family: "Space Grotesk";
  src: url("assets/space-grotesk.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --background: #101010;
  --surface: #191919;
  --surface-hover: #282828;
  --border: #303030;
  --control-border: #525252;
  --text: #f7f7f7;
  --muted: #b8b8b8;
  --panel-radius: 1.5rem;
  --page-width: 76rem;
  --page-gutter: clamp(1.125rem, 4vw, 3.5rem);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.5;
}

a { color: inherit; text-decoration: none; }
img { display: block; }
button { font: inherit; }
[hidden] { display: none !important; }
::selection { background: var(--text); color: var(--background); }

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

.container {
  width: min(var(--page-width), 100% - 2 * var(--page-gutter));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 2;
  top: 1rem;
  left: 1rem;
  padding: .75rem 1rem;
  transform: translateY(-200%);
  border-radius: 999px;
  background: var(--text);
  color: var(--background);
  font-weight: 700;
}

.skip-link:focus { transform: none; }

.site-header {
  border-bottom: 1px solid var(--border);
}

.header-inner, .footer-inner, .site-nav, .brand {
  display: flex;
  align-items: center;
}

.header-inner {
  min-height: 4.875rem;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  gap: .625rem;
  width: fit-content;
  font-size: 1.203rem;
  font-weight: 700;
  letter-spacing: -.055em;
  white-space: nowrap;
}

.brand img { width: 1.95rem; height: auto; }
.site-nav { gap: clamp(1.25rem, 3vw, 2.5rem); }
.nav-projects { padding-block: .625rem; color: var(--muted); font-weight: 500; }
.nav-projects:hover, .footer-links a:hover { color: var(--text); }

.button {
  display: inline-flex;
  width: fit-content;
  min-height: 2.75rem;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: .625rem 1.125rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: .9375rem;
  font-weight: 700;
  line-height: 1.25;
  transition: color .18s ease, background-color .18s ease, border-color .18s ease;
}

.button-header, .project-link { border-color: var(--control-border); }
.button-header:hover, .project-link:hover {
  border-color: #757575;
  background: var(--surface-hover);
}

.button img, .project-platform img, .footer-links img { filter: grayscale(1); }

.button-primary {
  min-height: 3.25rem;
  padding-inline: 1.375rem;
  background: var(--text);
  color: var(--background);
}

.button-primary:hover { background: #dedede; }

.hero {
  display: grid;
  grid-template-columns: 1.17fr 1fr;
  gap: clamp(1.5rem, 4vw, 3.75rem);
  align-items: center;
  padding-block: clamp(2.75rem, 6vw, 5rem);
}

.hero h1 {
  margin: 0;
  font-size: clamp(3.5rem, 6.55vw, 6.125rem);
  font-weight: 700;
  letter-spacing: -.07em;
  line-height: .98;
}

.hero h1 span { color: #c6c6c6; }

.hero-copy p {
  max-width: 39ch;
  margin: 1.5rem 0 1.8rem;
  color: var(--muted);
  font-size: clamp(1rem, 1.55vw, 1.25rem);
  line-height: 1.55;
}

.hero-art {
  display: grid;
  min-width: 0;
  aspect-ratio: 1.245;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 2rem;
  background: radial-gradient(ellipse at 50% 37%, #252525 0%, #171717 53%, #121212 100%);
  box-shadow: inset 0 1px #ffffff0a;
}

.hero-art img {
  width: 45%;
  height: auto;
  filter: drop-shadow(0 .75rem 1rem #000a);
}

.projects { scroll-margin-top: 1rem; }

.section-heading {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.3rem;
}

.section-heading::after {
  flex: 1;
  height: 1px;
  background: var(--border);
  content: "";
}

.section-heading h2, .contact h2 {
  margin: 0;
  font-size: clamp(2.25rem, 4.15vw, 3.5rem);
  line-height: 1.05;
  letter-spacing: -.065em;
}

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

.project-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--panel-radius);
  background: var(--surface);
}

.project-art {
  display: grid;
  height: clamp(10rem, 16vw, 13.75rem);
  margin: .625rem .625rem 0;
  place-items: center;
  overflow: hidden;
  border: 1px solid #343434;
  border-radius: 1rem;
  background: radial-gradient(ellipse at 50% 40%, #323232, #232323 65%, #202020);
}

.project-art img {
  width: min(74%, 13.5rem);
  height: 76%;
  min-height: 0;
  object-fit: contain;
  filter: drop-shadow(0 .65rem .85rem #0009);
  transition: transform .3s ease;
}

.project-dih .project-art img { height: 85%; }
.project-card:hover .project-art img { transform: scale(1.04); }

.project-info {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  padding: 1.25rem clamp(1rem, 2vw, 1.625rem) 1.5rem;
}

.project-platform {
  display: flex;
  align-items: center;
  gap: .45rem;
  color: var(--muted);
  font-size: .875rem;
  font-weight: 600;
}

.project-info h3 {
  margin: .55rem 0 .375rem;
  font-size: clamp(1.75rem, 2.8vw, 2.375rem);
  letter-spacing: -.065em;
  line-height: 1.08;
}

.project-info p { margin: 0 0 1.35rem; color: var(--muted); }

.project-link { margin-top: auto; }

.contact { margin-block: clamp(3.25rem, 7vw, 5.5rem); }

.contact-panel {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: clamp(1.375rem, 4vw, 3rem);
  border: 1px solid var(--border);
  border-radius: var(--panel-radius);
  background: var(--surface);
}

.contact-panel p { margin: .6rem 0 0; color: var(--muted); }
.contact-actions { display: grid; position: relative; gap: .375rem; justify-items: center; }
.username-row { display: flex; min-height: 2.75rem; align-items: center; justify-content: center; }
.username-row code { color: var(--muted); font-size: .875rem; }

.copy-button {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.copy-button:hover { background: #ffffff12; color: var(--text); }

.copy-icon { position: relative; display: block; width: 1rem; height: 1rem; }

.copy-icon::before, .copy-icon::after {
  position: absolute;
  width: .65rem;
  height: .7rem;
  border: 1px solid currentColor;
  border-radius: 2px;
  content: "";
}

.copy-icon::before { top: 0; right: 0; border-bottom-color: transparent; border-left-color: transparent; }
.copy-icon::after { bottom: 0; left: 0; }

.contact-actions .copy-status {
  position: absolute;
  top: 100%;
  width: max-content;
  max-width: 13rem;
  margin: 0;
  color: var(--text);
  font-size: .875rem;
  line-height: 1.2;
  text-align: center;
}

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

.footer-inner {
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 1.75rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem clamp(1rem, 4vw, 3rem);
  min-width: 0;
}

.footer-links a {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  gap: .6rem;
  min-width: 0;
  color: var(--muted);
  font-size: .875rem;
}

.footer-links img { flex: none; }

@media (max-width: 53rem) {
  .hero { grid-template-columns: 1fr .85fr; }
  .hero h1 { font-size: clamp(2.85rem, 7.1vw, 4.4rem); }
  .project-grid { gap: .75rem; }
  .project-info { padding-inline: 1rem; }
  .footer-inner { align-items: flex-start; flex-direction: column; gap: .75rem; }
}

@media (max-width: 40rem) {
  .hero { grid-template-columns: 1fr; gap: 2rem; }
  .hero h1 { font-size: clamp(2.65rem, 10.8vw, 4.5rem); }
  .hero-copy p { margin-block: 1.05rem 1.35rem; }
  .hero-art { aspect-ratio: 1.4; }
  .hero-art img { width: 39%; }
  .project-grid { grid-template-columns: 1fr; gap: 1rem; }
  .project-art { height: clamp(12rem, 51vw, 16rem); }
  .project-info { padding: 1.15rem 1.25rem 1.25rem; }
  .contact-panel { align-items: flex-start; flex-direction: column; padding-bottom: 2.5rem; }
  .contact-actions { justify-items: start; }
  .contact-actions .copy-status { text-align: left; }
}

@media (max-width: 27rem) {
  .nav-projects { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button, .project-art img { transition: none; }
  .project-card:hover .project-art img { transform: none; }
}
