/* Invoice Data Extraction's own Archivo (its site's file, trimmed to the letters of its name), so its wordmark is set exactly as its header sets it */
@font-face {
  font-family: "Archivo IDE";
  src: url("/fonts/archivo-ide.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: block;
}

@font-face {
  font-family: "Inter";
  src: url("/fonts/inter-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #fbfbfa;
  --ink: #0c0d10;
  --ink-2: #41444c;
  --muted: #74777f;
  --line: rgb(12 13 16 / 0.09);
  --focus: #3b6fe0;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0c0f;
    --ink: #f2f3f5;
    --ink-2: #c3c6cd;
    --muted: #8d919b;
    --line: rgb(255 255 255 / 0.1);
    --focus: #7ea3f5;
  }
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  font-optical-sizing: auto;
  font-feature-settings: "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
p,
dl,
dd {
  margin: 0;
}

img,
svg {
  display: block;
}

a {
  color: inherit;
  text-decoration-color: var(--line);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
  transition: text-decoration-color 150ms ease;
}

a:hover {
  text-decoration-color: currentColor;
}

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

.wrap {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 40px);
}

/* Text that is for readers who do not see the page: kept in the flow, clipped out of view (never display:none, which text extractors drop) */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.nowrap {
  white-space: nowrap;
}

/* Header */

.site-header {
  padding-top: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.975rem;
  font-weight: 620;
  letter-spacing: -0.015em;
  text-decoration: none;
}

.brand-mark {
  width: 26px;
  height: 26px;
}

.brand-mark .mark-tile {
  fill: var(--ink);
}

.brand-mark .mark-glyph {
  fill: var(--bg);
}

/* Hero */

.hero {
  padding: clamp(80px, 13vw, 152px) 0 clamp(56px, 8vw, 96px);
}

.hero h1 {
  max-width: 15ch;
  font-size: clamp(2.375rem, 1.4rem + 3.9vw, 4.5rem);
  font-weight: 620;
  line-height: 1.04;
  letter-spacing: -0.042em;
  text-wrap: balance;
}

.lead {
  margin-top: 24px;
  max-width: 48ch;
  font-size: clamp(1.125rem, 1rem + 0.45vw, 1.3125rem);
  color: var(--muted);
  letter-spacing: -0.01em;
  text-wrap: pretty;
}

/* Products: one section each */

.product {
  margin-top: clamp(40px, 6vw, 72px);
}

.product + .product {
  margin-top: clamp(96px, 13vw, 160px);
}

.product-head {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 24px clamp(32px, 6vw, 80px);
  align-items: start;
  margin-bottom: clamp(32px, 4.5vw, 52px);
}

.product-name {
  margin: 0;
  line-height: 0;
}

.lockup {
  display: block;
  width: auto;
}

.lockup-ide {
  display: flex;
  align-items: center;
  gap: 11.25px;
  line-height: 1.25;
}

.lockup-ide-logo {
  flex: none;
  width: 36px;
  height: 36px;
}

.lockup-ide span {
  font-family: "Archivo IDE", system-ui, sans-serif;
  font-size: 15.75px;
  font-weight: 600;
  color: #111827;
  white-space: nowrap;
}

.lockup-everpod {
  height: 34px;
}

.lockup-everpod .lockup-word {
  fill: #1e1a2e;
}

.lockup-plate {
  fill: none;
}

@media (prefers-color-scheme: dark) {
  .lockup .lockup-word {
    fill: #f2f3f5;
  }
  .lockup-ide span {
    color: #f2f3f5;
  }
  .lockup-plate {
    fill: #ffffff;
  }
}

.product-statement {
  margin-top: 20px;
  max-width: 20ch;
  font-size: clamp(1.75rem, 1.2rem + 1.9vw, 2.625rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.032em;
  text-wrap: balance;
}

.product-aside p {
  max-width: 40ch;
  color: var(--ink-2);
  text-wrap: pretty;
}

.product-list {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  max-width: 44ch;
}

.product-list li {
  padding: 10px 0;
  border-top: 1px solid var(--line);
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--ink-2);
  text-wrap: pretty;
}

.product-list li:last-child {
  border-bottom: 1px solid var(--line);
}

.product-link {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-top: 18px;
  font-size: 0.9375rem;
  color: var(--muted);
  text-decoration: none;
  transition: color 150ms ease;
}

.product-link:hover {
  color: var(--ink);
}

.product-link svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.shot {
  display: block;
  overflow: hidden;
  border-radius: 14px;
  box-shadow: 0 0 0 1px var(--line), 0 24px 56px -32px rgb(16 24 40 / 0.4);
}

.shot img {
  width: 100%;
  height: auto;
}

@media (max-width: 760px) {
  .product-head {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Founder */

.founder {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: clamp(28px, 5vw, 56px);
  align-items: start;
  margin-top: clamp(112px, 14vw, 176px);
  padding-top: clamp(40px, 5vw, 56px);
  border-top: 1px solid var(--line);
}

.founder-photo {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: 12px;
}

.founder h2 {
  font-size: 1.5rem;
  font-weight: 620;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.role {
  margin-top: 2px;
  color: var(--muted);
}

.founder p:not(.role) {
  max-width: 60ch;
  margin-top: 16px;
  color: var(--ink-2);
  text-wrap: pretty;
}

.founder .role + p {
  margin-top: 20px;
}

@media (max-width: 640px) {
  .founder {
    grid-template-columns: minmax(0, 1fr);
  }
  .founder-photo {
    width: 128px;
    height: 128px;
  }
}

/* Company */

.company {
  margin-top: clamp(64px, 8vw, 96px);
  padding-top: clamp(32px, 4vw, 40px);
  border-top: 1px solid var(--line);
}

.facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, auto));
  justify-content: start;
  gap: 24px clamp(32px, 5vw, 64px);
}

.facts dt {
  font-size: 0.8125rem;
  color: var(--muted);
}

.facts dd {
  margin-top: 4px;
  font-size: 0.9875rem;
}

@media (max-width: 900px) {
  .facts {
    grid-template-columns: repeat(2, minmax(0, auto));
  }
}

@media (max-width: 460px) {
  .facts {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Footer */

.site-footer {
  padding-top: clamp(64px, 8vw, 96px);
  padding-bottom: 40px;
}

.site-footer p {
  font-size: 0.875rem;
  color: var(--muted);
}

/* Not found */

.not-found {
  padding: clamp(96px, 16vw, 176px) 0 clamp(64px, 10vw, 120px);
}

.not-found h1 {
  font-size: clamp(2rem, 1.4rem + 2.6vw, 3rem);
  font-weight: 620;
  letter-spacing: -0.04em;
  line-height: 1.06;
}

.not-found p {
  margin-top: 16px;
  color: var(--muted);
}
