@font-face {
  font-family: "Sora";
  src: url("/assets/fonts/sora-latin-wght.woff2") format("woff2");
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #090d18;
  --ink-2: #141c30;
  --glass: #1e2840;
  --line: rgba(255, 255, 255, 0.09);
  --text: #f2f5fa;
  --muted: #a0aabe;
  --gold: #d6a650;
  --gold-soft: rgba(214, 166, 80, 0.14);
  --radius: 14px;
  --font-display: "Sora", ui-sans-serif, system-ui, sans-serif;
  --font-body: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(16px, 5vw, 40px);
  color-scheme: dark;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(1200px 600px at 10% -10%, var(--ink-2), transparent 70%),
    var(--ink);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: var(--gold);
  text-underline-offset: 3px;
}

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

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  width: 100%;
  max-width: 1080px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -48px;
  padding: 8px 14px;
  background: var(--gold);
  color: var(--ink);
  border-radius: 8px;
  font-weight: 600;
  z-index: 10;
}

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

/* Header */

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

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding-block: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
}

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

.nav-list a {
  color: var(--muted);
  font-size: 0.95rem;
  text-decoration: none;
}

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

/* Hero */

.hero {
  padding-block: clamp(64px, 12vw, 128px) clamp(48px, 8vw, 88px);
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

h1 {
  max-width: 14ch;
  margin: 0;
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  font-weight: 700;
}

.accent {
  color: var(--gold);
}

.lede {
  max-width: 60ch;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(1.0625rem, 2.2vw, 1.25rem);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.button-primary {
  background: var(--gold);
  color: var(--ink);
}

.button-primary:hover {
  background: var(--text);
  color: var(--ink);
}

.button-ghost {
  border: 1px solid var(--line);
  color: var(--text);
}

.button-ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* Trace line: a pulse travelling through the system */

.trace {
  position: relative;
  height: 14px;
  margin-top: clamp(48px, 8vw, 80px);
}

.trace-line {
  position: absolute;
  inset: 6px 0 auto;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold) 12%, var(--gold) 88%, transparent);
  opacity: 0.55;
}

.trace-pulse {
  position: absolute;
  top: 0;
  left: 0;
  width: 14px;
  height: 14px;
  border: 3px solid var(--gold);
  border-radius: 50%;
  background: var(--ink);
  animation: trace 6s cubic-bezier(0.45, 0, 0.55, 1) infinite;
}

@keyframes trace {
  from {
    left: 0;
  }
  to {
    left: calc(100% - 14px);
  }
}

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

  .trace-pulse {
    left: calc(50% - 7px);
    animation: none;
  }
}

/* Sections */

.section {
  padding-block: clamp(40px, 7vw, 72px);
  border-top: 1px solid var(--line);
}

.section-title {
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.project {
  padding: clamp(22px, 4vw, 36px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015));
}

.project-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
}

.project h3 {
  margin: 0;
  font-size: 1.75rem;
}

.project p {
  max-width: 65ch;
  margin: 14px 0 0;
  color: var(--muted);
}

.badge {
  padding: 3px 10px;
  border: 1px solid rgba(214, 166, 80, 0.4);
  border-radius: 999px;
  background: var(--gold-soft);
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 600;
}

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

.tags li {
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--glass);
  color: var(--text);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.8rem;
}

.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  margin-top: 24px;
}

.link-arrow {
  display: inline-block;
  font-weight: 600;
  text-decoration: none;
}

.link-arrow span {
  display: inline-block;
  transition: transform 0.15s ease;
}

.link-arrow:hover span {
  transform: translateX(4px);
}

.principles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.principles li {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  border-top: 2px solid var(--gold);
}

.principles h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
}

.principles p {
  margin: 0;
  color: var(--muted);
  font-size: 0.975rem;
}

.about {
  max-width: 68ch;
}

.about p {
  margin: 0 0 16px;
  color: var(--muted);
}

.about strong,
.about em {
  color: var(--text);
}

.contact-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.contact-list li {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  overflow-wrap: anywhere;
}

.contact-label {
  min-width: 88px;
  color: var(--muted);
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding-block: 28px;
}

.footer-inner p {
  margin: 0;
}

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

.footer-links a {
  color: var(--muted);
}

.footer-links a:hover {
  color: var(--text);
}

/* 404 */

.not-found {
  padding-block: clamp(80px, 16vw, 160px);
}

.not-found h1 {
  max-width: none;
}
