/* The home page — layout and type. The desktop is the 1440 × 5895 frame of
   2026-11-18, from its spec sheet (sizes, columns, type) and its export
   (positions): the introduction, three featured stories, the index of all
   the projects, About, How I can help, and the contact band that closes the
   page. Each section's rows are noted where they are drawn, and add up to
   the frame's own section heights (625, 1501, 787, 807, 561, 933, 681) —
   but for the index, which has been shorter than its 807 since 2026-11-19:
   Mike took out its label, its footnote and one project.
   The spec covers the desktop only: below 900 px the same sections stack
   in one column, in the phone's type. Shared pieces are base.css; all
   values come from tokens.css. */

/* ---------- nav: 112 and the rule under it ---------- */

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-16);
  height: 65px;
  border-bottom: 1px solid var(--rule);
  font-size: var(--fs-14);
  font-weight: 500;
  line-height: var(--lh-meta);
}
.brand { display: flex; align-items: center; gap: var(--space-12); white-space: nowrap; }
/* the monogram: 40 square, rust, square-cornered */
.monogram {
  flex: none;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  background: var(--contact);
  color: var(--contact-text);
}
.nav-links { display: flex; align-items: center; gap: var(--space-24); white-space: nowrap; }
.nav-links a:hover, .brand:hover .brand-name { color: var(--accent); }
.nav .arrow { margin-left: var(--space-12); color: var(--accent); }
/* where you are: a 2 px rust bar, 4 under the label */
.nav-links a[aria-current="page"] { position: relative; }
.nav-links a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  background: var(--accent);
}

/* ---------- the introduction ----------
   64, the eyebrow (24 / 32), 24, the headline (two lines of 112), 32, two
   lines of lead 8 apart, 64. The card sits beside the headline, its top on
   the headline's. */

.hero { padding: var(--space-40) 0 var(--space-48); }
.eyebrow {
  margin: 0;
  font-size: var(--fs-20);
  line-height: var(--lh-lead);
  letter-spacing: var(--ls-lead);
  text-transform: uppercase;
  color: var(--secondary);
}
.hero h1 {
  margin: var(--space-24) 0 0;
  font-size: var(--fs-display-xl);
  font-weight: 500;
  line-height: var(--lh-display-xl);
  letter-spacing: var(--ls-display-xl);
}
.hero-intro {
  margin-top: var(--space-32);
  font-size: var(--fs-20);
  line-height: var(--lh-lead);
  letter-spacing: var(--ls-lead);
}
.hero-intro p { margin: 0; }
.hero-intro p + p { margin-top: var(--space-8); }

/* ---------- pictures: a 736 × 544 frame, square-cornered ----------
   (the project view's picture is the same frame: project.css)
   The picture fills it; one drawn on a flat ground sits whole on that
   ground instead (data-fit="contain", --ground). */

.frame {
  display: block;
  aspect-ratio: 736 / 544;
  overflow: hidden;
  background: var(--ground, var(--tile));
}
.frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.frame[data-fit="contain"] img { object-fit: contain; }
.frame[data-at="top"] img { object-position: top; }
.caption {
  margin: var(--space-16) 0 0;
  font-size: var(--fs-14);
  line-height: var(--lh-meta);
  color: var(--secondary);
}
.caption-caps { text-transform: uppercase; }      /* capitals in the caption's own type: no extra tracking */

/* ---------- the featured stories ----------
   A rule, 40, the label, 40, the picture beside its story; 72 before the
   next label; 104 to close. The story: the title (Kumbh Sans 42 / 40), 12,
   the premise, then the body, the pills, a note and the link, 24 apart. */

.featured { border-top: 1px solid var(--rule); padding: var(--space-32) 0 var(--space-64); }
.story + .story { margin-top: var(--space-64); }
.story-row { margin-top: var(--space-24); }
.story-media { margin: 0; }
.story-text { margin-top: var(--space-32); }
.story-title {
  margin: 0;
  font-family: var(--font-title);
  font-size: var(--fs-title);
  font-weight: 500;
  line-height: var(--lh-title);
  letter-spacing: var(--ls-title);
}
.story-premise {
  margin: var(--space-12) 0 0;
  font-size: var(--fs-20);
  line-height: var(--lh-lead);
  letter-spacing: var(--ls-lead);
}
.story-body { margin: var(--space-24) 0 0; color: var(--secondary); }

/* a discipline: 38 high, 8 / 12 inside a 1 px rule, fully round */
.pills { display: flex; flex-wrap: wrap; gap: var(--space-8); list-style: none; margin: var(--space-24) 0 0; padding: 0; }
.pills li {
  padding: 7px 11px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  font-size: var(--fs-14);
  line-height: var(--lh-meta);
  color: var(--secondary);
}
.story-award, .story-note {
  margin: var(--space-24) 0 0;
  font-size: var(--fs-14);
  line-height: var(--lh-meta);
}
.story-award { display: flex; align-items: center; gap: var(--space-12); font-weight: 500; }
.story-note { color: var(--secondary); }
.story-link {
  display: block;
  width: fit-content;
  margin-top: var(--space-24);
  font-size: var(--fs-14);
  font-weight: 500;
  line-height: var(--lh-meta);
}
.story-link .arrow { margin-left: var(--space-16); color: var(--accent); }
.story-link:hover { color: var(--accent); }

/* the asterisk beside an award: eight
   spokes in rust (a mask, so the shape has no colour of its own) */
.spark {
  flex: none;
  width: 16px;
  height: 16px;
  background: var(--contact);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M12 2.5v19M2.5 12h19M5.3 5.3l13.4 13.4M18.7 5.3 5.3 18.7'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M12 2.5v19M2.5 12h19M5.3 5.3l13.4 13.4M18.7 5.3 5.3 18.7'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ---------- the index of all the projects ----------
   A rule, 32, the heading; 32; two columns of rows
   (five, then the rest), each 96 between 1 px rules; 104. */

.index { border-top: 1px solid var(--rule); padding: var(--space-32) 0 var(--space-64); }
.index-head h2, .about h2, .services h2 {
  margin: 0;
  font-size: var(--fs-display);
  font-weight: 500;
  line-height: var(--lh-display);
  letter-spacing: var(--ls-display);
}
.directory { margin-top: var(--space-32); }
.directory-column { list-style: none; margin: 0; padding: 0; }
.directory-column:first-child { border-top: 1px solid var(--rule); }
.directory-row { border-bottom: 1px solid var(--rule); }
.directory-link {
  display: flex;
  align-items: center;
  min-height: 72px;
  padding: var(--space-16) 0;
  font-size: var(--fs-20);
  font-weight: 500;
  line-height: var(--lh-lead);
  letter-spacing: var(--ls-lead);
}
.directory-number {
  flex: none;
  width: 44px;
  font-size: var(--fs-14);
  font-weight: 400;
  line-height: var(--lh-meta);
  letter-spacing: 0;
  color: var(--secondary);
}
.directory-link .arrow { margin-left: var(--space-12); }
.directory-link:hover { color: var(--accent); }

/* ---------- About: the dark band ----------
   88; the label; 48; the heading beside two paragraphs; 88. */

.about { background: var(--band); color: var(--band-text); }
.about > .page { padding-top: var(--space-64); padding-bottom: var(--space-64); }
.about .label { color: inherit; }
.about-grid { margin-top: var(--space-32); }
.about-body { margin-top: var(--space-32); }
.about-body p { margin: 0; }
.about-body p + p { margin-top: var(--space-24); }

/* ---------- How I can help ----------
   104; the heading beside four services, each 24, its name, 12, its words,
   12, its tag, 24 between 1 px rules (181 with its rule); 104. */

.services { padding: var(--space-64) 0; }
.services .label { color: var(--secondary); }
.services h2 { margin-top: var(--space-24); }
.services-sub {
  margin: var(--space-24) 0 0;
  font-size: var(--fs-20);
  line-height: var(--lh-lead);
  letter-spacing: var(--ls-lead);
  color: var(--secondary);
}
.service-list { list-style: none; margin: var(--space-40) 0 0; padding: 0; border-bottom: 1px solid var(--rule); }
.service-list li {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  padding: var(--space-24) 0;
  border-top: 1px solid var(--rule);
}
.service-number {
  font-size: var(--fs-14);
  font-weight: 500;
  line-height: var(--lh-meta);
  color: var(--accent);
}
.service-list h3 {
  margin: 0;
  font-size: var(--fs-20);
  font-weight: 500;
  line-height: var(--lh-lead);
  letter-spacing: var(--ls-lead);
}
.service-list p { margin: var(--space-12) 0 0; color: var(--secondary); }

/* ---------- contact, and the foot of the page: the rust band ----------
   72; the label; 48; the headline (two lines of 112) with its arrow; 48;
   the address over its rule (8 under it) beside two lines of why; 48;
   "ask the AI me first"; 64; a rule; 24; the foot; 32. */

.contact { background: var(--contact); color: var(--contact-text); }
.contact > .page { padding-top: var(--space-64); padding-bottom: var(--space-32); }
.contact .label { color: inherit; }
.contact-title { display: flex; align-items: center; justify-content: space-between; gap: var(--space-24); margin-top: var(--space-32); }
.contact h2 {
  margin: 0;
  font-size: var(--fs-display-xl);
  font-weight: 500;
  line-height: var(--lh-display-xl);
  letter-spacing: var(--ls-display-xl);
}
/* the arrow is the headline's own type: Inter's glyph at the same size */
.contact-arrow { flex: none; font-size: var(--fs-display-xl); font-weight: 500; line-height: var(--lh-display-xl); }
.contact-row { margin-top: var(--space-48); }
.contact-email {
  display: block;
  max-width: 400px;
  padding-bottom: var(--space-8);
  border-bottom: 1px solid currentColor;
  font-size: var(--fs-20);
  line-height: var(--lh-lead);
  letter-spacing: var(--ls-lead);
}
.contact-blurb { margin: var(--space-32) 0 0; max-width: 392px; }
.contact-ask {
  display: block;
  width: fit-content;
  margin-top: var(--space-48);
  font-size: var(--fs-14);
  font-weight: 500;
  line-height: var(--lh-meta);
}
.contact-ask .arrow { margin-left: var(--space-4); }
.contact-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-8) var(--space-24);
  margin-top: var(--space-64);
  padding-top: var(--space-24);
  border-top: 1px solid var(--contact-rule);
  font-size: var(--fs-14);
  line-height: var(--lh-meta);
}
.contact-foot p { margin: 0; }
/* the page's last links: the résumé, and the way back up */
.contact-links { display: flex; flex-wrap: wrap; gap: var(--space-8) var(--space-32); }
.contact-foot .arrow { margin-left: var(--space-12); }
.contact a:hover { opacity: 0.8; }
.contact :focus-visible { outline-color: currentColor; }      /* a rust ring would not show on rust */

/* The page's dock floats over its foot (dock.css): the band keeps room
   under its last line for it. */
.contact > .page { padding-bottom: calc(var(--dock-h) + var(--dock-inset) + var(--space-32) + env(safe-area-inset-bottom, 0px)); }

@media (max-width: 899.98px) {
  /* on a narrow screen the monogram stands for the name, which is still
     there for a screen reader */
  .brand-name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}

/* The narrowest phones (down to 320): the three links are wider than the
   screen, and the monogram already goes home. */
@media (max-width: 419.98px) {
  .nav-links { gap: var(--space-16); }
  .nav-links a[aria-current="page"] { display: none; }
}

/* ---------- desktop ---------- */

@media (min-width: 900px) {
  .nav { height: 113px; }
  .nav-links { gap: var(--space-40); }

  /* the card the design drew beside the headline floats now (dock.css), so
     the introduction is one column */
  .hero { padding: var(--space-64) 0; }
  .eyebrow { font-size: var(--fs-24); }
  .hero-intro { font-size: var(--fs-24); }

  .featured { padding: var(--space-40) 0 var(--space-104); }
  .story + .story { margin-top: var(--space-72); }
  .story-row {
    display: grid;
    grid-template-columns: minmax(0, 736fr) minmax(0, 496fr);
    column-gap: var(--space-64);
    align-items: start;
    margin-top: var(--space-40);
  }
  .story-text { margin-top: 0; }
  .story-premise { font-size: var(--fs-24); }

  .index { padding-bottom: var(--space-104); }
  .directory { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--space-64); }
  .directory-column { border-top: 1px solid var(--rule); }
  .directory-link { min-height: 96px; font-size: var(--fs-24); }

  .about > .page { padding-top: var(--space-88); padding-bottom: var(--space-88); }
  .about-grid {
    display: grid;
    grid-template-columns: minmax(0, 640fr) minmax(0, 560fr);
    column-gap: var(--space-96);
    margin-top: var(--space-48);
  }
  .about-body { margin-top: 0; }

  .services {
    display: grid;
    grid-template-columns: minmax(0, 360fr) minmax(0, 832fr);
    column-gap: var(--space-104);
    align-items: start;
    padding: var(--space-104) 0;
  }
  .services-sub { font-size: var(--fs-24); }
  .service-list { margin-top: 0; }
  .service-list h3 { font-size: var(--fs-24); }

  .contact > .page { padding-top: var(--space-72); }
  .contact-title { margin-top: var(--space-48); }
  /* where the frame draws it: a little above the middle, in from the edge */
  .contact-arrow { position: relative; top: -20px; right: 10px; }
  /* the address stands on the foot of the row its neighbour's two lines make */
  .contact-row { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--space-64); }
  .contact-email { flex: 0 1 400px; min-width: 0; font-size: var(--fs-24); }
  .contact-blurb { flex: 0 1 392px; min-width: 0; margin: 0; }
  .contact-foot { display: grid; grid-template-columns: 1fr auto 1fr; }
  .contact-foot > :last-child { justify-self: end; }
}
