/* Test build of the "Site-Alternative" Figma file (TozvzX1FOv6wnyc3jkORva): the new home
   (V2_Home, 34:2540) and the Infobric Connect case (35:9395). Not part of the live site.
   Grid: Figma's home grid, 8 columns, 24px gutters, 1200px wide (264px margins at 1728). */

:root {
  /* Colors, from the new home */
  --c-page: #fffcfa; /* testing a lighter cream (owner, 2026-11-02); Figma has #fffaf5 */
  --c-ink: #141414;
  --c-body: #1f1e1e;
  --c-muted: #a39b96;
  --c-label: #7a7471;
  --c-line: #ccc8c5;
  --c-tag: #e0dcd9;
  --c-footer: #697786;
  --c-connect: #488fff;

  /* Type */
  --f-display: "Bricolage Grotesque", system-ui, sans-serif;
  --f-body: "Kumbh Sans", system-ui, sans-serif;

  /* Grid: 8 columns of 129px with 24px gutters = 1200px */
  --cols: 8;
  --gutter: 24px;
  --content-max: 1200px;
  --page-margin: 160px; /* 160px each side from 1200px wide (owner, 2026-11-01 and 11-02); 64 and 24 below */
  /* The content box's width, for elements placed directly in <body> (and the fixed grid
     overlay): 100% is the page without its scrollbar, which 100vw would include. */
  --content: min(var(--content-max), 100% - 2 * var(--page-margin));
}
@media (max-width: 1199px) { :root { --page-margin: 64px; } }
@media (max-width: 639px) { :root { --page-margin: 24px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--c-page);
  color: var(--c-body);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 24px;
  font-variation-settings: "YOPQ" 300;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--c-ink); outline-offset: 2px; }

/* Bricolage is drawn at the optical size Figma uses (14) at every size */
.t-display, .t-heading, .t-title, .t-lead, .t-label, .t-link { font-family: var(--f-display); font-variation-settings: "opsz" 14; }

/* Text styles, the "Site/" styles in Figma */
.t-display { font-weight: 500; font-size: 96px; line-height: 96px; letter-spacing: -0.04em; color: var(--c-ink); }
.t-heading { font-weight: 500; font-size: 40px; line-height: 48px; letter-spacing: -0.02em; color: var(--c-ink); }
.t-title { font-weight: 600; font-size: 28px; line-height: 34px; color: var(--c-ink); }
.t-link { font-weight: 400; font-size: 28px; line-height: 36px; letter-spacing: -1px; color: #000; }
.t-lead { font-weight: 400; font-size: 28px; line-height: 36px; letter-spacing: -1px; color: var(--c-muted); }
.t-label { font-weight: 600; font-size: 13px; line-height: normal; letter-spacing: 1px; text-transform: uppercase; color: var(--c-label); }

/* Icons from ASSETS/Home are 24px brown SVGs; Figma shows them at 32px */
.icon { display: block; flex: none; width: 32px; height: 32px; }
.icon--white { filter: brightness(0) invert(1); }

/* Link with a trailing icon */
.link { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }

/* Link roll (alt-roll.js), after Tubik's menu: on hover the word moves up one line in
   0.4s (ease in-out cubic) and its copy, a text shadow one line below, takes its place.
   Plays once per hover; at the end it is back at rest, which looks the same. */
.roll { display: inline-block; vertical-align: top; height: 36px; overflow: clip; }
.roll__text { display: block; text-shadow: 0 36px currentColor; }
/* The link's icon rolls the same way, at the same time: two copies of it, 36px apart like
   the word's lines, in a 32px window (.roll--icon > .roll__track). */
.roll--icon { flex: none; height: 32px; }
.roll__track { display: flex; flex-direction: column; gap: 4px; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .t-link:hover .roll__text, .t-link:hover .roll__track { animation: roll 0.4s cubic-bezier(0.645, 0.045, 0.355, 1); }
}
@keyframes roll { to { transform: translateY(-36px); } }

/* Header: the home's, 64px from the top. On the case it sits on the case color. */
.header {
  width: var(--content);
  margin: 0 auto;
  padding-top: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.header__nav { display: flex; align-items: center; gap: 24px; }
/* Below 832px the header stacks (name or role above the links) on every page; found in the
   2026-11-02 test pass, where the Resume page's header ran past the screen on phones */
@media (max-width: 831px) {
  .header { flex-direction: column; align-items: flex-start; gap: 16px; }
}

/* The header's full-width bar (alt-header.js): it scrolls away going down and comes back
   on the page's color going up. The 24px below the links give the floating bar its edge. */
.topbar {
  position: sticky;
  top: 0;
  z-index: 200;
  padding-bottom: 24px;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1); /* the color comes at once, so the words never cross content bare */
}
.topbar.is-floating { background: var(--topbar-bg, var(--c-page)); }
.topbar.is-hidden:not(:focus-within) { transform: translateY(-100%); } /* tabbing into the header brings it back */
@media (prefers-reduced-motion: reduce) { .topbar { transition: none; } }

