/* Shared styles for the 4 hand-written pages (about/design/talks/offerings).
   Unlike the 5 original pages, these never load any machine-generated CSS,
   so this file also carries the small resets that would otherwise be
   missing site-wide (box-sizing, margins, list markers). */

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

[id] {
  scroll-margin-top: 72px; /* clears the sticky .site-nav bar when jumping to an anchor */
}

body {
  margin: 0;
  background: #f6f6f6;
  color: #000;
  font-family: "Figtree:Regular", sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote, hr {
  margin: 0;
}

ul, ol {
  padding: 0;
  list-style: none;
}

/* Skip link. Markup lives on each new page; styles copied from the
   machine CSS's .bypass-link, which the new pages never load. */
.bypass-link {
  position: fixed;
  top: 16px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
}
.bypass-link:focus-within {
  opacity: 1;
  z-index: 10000;
}
.bypass-link > a {
  background-color: #000;
  color: #fff;
  border: 1px solid #fff;
  padding: 12px 16px;
  font-size: 16px;
  border-radius: 12px;
  pointer-events: auto;
  text-decoration: none;
}

.page {
  max-width: 600px;
  margin: 0 auto;
  padding: 48px 20px 96px;
}

/* Full-width variant: pages whose content (e.g. the work-card grid on
   design.html) should stretch edge-to-edge with the same 20px margins. */
.page--full {
  max-width: none;
}

.page h1 {
  font-family: "EB Garamond:Regular", serif;
  font-size: 36px;
  font-weight: 400;
  line-height: 1.3;
  margin-bottom: 28px;
}

.page h2 {
  font-family: "EB Garamond:Regular", serif;
  font-size: 24px;
  font-weight: 400;
  line-height: 1.3;
  margin-bottom: 24px;
}

.page h3 {
  margin-bottom: 24px;
}

.page p {
  color: rgba(0, 0, 0, 0.7);
}

/* Consecutive paragraphs, e.g. about.html's intro - h1/h2/p all have
   margin:0 from the reset above, so adjacent <p>s need their own gap. */
.page p + p {
  margin-top: 16px;
}

.page p + .quote-card {
  margin-top: 24px;
}

.page p a {
  color: #ff0e00;
  text-decoration: underline;
}

/* Bordered testimonial card, e.g. about.html's single quote and
   talks.html's review grid (wrapped there in .quote-list). */
.quote-card {
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 16px;
  background: #fff;
}

.quote-card p:first-child {
  font-family: "EB Garamond:Regular", serif;
  font-size: 18px;
  line-height: 1.4;
}

.quote-card__author {
  margin-top: 12px;
  font-size: 14px;
  color: rgba(0, 0, 0, 0.5);
}

.page > section {
  margin-top: 40px;
}

.page > section + section {
  margin-top: 64px;
}

.plain-list li + li {
  margin-top: 8px;
}

/* CV rows, e.g. about.html's Experience/Education sections - company or
   school left, years right, hairline divider under each row. */
.cv-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.cv-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.cv-list__who {
  color: rgba(0, 0, 0, 0.85);
}

.cv-list__role {
  color: rgba(0, 0, 0, 0.4);
}

.cv-list__year {
  color: rgba(0, 0, 0, 0.4);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

/* Photo grid, e.g. about.html's Vibe Coding Collective and Hobbies photos.
   2 columns (not 3) so each photo renders large enough to actually read. */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 16px;
  margin-bottom: 24px;
}

.photo-grid img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
}

/* Sponsor/partner wordmarks, e.g. about.html's "supported by" row.
   Monochrome, fixed 16px height regardless of each mark's native
   proportions. */
.logo-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 32px;
  margin-top: 16px;
}

.logo-row img {
  display: block;
  height: 16px;
  width: auto;
  filter: grayscale(1);
  opacity: 0.65;
}

.logo-row__more {
  font-size: 14px;
  color: rgba(0, 0, 0, 0.4);
}

.page footer {
  margin-top: 64px;
  color: rgba(0, 0, 0, 0.4);
  font-size: 12px;
}

/* Pill row linking #section anchors within a page. */
.subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.subnav a {
  display: inline-block;
  border: 1px solid #000;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 14px;
  color: inherit;
  text-decoration: none;
  white-space: nowrap;
}

/* Generic pill, e.g. the "Work with me" mailto CTA at the end of each
   offerings section. Proportions match the homepage's .css-jkjuh4 pills. */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1px solid #000;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 14px;
  color: inherit;
  text-decoration: none;
  white-space: nowrap;
}

.pill--dark {
  background: #000;
  color: #fff;
  border-color: #000;
}

/* Bordered card list, used by design.html to link the 4 case studies. */
.card-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 24px;
}

.card-list a {
  display: block;
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 16px;
  color: inherit;
  text-decoration: none;
}

.card-list a h3 {
  font-family: "EB Garamond:Regular", serif;
  font-size: 18px;
  font-weight: 400;
  margin-bottom: 4px;
}

.card-list a p {
  font-size: 14px;
  color: rgba(0, 0, 0, 0.6);
}

@media (hover: hover) and (pointer: fine) {
  .subnav a,
  .pill,
  .card-list a {
    transition: background-color 150ms ease, transform 200ms ease, box-shadow 200ms ease;
  }
  .subnav a:hover {
    background: #eee;
  }
  .pill:hover {
    background: #eee;
  }
  .pill--dark:hover {
    background: #222;
  }
  .card-list a:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px -12px rgba(0, 0, 0, 0.18);
  }
}

.subnav a:active,
.pill:active,
.card-list a:active {
  transform: translateY(-1px) scale(0.99);
  transition: transform 100ms ease;
}

@media (prefers-reduced-motion: reduce) {
  .subnav a,
  .pill,
  .card-list a {
    transition: none;
  }
  .subnav a:active,
  .pill:active,
  .card-list a:active {
    transform: none;
  }
}
