/* Spring Parrot. One stylesheet for both languages. Colors follow the OS theme. */
:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --text: #0f3312;
  --muted: #2f4a32;
  --accent: #117d10;        /* links and buttons: 5.1:1 on white */
  --accent-big: #1a9a17;    /* large headline text only */
  --on-accent: #ffffff;
  --card: #fdf6dc;
  --card-border: #f3e8bd;
  --team: #ebf8df;
  --team-border: #d3efbd;
  --chip: #d8f2c2;
  --pill: #ffffff;
  --blob: #faeab0;
  --soon-bg: #d8f2c2;
  --soon-text: #0f3312;
  --dot-on: #2fae2b;
  --dot-req: #e2b100;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b170e;
    --text: #f2f7ee;
    --muted: #c7d6c4;
    --accent: #7ee04f;
    --accent-big: #7ee04f;
    --on-accent: #0b170e;
    --card: #11241a;
    --card-border: #24412c;
    --team: #11241a;
    --team-border: #24412c;
    --chip: #183322;
    --pill: #0d1d12;
    --blob: #143a1d;
    --soon-bg: transparent;
    --soon-text: #f3d34a;
    --dot-on: #7ee04f;
    --dot-req: #f3d34a;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: ui-rounded, "SF Pro Rounded", "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.45;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
h1, h2, h3 { line-height: 1.1; margin: 0; letter-spacing: -0.02em; }
h2 { font-size: clamp(2rem, 6vw, 3.25rem); text-align: center; margin: 3rem 0 1.25rem; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 8px; background: var(--bg); padding: 8px; z-index: 1; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

/* Nav */
.nav { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 0; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 8px; color: var(--text); text-decoration: none; font-weight: 800; font-size: 1.4rem; min-height: 44px; }
.brand img { width: 44px; height: 44px; }
.nav ul { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.nav ul a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; color: var(--text); text-decoration: none; font-weight: 600; }
.nav ul a:hover { text-decoration: underline; }
.lang { display: flex; align-items: center; font-weight: 800; margin-left: 8px; }
.lang a, .lang span { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; }
.lang a { color: var(--text); text-decoration: none; }
.lang [aria-current] { color: var(--accent); }
@media (max-width: 560px) { .nav ul .sect { display: none; } }

/* Hero */
.hero { text-align: center; padding-top: 1.5rem; }
.hero h1 { font-size: clamp(2.2rem, 8vw, 4.25rem); font-weight: 900; }
.hero h1 em { font-style: normal; color: var(--accent-big); }
.ctas { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin: 1.5rem 0; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 28px; border-radius: 999px; font-weight: 800; font-size: 1.15rem; text-decoration: none; border: 2px solid var(--accent); }
.btn.primary { background: var(--accent); color: var(--on-accent); }
.btn.ghost { color: var(--text); }
.btn:hover { filter: brightness(1.08); }
.hero-art { background: var(--card); border-radius: 28px; padding: 16px; overflow: hidden; position: relative; }
.hero-art::before { content: ""; position: absolute; inset: 12% 10%; background: var(--blob); border-radius: 50%; }
.hero-art img { position: relative; margin: 0 auto; max-height: 460px; width: auto; }
@media (prefers-color-scheme: dark) { .hero-art { background: none; } }

/* Apps */
.apps { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
.card { background: var(--card); border: 1px solid var(--card-border); border-radius: 22px; padding: 22px; text-align: center; }
.card img { width: 150px; height: 150px; margin: 0 auto 14px; border-radius: 34px; }
.card h3 { font-size: 1.6rem; margin-bottom: 6px; }
.card p { margin: 0 0 8px; }
.card.live { text-align: left; }
.card.live a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 800; font-size: 1.2rem; }
.soon { display: inline-block; background: var(--soon-bg); color: var(--soon-text); border: 1px solid var(--soon-text); border-radius: 999px; padding: 2px 14px; font-weight: 700; margin-bottom: 10px; }
@media (prefers-color-scheme: light) { .soon { border-color: transparent; } }

/* Engineers */
.team { background: var(--team); border: 1px solid var(--team-border); border-radius: 28px; padding: 22px; display: grid; gap: 18px; }
@media (min-width: 760px) { .team { grid-template-columns: 1fr 1fr; align-items: center; } .team .bottom { grid-column: 1 / -1; } }
.team .lead { font-size: 1.45rem; font-weight: 800; line-height: 1.2; margin: 0 0 12px; }
.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { background: var(--chip); border: 1px solid var(--team-border); border-radius: 999px; padding: 4px 14px; display: flex; align-items: center; gap: 8px; }
.chips li::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--dot-on); flex: none; }
.chips li.req::before { background: var(--dot-req); }
.steps { list-style: none; margin: 0 0 18px; padding: 10px 16px; background: var(--pill); border-radius: 24px; display: flex; justify-content: center; gap: clamp(12px, 5vw, 56px); flex-wrap: wrap; font-weight: 800; font-size: 1.25rem; }
.steps li { display: flex; align-items: center; gap: 8px; }
.steps b { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: var(--on-accent); }

/* Contact and footer */
.contact { text-align: center; padding-bottom: 1rem; }
.contact h2 { margin-bottom: 0.5rem; font-size: 2rem; }
.contact a { display: inline-flex; align-items: center; min-height: 44px; font-size: 1.3rem; font-weight: 600; }
footer { border-top: 1px solid var(--card-border); margin-top: 2rem; padding: 16px 0 28px; text-align: center; font-size: 0.85rem; color: var(--muted); }
@media (prefers-color-scheme: dark) { .hero h1 span { color: var(--accent-big); } }
