:root {
  --bg: #121f24;
  --surface: #1b2d33;
  --text: #dce5e7;
  --muted: #8da0a4;
  --accent: #e06a63;
  --line: #2a3f47;
  --display: "Bahnschrift", "Archivo Black", "Arial Narrow", "Helvetica Neue", sans-serif;
  --mono: "Cascadia Code", ui-monospace, "Consolas", "SF Mono", Menlo, monospace;
  --serif: "Charter", "Bitstream Charter", "Sitka Text", Cambria, Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }
img { max-width: 100%; }

html { background: var(--bg); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--serif);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, figure, ul { margin: 0; }
::selection { background: var(--accent); color: var(--bg); }

a { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--text); }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

.wrap { max-width: 46rem; margin: 0 auto; padding: 0 1.5rem; }

.hero {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  z-index: 0;
  overflow: hidden;
}
.hero img.bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 47% 44%; /* keeps me in frame when the sides get cropped */
}
@media (max-aspect-ratio: 4/5) {
  .hero img.bg { object-position: 47% 50%; }
}
.hero .scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(9,17,20,.88), rgba(9,17,20,.35) 34%, transparent 60%),
    linear-gradient(to bottom, rgba(9,17,20,.55), transparent 22%);
}
.hero .inner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(1.25rem, 3vw, 2.5rem);
}
.hero-top {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: .75rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(220,229,231,.85);
}
.hero-top .loc { color: var(--accent); }
.hero-name { display: flex; flex-direction: column; gap: 1.1rem; }
.hero h1 {
  font-family: var(--display);
  font-stretch: condensed;
  font-weight: 800;
  font-size: clamp(4.2rem, 16.5vw, 12.5rem);
  line-height: .86;
  letter-spacing: -.015em;
  text-transform: uppercase;
  text-shadow: 0 2px 30px rgba(0,0,0,.45);
}
h1 .last { color: var(--accent); }
.hero-tag {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-family: var(--mono);
  font-size: clamp(.7rem, 1.6vw, .85rem);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(220,229,231,.9);
}
.hero-tag::before { content: ""; width: 3.5rem; height: 2px; background: var(--accent); }
.scroll-cue {
  position: absolute;
  right: clamp(1.25rem, 3vw, 2.5rem);
  bottom: clamp(1.25rem, 3vw, 2.5rem);
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(220,229,231,.7);
  writing-mode: vertical-rl;
  animation: cue 2.4s ease-in-out infinite;
}
@keyframes cue { 50% { transform: translateY(.5rem); } }

main { position: relative; z-index: 1; background: var(--bg); }
.hero + main {
  box-shadow: 0 -40px 90px rgba(0,0,0,.65);
  border-top: 2px solid var(--accent);
}

/* subpage header (notes etc.) */
.page-head { border-bottom: 1px solid var(--line); }
.page-head .wrap { padding-top: 2.5rem; padding-bottom: 3rem; display: flex; flex-direction: column; gap: 2.2rem; }
.page-head .notes-intro { margin: 0; }
.back {
  align-self: flex-start;
  font-family: var(--mono);
  font-size: .75rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--muted);
}
.back:hover { color: var(--text); }
.page-title {
  font-family: var(--display);
  font-stretch: condensed;
  font-weight: 800;
  font-size: clamp(3.2rem, 11vw, 7rem);
  line-height: .9;
  letter-spacing: -.015em;
  text-transform: uppercase;
}

section { border-bottom: 1px solid var(--line); }
section .wrap { padding-top: 4rem; padding-bottom: 4rem; }

.eyebrow {
  margin-bottom: 2.2rem;
  font-family: var(--mono);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: .7rem;
}
.eyebrow::before { content: ""; width: .55rem; height: .55rem; background: var(--accent); }

.lede {
  font-family: var(--display);
  font-stretch: condensed;
  font-size: clamp(1.35rem, 3vw, 1.7rem);
  line-height: 1.45;
  max-width: 42rem;
  text-wrap: balance;
}
.lede strong { color: var(--accent); }

.prose { display: flex; flex-direction: column; gap: 1.15rem; max-width: 40rem; }
.prose em { color: var(--muted); }

.entries { display: flex; flex-direction: column; gap: 3rem; }
.entry { display: grid; grid-template-columns: 9.5rem 1fr; gap: .4rem 2rem; }
.entry .when {
  font-family: var(--mono);
  font-size: .8rem;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
  padding-top: .4rem;
  white-space: nowrap;
}
.entry .body { display: flex; flex-direction: column; gap: .95rem; min-width: 0; }
.entry h3 {
  font-family: var(--display);
  font-stretch: condensed;
  font-size: 1.45rem;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.entry h3 .role { color: var(--muted); font-weight: 400; font-size: 1.05rem; letter-spacing: .05em; }
.entry ul { display: flex; flex-direction: column; gap: .75rem; padding-left: 1.15rem; }
.entry li::marker { color: var(--accent); }

.divider {
  position: relative;
  height: clamp(18rem, 55vh, 32rem);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.divider img { width: 100%; height: 100%; object-fit: cover; display: block; }
.divider figcaption {
  position: absolute;
  left: clamp(1.25rem, 3vw, 2.5rem);
  bottom: 1.25rem;
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(220,229,231,.9);
  background: rgba(9,17,20,.55);
  padding: .45rem .7rem;
}

.stack-list { border-top: 1px solid var(--line); max-width: 40rem; margin-top: 1.7rem; padding: 0; }
.stack-list li { list-style: none; display: grid; grid-template-columns: 1.7rem 1fr; gap: 1rem; padding: .9rem 0; border-bottom: 1px solid var(--line); }
.stack-list .tick { font-family: var(--mono); font-size: .8rem; color: var(--accent); padding-top: .2rem; }
.stack-list + .prose { margin-top: 1.6rem; }

.notes-intro { color: var(--muted); font-style: italic; max-width: 40rem; margin-bottom: 2rem; }
.note {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  padding: 1.75rem 1.75rem 1.6rem;
  max-width: 40rem;
  display: flex;
  flex-direction: column;
  gap: .8rem;
}
.note + .note { margin-top: 1.5rem; }
.note .date { font-family: var(--mono); font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.note h3 { font-family: var(--display); font-stretch: condensed; font-size: 1.35rem; text-transform: uppercase; }
.note img { margin-top: .5rem; width: 100%; height: 14rem; object-fit: cover; object-position: 50% 60%; }

.all-notes {
  display: inline-block;
  margin-top: 1.6rem;
  font-family: var(--mono);
  font-size: .8rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
}
.all-notes:hover { color: var(--text); }

footer .wrap { padding-top: 4rem; padding-bottom: 5rem; display: flex; flex-direction: column; gap: 1.6rem; }
.contact-line { font-size: 1.15rem; max-width: 38rem; }
.email-btn {
  align-self: flex-start;
  font-family: var(--mono);
  font-size: .85rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--bg);
  background: var(--accent);
  padding: .85rem 1.4rem;
}
.email-btn:hover { background: var(--text); color: var(--bg); }
.colophon {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  padding-top: 1.5rem;
}

.reveal { opacity: 0; transform: translateY(1.2rem); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (max-width: 620px) {
  body { font-size: 1rem; }
  section .wrap { padding-top: 3rem; padding-bottom: 3rem; }
  .entry { grid-template-columns: 1fr; }
  .entry .when { padding-top: 0; }
  .hero-top { font-size: .68rem; letter-spacing: .1em; }
  .hero-name { gap: .9rem; padding-bottom: .5rem; }
  .scroll-cue { display: none; }
  .note { padding: 1.3rem 1.3rem 1.25rem; }
  .divider { height: clamp(14rem, 40vh, 20rem); }
}
@media (prefers-reduced-motion: reduce) {
  .scroll-cue { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
