/* SethVg.com — Seth Van Grinsven */

:root {
  --ink:        #0e0d14;
  --ink-2:      #16151f;
  --ink-3:      #1e1d2b;
  --line:       #2c2a3d;
  --text:       #e8e6f0;
  --text-dim:   #a09db5;
  --text-faint: #6f6c86;
  --gold:       #f0b429;
  --gold-soft:  #ffd66b;
  --cyan:       #5ce1e6;
  --violet:     #a78bfa;

  --mono: ui-monospace, "SF Mono", "JetBrains Mono", "Fira Code", Menlo, Consolas, monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;

  --wrap: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* Soft ambient wash behind everything */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(900px 500px at 12% -8%,  rgba(240,180,41,0.10), transparent 60%),
    radial-gradient(800px 500px at 92% 4%,   rgba(92,225,230,0.08), transparent 60%),
    radial-gradient(700px 600px at 50% 110%, rgba(167,139,250,0.07), transparent 60%);
}

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

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

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

/* ---------- Header / nav ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(14,13,20,0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

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

.brand {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text);
}
.brand:hover { text-decoration: none; color: var(--gold-soft); }
.brand .dot { color: var(--gold); }

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

.nav a {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-dim);
  padding: 7px 12px;
  border-radius: 7px;
  border: 1px solid transparent;
}
.nav a:hover { color: var(--text); background: var(--ink-3); text-decoration: none; }
.nav a[aria-current="page"] {
  color: var(--gold-soft);
  border-color: rgba(240,180,41,0.35);
  background: rgba(240,180,41,0.07);
}

/* ---------- Type ---------- */

h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 0.5em; }

h1 { font-size: clamp(2.1rem, 5.5vw, 3.2rem); letter-spacing: -0.02em; font-weight: 800; }
h2 { font-size: clamp(1.4rem, 3vw, 1.85rem); letter-spacing: -0.01em; font-weight: 700; }
h3 { font-size: 1.18rem; font-weight: 700; }

p { margin: 0 0 1.1em; }

.lede { font-size: clamp(1.02rem, 2vw, 1.2rem); color: var(--text-dim); max-width: 62ch; }

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}

.section { padding: 68px 0; border-top: 1px solid var(--line); }
.section:first-of-type { border-top: 0; }

.section-head { margin-bottom: 34px; }
.section-head p { color: var(--text-dim); max-width: 60ch; margin: 0; }

/* ---------- Hero ---------- */

.hero { padding: 84px 0 68px; }
.hero h1 { margin-bottom: 12px; }
.hero .role {
  font-family: var(--mono);
  font-size: 14px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 24px;
}

.btn-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }

.btn {
  display: inline-block;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  padding: 12px 20px;
  border-radius: 8px;
  border: 1px solid var(--line);
  color: var(--text);
  background: var(--ink-2);
  transition: border-color .15s, background .15s, transform .15s;
}
.btn:hover { text-decoration: none; border-color: var(--text-faint); background: var(--ink-3); transform: translateY(-1px); }

.btn-primary {
  background: var(--gold);
  border-color: var(--gold);
  color: #17140a;
  font-weight: 700;
}
.btn-primary:hover { background: var(--gold-soft); border-color: var(--gold-soft); }

/* ---------- Stat strip ---------- */

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  margin-top: 44px;
}
.stat { background: var(--ink-2); padding: 20px 22px; }
.stat .n {
  font-family: var(--mono);
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--gold-soft);
  line-height: 1.1;
}
.stat .n.text { font-size: 1.15rem; letter-spacing: 0.02em; padding-top: 9px; }
.stat .l {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-top: 6px;
}

/* ---------- Game cards ---------- */

.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 22px;
}

.game-card {
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color .15s, transform .15s;
}
.game-card:hover { border-color: var(--text-faint); transform: translateY(-2px); }

.game-card .shot {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #000;
  border-bottom: 1px solid var(--line);
}
.game-card .shot img { width: 100%; height: 100%; object-fit: cover; image-rendering: pixelated; }

.game-card .body { padding: 20px 22px 24px; flex: 1; display: flex; flex-direction: column; }
.game-card h3 { margin-bottom: 4px; }
.game-card .tag {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 12px;
}
.game-card p { color: var(--text-dim); font-size: 15px; margin-bottom: 16px; flex: 1; }

/* ---------- Chips ---------- */

.chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chip {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  background: var(--ink-3);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 10px;
  white-space: nowrap;
}

/* ---------- Detailed game entry (games page) ---------- */

.entry { padding: 60px 0; border-top: 1px solid var(--line); }
.entry:first-of-type { border-top: 0; padding-top: 20px; }

.entry-head { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-bottom: 6px; }
.entry-head h2 { margin: 0; }
.entry-head .kicker {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}

.entry .tagline {
  font-family: var(--mono);
  color: var(--cyan);
  font-size: 14px;
  margin-bottom: 20px;
}

.entry-cols {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 36px;
  align-items: start;
}

.entry-cols ul { margin: 0 0 1.2em; padding-left: 1.15em; color: var(--text-dim); }
.entry-cols li { margin-bottom: 8px; }
.entry-cols li strong { color: var(--text); }

/* Phone screenshots are tall portraits — cap by height, let width follow. */
.gallery { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.gallery figure { margin: 0; }
.gallery img {
  max-height: 400px;
  width: auto;
  border-radius: 10px;
  border: 1px solid var(--line);
  image-rendering: pixelated;
  background: #000;
}
/* Landscape key art: cap by width instead. */
.gallery .wide { flex: 1 1 100%; }
.gallery .wide img { max-height: none; width: 100%; max-width: 460px; margin: 0 auto; }

.meta-box {
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px 20px;
  margin-top: 18px;
}
.meta-box dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 8px 18px; }
.meta-box dt {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
  padding-top: 3px;
}
.meta-box dd { margin: 0; font-size: 15px; color: var(--text-dim); }

/* ---------- Resume ---------- */

.resume-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 28px;
  flex-wrap: wrap;
  padding: 64px 0 30px;
}
.resume-head h1 { margin-bottom: 6px; }
.resume-head .role {
  font-family: var(--mono);
  font-size: 14px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
}
.contact {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text-dim);
  text-align: right;
  line-height: 2;
}
.contact div { white-space: nowrap; }

.job { margin-bottom: 34px; }
.job:last-child { margin-bottom: 0; }
.job-head { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; align-items: baseline; }
.job-head h3 { margin: 0; }
.job-head .org { color: var(--gold-soft); font-weight: 600; }
.job-head .when {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.09em;
  color: var(--text-faint);
  white-space: nowrap;
}
.job ul { margin: 12px 0 0; padding-left: 1.15em; color: var(--text-dim); }
.job li { margin-bottom: 8px; }

.skill-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.skill-group h4 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 12px;
}

.todo {
  border: 1px dashed rgba(240,180,41,0.55);
  background: rgba(240,180,41,0.06);
  border-radius: 10px;
  padding: 16px 20px;
  color: var(--gold-soft);
  font-size: 15px;
}
.todo strong {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 6px;
}

/* ---------- Prose (privacy policies) ---------- */

.prose { max-width: 74ch; }
.prose h2 {
  font-size: 1.35rem;
  margin-top: 2.2em;
  padding-top: 1.1em;
  border-top: 1px solid var(--line);
}
.prose h2:first-of-type { margin-top: 1.4em; }
.prose h3 { font-size: 1.05rem; margin-top: 1.8em; }
.prose p, .prose li { color: var(--text-dim); }
.prose strong { color: var(--text); }
.prose ul { padding-left: 1.15em; margin: 0 0 1.2em; }
.prose li { margin-bottom: 8px; }
.prose a { word-break: break-word; }

.updated {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 26px;
}

.policy-list { display: grid; gap: 14px; margin-top: 30px; max-width: 640px; }
.policy-list a {
  display: block;
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px 22px;
  color: var(--text);
  transition: border-color .15s, transform .15s;
}
.policy-list a:hover { text-decoration: none; border-color: var(--text-faint); transform: translateY(-1px); }
.policy-list .name { font-weight: 700; font-size: 1.05rem; }
.policy-list .sub {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--text-faint);
  margin-top: 5px;
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 40px;
  padding: 34px 0 48px;
  color: var(--text-faint);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
}
.site-footer .wrap { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.site-footer a { color: var(--text-dim); }

/* ---------- Responsive ---------- */

@media (max-width: 820px) {
  .entry-cols { grid-template-columns: 1fr; gap: 26px; }
  .resume-head { padding-top: 44px; }
  .contact { text-align: left; }
}

@media (max-width: 620px) {
  /* The project entries put a tech stack in the .when slot — it must wrap on phones. */
  .job-head .when { white-space: normal; }
}

@media (max-width: 520px) {
  body { font-size: 16px; }
  .hero { padding: 56px 0 44px; }
  .section { padding: 52px 0; }
  .gallery { grid-template-columns: 1fr; }
}

/* ---------- Print (resume) ---------- */

@media print {
  body { background: #fff; color: #111; font-size: 11pt; }
  body::before { display: none; }
  .site-header, .site-footer, .btn-row, .todo { display: none !important; }
  a { color: #111; text-decoration: none; }
  .section { border-color: #ccc; padding: 18px 0; }
  .resume-head { padding: 0 0 14px; }
  .resume-head .role, .contact, .eyebrow { color: #444; }
  .job-head .org { color: #111; }
  .job ul, .job-head .when, .skill-group h4, p, .lede { color: #333; }
  .chip { border-color: #bbb; color: #333; background: transparent; }
}
