:root {
  --bg: #f5efe3;
  --text: #141414;
  --muted: #6e675b;
  --line: #d9cfbc;
  --accent: #9a62c4;
  --display: "Libre Caslon Display", "Libre Caslon Text", Georgia, serif;
  --serif: "Libre Caslon Text", Georgia, serif;
  --sans: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  --mono: "DM Mono", ui-monospace, Menlo, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }

body {
  margin: 0;
  color: var(--text);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

.wrap {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1.75rem;
}

/* small uppercase labels */
.top, .meta, .tags, .foot-links, .copy, .year, .label-row a {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 11px;
  font-weight: 500;
}

/* top bar */
.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.75rem 0 0;
}
.prompt { white-space: nowrap; font-family: var(--mono); font-weight: 400; text-transform: none; letter-spacing: 0; font-size: 13px; }
.cursor {
  display: inline-block;
  width: 0.55em; height: 1.05em;
  margin-left: 0.3em;
  vertical-align: -0.15em;
  background: var(--accent);
  animation: blink 1.1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.nav-links { display: flex; gap: 1.5rem; }
.nav-links a, .foot-links a, .label-row a { color: var(--muted); transition: color .2s; }
.nav-links a:hover, .foot-links a:hover, .label-row a:hover { color: var(--accent); }

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 2rem;
  margin-top: 2.5rem;
  color: var(--muted);
}

/* hero */
.hero {
  position: relative;
  margin-top: 0.5rem;
  padding: 5rem 0 6.5rem;
}
#hero-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 6%, #000 94%, transparent);
          mask-image: linear-gradient(to bottom, transparent, #000 6%, #000 94%, transparent);
}
.hero .wrap { position: relative; z-index: 1; }

.name {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.75rem, 15vw, 11.5rem);
  white-space: nowrap;
  line-height: 0.98;
  letter-spacing: -0.02em;
  margin: 0;
}
.name em {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.92em;
  color: var(--accent);
  letter-spacing: -0.035em;
  display: inline-block;
  margin-left: 0.04em;
}

/* glow that follows the mouse across the whole page (sits behind the content) */
.mouse-glow {
  position: fixed;
  left: 0; top: 0;
  width: 640px; height: 640px;
  margin: -320px 0 0 -320px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(154, 98, 196, 0.22), rgba(154, 98, 196, 0.07) 55%, transparent);
  pointer-events: none;
  z-index: -1;
  opacity: 0;
  transition: opacity .6s;
  will-change: transform;
}
.mouse-glow.on { opacity: 1; }
@media (hover: none), (prefers-reduced-motion: reduce) {
  .mouse-glow { display: none; }
}

.tags { margin: 2.25rem 0 0; }
.tags i { font-style: normal; color: var(--accent); margin: 0 0.5rem; }

/* intro */
.intro {
  position: relative;
  font-family: var(--serif);
  font-size: clamp(1.2rem, 2.4vw, 1.45rem);
  line-height: 1.45;
  max-width: 34rem;
  margin: 0.5rem 0 0;
}

/* sections */
section { margin-top: 5.5rem; }

.label-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--text);
}
.label-row h2 {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 1.35rem;
  color: var(--accent);
  margin: 0;
}

.row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: baseline;
  gap: 1.25rem;
  padding: 1.3rem 0;
  border-bottom: 1px solid var(--line);
}
.row .title {
  font-family: var(--serif);
  font-size: 1.35rem;
  line-height: 1.25;
}
.row .desc { color: var(--muted); font-size: 14px; }
.row .year { color: var(--muted); }

a.row .title { transition: color .2s; }
a.row:hover .title { color: var(--accent); }
a.row:hover .title::after { content: " ↗"; font-size: 0.7em; }

/* footer */
footer.wrap {
  margin-top: 7rem;
  padding-bottom: 3rem;
}
footer .foot-links {
  display: flex;
  gap: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}
.copy { color: #a59d8e; margin: 1.5rem 0 0; text-align: right; }

/* small screens */
@media (max-width: 640px) {
  .nav-links { gap: 0.9rem; }
  .top { letter-spacing: 0.08em; }
  .row { grid-template-columns: 1fr auto; gap: 0.25rem 1rem; }
  .row .desc { grid-column: 1 / -1; grid-row: 2; }
  .copy { text-align: left; }
}

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