/* Evelyn Engineered Data Unity. One stylesheet, no build step.
   Fonts are self-hosted so the pages make no third-party requests.
   The HTML in public/ is generated by build.py. */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/fonts/bricolage-grotesque.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("/fonts/ibm-plex-sans.woff2") format("woff2");
  font-weight: 400 600;
  font-display: swap;
}

:root {
  --paper: #f3f5f7;
  --panel: #ffffff;
  --ink: #0e2238;
  --slate: #536577;
  --rule: #d3dae1;
  --cobalt: #1f45d8;
  --marker: #ffd84a;

  --display: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --body: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(1rem, 4vw, 3rem);
  --measure: 38rem;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
}

img, svg { max-width: 100%; height: auto; display: block; }

a { color: var(--cobalt); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }

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

h1, h2, h3 {
  font-family: var(--display);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0;
}
h2 { font-size: clamp(1.75rem, 3.6vw, 2.5rem); font-weight: 700; }
h3 { font-size: 1.3125rem; font-weight: 650; letter-spacing: -0.01em; }

p { margin: 0 0 1em; max-width: var(--measure); }
p:last-child { margin-bottom: 0; }

.wrap {
  width: 100%;
  max-width: 76rem;
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 0.6rem 1rem;
}
.skip:focus { left: 0; z-index: 10; }

/* Header */

.site-header {
  border-bottom: 1px solid var(--rule);
}
.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  padding-top: 1.1rem;
  padding-bottom: 1.1rem;
}
.wordmark {
  font-family: var(--display);
  font-weight: 750;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
}
.wordmark small {
  font-family: var(--body);
  font-weight: 400;
  font-size: 0.875rem;
  letter-spacing: 0;
  color: var(--slate);
  margin-left: 0.5rem;
}
.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9688rem;
  padding: 0.2rem 0;
}
.site-nav a:hover { text-decoration: underline; }
.site-nav a[aria-current="page"] {
  box-shadow: inset 0 -0.45em 0 var(--marker);
}

/* Hero: the name itself, with the three initials marked */

.hero { padding: clamp(2.5rem, 7vw, 5.5rem) 0 clamp(2.5rem, 6vw, 4.5rem); }
.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 2rem clamp(2rem, 5vw, 5rem);
  align-items: end;
}
.name {
  font-size: clamp(3.1rem, 10.5vw, 8.25rem);
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: -0.045em;
}
.name span { display: block; }
.name i {
  font-style: normal;
  background-image: linear-gradient(var(--marker), var(--marker));
  background-repeat: no-repeat;
  background-position: 0 78%;
  background-size: 100% 46%;
  padding: 0 0.04em;
  margin: 0 -0.04em;
}
.hero-text p { font-size: 1.1875rem; line-height: 1.55; }
.hero-text .lede {
  font-family: var(--display);
  font-size: clamp(1.375rem, 2.4vw, 1.75rem);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.015em;
}

@media (prefers-reduced-motion: no-preference) {
  .name i { animation: mark 0.5s cubic-bezier(0.3, 0.7, 0.2, 1) both; }
  .name span:nth-child(1) i { animation-delay: 0.25s; }
  .name span:nth-child(2) i { animation-delay: 0.55s; }
  .name span:nth-child(3) i { animation-delay: 0.85s; }
  @keyframes mark {
    from { background-size: 0% 46%; }
    to { background-size: 100% 46%; }
  }
}

/* Page title block on inner pages */

.page-head { padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(1.5rem, 4vw, 2.5rem); }
.page-head h1 {
  font-size: clamp(2.5rem, 6.5vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.98;
  max-width: 14em;
}
.page-head p {
  margin-top: 1.25rem;
  font-size: 1.1875rem;
  color: var(--slate);
}

/* Sections */

.band { padding: clamp(2.5rem, 6vw, 4.5rem) 0; border-top: 1px solid var(--rule); }
.band-white { background: var(--panel); }
.band-ink { background: var(--ink); color: #fff; border-top: 0; }
.band-ink a { color: #fff; }
.band-ink p { color: #cfd8e3; }

.split {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: 1.5rem clamp(2rem, 5vw, 5rem);
}
.split > h2 { max-width: 12em; }

/* Three-part meaning of the name */

.meaning {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem clamp(1.5rem, 4vw, 3.5rem);
  list-style: none;
  margin: 0;
  padding: 0;
}
.meaning h3 { font-size: 1.625rem; font-weight: 750; margin-bottom: 0.6rem; }
.meaning h3 i {
  font-style: normal;
  box-shadow: inset 0 -0.42em 0 var(--marker);
}
.meaning p { color: var(--slate); }

/* What we produce: term and description rows */

.rows { margin: 0; padding: 0; }
.rows > div {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 0.5rem 2rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--rule);
}
.rows > div:first-child { border-top: 0; padding-top: 0; }
.rows > div:last-child { padding-bottom: 0; }
.rows dt {
  font-family: var(--display);
  font-size: 1.3125rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.rows dd { margin: 0; color: var(--slate); }
.rows dd p + ul { margin-top: 0.75rem; }
.rows dd ul { margin: 0; padding-left: 1.1rem; }
.rows dd li { margin-bottom: 0.3rem; }

/* Sample item figure: an assessment item beside the data that travels with it */

.item {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 2rem clamp(1.5rem, 4vw, 4rem);
  align-items: start;
  margin: 0;
}
.item-card {
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: clamp(1.25rem, 3vw, 2rem);
}
.item-card .stem {
  font-family: var(--display);
  font-size: clamp(1.375rem, 2.6vw, 1.75rem);
  font-weight: 650;
  letter-spacing: -0.015em;
  line-height: 1.2;
  margin-bottom: 1.25rem;
}
.item-card ol { list-style: none; margin: 0; padding: 0; }
.item-card li {
  display: grid;
  grid-template-columns: 1.75rem 4.5rem minmax(0, 1fr);
  gap: 0.75rem;
  align-items: baseline;
  padding: 0.7rem 0;
  border-top: 1px solid var(--rule);
}
.item-card li b { font-weight: 600; }
.item-card li span { font-weight: 500; }
.item-card li small { font-size: 0.9375rem; color: var(--slate); }
.item-card li.key span { box-shadow: inset 0 -0.45em 0 var(--marker); justify-self: start; }
.item-card li.key small { color: var(--ink); }
.item figcaption h2 { margin-bottom: 1.25rem; }
.item .note { font-size: 0.9375rem; color: var(--slate); margin-top: 1.25rem; }

/* Large plain statement */

.statement {
  font-family: var(--display);
  font-size: clamp(1.625rem, 3.6vw, 2.75rem);
  font-weight: 650;
  letter-spacing: -0.025em;
  line-height: 1.15;
  max-width: 24em;
}

/* Plain lists set in columns */

.columns {
  list-style: none;
  margin: 0;
  padding: 0;
  columns: 2;
  column-gap: clamp(1.5rem, 4vw, 3.5rem);
}
.columns li {
  break-inside: avoid;
  padding: 0.7rem 0;
  border-top: 1px solid var(--rule);
  font-weight: 500;
}

/* Engagement steps: a real sequence, so it is numbered */

.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.steps li {
  counter-increment: s;
  display: grid;
  grid-template-columns: 3.25rem minmax(0, 1fr);
  gap: 0 1rem;
  padding: 1.25rem 0;
  border-top: 1px solid var(--rule);
}
.steps li:first-child { border-top: 0; padding-top: 0; }
.steps li::before {
  content: counter(s);
  font-family: var(--display);
  font-size: 2.25rem;
  font-weight: 750;
  line-height: 1;
  color: var(--cobalt);
}
.steps h3 { margin-bottom: 0.35rem; }
.steps p { color: var(--slate); }

/* Facts table on the company page */

.facts { margin: 0; }
.facts > div {
  display: grid;
  grid-template-columns: 11rem minmax(0, 1fr);
  gap: 0.25rem 1.5rem;
  padding: 0.9rem 0;
  border-top: 1px solid var(--rule);
}
.facts > div:first-child { border-top: 0; padding-top: 0; }
.facts dt { color: var(--slate); }
.facts dd { margin: 0; font-weight: 500; }

/* Prose pages */

.prose h2 { font-size: 1.625rem; margin: 2.5rem 0 0.75rem; }
.prose h2:first-child { margin-top: 0; }
.prose ul { max-width: var(--measure); padding-left: 1.1rem; margin: 0 0 1em; }
.prose li { margin-bottom: 0.35rem; }

/* Contact */

.mail {
  font-family: var(--display);
  font-size: clamp(1.75rem, 5.2vw, 3.5rem);
  font-weight: 750;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--ink);
  text-decoration: none;
  box-shadow: inset 0 -0.38em 0 var(--marker);
  overflow-wrap: anywhere;
}
.mail:hover { box-shadow: inset 0 -1.2em 0 var(--marker); }
.band-ink .mail { color: var(--ink); background: var(--marker); box-shadow: none; padding: 0.05em 0.25em; }

.button {
  display: inline-block;
  margin-top: 0.75rem;
  background: var(--cobalt);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  padding: 0.8rem 1.3rem;
  border-radius: 6px;
}
.button:hover { background: #1837b3; }

/* Footer */

.site-footer {
  border-top: 1px solid var(--rule);
  padding: 2.25rem 0 3rem;
  font-size: 0.9375rem;
  color: var(--slate);
}
.site-footer .wrap {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 1.5rem 3rem;
}
.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.5rem;
  justify-content: flex-end;
}
.site-footer a { color: var(--ink); }

/* Narrow screens */

@media (max-width: 54rem) {
  .hero .wrap,
  .split,
  .item,
  .site-footer .wrap { grid-template-columns: minmax(0, 1fr); }
  .meaning { grid-template-columns: minmax(0, 1fr); }
  .rows > div { grid-template-columns: minmax(0, 1fr); }
  .site-footer ul { justify-content: flex-start; }
}
@media (max-width: 34rem) {
  .columns { columns: 1; }
  .item-card li { grid-template-columns: 1.75rem 3.5rem minmax(0, 1fr); }
  .facts > div { grid-template-columns: minmax(0, 1fr); }
  .wordmark small { display: block; margin-left: 0; }
}
