/* ---------- reset & base ---------- */
* { box-sizing: border-box; }
html, body {
  margin: 0;
  background: #fff;
  color: #0A0A0A;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* scrolling up past the top zooms the hero's spiral in on the shell (see
   js/main.js) — scroll is pinned at 0 for the duration so the zoom has
   sole control of the wheel/touch input rather than fighting page scroll */
body.zoom-locked { overflow: hidden; height: 100%; cursor: ns-resize; touch-action: none; overscroll-behavior: none; }

/* ---------- hero: name typed over the static spiral ---------- */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  text-align: center;
}

/* Spans the hero and centres the name/prompt above the spiral; fades out
   as js/main.js zooms in so it doesn't overlap the shell reveal. */
.hero-copy {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.typed-line { margin: 0; display: flex; align-items: baseline; justify-content: center; }
.name-line {
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-size: clamp(2.75rem, 9vw, 5.5rem);
  font-weight: 400;
  letter-spacing: -0.01em;
}

.caret {
  display: inline-block;
  width: 2px;
  margin-left: 2px;
  align-self: stretch;
  background: currentColor;
  animation: blink 1s step-end infinite;
}
.caret.done { animation: none; opacity: 0; }

@keyframes blink { 50% { opacity: 0; } }

.scroll-hint {
  position: absolute;
  left: 50%;
  translate: -50% 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .4rem;
  background: none;
  border: 0;
  font: inherit;
  color: #0A0A0A;
  cursor: pointer;
  opacity: 0;
  transition: opacity .5s ease, transform .5s ease;
  pointer-events: none;
}
.scroll-hint--down { bottom: 8vh; transform: translateY(-6px); }
.scroll-hint--up { top: 8vh; transform: translateY(6px); }
.scroll-hint.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }

/* lowercase, monospace — reads like a terminal prompt */
.scroll-hint-label {
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;
  font-size: .8rem;
  letter-spacing: .02em;
  color: #333;
}
.scroll-hint-label::before { content: "> "; color: #E10600; }
.scroll-hint-label::after {
  content: "";
  display: inline-block;
  width: .5em;
  height: 1em;
  margin-left: .15em;
  vertical-align: -2px;
  background: currentColor;
  animation: blink 1s step-end infinite;
}

.chevron { width: 22px; height: 22px; animation: bob 1.6s ease-in-out infinite; }
.chevron-up { animation-name: bobUp; }

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}
@keyframes bobUp {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@media (prefers-reduced-motion: reduce) {
  .caret { animation: none; }
  .chevron { animation: none; }
  .scroll-hint-label::after { animation: none; }
}

/* ---------- work (standard document flow) ---------- */
.work-section {
  position: relative;
  max-width: 640px;
  margin: 0 auto;
  padding: 7rem 1.5rem 8rem;
  text-align: left;
  line-height: 1.6;
}

.work-greeting {
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-size: clamp(1.75rem, 4.5vw, 2.5rem);
  font-weight: 400;
  margin: 0 0 1rem;
}
.work-intro { margin-bottom: 5rem; }
.work-intro p:not(.work-greeting) { margin: 0 0 .4rem; color: #333; }

.work-block { margin-bottom: 4.5rem; }
.work-block:last-child { margin-bottom: 0; }

/* section labels read like the hero's terminal prompts */
.work-block-title {
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;
  font-size: .8rem;
  font-weight: 400;
  letter-spacing: .02em;
  color: #333;
  margin: 0 0 1.75rem;
}
.work-block-title::before { content: "> "; color: #E10600; }

.entry { margin-bottom: 2.25rem; }
.entry:last-child { margin-bottom: 0; }

.entry-title {
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-size: 1.6rem;
  font-weight: 300;
  line-height: 1.35;
  margin: 0 0 .5rem;
}
.entry-meta {
  font-size: 1rem;
  color: #888;
  margin: 0 0 0rem;
}

.entry a.entry-title-link {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: #E10600;
}
.entry a.entry-title-link:hover {
  font-style: italic;
  color: #fff;
  background-color: #E10600;
}
.entry a.entry-title-link--findash:hover { background-color: #26A650; }
.entry a.entry-title-link--spectator:hover { background-color: #7FB4F0; }
.entry a.entry-title-link--candogram:hover { background-color: #CB2027; }
.entry a.entry-title-link--livecode:hover { background-color: #FF0099; }
.entry a.entry-title-link--forg:hover { background-color: #01167A; }
.entry a.entry-title-link--devfest:hover { background-color: #484BE6; }
.entry a.entry-title-link--anote:hover { background-color: #111827; }
.entry a.entry-title-link--scope:hover,
.entry a.entry-title-link--lgbtq:hover,
.entry a.entry-title-link--commencement:hover {
  color: #000;
}
.entry a.entry-title-link--scope:hover { background-color: #9FB9CF; }
.entry a.entry-title-link--lgbtq:hover { background-color: #DFCAF0; }
.entry a.entry-title-link--commencement:hover { background-color: #D3F6FF; }
.entry a.entry-title-link--erc:hover { background-color: #002F6C; }
.entry p:not(.entry-meta) { margin: 0 0 .6rem; color: #333; }
.entry p:last-child { margin-bottom: 0; }

.entry ul {
  margin: 0;
  padding: 0;
  list-style: none;
  color: #333;
}
.entry li {
  position: relative;
  padding-left: 1.1em;
  margin-bottom: .5rem;
}
.entry li:last-child { margin-bottom: 0; }
.entry li::before { content: "▪"; position: absolute; left: 0; color: #E10600; }

.entry a { color: inherit; text-decoration-color: #E10600; text-underline-offset: 2px; }
.entry a:hover { text-decoration-color: currentColor; }
