/* Intelth. The energyir.io family: green on near-black, green on paper. Fraunces for headings, IBM Plex Sans
   for text, IBM Plex Mono for labels. The logo's teal-to-navy ground and its orange appear only as accents. */

@font-face {
  font-family: "Fraunces";
  src: url("/fonts/fraunces-latin-var.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("/fonts/IBMPlexSans-Regular-Latin1.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("/fonts/IBMPlexSans-SemiBold-Latin1.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("/fonts/IBMPlexMono-Regular-Latin1.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("/fonts/IBMPlexMono-Medium-Latin1.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --paper: #f4f2eb;
  --surface: #f8f6f1;
  --ink: #0b0d10;
  --muted: #5a5d65;
  --rule: #d9d5c9;
  --line: #737373;
  --green: #3aa676;
  --accent: #1f6f4f;
  --btn: #1f6f4f;
  --btn-ink: #f4f2eb;
  --btn-hover: #0b0d10;
  --focus: #1f6f4f;
  /* the logo's ground and orange: the investor band and the Intelth node of the chart */
  --band-from: #2c5f63;
  --band-to: #181f3b;
  --on-band: #f4f2eb;
  --on-band-muted: #c9dad8;
  --band-ink: #08130d;
  --orange: #db723d;
  --grid: rgba(11, 13, 16, 0.035);
  --glow: rgba(58, 166, 118, 0.13);

  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --measure: 38rem;
  --page: 76rem;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --band: clamp(3.5rem, 8vw, 6.5rem);
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0b0d10;
    --surface: #16181d;
    --ink: #f4f2eb;
    --muted: #b9b6ac;
    --rule: #2a2d34;
    --line: #7a7d85;
    --accent: #3aa676;
    --btn: #3aa676;
    --btn-ink: #08130d;
    --btn-hover: #55c392;
    --focus: #55c392;
    --grid: rgba(244, 242, 235, 0.03);
    --glow: rgba(58, 166, 118, 0.16);
  }
}

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

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 5rem; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
strong { font-weight: 600; }

a { color: inherit; text-decoration-thickness: 0.08em; text-underline-offset: 0.2em; }
a:hover { text-decoration-color: var(--accent); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 2px; }

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

.skip {
  position: absolute; left: var(--gutter); top: -4rem;
  background: var(--ink); color: var(--paper); padding: 0.6rem 1rem; z-index: 10;
}
.skip:focus { top: 0.75rem; }

/* Type */

h1, h2, h3 { font-family: var(--serif); font-optical-sizing: auto; }

h1 {
  font-weight: 400;
  font-size: clamp(2.5rem, 1.3rem + 5.4vw, 5.25rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.page-head h1 { font-size: clamp(2.3rem, 1.4rem + 3.8vw, 4rem); max-width: 18ch; }

h2 {
  font-weight: 400;
  font-size: clamp(1.7rem, 1.25rem + 1.7vw, 2.5rem);
  line-height: 1.12;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

h3 {
  font-weight: 500;
  font-size: 1.3rem;
  line-height: 1.25;
  letter-spacing: -0.005em;
}

.lead {
  font-size: clamp(1.15rem, 1rem + 0.6vw, 1.35rem);
  line-height: 1.5;
  max-width: var(--measure);
  color: var(--ink);
}

.prose > * + * { margin-top: 1.1em; }
.prose { max-width: var(--measure); }
.prose p, .prose li { color: var(--ink); }
.muted { color: var(--muted); }

.tag {
  font-family: var(--mono);
  font-weight: 400;
  font-size: 0.8125rem;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: var(--muted);
  overflow-wrap: anywhere;
}
h2.tag { font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin-bottom: 1.5rem; }

/* Header */

.site-head { border-bottom: 1px solid var(--rule); }
.site-head .wrap {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 0.5rem 2rem; padding-block: 0.9rem;
}
.brand {
  display: inline-flex; align-items: center; gap: 0.7rem;
  text-decoration: none;
  font-family: var(--serif); font-weight: 600; font-size: 1.45rem; letter-spacing: -0.015em; line-height: 1;
}
.brand img { width: 2.25rem; height: 2.25rem; }

.nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1.75rem; align-items: center; }
.nav a {
  text-decoration: none; padding-block: 0.7rem;
  font-family: var(--mono); font-weight: 400; font-size: 0.8125rem; letter-spacing: 0.1em; text-transform: uppercase;
  border-bottom: 2px solid transparent;
}
.nav a:hover { border-bottom-color: var(--line); }
.nav a[aria-current="page"] { color: var(--accent); border-bottom-color: var(--accent); }

/* Buttons */

.actions { display: flex; flex-wrap: wrap; gap: 0.9rem 1rem; align-items: center; margin-top: 2rem; }
.btn {
  display: inline-block; text-decoration: none;
  font-family: var(--mono); font-weight: 500; font-size: 0.8125rem; line-height: 1.3; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 1rem 1.5rem; min-height: 3rem;
  border: 1px solid var(--btn); border-radius: 4px;
  background: var(--btn); color: var(--btn-ink);
}
.btn:hover { background: var(--btn-hover); border-color: var(--btn-hover); color: var(--btn-ink); }
.btn-quiet { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-quiet:hover { background: transparent; color: var(--ink); border-color: var(--accent); }
.address { font-family: var(--mono); font-weight: 500; font-size: 0.95rem; overflow-wrap: anywhere; }

/* Bands */

.band { padding-block: var(--band); }
.band + .band { border-top: 1px solid var(--rule); }
.band-head { max-width: 46rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.band-head p { margin-top: 1rem; }

/* The opening of each page sits on energyir.io's ground: a faint grid with a green glow behind the heading. */
.hero, .page-head {
  background-image:
    radial-gradient(36rem 24rem at 20% 42%, var(--glow), transparent 72%),
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 100% 100%, 42px 42px, 42px 42px;
}
.hero { padding-block: clamp(3.5rem, 8vw, 7rem) clamp(3rem, 6vw, 5rem); }
.hero h1 { max-width: 15ch; }
.hero .lead { margin-top: 1.75rem; }

.page-head { padding-block: clamp(3rem, 6vw, 5rem) clamp(2.5rem, 4vw, 3.5rem); border-bottom: 1px solid var(--rule); }
.page-head .lead { margin-top: 1.4rem; }

/* The holding chart: Intelth above, its ventures below. A dashed outline means in development. */

.chart { padding-block: clamp(2.5rem, 5vw, 4rem) var(--band); border-top: 1px solid var(--rule); }
.chart-root {
  position: relative;
  width: min(100%, 22rem); margin-inline: auto;
  background: var(--band-to) linear-gradient(135deg, var(--band-from), var(--band-to));
  color: var(--on-band);
  padding: 1.1rem 1.4rem; border-radius: 6px;
  text-align: center;
}
.chart-root strong { display: block; font-family: var(--serif); font-weight: 600; font-size: 1.45rem; letter-spacing: -0.015em; }
.chart-root span { display: block; color: var(--on-band-muted); font-family: var(--mono); font-size: 0.8125rem; letter-spacing: 0.04em; }

.chart-row { position: relative; display: grid; gap: 1.25rem; grid-template-columns: repeat(4, minmax(0, 1fr)); padding-top: 4.5rem; }
/* the stem from Intelth, and the bar that joins the four drops */
.chart-row::before {
  content: ""; position: absolute; top: 0; left: 50%; height: 2.25rem; border-left: 2px solid var(--line);
}
.chart-row::after {
  content: ""; position: absolute; top: 2.25rem; left: calc((100% - 3.75rem) / 8); right: calc((100% - 3.75rem) / 8); border-top: 2px solid var(--line);
}

.node {
  position: relative; display: flex; flex-direction: column; gap: 0.7rem;
  background: var(--surface);
  border: 2px solid var(--line); border-radius: 6px;
  padding: 1.35rem 1.35rem 1.5rem;
}
.node::before {
  content: ""; position: absolute; left: 50%; bottom: 100%; height: 2.25rem; margin-bottom: 2px;
  border-left: 2px solid var(--line);
}
.node-dev { border-style: dashed; background: transparent; }
.node-dev::before { border-left-style: dashed; }
.node-eir { border-top: 6px solid var(--green); }

.node h3 { font-size: 1.35rem; overflow-wrap: anywhere; }
.node h3 a { text-decoration: none; }
.node h3 a::after { content: ""; position: absolute; inset: 0; }
.node:hover h3 a { text-decoration: underline; text-decoration-color: var(--accent); }
.node p { font-size: 1rem; line-height: 1.5; }
.node .tag { margin-top: auto; padding-top: 0.6rem; }
.node-head { display: flex; align-items: center; gap: 0.7rem; min-height: 2.25rem; }
.node-head img { width: 2.25rem; height: 2.25rem; border-radius: 6px; }
.node-eir .tag { color: var(--accent); }
.chart-key { margin-top: 1.5rem; }

@media (max-width: 62rem) {
  .chart-root { margin-inline: 0; text-align: left; width: min(100%, 20rem); }
  .chart-row { grid-template-columns: 1fr; padding-top: 1.25rem; padding-left: 2rem; gap: 1.25rem; }
  .chart-row::before, .chart-row::after { content: none; }
  /* each venture draws its own stub and its own length of the rail, so the rail stops at the last one */
  .node::before {
    left: auto; right: 100%; bottom: auto; top: 2.4rem; height: 0; width: calc(2rem - 2px); margin: 0 2px 0 0;
    border-left: 0; border-top: 2px solid var(--line);
  }
  .node-dev::before { border-top-style: dashed; }
  .node::after {
    content: ""; position: absolute; right: calc(100% + 2rem - 2px); top: calc(-1.25rem - 2px); bottom: -2px;
    border-left: 2px solid var(--line);
  }
  .node:last-child::after { bottom: auto; height: calc(3.65rem + 6px); }
}

/* Three and two column sets */

.cols { display: grid; gap: 2.5rem clamp(2rem, 4vw, 4rem); }
.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cols > * > h3 { padding-top: 1.1rem; border-top: 2px solid var(--accent); margin-bottom: 0.7rem; }
.cols p + p { margin-top: 0.9em; }
@media (max-width: 52rem) { .cols-3, .cols-2 { grid-template-columns: 1fr; } }

/* A heading beside its text */

.split { display: grid; gap: 1.5rem clamp(2rem, 5vw, 5rem); grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; }
@media (max-width: 52rem) { .split { grid-template-columns: 1fr; } }
.split .tag { margin-top: 0.8rem; display: block; }
.split-head img { width: 3rem; height: 3rem; border-radius: 8px; margin-bottom: 1.1rem; }
.eir-rule { width: 3rem; border: 0; border-top: 6px solid var(--green); margin: 0 0 1.1rem; }

.facts { margin-top: 1.75rem; border-top: 1px solid var(--rule); }
.facts > div { display: grid; grid-template-columns: minmax(8rem, 1fr) 2.2fr; gap: 0.25rem 1.5rem; padding-block: 0.9rem; border-bottom: 1px solid var(--rule); }
.facts dt { font-weight: 600; }
@media (max-width: 36rem) { .facts > div { grid-template-columns: 1fr; } }

.plain-list li { padding-left: 1.3rem; position: relative; }
.plain-list li + li { margin-top: 0.5rem; }
.plain-list li::before { content: ""; position: absolute; left: 0; top: 0.72em; width: 0.6rem; border-top: 2px solid var(--accent); }

.more { font-weight: 600; text-decoration-color: var(--accent); }
.after-facts { margin-top: 1.5rem; }

/* The investor band: the logo's ground, teal into navy, with its orange on hover */

.call { background: var(--band-to) linear-gradient(120deg, var(--band-from), var(--band-to) 85%); color: var(--on-band); padding-block: var(--band); }
.call h2 { max-width: 20ch; }
.call p { color: var(--on-band-muted); max-width: var(--measure); margin-top: 1.1rem; font-size: 1.15rem; }
.call .btn { background: var(--on-band); color: var(--band-ink); border-color: var(--on-band); }
.call .btn:hover { background: var(--orange); border-color: var(--orange); color: var(--band-ink); }
.call .address { color: var(--on-band); }
.call a:hover { text-decoration-color: var(--orange); }
.call :focus-visible { outline-color: var(--on-band); }

/* Footer */

.site-foot { border-top: 1px solid var(--rule); padding-block: 2.5rem 3rem; font-size: 0.98rem; }
.site-foot .wrap { display: flex; flex-wrap: wrap; gap: 1.5rem 3rem; justify-content: space-between; align-items: flex-start; }
.site-foot nav ul { display: flex; flex-wrap: wrap; gap: 0.4rem 1.5rem; }
.site-foot nav a { display: inline-block; padding-block: 0.35rem; overflow-wrap: anywhere; }
.site-foot p { color: var(--muted); }
.site-foot p + p { margin-top: 0.3rem; }

.notice { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid var(--rule); font-size: 0.95rem; color: var(--muted); max-width: 46rem; }

@media (prefers-reduced-motion: no-preference) {
  .btn, .nav a { transition: background-color 0.15s, border-color 0.15s, color 0.15s; }
}

@media print {
  .site-head nav, .skip { display: none; }
  .hero, .page-head { background-image: none; }
  .call, .chart-root { background: none; color: #000; }
}
