/* SynchNova — palette and structure taken from the Rietveld plot convention:
   observed in slate, calculated in crimson, everything else quiet. */

:root {
  --paper:   #F6F7F9;
  --white:   #FFFFFF;
  --ink:     #141821;
  --ink-2:   #4A5465;
  --ink-3:   #6B7686;
  --rule:    #D8DCE3;
  --rule-2:  #E7EAEF;
  --calc:    #D2143C;
  --obs:     #2B3A52;

  --measure: 66ch;
  --gutter:  clamp(1.25rem, 4vw, 2.5rem);
  --wrap:    78rem;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.65 "IBM Plex Sans", system-ui, -apple-system, sans-serif;
  font-feature-settings: "tnum" 0;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-weight: 500; letter-spacing: -0.021em; margin: 0; text-wrap: balance; }
p { margin: 0; }
a { color: inherit; }

:focus-visible { outline: 2px solid var(--calc); outline-offset: 3px; border-radius: 2px; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.measure { max-width: var(--measure); }

/* ---------- masthead ---------- */

.masthead {
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
  position: sticky; top: 0; z-index: 20;
}
.masthead__inner {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 1.5rem; padding-block: 1.1rem;
}
.wordmark {
  font-size: 1.0625rem; font-weight: 600; letter-spacing: -0.015em;
  text-decoration: none;
}
.wordmark span { color: var(--ink-3); font-weight: 400; }

.nav { display: flex; gap: 1.6rem; font-size: 0.9375rem; }
.nav a { color: var(--ink-2); text-decoration: none; padding-block: 0.2rem; }
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] {
  color: var(--ink); box-shadow: inset 0 -1px 0 var(--calc);
}

/* ---------- hero ---------- */

.hero { padding-block: clamp(3rem, 8vw, 6rem) 0; }
.hero h1 {
  font-size: clamp(2.5rem, 6.2vw, 4.4rem);
  line-height: 1.02;
  letter-spacing: -0.032em;
  max-width: 18ch;
}
.hero__lede {
  margin-top: 1.6rem; max-width: 56ch;
  font-size: 1.1875rem; line-height: 1.6; color: var(--ink-2);
}
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2.1rem; }

.btn {
  display: inline-block; text-decoration: none;
  padding: 0.72rem 1.35rem; font-size: 0.9688rem; font-weight: 500;
  border: 1px solid var(--ink); border-radius: 2px;
}
.btn--solid { background: var(--ink); color: var(--paper); }
.btn--solid:hover { background: var(--calc); border-color: var(--calc); }
.btn--line { color: var(--ink); border-color: var(--rule); background: var(--white); }
.btn--line:hover { border-color: var(--ink); }

/* ---------- the figure ---------- */

.figure { margin-top: clamp(2.5rem, 6vw, 4rem); }
.figure img, .figure svg { display: block; width: 100%; height: auto; }
.figure figcaption {
  margin-top: 0.4rem; font-size: 0.875rem; color: var(--ink-3);
  max-width: 62ch;
}

@media (prefers-reduced-motion: no-preference) {
  .figure { animation: rise 900ms cubic-bezier(.2,.7,.3,1) both; }
  @keyframes rise { from { opacity: 0; transform: translateY(14px); } }
}

/* ---------- figures strip ---------- */

.strip {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--ink); border-bottom: 1px solid var(--rule);
  margin-top: clamp(2.5rem, 6vw, 4rem);
}
.strip > div { padding: 1.4rem 1.4rem 1.5rem 0; }
.strip > div + div { border-left: 1px solid var(--rule-2); padding-left: 1.4rem; }
.strip dt {
  font-size: clamp(1.6rem, 3vw, 2.15rem); font-weight: 500;
  letter-spacing: -0.03em; line-height: 1;
}
.strip dd { margin: 0.55rem 0 0; font-size: 0.875rem; color: var(--ink-3); line-height: 1.45; }

/* ---------- sections ---------- */

.section { padding-block: clamp(3.5rem, 8vw, 6rem); border-top: 1px solid var(--rule); }
.section:first-of-type { border-top: 0; }
.section h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.6rem); line-height: 1.12; max-width: 22ch;
}
.section__lede { margin-top: 1.1rem; max-width: 58ch; color: var(--ink-2); }

.cols { display: grid; gap: 2.5rem 2.75rem; margin-top: clamp(2rem, 4vw, 3rem); }
.cols--3 { grid-template-columns: repeat(3, 1fr); }
.cols--2 { grid-template-columns: repeat(2, 1fr); }

.item { border-top: 1px solid var(--ink); padding-top: 1.1rem; }
.item h3 { font-size: 1.1875rem; line-height: 1.3; }
.item p { margin-top: 0.7rem; color: var(--ink-2); font-size: 0.9688rem; }
.item__note {
  margin-top: 0.9rem; font-size: 0.875rem; color: var(--ink-3);
  padding-top: 0.6rem; border-top: 1px solid var(--rule-2);
}
.item__tags { margin-top: 0.9rem; font-size: 0.875rem; color: var(--ink-3); }

/* numbered — used only where the content really is a sequence */
.steps { counter-reset: step; margin-top: clamp(2rem, 4vw, 3rem); }
.step {
  display: grid; grid-template-columns: 3.25rem 1fr; gap: 0 1.5rem;
  padding-block: 1.5rem; border-top: 1px solid var(--rule);
}
.step:last-child { border-bottom: 1px solid var(--rule); }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  font-size: 0.9375rem; color: var(--calc); padding-top: 0.22rem;
  font-variant-numeric: tabular-nums;
}
.step h3 { font-size: 1.125rem; }
.step p { margin-top: 0.5rem; color: var(--ink-2); max-width: 62ch; font-size: 0.9688rem; }

.metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; margin-top: 2.5rem; }
.metric { border-top: 1px solid var(--calc); padding-top: 1rem; }
.metric b {
  display: block; font-size: clamp(1.75rem, 3.2vw, 2.4rem);
  font-weight: 500; letter-spacing: -0.03em; line-height: 1;
}
.metric span { display: block; margin-top: 0.5rem; font-size: 0.9375rem; }
.metric small { display: block; margin-top: 0.35rem; font-size: 0.8438rem; color: var(--ink-3); line-height: 1.45; }

/* ---------- about ---------- */

.bio { display: grid; grid-template-columns: 15rem 1fr; gap: 3rem; margin-top: 2.5rem; }
.bio__who { border-top: 1px solid var(--ink); padding-top: 1rem; }
.bio__who h3 { font-size: 1.1875rem; }
.bio__who p { margin-top: 0.4rem; color: var(--ink-3); font-size: 0.9375rem; }
.prose { font-family: "IBM Plex Serif", Georgia, serif; font-size: 1.0625rem; line-height: 1.75; max-width: var(--measure); }
.prose p + p { margin-top: 1.1rem; }

/* ---------- contact ---------- */

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; margin-top: 2.5rem; }
.contact-card { border-top: 1px solid var(--ink); padding-top: 1.1rem; }
.contact-card h3 { font-size: 1.0625rem; }
.contact-card a.email {
  display: inline-block; margin-top: 0.7rem;
  font-size: clamp(1.25rem, 2.6vw, 1.7rem); letter-spacing: -0.02em;
  text-decoration: none; box-shadow: inset 0 -2px 0 var(--calc);
}
.contact-card a.email:hover { color: var(--calc); }
.contact-card p { margin-top: 0.7rem; color: var(--ink-2); font-size: 0.9688rem; }

/* ---------- footer ---------- */

.foot { border-top: 1px solid var(--ink); padding-block: 2.5rem 3.5rem; margin-top: clamp(3rem, 7vw, 5rem); }
.foot__inner { display: flex; flex-wrap: wrap; gap: 1.5rem 3rem; justify-content: space-between; align-items: start; }
.foot p { font-size: 0.9375rem; color: var(--ink-3); }
.foot .name { color: var(--ink); font-weight: 500; }
.foot a { color: var(--ink-2); }

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  .cols--3, .metrics { grid-template-columns: repeat(2, 1fr); }
  .bio, .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
  .strip { grid-template-columns: repeat(2, 1fr); }
  .strip > div:nth-child(3) { border-left: 0; padding-left: 0; }
  .strip > div:nth-child(n+3) { border-top: 1px solid var(--rule-2); }
}

@media (max-width: 600px) {
  body { font-size: 1rem; }
  .cols--3, .cols--2, .metrics { grid-template-columns: 1fr; }
  .strip { grid-template-columns: 1fr; }
  .strip > div + div { border-left: 0; padding-left: 0; border-top: 1px solid var(--rule-2); }
  .masthead__inner { flex-direction: column; align-items: flex-start; gap: 0.6rem; }
  .nav { gap: 1.1rem; }
  .step { grid-template-columns: 2.5rem 1fr; gap: 0 1rem; }
}

/* let the figure use the full viewport width on small screens */
@media (max-width: 700px) {
  .figure { margin-inline: calc(var(--gutter) * -1); }
  .figure figcaption { padding-inline: var(--gutter); }
}
