h1, h2, h3, p { margin-top: 0; }

h1, h2, h3 {
  color: var(--ink);
  letter-spacing: -0.038em;
  text-wrap: balance;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: var(--z-skip-link);
  padding: 0.6rem 0.75rem;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  transform: translateY(-150%);
  transition: transform 160ms var(--ease-out);
}

.skip-link:focus { transform: translateY(0); }

.scroll-progress {
  position: fixed;
  inset: 0 0 auto;
  z-index: var(--z-progress);
  height: 2px;
  pointer-events: none;
}

.scroll-progress span {
  display: block;
  width: 0%;
  height: 100%;
  background: var(--accent);
}

.section {
  padding: clamp(5rem, 11vw, 8.5rem) var(--gutter);
}

.section-shell,
.footer-shell {
  width: min(100%, var(--max));
  margin-inline: auto;
}

.section-heading {
  display: grid;
  gap: 0.35rem;
  margin-bottom: clamp(1.25rem, 4vw, 2.25rem);
}

.section-heading p,
time,
.footer-kicker {
  margin: 0;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  line-height: 1.4;
}

.section-heading h2 {
  max-width: 12ch;
  margin: 0;
  font-size: clamp(2rem, 4.8vw, 3.9rem);
  font-weight: 850;
  line-height: 0.92;
}

.inline-heading {
  grid-template-columns: 180px minmax(0, 1fr);
  align-items: end;
}

.inline-heading h2 { max-width: 15ch; }

.centered-heading {
  justify-items: center;
  text-align: center;
}

.writing-card h3,
.fragment-card h3,
.education-list h3,
.experience-timeline h3 {
  margin: 0;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.08;
  letter-spacing: -0.025em;
}

.writing-card p,
.fragment-card p,
.education-list p,
.experience-timeline p,
.awards-list span,
.site-footer p {
  color: var(--muted);
  font-size: 0.87rem;
  line-height: 1.45;
  text-wrap: pretty;
}

.arrow {
  position: absolute;
  top: 0.7rem;
  right: 0.8rem;
  color: var(--accent);
  font-size: 1rem;
  line-height: 1;
  transition: transform 160ms var(--ease-out);
}

.tilt-card {
  --rx: 0deg;
  --ry: 0deg;
}

.tilt-card:hover {
  border-color: var(--line-strong);
  transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry)) translateY(-1px);
}

.tilt-card:hover .arrow,
.writing-card:hover .arrow,
.writing-more:hover .arrow {
  transform: translate(2px, -2px);
}
