@font-face {
  font-family: "Figtree";
  src: url("/fonts/figtree-latin.woff2") format("woff2");
  font-weight: 300 900;
  font-display: swap;
}

/* Colours taken from the Smart Lama artwork */
:root {
  --ink: #12314c;        /* logo navy: text and main actions */
  --ink-hover: #0b2236;
  --ink-soft: #4a5d6e;
  --page: #eef2ec;       /* pale leaf-grey */
  --card: #ffffff;
  --card-line: #dde4da;
  --leaf: #2f6b52;       /* leaf mark: status and accents */
  --leaf-light: #e4f1e8;
  --sky: #dceefa;
  --coffee: #4361e8;     /* only on the Buy Me a Coffee link */
  --coffee-hover: #3149c4;
  --radius-card: 22px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font: 400 1rem/1.6 "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--ink); text-underline-offset: 3px; }
a:hover { color: var(--leaf); }
:focus-visible { outline: 3px solid var(--leaf); outline-offset: 3px; border-radius: 6px; }

.skip {
  position: absolute; inset-inline-start: 1rem; top: -4rem; z-index: 2;
  background: var(--card); padding: .6rem 1rem; border-radius: 12px;
}
.skip:focus { top: 1rem; }

/* Top bar, as on the Buy Me a Coffee page */
.topbar {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
  gap: .5rem 1rem; padding: .6rem clamp(1rem, 3vw, 2.25rem);
  background: var(--card); border-bottom: 1px solid var(--card-line);
}
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; font-weight: 700; font-size: 1.15rem; padding: .2rem 0; }
.brand img { border-radius: 50%; }
.topbar nav { display: flex; gap: .25rem; }
.topbar nav a { font-weight: 600; text-decoration: none; padding: .55rem .7rem; border-radius: 10px; }
.topbar nav a:hover { background: var(--leaf-light); color: var(--ink); }

/* The banner is the one bold element */
.hero { background: var(--sky); }
.hero img { width: 100%; max-height: 380px; object-fit: cover; object-position: 50% 35%; }

.page {
  max-width: 64rem; margin: -2.5rem auto 0; padding: 0 1rem 3rem;
  display: grid; gap: 1rem; position: relative;
}
.card {
  background: var(--card); border: 1px solid var(--card-line);
  border-radius: var(--radius-card); padding: clamp(1.4rem, 3vw, 2.25rem);
}

h1, h2, h3 { line-height: 1.2; margin: 0 0 .75rem; }
h1 { font-size: clamp(1.75rem, 4vw, 2.6rem); font-weight: 800; letter-spacing: -.015em; max-width: 22ch; }
h2 { font-size: 1.4rem; font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: .15rem; }
p { margin: 0 0 .9rem; }
p:last-child { margin-bottom: 0; }

.intro p { font-size: 1.1rem; max-width: 60ch; }
.section-title { margin: 1.25rem 0 0; padding-inline: .25rem; }
.apps { display: grid; gap: 1rem; }

.app-head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.app-icon { border-radius: 16px; flex: none; }
.status { margin: 0; color: var(--leaf); font-weight: 600; font-size: .95rem; }
.status.soon { color: var(--ink-soft); }
.note { color: var(--ink-soft); font-size: .95rem; }

.feature { display: grid; grid-template-columns: 1.4fr 1fr; gap: 2rem; align-items: center; }
.feature-art {
  /* sky above, pond below: the frog sits at the water line */
  background: linear-gradient(#e6f4fb 0 62%, #bfe3dc 62% 100%);
  border-radius: 18px; padding: 1.75rem 1.5rem 1rem; display: grid; place-items: end center; aspect-ratio: 4 / 3.4;
}
.feature-art img { width: min(80%, 240px); }
.facts { margin: 0 0 1rem; padding: 0; list-style: none; display: grid; gap: .45rem; }
.facts li { padding-inline-start: 1.6rem; position: relative; }
.facts li::before {
  content: ""; position: absolute; inset-inline-start: .2rem; top: .55em; width: .7rem; height: .45rem;
  border-inline-start: 2.5px solid var(--leaf); border-bottom: 2.5px solid var(--leaf); transform: rotate(-45deg);
}

.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; align-items: stretch; }
.promises { margin: .75rem 0 0; display: grid; gap: .8rem; }
.promises dt { font-weight: 700; }
.promises dd { margin: 0; color: var(--ink-soft); }

.support { display: flex; align-items: center; justify-content: space-between; gap: 1rem 2rem; margin-top: 1rem; }
.support h2 { font-size: 1.25rem; margin-bottom: .4rem; }
.support p { color: var(--ink-soft); max-width: 46ch; }

.button {
  display: inline-flex; align-items: center; justify-content: center; text-align: center;
  text-decoration: none; font-weight: 700; border-radius: 999px; min-height: 48px; padding: .75rem 1.5rem;
}
.primary { background: var(--ink); color: #fff; margin-top: .4rem; font-size: 1.05rem; }
.primary:hover { background: var(--ink-hover); color: #fff; }
.outline { border: 2px solid var(--ink); color: var(--ink); }
.outline:hover { background: var(--ink); color: #fff; }
.coffee { background: var(--coffee); color: #fff; flex: none; }
.coffee:hover { background: var(--coffee-hover); color: #fff; }
.button:active { transform: translateY(1px); }

.footer {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .5rem 2rem;
  max-width: 64rem; margin: 0 auto; padding: 0 1.25rem 2.5rem; color: var(--ink-soft); font-size: .95rem;
}
.footer p { margin: 0; }
.footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem 1rem; }
.footer a { color: var(--ink-soft); display: inline-block; padding: .3rem 0; }

@media (max-width: 820px) {
  .feature { grid-template-columns: 1fr; gap: 1.25rem; }
  .feature-art { order: -1; padding: 1.25rem 1.25rem .75rem; aspect-ratio: auto; }
  .feature-art img { width: 170px; }
  .pair { grid-template-columns: 1fr; }
  .support { flex-direction: column; align-items: stretch; }
}
@media (max-width: 700px) {
  .page { margin-top: 1rem; }
  .hero img { max-height: none; }   /* the whole banner, so the logo is never cut */
  .topbar nav a[href^="https:"] { display: none; }  /* GitHub stays in the footer */
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button:active { transform: none; }
}

/* Text pages (privacy, not found) */
.page.narrow { max-width: 44rem; margin-top: 2rem; }
.narrow h2 { font-size: 1.15rem; margin-top: 1.5rem; }
