/*
 * victorsaly.com — a shelf, not an exhibit.
 *
 * The projects supply the colour; this page stays quiet so they read as
 * distinct things rather than variations on one house style. Cool ink and
 * paper, one indigo accent, and a serif that says "a person" where the games
 * both use a rounded display face that says "a product".
 */

:root {
  color-scheme: light dark;

  --paper: #f4f4f2;
  --card: #ffffff;
  --ink: #16171c;
  --ink-2: #43464f;
  --muted: #75798a;
  --line: #dfdfdc;
  --line-soft: #ebebe8;
  --accent: #3b3f6b;
  --accent-hover: #2b2e50;
  --shadow: 0 1px 2px rgba(22, 23, 28, .04), 0 10px 28px -18px rgba(22, 23, 28, .3);
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #101116;
    --card: #17181f;
    --ink: #eceded;
    --ink-2: #b6b9c2;
    --muted: #868a99;
    --line: #262832;
    --line-soft: #1e2029;
    --accent: #a3a8e0;
    --accent-hover: #c0c4ef;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 10px 28px -18px rgba(0, 0, 0, .8);
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Karla, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-hover); }

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

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--card);
  color: var(--ink);
  padding: .7rem 1rem;
  border: 1px solid var(--line);
  border-radius: 0 0 6px 0;
  z-index: 10;
}
.skip:focus { left: 0; }

.page {
  max-width: 62rem;
  margin: 0 auto;
  padding: 0 clamp(1.2rem, 5vw, 2.5rem);
}

/* ---------- intro ---------- */

.intro {
  padding: clamp(4rem, 12vw, 8rem) 0 clamp(2.5rem, 6vw, 4rem);
  border-bottom: 1px solid var(--line);
}

.kicker {
  margin: 0 0 1.6rem;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}

.intro h1 {
  font-family: Fraunces, Georgia, "Times New Roman", serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-size: clamp(1.95rem, 5.2vw, 3.3rem);
  line-height: 1.14;
  letter-spacing: -.015em;
  text-wrap: balance;
  margin: 0 0 1.4rem;
  max-width: 20ch;
}

.lede {
  margin: 0;
  font-size: clamp(1.02rem, 1.9vw, 1.16rem);
  color: var(--ink-2);
  max-width: 60ch;
}

.links {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem 1.6rem;
  list-style: none;
  margin: 2.1rem 0 0;
  padding: 0;
  font-size: .92rem;
}

/* ---------- bands ---------- */

.band { padding: clamp(2.8rem, 7vw, 4.5rem) 0 0; }

.band-title {
  font-family: Karla, sans-serif;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 1.6rem;
}

.band-note {
  margin: -.9rem 0 1.6rem;
  color: var(--muted);
  font-size: .93rem;
  max-width: 58ch;
}

/* ---------- live project cards ---------- */

.cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}
@media (min-width: 760px) { .cards { grid-template-columns: 1fr 1fr; } }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1.5rem clamp(1.2rem, 3vw, 1.7rem);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: .85rem;
}

.card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .3rem .8rem;
}

.card h3, .row h3 {
  font-family: Fraunces, Georgia, serif;
  font-weight: 600;
  font-size: 1.4rem;
  line-height: 1.2;
  letter-spacing: -.01em;
  margin: 0;
}
/* A title is the link to the thing, so it has to look like one. A hairline
   in the accent reads as clickable without shouting over the serif. */
.card h3 a, .row h3 a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}
.card h3 a:hover, .row h3 a:hover {
  color: var(--accent);
  text-decoration-thickness: 2px;
}

.host {
  font-size: .78rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.card p, .row p {
  margin: 0;
  color: var(--ink-2);
  font-size: .95rem;
  max-width: 58ch;
}

.meta {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  margin: .3rem 0 0;
  padding: 0;
}
.meta li {
  font-size: .72rem;
  letter-spacing: .04em;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: .12rem .42rem;
  white-space: nowrap;
}

/* ---------- secondary rows ---------- */

.rows { list-style: none; margin: 0; padding: 0; }

.row {
  padding: 1.4rem 0;
  border-top: 1px solid var(--line-soft);
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.row:first-child { border-top: 1px solid var(--line); }
.row h3 { font-size: 1.15rem; }

/* ---------- closing note ---------- */

.note-band .prose {
  margin: 0;
  color: var(--ink-2);
  max-width: 62ch;
  font-size: 1rem;
}

/* ---------- footer ---------- */

footer {
  margin-top: clamp(3.5rem, 9vw, 6rem);
  padding: 1.6rem 0 3.5rem;
  border-top: 1px solid var(--line);
  font-size: .88rem;
  color: var(--muted);
}
footer p { margin: 0; }

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