/* Everground Systems site, direction B "Open Letter". Colors come from the Breakwater mark (OneDrive Everground\brand). */

@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/fraunces-latin-opsz-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Fraunces";
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/fraunces-latin-opsz-italic.woff2") format("woff2");
}
@font-face {
  font-family: "Libre Franklin";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/librefranklin-latin-wght-normal.woff2") format("woff2");
}

:root {
  --bg: #f3f7f9;
  --surface: #ffffff;
  --tint: #e3eef3;
  --text: #10242c;
  --text-2: #36505b;
  --text-3: #47606b;
  --line: #c3d6de;
  --brand: #0b5778;
  --brand-strong: #08445e;
  --on-brand: #ffffff;
  --accent: #e0442f;
  --kicker: #b8321d;
  --ok: #155c38;
  --ok-soft: #e1f3e8;
  --review: #8a4200;
  --band: #0b5778;
  --band-text: #ffffff;
  --band-muted: #cfe6ef;
  --band-time: #bfe3f1;
  --band-ok: #c4efd6;
  --band-review: #ffd9b0;
  --band-line: rgba(255, 255, 255, 0.3);
  --product: #10242c;
  --product-muted: #c9dde5;
  --product-kicker: #9fd3e8;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Libre Franklin", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #08202b;
    --surface: #0e2c39;
    --tint: #0b2632;
    --text: #ddeff6;
    --text-2: #a9c3ce;
    --text-3: #93b1bd;
    --line: #1f4352;
    --brand: #8fd0ea;
    --brand-strong: #b5e2f3;
    --on-brand: #08202b;
    --accent: #ff6b55;
    --kicker: #ff8a75;
    --ok: #6fd39c;
    --ok-soft: #12382a;
    --review: #ffb36b;
    --band: #0e3a4d;
    --band-line: rgba(255, 255, 255, 0.18);
    --product: #041820;
    color-scheme: dark;
  }
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.125rem;
  line-height: 1.65;
}

h1, h2, h3, p, ol, ul, figure, blockquote { margin: 0; }
ol, ul { padding: 0; list-style: none; }
img { display: block; max-width: 100%; }

a { color: var(--brand); text-underline-offset: 0.2em; }
a:hover { color: var(--brand-strong); text-decoration-color: var(--accent); }
a:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

em { font-style: italic; font-weight: 300; }
.dot { color: var(--accent); }

.wrap { width: 100%; max-width: calc(75rem + 2 * var(--gutter)); margin: 0 auto; padding-inline: var(--gutter); }

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 20;
  padding: 0.5rem 1rem; border-radius: 0.5rem;
  background: var(--brand); color: var(--on-brand); font-weight: 600;
}
.skip:focus { top: 1rem; }

/* Type */
.kicker {
  margin-bottom: 1.125rem;
  color: var(--kicker);
  font-size: 0.875rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
}
.display, .h2-huge, .h2-big, .h2-mid, h3 { font-family: var(--serif); letter-spacing: -0.015em; }
.display {
  color: var(--brand);
  font-size: clamp(3.5rem, 10.4vw, 9.75rem); font-weight: 400; line-height: 0.93; letter-spacing: -0.035em;
  text-wrap: balance;
}
.h2-huge {
  color: var(--brand);
  font-size: clamp(3rem, 7vw, 6rem); font-weight: 400; line-height: 0.96; letter-spacing: -0.035em;
  text-wrap: balance;
}
.h2-big {
  color: var(--brand);
  font-size: clamp(2.5rem, 5.6vw, 4.75rem); font-weight: 400; line-height: 1; letter-spacing: -0.03em;
}
.h2-mid {
  color: var(--brand);
  font-size: clamp(2.125rem, 3.8vw, 3rem); font-weight: 400; line-height: 1.04; letter-spacing: -0.025em;
}
h3 { font-size: 1.75rem; font-weight: 500; line-height: 1.1; }
.lede { font-size: clamp(1.25rem, 2vw, 1.5rem); line-height: 1.5; }
.muted, .aside { color: var(--text-2); }

/* Buttons and links */
.pill {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 2.75rem; padding: 0 1.375rem; border-radius: 999px;
  background: var(--brand); color: var(--on-brand);
  font-weight: 500; text-decoration: none;
}
.pill:hover { background: var(--brand-strong); color: var(--on-brand); }
.pill-large { min-height: 3.625rem; padding: 0 2rem; font-size: 1.125rem; font-weight: 600; }
.text-link { display: inline-flex; align-items: center; min-height: 2.75rem; font-weight: 500; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; }

/* Header */
.top-inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem;
  padding-block: 1.375rem;
}
.brand {
  display: inline-flex; align-items: center; gap: 0.75rem; min-height: 2.75rem;
  color: var(--text); font-size: 1.125rem; font-weight: 600; text-decoration: none;
}
.brand:hover { color: var(--text); }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 2rem; font-size: 1rem; }
.nav-wide { display: inline-flex; align-items: center; min-height: 2.75rem; color: var(--text); text-decoration: none; }
.nav-wide:hover { color: var(--brand); text-decoration: underline; }
@media (max-width: 52rem) { .nav-wide { display: none; } }

/* Hero */
.hero-inner { display: flex; flex-direction: column; gap: 3rem; padding-block: 4.5rem 6.5rem; }
.hero-head { display: flex; flex-direction: column; gap: 1.5rem; }
.hero-head .kicker { margin: 0; }
.rule { position: relative; height: 2px; background: var(--brand); }
.rule::after {
  content: ""; position: absolute; right: 18%; top: 50%;
  width: 1.125rem; height: 1.125rem; margin-top: -0.5625rem;
  border-radius: 50%; background: var(--accent);
}
.hero-body { display: flex; flex-wrap: wrap; gap: 3rem 6rem; }
.hero-lede { flex: 1.2 1 27.5rem; display: flex; flex-direction: column; gap: 1.75rem; }
.letter { flex: 1 1 22.5rem; display: flex; flex-direction: column; gap: 1rem; padding-top: 0.375rem; }
.letter blockquote p { font-size: 1.375rem; line-height: 1.5; }
.letter figcaption { color: var(--text-3); font-size: 1rem; }

/* Bands */
.band { background: var(--band); color: var(--band-text); }
.band .kicker { color: var(--band-muted); }
.band .h2-mid { color: var(--band-text); }
.split { display: flex; flex-wrap: wrap; gap: 3rem 6rem; padding-block: 6.5rem; }
.split-head { flex: 1 1 20rem; display: flex; flex-direction: column; }
.split-head .kicker { margin-bottom: 1.125rem; }
.caption { margin-top: 1.125rem; color: var(--band-muted); font-size: 0.9375rem; }

.day { flex: 2 1 32.5rem; border-top: 1px solid var(--band-line); }
.day li {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.375rem 2rem;
  padding-block: 1.375rem; border-bottom: 1px solid var(--band-line);
}
.day-time { flex: 0 0 9.375rem; color: var(--band-time); font-family: var(--serif); font-size: 2.5rem; font-weight: 300; line-height: 1; }
.ampm { font-size: 0.45em; }
.day-task { flex: 1 1 17.5rem; font-size: 1.3125rem; }
.day-status { flex: 0 0 7.5rem; color: var(--band-ok); font-size: 0.875rem; font-weight: 600; }
.day-review { color: var(--band-review); }

/* Sections */
.section { padding-block: clamp(4.5rem, 10vw, 7.5rem); }
.section-tint { background: var(--tint); }
.section-surface { background: var(--surface); border-block: 1px solid var(--line); }
.section-head { display: flex; flex-direction: column; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head-split { flex-direction: row; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1.5rem 5rem; }
.section-head-split > div { flex: 1 1 27.5rem; }
.aside { flex: 1 1 22.5rem; max-width: 28.75rem; }

/* What we build */
.offers { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(28.75rem, 100%), 1fr)); gap: 0 5rem; }
.offers li { display: flex; gap: 1.75rem; padding-block: 2.25rem; border-top: 1px solid var(--line); }
.offers h3 { font-size: 1.875rem; margin-bottom: 0.625rem; }
.offers p { color: var(--text-2); }
.num {
  flex: 0 0 3.5rem;
  color: var(--kicker); font-family: var(--serif); font-size: 3.5rem; font-style: italic; font-weight: 300; line-height: 0.9;
}

/* Already running */
.agents { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(15rem, 100%), 1fr)); gap: 2.5rem 2rem; }
.agents li { display: flex; flex-direction: column; gap: 0.75rem; padding-top: 1.25rem; border-top: 3px solid var(--brand); }
.agents p { color: var(--text-2); font-size: 1.0625rem; }
.agents .when { color: var(--brand); font-size: 0.875rem; font-weight: 600; }
.agents .agent-weekly { border-top-color: var(--kicker); }
.agents .agent-weekly .when { color: var(--kicker); }

/* Examples */
.story {
  display: flex; flex-wrap: wrap; gap: 2.5rem 4.5rem;
  margin-bottom: clamp(3rem, 6vw, 4rem); padding: clamp(1.75rem, 4.4vw, 3.5rem);
  background: var(--surface); border: 1px solid var(--line); border-radius: 0.375rem;
}
.story-text { flex: 1 1 23.75rem; display: flex; flex-direction: column; align-items: flex-start; gap: 1.25rem; }
.story-text h3 { font-size: clamp(1.875rem, 3.6vw, 2.75rem); font-weight: 400; line-height: 1.06; letter-spacing: -0.025em; }
.story-text p:not(.badge) { color: var(--text-2); }
.badge { padding: 0.3125rem 0.875rem; border-radius: 999px; background: var(--ok-soft); color: var(--ok); font-size: 0.8125rem; font-weight: 600; }
.story-steps { flex: 1.2 1 26.25rem; border-top: 1px solid var(--line); }
.story-steps li { display: flex; gap: 1.25rem; padding-block: 1.375rem; border-bottom: 1px solid var(--line); }
.status { flex: 0 0 6.5rem; padding-top: 0.25rem; color: var(--ok); font-size: 0.8125rem; font-weight: 600; }
.status-review { color: var(--review); }

.examples { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(18.75rem, 100%), 1fr)); gap: 3rem; }
.examples li { display: flex; flex-direction: column; gap: 0.75rem; }
.examples p { color: var(--text-2); font-size: 1.0625rem; }
.examples .label { color: var(--text-3); font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.examples .tagline { color: var(--brand); font-family: var(--serif); font-size: 1.5rem; font-style: italic; line-height: 1.25; }
.footnote { margin-top: 1.75rem; color: var(--text-3); font-size: 0.9375rem; }

/* How we work and approach */
.two-col { display: flex; flex-wrap: wrap; gap: 4.5rem 6rem; }
.two-col > div { flex: 1 1 27.5rem; }
.two-col .section-head { margin-bottom: 2rem; }
.lined { border-top: 1px solid var(--line); }
.lined li { display: flex; gap: 1.5rem; padding-block: 1.5rem; border-bottom: 1px solid var(--line); }
.lined .num { flex-basis: 2.5rem; font-size: 2.5rem; line-height: 1; }
.lined h3 { margin-bottom: 0.375rem; font-family: var(--sans); font-size: 1.25rem; font-weight: 600; letter-spacing: 0; }
.lined p { color: var(--text-2); font-size: 1.0625rem; }

/* About */
.about { align-items: flex-start; gap: 2.5rem 6rem; }
.about-text { display: flex; flex-direction: column; gap: 1.25rem; }
.about-text .lede { font-size: 1.375rem; }
@media (min-width: 60rem) { .about-text { padding-top: 2.75rem; } }

/* Product */
.product { padding-block: 0; background: var(--product); color: var(--band-text); }
.product .kicker { color: var(--product-kicker); }
.product .h2-mid { color: var(--band-text); font-size: clamp(2.25rem, 4.6vw, 3.75rem); }
.product .split { align-items: center; }
.product .split-head p:last-child { margin-top: 1.125rem; color: var(--product-muted); }
.features {
  flex: 1 1 23.75rem;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(10.625rem, 100%), 1fr)); gap: 0 2.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
}
.features li { padding-block: 1.125rem; border-bottom: 1px solid rgba(255, 255, 255, 0.25); font-family: var(--serif); font-size: 1.5rem; }

/* Contact */
.contact { padding-block: clamp(5rem, 12vw, 8.5rem); }
.contact-inner { max-width: 62.5rem; display: flex; flex-direction: column; align-items: center; gap: 2rem; text-align: center; }
.contact-inner .h2-huge { font-size: clamp(2.875rem, 7.6vw, 6.75rem); line-height: 0.98; }
.contact-inner > p { max-width: 40rem; color: var(--text-2); font-size: 1.25rem; }
.contact .actions { justify-content: center; }

/* Footer */
.foot { border-top: 1px solid var(--line); color: var(--text-3); font-size: 0.9375rem; }
.foot-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem; padding-block: 1.75rem; }
.foot-inner > p a { display: inline-flex; align-items: center; min-height: 2.75rem; }
.social { display: flex; flex-wrap: wrap; margin: -0.75rem; }
.social a { display: inline-flex; padding: 0.75rem; color: var(--text-3); }
.social a:hover { color: var(--brand); }

/* 404 */
.missing { padding-block: 4.5rem; }
.missing h1 { margin-bottom: 0.75rem; color: var(--brand); font-family: var(--serif); font-size: 2.5rem; font-weight: 400; }
