/* Build v1.102 · 2026-10-14 */
/* ==========================================================================
   Erik Espuñes Jubero — portfolio
   Palette: #121212 ink · #EDEDED paper · #00BF63 accent
   ========================================================================== */

:root {
  --ink: #121212;
  --paper: #ededed;
  --accent: #00bf63;
  --accent-soft: #3ad98c;
  --accent-dark: #00994f; /* accent on light backgrounds */
  --text: #ededed;
  --text-dim: #c9c9c9;
  --text-mute: #a8a8a8;
  --text-faint: #7a7a7a;
  --line: #262626;
  --surface: #161616;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --maxw: 1160px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--ink);
  color: var(--text);
  font-family: Poppins, system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s ease, background-color 0.2s ease,
    border-color 0.2s ease;
}

a:hover {
  color: var(--accent-soft);
}

.mono {
  font-family: var(--mono);
}

/* --------------------------------------------------------------- scroller */

#cv-scroll {
  height: 100vh;
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  background: var(--ink);
  position: relative;
  scrollbar-width: none;
}

#cv-scroll::-webkit-scrollbar,
.cv-pane::-webkit-scrollbar,
.cv-rail::-webkit-scrollbar {
  display: none;
}

/* Section whose content scrolls inside a fixed-height viewport pane. */
.section-paned {
  height: 100vh;
  max-height: 100vh;
  flex-direction: column;
  padding: 92px 0 40px;
}

.cv-pane {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  display: flex;
  align-items: safe center;
  width: 100%;
  scrollbar-width: none;
}

.cv-pane > .wrap {
  padding-top: 24px;
  padding-bottom: 24px;
}

.scanlines {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: repeating-linear-gradient(
    0deg,
    rgba(0, 191, 99, 0.045) 0px,
    rgba(0, 191, 99, 0.045) 1px,
    transparent 1px,
    transparent 4px
  );
}

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  width: 100%;
  padding: 0 52px 0 28px;
}

.section {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  scroll-snap-align: start;
  display: flex;
  align-items: center;
  padding: 110px 0 64px;
}

.section-light {
  background: var(--paper);
  color: var(--ink);
}

/* ----------------------------------------------------------------- topbar */

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  background: rgba(18, 18, 18, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid #242424;
}

.topbar-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 14px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.brand {
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.brand:hover {
  color: var(--accent);
}

.nav-links {
  display: flex;
  gap: 24px;
  align-items: center;
  flex-wrap: wrap;
}

.nav-links a {
  color: #bdbdbd;
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
}

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

/* The Contact button is a nav link too, so it needs to out-specify the rules
   above to keep its dark-on-green text — hover included. */
.nav-links a.btn-primary,
.nav-links a.btn-primary:hover {
  color: #0b0b0b;
}

/* ------------------------------------------------------------------- dots */

.dots {
  position: fixed;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 60;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 1px solid #6a6a6a;
  background: transparent;
  display: block;
}

.dot.is-active {
  background: var(--accent);
  border-color: var(--accent);
}

/* ---------------------------------------------------------------- buttons */

.btn {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 13px 24px;
  border-radius: 2px;
}

.btn-sm {
  font-size: 11.5px;
  padding: 8px 16px;
}

.btn-primary {
  background: var(--accent);
  color: #0b0b0b;
}

.btn-primary:hover {
  background: var(--accent-soft);
  color: #0b0b0b;
}

.btn-ghost {
  border: 1px solid #3a3a3a;
  color: var(--text);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.inline-link {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* ------------------------------------------------------------------- home */

.section-home {
  flex-direction: column;
  justify-content: center;
  padding: 104px 0 70px;
  overflow: hidden;
}

.marquee {
  position: absolute;
  top: 52px;
  left: 0;
  right: 0;
  overflow: hidden;
  border-top: 1px solid #1e1e1e;
  border-bottom: 1px solid #1e1e1e;
  padding: 7px 0;
  background: #0d0d0d;
}

.marquee-track {
  display: flex;
  width: 200%;
  animation: cvmarquee 60s linear infinite;
  font-family: var(--mono);
  font-size: 10px;
  color: #4a4a4a;
  white-space: nowrap;
  letter-spacing: 0.08em;
}

.marquee-track span {
  padding-right: 24px;
}

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

.home-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.75fr);
  gap: 52px;
  align-items: center;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}

.eyebrow-rule {
  width: 36px;
  height: 2px;
  background: var(--accent);
  display: block;
}

.eyebrow-text {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.hero-title {
  margin: 0;
  font-size: clamp(34px, 5.2vw, 64px);
  line-height: 1.03;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.02em;
}

.hero-title span {
  color: var(--accent);
}

/* Boxed terminal line */

.terminal {
  margin-top: 22px;
  max-width: 520px;
  font-family: var(--mono);
  font-size: 13px;
  color: #9fe8c1;
  background: #0d0d0d;
  border: 1px solid #1f2f26;
  border-radius: 2px;
  padding: 11px 14px;
  white-space: nowrap;
  overflow: hidden;
}

.caret {
  display: inline-block;
  width: 8px;
  background: var(--accent);
  animation: cvcaret 1s steps(1) infinite;
}

@keyframes cvcaret {
  0%,
  49% {
    opacity: 1;
  }
  50%,
  100% {
    opacity: 0;
  }
}

.hero-lead {
  margin: 20px 0 0;
  max-width: 520px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-dim);
  font-weight: 300;
}

.portrait {
  position: relative;
  justify-self: center;
}

.portrait-frame {
  position: absolute;
  inset: 16px -16px -16px 16px;
  border: 1px solid var(--accent);
  border-radius: 2px;
}

.portrait img {
  position: relative;
  display: block;
  width: 100%;
  max-width: 280px;
  border-radius: 2px;
  filter: grayscale(1) contrast(1.05);
}

.scroll-hint {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-faint);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  animation: cvhint 2.2s ease-in-out infinite;
}

.scroll-hint span {
  font-size: 14px;
  line-height: 1;
}

@keyframes cvhint {
  0%,
  100% {
    transform: translateY(0);
    opacity: 0.55;
  }
  50% {
    transform: translateY(7px);
    opacity: 1;
  }
}

/* ---------------------------------------------------- shared section heads */

.split {
  display: grid;
  grid-template-columns: minmax(0, 210px) minmax(0, 1fr);
  gap: 52px;
}

.side-title {
  margin: 0;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink);
}

.side-title.light {
  color: #fff;
}

.rule {
  display: block;
  width: 44px;
  height: 3px;
  background: var(--accent);
  margin-top: 16px;
}

.side-note {
  margin: 20px 0 0;
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-mute);
  font-weight: 300;
}

.side-note.mono {
  font-size: 11px;
  line-height: 1.9;
  color: #9a9a9a;
  letter-spacing: 0.1em;
}

/* ------------------------------------------------------------------ about */

.about-lead {
  margin: 0;
  font-size: clamp(19px, 2vw, 25px);
  line-height: 1.45;
  color: var(--ink);
  font-weight: 400;
  max-width: 800px;
  text-wrap: pretty;
}

/* `*emphasis*` in CONTENT.md — accent-coloured, not italic. Light sections
   use the darker accent so it stays legible on paper. */

.accent {
  color: var(--accent);
  font-style: normal;
  font-weight: 500;
}

.section-light .accent {
  color: var(--accent-dark);
}

.body-dark {
  margin: 18px 0 0;
  font-size: 15px;
  line-height: 1.75;
  color: #3d3d3d;
  max-width: 700px;
  font-weight: 300;
}

/* Headline numbers */

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1px;
  background: #d2d2d2;
  margin-top: 30px;
  border: 1px solid #d2d2d2;
}

.stat {
  background: var(--paper);
  padding: 16px 18px;
}

.stat-num {
  font-size: 26px;
  font-weight: 700;
  color: var(--accent-dark);
  letter-spacing: -0.01em;
}

.stat-label {
  font-size: 12.5px;
  color: #3d3d3d;
  margin-top: 5px;
  line-height: 1.45;
  font-weight: 300;
}

/* Education / certifications / languages */

.about-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  margin-top: 34px;
}

.about-col-stack {
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.col-label {
  font-size: 9.5px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #5c5c5c;
  padding-bottom: 9px;
  border-bottom: 1px solid #cfcfcf;
}

.edu-list {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.edu-row {
  display: grid;
  grid-template-columns: minmax(0, 74px) minmax(0, 1fr);
  gap: 12px;
}

.edu-when {
  font-size: 11px;
  color: var(--accent-dark);
  letter-spacing: 0.04em;
  padding-top: 2px;
}

.edu-title {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink);
}

.edu-sub {
  font-size: 12.5px;
  color: #3d3d3d;
  margin-top: 2px;
  font-weight: 300;
}

.lang-list {
  margin-top: 12px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.lang {
  font-size: 13px;
  color: var(--ink);
  border: 1px solid #cfcfcf;
  padding: 5px 11px;
  border-radius: 2px;
}

.lang span {
  color: #5c5c5c;
}

/* ------------------------------------------------------------- experience */

.timeline {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.tl-item {
  display: grid;
  grid-template-columns: minmax(0, 86px) minmax(0, 1fr);
  gap: 24px;
}

.tl-when {
  font-size: 12.5px;
  color: var(--accent);
  letter-spacing: 0.08em;
  line-height: 1.9;
}

.tl-when span {
  color: #5c5c5c;
}

.tl-body {
  border-left: 1px solid #2c2c2c;
  padding-left: 26px;
}

.tl-body h3 {
  margin: 0;
  font-size: 21px;
  font-weight: 600;
  color: #fff;
}

.tl-meta {
  margin-top: 6px;
  font-size: 13.5px;
  color: #bdbdbd;
}

.tl-body > p,
.exp-body > p {
  margin: 12px 0 0;
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-dim);
  font-weight: 300;
  max-width: 680px;
}

.tl-body ul {
  margin: 14px 0 0;
  padding-left: 17px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--text-dim);
  font-size: 14px;
  line-height: 1.6;
  font-weight: 300;
}

.tl-body ul strong {
  color: #fff;
  font-weight: 600;
}

.tl-body .inline-link {
  display: inline-block;
  margin-top: 14px;
  font-size: 11px;
  letter-spacing: 0.1em;
}

/* Per-role qualifications */

.tl-body > .tags,
.exp-head .tags {
  margin-top: 10px;
}

.engagement > .tags {
  margin-top: 10px;
}

/* "Client engagements" rule */

.tl-divider {
  margin-top: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.tl-divider span:first-child {
  font-size: 9.5px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #8f8f8f;
}

.tl-divider-line {
  flex: 1;
  height: 1px;
  background: var(--line);
  display: block;
}

/* Client engagement card nested under an employer */

.engagement {
  margin-top: 14px;
  border-left: 2px solid var(--accent);
  background: var(--surface);
  padding: 16px 20px;
  border-radius: 0 2px 2px 0;
}

.engagement-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.engagement-head h4 {
  margin: 0;
  font-size: 16.5px;
  font-weight: 600;
  color: #fff;
}

.engagement-head span {
  font-size: 11px;
  color: #9a9a9a;
}

.engagement ul {
  margin: 12px 0 0;
  padding-left: 17px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--text-dim);
  font-size: 14px;
  line-height: 1.6;
  font-weight: 300;
}

.engagement ul strong {
  color: #fff;
  font-weight: 600;
}

/* Expandable entries */

.exp-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
}

.exp-head:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: 6px;
}

.exp-toggle {
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.12em;
  white-space: nowrap;
  text-transform: uppercase;
}

.exp-head:hover .exp-toggle {
  color: var(--accent-soft);
}

.exp-body[hidden] {
  display: none;
}

.tl-roles {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  column-gap: 18px;
  row-gap: 4px;
  font-size: 10.5px;
  color: #9a9a9a;
}

/* ----------------------------------------------------------- competencies */

.skill-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  align-items: stretch;
}

.skill-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 22px 22px 20px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s ease;
}

.skill-card:hover {
  border-color: #3a3a3a;
}

.skill-num {
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.18em;
}

.skill-card h3 {
  margin: 10px 0 0;
  font-size: 17px;
  font-weight: 600;
  color: #fff;
}

.skill-card p {
  margin: 8px 0 0;
  font-size: 13px;
  color: var(--text-mute);
  line-height: 1.6;
  font-weight: 300;
}

/* Tag pills — shared by the cards and the labelled rows below them. */

.tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.skill-card .tags {
  margin-top: auto;
  padding-top: 16px;
}

.tag {
  font-size: 11px;
  color: #d6d6d6;
  border: 1px solid #333;
  padding: 4px 10px;
  border-radius: 2px;
}

.tag-rows {
  margin-top: 28px;
}

.tag-row {
  display: grid;
  grid-template-columns: minmax(0, 120px) minmax(0, 1fr);
  gap: 18px;
  align-items: baseline;
  padding: 14px 0;
  border-top: 1px solid #242424;
}

.tag-row-label {
  font-size: 9.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #9a9a9a;
}

/* -------------------------------------------------------- personal projects */

.projects {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.project {
  background: var(--surface);
  padding: 22px 24px;
  border-left: 2px solid transparent;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.project:hover {
  background: #1c1c1c;
  border-left-color: var(--accent);
}

.project-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.project-num {
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.18em;
}

.project-head h3 {
  margin: 8px 0 0;
  font-size: 19px;
  font-weight: 600;
  color: #fff;
}

.project-status {
  font-size: 9.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #9a9a9a;
  border: 1px solid #2f2f2f;
  border-radius: 999px;
  padding: 4px 11px;
  white-space: nowrap;
}

.project > p {
  margin: 12px 0 0;
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-dim);
  font-weight: 300;
  max-width: 680px;
}

.project .inline-link {
  display: inline-block;
  margin-top: 12px;
  font-size: 11px;
  letter-spacing: 0.1em;
}

.project-stack {
  margin-top: 12px;
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: #8f8f8f;
}

/* ------------------------------------------------------------------ games */

.section-games {
  flex-direction: column;
  justify-content: center;
  /* .section centres its children; the rail must span the viewport instead,
     otherwise it sizes to its content and never scrolls. */
  align-items: stretch;
  padding: 104px 0 56px;
}

.games-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}

.games-head .rule {
  margin-top: 14px;
}

.games-head .side-note {
  margin-top: 16px;
  max-width: 460px;
  font-size: 13.5px;
  line-height: 1.6;
}

/* Horizontal rail of cover art */

.cv-rail {
  /* Align the rail's first card with the page gutter, and keep matching space
     after the last one. The inset lives on the track: padding on the scroll
     container itself is not honoured by a max-content flex child. */
  --rail-start: max(28px, calc((100vw - var(--maxw)) / 2 + 28px));
  --rail-end: max(52px, calc((100vw - var(--maxw)) / 2 + 52px));
  overflow-x: auto;
  padding: 2px 0 18px;
  scroll-snap-type: x proximity;
  /* Without this, snapping aligns the first card to the scrollport edge and
     eats the gutter the track's padding just created. */
  scroll-padding-left: var(--rail-start);
  scrollbar-width: none;
}

.game-track {
  display: flex;
  gap: 14px;
  width: max-content;
  align-items: stretch;
  padding-left: var(--rail-start);
  padding-right: var(--rail-end);
}

.game-card {
  flex: 0 0 232px;
  scroll-snap-align: start;
  border: 1px solid var(--line);
  border-radius: 2px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: var(--surface);
}

.game-card:hover {
  border-color: var(--accent);
}

.game-cover {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  background: #0d0d0d;
}

.game-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Corner chips over the cover art */

.game-num,
.game-year,
.game-badge {
  position: absolute;
  font-size: 10px;
  letter-spacing: 0.16em;
  padding: 4px 8px;
  border-radius: 2px;
  display: inline-block;
}

.game-num,
.game-year {
  top: 10px;
  background: rgba(10, 10, 10, 0.88);
}

.game-num {
  left: 10px;
  color: var(--accent);
}

.game-year {
  right: 10px;
  color: var(--paper);
}

.game-badge {
  bottom: 10px;
  left: 10px;
  font-size: 9.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #0b0b0b;
  background: var(--accent);
  padding: 4px 9px;
}

.game-caption {
  display: block;
  padding: 14px 15px 15px;
  border-top: 1px solid #222;
}

.game-name {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  line-height: 1.3;
}

.game-sub {
  display: block;
  font-size: 10.5px;
  color: var(--text-mute);
  margin-top: 6px;
  letter-spacing: 0.05em;
}

.game-tech {
  display: block;
  font-size: 10px;
  color: #8f8f8f;
  margin-top: 3px;
  letter-spacing: 0.05em;
}

.rail-hint {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #9a9a9a;
}

/* ---------------------------------------------------------------- contact */

.section-contact {
  flex-direction: column;
  justify-content: center;
  padding: 110px 0 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 48px;
  align-items: start;
  align-content: center;
  flex: 1;
}

.contact-title {
  margin: 0;
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 700;
  line-height: 1.1;
  color: var(--ink);
  text-wrap: balance;
}

.contact-grid .rule {
  margin-top: 22px;
}

.contact-grid .body-dark {
  margin-top: 22px;
  max-width: 420px;
}

.contact-grid .btn-primary {
  margin-top: 26px;
}

.contact-list {
  display: grid;
  gap: 1px;
  background: #d2d2d2;
  border: 1px solid #d2d2d2;
}

.contact-list a,
.contact-row {
  background: var(--paper);
  padding: 17px 20px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  color: var(--ink);
}

.contact-list a:hover {
  background: #e3e3e3;
  color: var(--ink);
}

.contact-row .contact-val {
  text-align: right;
}

.contact-key {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #5c5c5c;
}

.contact-val {
  font-size: 14px;
  font-weight: 500;
}

.footer {
  border-top: 1px solid #d2d2d2;
  padding: 20px 28px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  max-width: var(--maxw);
  margin: 0 auto;
  width: 100%;
}

.footer span {
  font-size: 11px;
  color: #5c5c5c;
}

/* Build stamp sits between the two footer lines and recedes. */
.footer-version {
  color: #8a8a8a;
  letter-spacing: 0.08em;
}

/* ------------------------------------------------------------ responsive */

@media (max-width: 900px) {
  .wrap {
    padding: 0 24px;
  }

  /* Keep the nav on one row so the fixed topbar stays a predictable height;
     overflowing links scroll sideways instead of wrapping onto a third row. */
  .nav-links {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    max-width: 100%;
  }

  .nav-links::-webkit-scrollbar {
    display: none;
  }

  .topbar-inner {
    padding: 12px 24px;
    gap: 10px;
  }

  #cv-scroll {
    scroll-snap-type: none;
  }

  .section {
    min-height: auto;
    padding: 132px 0 56px;
  }

  .section-paned {
    height: auto;
    max-height: none;
  }

  .cv-pane {
    overflow-y: visible;
    display: block;
  }

  .dots {
    display: none;
  }

  .home-grid,
  .split {
    grid-template-columns: minmax(0, 1fr);
    gap: 34px;
  }

  .portrait {
    justify-self: start;
    max-width: 240px;
  }

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

  .scroll-hint {
    display: none;
  }

  .marquee {
    display: none;
  }

  .section-home {
    padding-top: 150px;
  }
}

@media (max-width: 560px) {
  .nav-links {
    gap: 14px;
  }

  .nav-links a {
    font-size: 10.5px;
  }

  .tl-item {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  .tl-when {
    line-height: 1.4;
  }

  .tl-when br {
    display: none;
  }

  .tl-body {
    border-left: none;
    padding-left: 0;
  }

  .tag-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  .cv-rail {
    --rail-start: 24px;
    --rail-end: 24px;
  }

  .game-card {
    flex-basis: 208px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    scroll-behavior: auto !important;
  }
}

/* Shown when CONTENT.md cannot be fetched (e.g. opened over file://). */

.load-error {
  max-width: 560px;
  margin: 0 auto;
  padding: 25vh 28px 0;
  color: var(--text-dim);
  font-weight: 300;
}

.load-error h1 {
  font-size: 21px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #fff;
  margin: 0 0 14px;
}

.load-error p {
  line-height: 1.7;
  font-size: 14px;
}
