/* Landing page (/) only: full-bleed photo hero and the home sections. Colors, fonts and the section-label
   style come from site.css. */

.fa {
  --wide: 1180px; --pad: clamp(20px, 4vw, 48px);
  /* Apple's San Francisco on Apple devices; the platform UI face elsewhere. SF can't be self-hosted. */
  --apple: -apple-system, BlinkMacSystemFont, "SF Pro Display", system-ui, "Segoe UI", Roboto, sans-serif;
}

/* ---------- Hero ---------- */
.fa-hero { position: relative; min-height: 100svh; display: grid; grid-template-rows: auto 1fr auto; color: #f6f5ef; overflow: hidden; }
.fa-hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.fa-hero__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,18,12,.45) 0%, rgba(10,18,12,0) 22%, rgba(10,18,12,0) 45%, rgba(10,18,12,.72) 100%); }
.fa-nav { position: relative; display: flex; justify-content: space-between; align-items: center; padding: 22px var(--pad); }
.fa-nav a { color: inherit; text-decoration: none; }
.fa-nav__name { font-size: 15px; }
.fa-nav__links { display: flex; align-items: center; gap: 26px; font-size: 15px; }
.fa-nav__name, .fa-nav__links a { opacity: .88; }
.fa-nav__name:hover, .fa-nav__links a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 5px; text-decoration-color: rgba(255,255,255,.6); }
.fa-nav .theme-toggle { --tt-ink: #f6f5ef; --tt-bg: #1c1d1a; --tt-muted: rgba(246,245,239,.8); --tt-line: rgba(255,255,255,.45); }
.fa-hero__copy { position: relative; align-self: end; padding: 0 var(--pad) 20px; max-width: 1100px; }
.fa-hero h1 {
  font-family: var(--apple); font-weight: 600;
  font-size: clamp(36px, 4.8vw, 72px); line-height: 1.04; letter-spacing: -0.035em; max-width: 13ch;
  text-wrap: balance; text-shadow: 0 1px 24px rgba(0,0,0,.25);
  animation: fa-rise 1.1s cubic-bezier(.2,.7,.2,1) .15s both;
}
.fa-hero__caption { position: relative; margin: 0; padding: 0 var(--pad) 26px; font-family: var(--serif); font-style: italic; font-size: 15px; opacity: .8; }
@keyframes fa-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .fa-hero h1 { animation: none; } }

/* ---------- Sections ---------- */
.fa main > section { max-width: var(--wide); margin: 0 auto; padding: clamp(64px, 9vw, 120px) var(--pad) 0; }
.fa h2 { margin: 0 0 28px; }
.fa-more { display: inline-block; margin-top: 30px; font-size: 15px; color: var(--ink); text-decoration-color: var(--accent); text-underline-offset: 5px; }

/* Work: headshot beside a big lede */
.fa-work { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: clamp(24px, 5vw, 72px); }
.fa-work__who img { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; filter: saturate(.9); }
.fa-lede { font-family: var(--serif); font-size: clamp(24px, 2.6vw, 34px); line-height: 1.32; font-weight: 360; letter-spacing: -0.01em; margin: 0; max-width: 34ch; text-wrap: pretty; }
/* Trim the lede's top leading so its cap height lines up with the top of the headshot. */
.fa-work .fa-lede { text-box: trim-start cap alphabetic; }

/* Bike: one lead photo, three supporting */
.fa-bike__grid { display: grid; grid-template-columns: 1.6fr 1fr; grid-template-rows: repeat(3, auto); gap: 22px 32px; }
.fa-bike__item { display: grid; grid-template-columns: 132px 1fr; grid-template-rows: auto 1fr; column-gap: 18px; align-content: start; text-decoration: none; color: var(--ink); }
.fa-bike__item img { grid-row: 1 / 3; width: 132px; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 2px; }
.fa-bike__item--lead { grid-row: 1 / 4; grid-template-columns: 1fr; }
.fa-bike__item--lead img { grid-row: auto; width: 100%; aspect-ratio: 4 / 3; margin-bottom: 16px; }
.fa-bike__title { font-family: var(--serif); font-size: 21px; line-height: 1.2; font-weight: 450; }
.fa-bike__item--lead .fa-bike__title { font-size: clamp(26px, 2.6vw, 34px); font-weight: 400; }
.fa-bike__item time { color: var(--faint); font-size: 14px; margin-top: 6px; }
.fa-bike__item:hover .fa-bike__title { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 4px; text-decoration-thickness: 1px; }

/* Culture: horizontal strip of tall frames */
.fa-culture { padding-right: 0 !important; }
.fa-culture__strip { list-style: none; margin: 0; padding: 0 var(--pad) 12px 0; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(300px, 40%); gap: 28px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.fa-culture__strip li { scroll-snap-align: start; }
.fa-culture__strip img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 2px; }
.fa-culture__strip p { margin: 12px 0 0; font-family: var(--serif); font-size: 17px; line-height: 1.4; color: var(--muted); max-width: 34ch; }
.fa-culture__place { color: var(--ink); font-style: italic; }

/* Zoom: each culture photo is a button that opens a full-screen dialog */
.fa-zoom { display: block; width: 100%; padding: 0; margin: 0; border: 0; background: none; cursor: zoom-in; border-radius: 2px; }
.fa-zoom img { display: block; transition: filter .2s; }
.fa-zoom:hover img { filter: brightness(1.08); }
.fa-lightbox { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: transparent; cursor: zoom-out; }
.fa-lightbox[open] { display: grid; place-items: center; }
.fa-lightbox::backdrop { background: rgba(9, 12, 10, .94); }
.fa-lightbox figure { margin: 0; display: grid; justify-items: center; gap: 14px; padding: 24px; }
.fa-lightbox img { max-width: min(92vw, 2000px); max-height: calc(100dvh - 120px); width: auto; height: auto; object-fit: contain; border-radius: 2px; }
.fa-lightbox figcaption { font-family: var(--serif); font-size: 17px; line-height: 1.4; color: #c9cfc7; max-width: 60ch; text-align: center; }
.fa-lightbox figcaption .fa-culture__place { color: #f2f3ee; }
.fa-lightbox--fade[open] figure { animation: fa-zoom-in .25s ease-out; }
@keyframes fa-zoom-in { from { opacity: 0; transform: scale(.97); } to { opacity: 1; transform: none; } }
::view-transition-group(fa-zoom) { animation-duration: .35s; animation-timing-function: cubic-bezier(.3, .7, .3, 1); }
html:has(.fa-lightbox[open]) { overflow: hidden; }

/* Projects: two-up blurbs */
.fa-projects ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 56px; max-width: 980px; }
.fa-projects li { border-top: 1px solid var(--rule); padding-top: 20px; }
.fa-projects h3 { font-family: var(--serif); font-size: 27px; font-weight: 450; letter-spacing: -0.01em; display: inline; }
.fa-projects__status { margin-left: 12px; font-family: var(--serif); font-style: italic; font-size: 16px; color: var(--accent); }
.fa-projects__blurb { color: var(--muted); font-size: 16px; line-height: 1.6; max-width: 46ch; }
.fa-projects__blurb p { margin: 10px 0 0; }
.fa-projects .fa-more { margin-top: 12px; }
.fa-experience > .fa-more { margin-top: 32px; }

.fa-sub { margin: -16px 0 28px; color: var(--muted); font-family: var(--serif); font-size: 19px; }

/* Writing */
.fa-writing { padding-bottom: clamp(72px, 10vw, 140px) !important; }
.fa-writing ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.fa-writing li { border-top: 2px solid var(--forest); padding-top: 18px; }
.fa-writing li > a { font-family: var(--serif); font-size: 25px; line-height: 1.18; font-weight: 450; text-decoration: none; color: var(--ink); letter-spacing: -0.01em; }
.fa-writing li > a:hover { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 4px; }
.fa-writing li p { color: var(--muted); font-size: 15px; margin: 10px 0 0; }
.fa-writing time { display: block; color: var(--faint); font-size: 14px; margin-top: 10px; }

/* ---------- Phone ---------- */
@media (max-width: 799px) {
  .fa-nav__links { gap: 16px; font-size: 14px; }
  .fa-nav__name { font-size: 14px; }
  .fa-hero { min-height: 88svh; }
  .fa-work { grid-template-columns: 1fr; }
  .fa-work__who img { width: 84px; height: 84px; }
  .fa-bike__grid { grid-template-columns: 1fr; }
  .fa-bike__item--lead { grid-row: auto; }
  .fa-bike__item { grid-template-columns: 104px 1fr; }
  .fa-bike__item img { width: 104px; }
  .fa-bike__item--lead { grid-template-columns: 1fr; }
  .fa-bike__item--lead img { width: 100%; }
  .fa-culture__strip { grid-auto-columns: 78%; gap: 16px; }
  .fa-writing ul { grid-template-columns: 1fr; gap: 28px; }
  .fa-projects ul { grid-template-columns: 1fr; gap: 28px; }
}
