:root { --paper: #f4f3f4; --ink: #000; --page-x: 6.8vw; }
body { background: var(--paper); color: var(--ink); }
.container { max-width: none; padding: 0; }
.grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; }
.card { position: relative; aspect-ratio: .95; overflow: hidden; isolation: isolate; }
.thumb-wrap { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; aspect-ratio: auto; }
.thumb { width: 100%; height: 100%; object-fit: cover; transition: opacity 200ms ease, transform 600ms ease; }
.card h3, .card > p { position: absolute; z-index: 2; left: 24px; right: 24px; opacity: 0; transition: opacity 200ms ease; color: #fff; }
.card h3 { bottom: 43px; font-size: 22px; margin: 0; }
.card > p { bottom: 22px; font-size: 14px; font-weight: 400; font-variation-settings: "wght" 400; }
.card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 55%, #0009); opacity: 0; transition: opacity 200ms ease; pointer-events: none; }
.card:hover::after, .card:focus-visible::after, .card:hover h3, .card:hover > p, .card:focus-visible h3, .card:focus-visible > p { opacity: 1; }
.card:hover .thumb, .card:focus-visible .thumb { transform: scale(1.045); }
.card:focus-visible .thumb-hover { opacity: 1; }
.card:focus-visible .thumb-default { opacity: 0; }
#me { margin: 0; padding: 0 var(--page-x); scroll-margin-top: 32px; }
.intro { margin: 0; padding: 450px 0 140px; max-width: none; font-weight: 400; }
.intro h1 { font-size: clamp(24px, 5.3vw, 80px); line-height: 1; font-weight: 850; letter-spacing: normal; margin: 0; }
.intro h1 span { display: block; white-space: nowrap; }
.intro p { max-width: 960px; margin: 90px 0 0; font-size: clamp(22px, 2.9vw, 34px); line-height: 1.45; letter-spacing: normal; }
#me .about { display: block; max-width: 760px; margin: 72px 0 100px; font-size: clamp(18px, 1.5vw, 22px); font-weight: 400; line-height: 1.55; }
.about-text p a, .buttons a { color: inherit; }
.buttons a { border-color: var(--ink); min-height: 40px; font-size: 14px; }
.buttons a:hover { color: #525fdf; border-color: #525fdf; }
.homepage-footnote, .footer { color: var(--ink); font-size: 14px; font-weight: 400; line-height: 1.6; }
.footer { padding: 35px var(--page-x); opacity: 1; }
.back-to-top { background: var(--ink); color: var(--paper); }
a:focus-visible { outline: 2px solid #525fdf; outline-offset: -3px; }
@media (max-width: 700px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card { aspect-ratio: 1; }
  .intro { padding: 300px 0 90px; }
  .intro h1 { font-size: clamp(20px, 5.3vw, 38px); }
  .intro p { margin-top: 60px; font-size: 22px; }
  #me .about { grid-template-columns: 1fr; gap: 25px; margin-bottom: 60px; }
  .card h3 { left: 12px; right: 12px; bottom: 46px; font-size: 18px; }
  .card > p { left: 12px; right: 12px; bottom: 12px; font-size: 14px; line-height: 1.1; }
}
@media (hover: none) { .card h3, .card > p, .card::after { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .thumb, .card::after, .card h3, .card > p { transition: none; } }

.about-text > p + p { margin-top: 1.5em; }

/* Generous closing space before the footer. */
.container { padding-bottom: 450px; }
#me .about { margin-bottom: 0; }
@media (max-width: 700px) {
  .container { padding-bottom: 300px; }
}

.tile-media, .tile-picture { display: block; position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.placeholder-card { cursor: default; }

.tile-footnote-marker { font-size: .55em; line-height: 0; vertical-align: super; margin-left: .15em; }
.homepage-footnote { padding: 0 var(--page-x) 32px; }
.homepage-footnote p { max-width: 760px; margin: 0; }
