/* Lamptrail House — "Olive and lamp oil".
   Deep olive (the oil that filled lamps in Bible times), a gold flame,
   and cool grey neutrals. Charter for Scripture and headlines, DM Sans for the rest. */

@font-face {
  font-family: "DM Sans";
  src: url("DMSans.ttf") format("truetype");
  font-weight: 100 1000;
  font-display: swap;
}

:root {
  --olive: #26301f;        /* band, lit tiles, pill */
  --olive-2: #303c27;      /* band gradient end */
  --on-olive: #f1f3ee;
  --on-olive-muted: #b9c2b0;
  --flame: #e9ac3c;        /* gold, on olive only */
  --flame-ink: #8a5a06;    /* gold dark enough for text on light grey */
  --page: #f4f5f3;
  --surface: #ffffff;
  --ink: #1d211a;
  --ink-2: #3a4035;
  --muted: #5d6656;
  --line: #e2e5df;
  --link: #3f5a2a;
  --serif: Charter, "Bitstream Charter", "Iowan Old Style", Georgia, serif;
  color-scheme: only light;
}

* { 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(--page);
  color: var(--ink-2);
  font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
}

a { color: var(--link); text-underline-offset: 2px; }
a:focus-visible { outline: 3px solid var(--flame); outline-offset: 3px; border-radius: 4px; }

.skip {
  position: absolute; left: 12px; top: -48px;
  background: var(--surface); color: var(--ink);
  padding: 8px 12px; border-radius: 8px; z-index: 10;
}
.skip:focus { top: 12px; }

.wrap { max-width: 720px; margin: 0 auto; padding: 0 20px; }

/* ---------- Olive band ---------- */
.band {
  background:
    radial-gradient(460px 320px at 12% 0%, rgba(233, 172, 60, 0.16), transparent 70%),
    linear-gradient(180deg, var(--olive), var(--olive-2));
  color: var(--on-olive);
  padding-bottom: 72px;
  border-radius: 0 0 36px 36px;
}
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  padding-bottom: 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--on-olive);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.2px;
  text-decoration: none;
}
.brand img { width: 32px; height: 32px; border-radius: 8px; box-shadow: 0 0 0 1px rgba(255,255,255,0.12); }
.navlink { color: var(--on-olive-muted); text-decoration: none; font-weight: 500; font-size: 15px; padding: 8px 0; }
.navlink:hover { color: #fff; }

.hero { padding-top: 56px; }
.ref {
  margin: 0 0 16px;
  color: var(--flame);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}
.hero h1 {
  margin: 0 0 24px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 48px;
  line-height: 1.12;
  letter-spacing: -0.5px;
  color: #fff;
  max-width: 14em;
  text-wrap: balance;
}
.hero .lead { margin: 0; color: var(--on-olive-muted); font-size: 18px; max-width: 32em; }

/* ---------- Sections ---------- */
main > section.wrap { padding-top: 64px; }
h2 {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}
h3 { margin: 0 0 6px; color: var(--ink); font-size: 20px; letter-spacing: -0.3px; line-height: 1.3; }

/* Why */
.why blockquote { margin: 0; }
.why blockquote p {
  margin: 0;
  font-family: var(--serif);
  font-size: 27px;
  line-height: 1.42;
  color: var(--ink);
  text-wrap: pretty;
}
.why .glory { margin-top: 16px; font-size: 20px; font-style: italic; color: var(--ink-2); }

/* Aims */
.intro { margin: 0 0 20px; color: var(--muted); }
.aims {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.aim {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 20px 20px 22px;
}
.aim p { margin: 0; font-size: 15px; line-height: 1.55; }
.state {
  font-size: 12px !important;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px !important;
}
.aim.lit {
  background:
    radial-gradient(220px 160px at 100% 0%, rgba(233, 172, 60, 0.18), transparent 70%),
    var(--olive);
  border-color: var(--olive);
  color: var(--on-olive-muted);
}
.aim.lit h3 { color: #fff; }
.aim.lit .state { color: var(--flame); }

/* App card */
.app {
  position: relative;
  display: flex;
  gap: 20px;
  align-items: center;
  padding: 20px 52px 20px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  color: inherit;
  text-decoration: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.app:hover { border-color: #cdd2c7; box-shadow: 0 6px 20px rgba(38, 48, 31, 0.08); }
.app:focus-visible { outline: 3px solid var(--flame); outline-offset: 3px; }
.app img { width: 88px; height: 88px; border-radius: 20px; flex: none; box-shadow: 0 0 0 1px var(--line); }
.app p { margin: 0 0 10px; }
.arrow { position: absolute; right: 22px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 22px; transition: transform 0.2s ease; }
.app:hover .arrow { transform: translate(4px, -50%); }
.soon {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--olive);
  color: var(--on-olive);
  font-size: 13px;
  font-weight: 600;
}

.small { color: var(--muted); font-size: 15px; }

/* Footer */
footer { margin-top: 72px; padding-bottom: 40px; }
.foot {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}
.sdg { font-family: var(--serif); font-style: italic; color: var(--flame-ink); }

@media (max-width: 600px) {
  .band { border-radius: 0 0 28px 28px; padding-bottom: 56px; }
  .hero { padding-top: 36px; }
  .hero h1 { font-size: 36px; }
  .why blockquote p { font-size: 22px; }
  .aims { grid-template-columns: 1fr; }
  .app { flex-direction: column; align-items: flex-start; padding-right: 20px; }
  .app img { width: 72px; height: 72px; border-radius: 16px; }
  .arrow { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .app, .arrow { transition: none; }
}
