/* 
  Christopher G. - Portfolio 2026
*/

/* Tokens */
:root {
  --bg: #000000;
  --bg-raise: #0a0a0a;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-2: rgba(255, 255, 255, 0.07);

  --text: #ffffff;
  --text-dim: rgba(255, 255, 255, 0.56);
  --text-faint: rgba(255, 255, 255, 0.38);

  --line: rgba(255, 255, 255, 0.13);
  --line-soft: rgba(255, 255, 255, 0.08);

  --accent: #3f5f92;
  --accent-soft: rgba(63, 95, 146, 0.16);
  --accent-bright: #7fa0d1;

  --font:
    "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --gutter: clamp(1.25rem, 4vw, 4rem);
  --wrap: 1440px;
  --nav-h: 64px;
  --radius: 0px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-weight: 300;
  font-size: 0.9375rem;
  line-height: 1.6;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1,
h2,
h3,
p,
figure,
blockquote {
  margin: 0;
}
ul,
ol,
dl,
dd {
  margin: 0;
  padding: 0;
  list-style: none;
}
img,
video {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
}

::selection {
  background: var(--accent);
  color: #fff;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 9px;
  height: 9px;
}
::-webkit-scrollbar-track {
  background: #000;
}
::-webkit-scrollbar-thumb {
  background: #1e1e1e;
}
::-webkit-scrollbar-thumb:hover {
  background: #2c2c2c;
}

/* Shared primitives */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.heading {
  font-size: clamp(1.35rem, 2.7vw, 2.15rem);
  font-weight: 200;
  line-height: 1.25;
  letter-spacing: -0.015em;
  max-width: 42ch;
  margin-top: 2.2rem;
  text-wrap: balance;
}
.heading--lg {
  font-size: clamp(1.6rem, 3.4vw, 2.8rem);
  max-width: 34ch;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.72rem 1.15rem;
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  background: var(--surface);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  transition:
    background 0.35s var(--ease),
    border-color 0.35s var(--ease),
    transform 0.35s var(--ease);
  white-space: nowrap;
}
.btn:hover {
  background: var(--surface-2);
  border-color: rgba(255, 255, 255, 0.3);
}
.btn--solid:hover {
  background: #fff;
}
.btn--ghost .dot {
  transition: transform 0.35s var(--ease);
}
.btn--ghost:hover .dot {
  transform: scale(1.4);
}

/* Arrows (↗ / ↓) drawn with borders, right-angle friendly */
.arrow {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-top: 1.25px solid currentColor;
  border-right: 1.25px solid currentColor;
  flex: none;
}
.arrow--up-right {
  transform: rotate(45deg);
  transition: transform 0.4s var(--ease);
}
.arrow--down,
.arrow--up {
  width: 7px;
  height: 7px;
}
n overlay */

/* Skip link */
.skip-link:focus {
  top: 1rem;
}

/*------------------------------------------------------
   HERO
   */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  isolation: isolate;
}

.hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding: 0 var(--gutter) clamp(2.5rem, 6vh, 5rem);
}

.row-list {
  display: flex;
  flex-direction: column;
}
.row-list li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 0.875rem;
}
.row-list li:last-child {
  border-bottom: 0;
}

@keyframes marquee-left {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}
@keyframes marquee-right {
  from {
    transform: translateX(-50%);
  }
  to {
    transform: translateX(0);
  }
}

/* Connect */
.link-inline {
  display: inline-flex;
  align-items: baseline;
  gap: 0.4rem;
  color: var(--accent-bright);
  border-bottom: 1px solid currentColor;
  transition: color 0.3s var(--ease);
}
.link-inline:hover {
  color: #b7cbe8;
}
.link-inline .arrow {
  border-width: 1.5px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
