/* EJAI Solutions — site styles */

:root {
  --moss: #1f3a2d;
  --moss-deep: #142820;
  --fog: #f1f3ec;
  --stone: #d9d4c5;
  --kingfisher: #1d6fa5;
  --kingfisher-ink: #14507a;
  --ink: #1b2420;
  --ink-soft: #4b5751;
  --contour: rgba(31, 58, 45, 0.16);

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Source Sans 3", "Helvetica Neue", Arial, sans-serif;

  --measure: 62ch;
  --gutter: clamp(20px, 5vw, 64px);
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background: var(--fog);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--kingfisher-ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--kingfisher); }
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--kingfisher);
  outline-offset: 3px;
  border-radius: 2px;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.1;
  margin: 0 0 0.5em;
  color: var(--moss-deep);
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); font-variation-settings: "opsz" 144, "SOFT" 60; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; max-width: var(--measure); }

.wrap {
  width: min(1100px, 100% - 2 * var(--gutter));
  margin-inline: auto;
}

/* Header */
.site-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 0 8px;
}
.brand {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--moss-deep);
  text-decoration: none;
  letter-spacing: 0.01em;
}
.brand span { font-weight: 400; color: var(--ink-soft); }
.site-nav { display: flex; gap: 22px; font-size: 1rem; }
.site-nav a { color: var(--ink); text-decoration: none; }
.site-nav a:hover { text-decoration: underline; }

/* Hero with contour lines */
.hero {
  position: relative;
  padding: clamp(56px, 10vw, 128px) 0 clamp(48px, 8vw, 96px);
  overflow: hidden;
}
.hero .contours {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; }
.hero p.lede {
  font-size: clamp(1.2rem, 2vw, 1.4rem);
  max-width: 48ch;
  color: var(--ink-soft);
}
.hero .ask {
  margin-top: 28px;
  padding: 16px 20px;
  border-left: 3px solid var(--kingfisher);
  background: rgba(255,255,255,0.55);
  max-width: 52ch;
  font-size: 1.05rem;
}
.hero .where {
  display: inline-block;
  margin-top: 8px;
  font-size: 1rem;
  color: var(--ink-soft);
}

/* Sections */
section { padding: clamp(40px, 7vw, 88px) 0; }
section + section { border-top: 1px solid var(--stone); }
.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: start;
}
@media (max-width: 760px) {
  .two-col { grid-template-columns: 1fr; }
}
.two-col h2 { position: sticky; top: 24px; }

/* App list — a list, not cards */
.apps { list-style: none; margin: 0; padding: 0; }
.apps li {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 20px;
  padding: 22px 0;
  border-top: 1px solid var(--stone);
}
.apps li:last-child { border-bottom: 1px solid var(--stone); }
@media (max-width: 600px) {
  .apps li { grid-template-columns: 1fr; gap: 6px; }
}
.apps .name {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--moss-deep);
}
.apps .status {
  display: block;
  margin-top: 4px;
  font-size: 0.95rem;
  color: var(--kingfisher-ink);
}
.apps p { margin: 0; }
.apps li.has-shot {
  grid-template-columns: 180px minmax(0, 1fr) 220px;
  grid-template-areas: "name text shot";
  align-items: start;
}
.apps li.has-shot > div { grid-area: name; }
.apps li.has-shot > p { grid-area: text; }
.apps li.has-shot > .shot { grid-area: shot; }
.shot {
  margin: 0;
  border: 1px solid var(--stone);
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 1px 0 rgba(31,58,45,0.08);
}
.shot img { display: block; width: 100%; height: auto; }
@media (max-width: 760px) {
  .apps li.has-shot {
    grid-template-columns: 1fr;
    grid-template-areas: "name" "text" "shot";
  }
  .shot { max-width: 300px; }
}

/* Contact */
.contact-line {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  font-weight: 500;
}
.contact-line a { text-decoration-thickness: 2px; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--stone);
  padding: 32px 0 40px;
  font-size: 0.95rem;
  color: var(--ink-soft);
}
.site-footer p { margin: 0 0 6px; max-width: none; }
.site-footer nav { margin-bottom: 14px; display: flex; gap: 18px; flex-wrap: wrap; }

/* Long-form pages (privacy) */
.prose h2 { margin-top: 2em; font-size: 1.5rem; }
.prose ul { max-width: var(--measure); padding-left: 1.2em; }
.prose li { margin-bottom: 0.4em; }
.prose .updated { color: var(--ink-soft); font-size: 1rem; }
