/* Homepage: a single screen over the dot field drawn by assets/js/field.js. */
*, *::before, *::after { box-sizing: border-box; }
html, body.card { margin: 0; height: 100%; }
body.card { overflow: hidden; background: #141A24; color: #DCE3EE; font-family: "Hanken Grotesk", system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
.card canvas { position: fixed; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; }
.card a { color: #DCE3EE; text-decoration: none; border-bottom: 1px solid #3B4658; padding-bottom: 2px; }
.card a:hover { border-bottom-color: #DCE3EE; }
.card :focus-visible { outline: 2px solid #DCE3EE; outline-offset: 4px; }

.card .layer { position: fixed; inset: 0; display: grid; grid-template-rows: auto 1fr; padding: clamp(22px, 4vw, 60px); pointer-events: none; }
.card .layer a { pointer-events: auto; }
/* No wrapping, so the email link stays in the top right corner at any width or orientation. */
.card header { --logo-h: clamp(48px, 5.6vw, 76px); display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: nowrap; }
/* Centered on the logo's box, then raised by 16% of the logo's height. The JW
   letters sit about 14% above the box's middle, because the row of dots under
   them extends the box downward, so this lines the link up with the letters
   and lifts it slightly above. */
.card nav.links { flex-shrink: 0; margin-left: auto; align-self: center; transform: translateY(calc(var(--logo-h) * -0.16)); }
.card .brand-wrap { display: flex; align-items: center; gap: 18px; min-width: 0; }
.card .brand { display: block; border: 0; padding: 0; }
.card .brand svg { display: block; height: var(--logo-h); width: auto; }

/* The quote shows on hover or keyboard focus. Touch screens have no hover, so it is hidden there. */
.card .quote { margin: 0; max-width: 42ch; text-wrap: balance; font-style: italic; font-weight: 300; color: #8D99AD; font-size: 15px; line-height: 1.5; opacity: 0; transform: translateX(-6px); transition: opacity .35s, transform .35s; }
.card .brand-wrap:hover .quote, .card .brand:focus-visible + .quote { opacity: 1; transform: none; }
@media (hover: none) { .card .quote { display: none; } }

.card nav.links { display: flex; gap: 28px; font-size: 15px; }
.card .bio { align-self: end; max-width: 24ch; font-weight: 300; font-size: clamp(28px, 3.6vw, 52px); line-height: 1.17; letter-spacing: -0.012em; }
.card .bio p { margin: 0; }

@media (max-width: 640px) { .card nav.links { gap: 20px; } }
@media (prefers-reduced-motion: reduce) { .card .quote { transition: none; } }
