/* Falenu website: one stylesheet, system fonts only, no third-party requests. */
:root {
  --bg: #f6f4fe;
  --surface: #ffffff;
  --text: #1b1a3a;
  --muted: #55547a;
  --accent: #4c4fb8;
  --accent-soft: #e7e3fd;
  --line: #dedaf6;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #12102e;
    --surface: #1c1a40;
    --text: #ecebfb;
    --muted: #b3b1d6;
    --accent: #b4aaf5;
    --accent-soft: #2a2760;
    --line: #2f2c63;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 1rem; top: 1rem; background: var(--surface); padding: 0.5rem 0.75rem; z-index: 1; }

.wrap { max-width: 44rem; margin: 0 auto; padding: 0 1.25rem; }

header.site {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  row-gap: 0.25rem;
  padding: 1.25rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text);
  font-weight: 700;
  font-size: 1.15rem;
  text-decoration: none;
}
.brand img { width: 36px; height: 36px; }

nav.site { display: flex; gap: 1rem; font-size: 0.95rem; }
nav.site a { white-space: nowrap; }

main { padding-bottom: 3rem; }

h1 { font-size: 2rem; line-height: 1.25; margin: 1.5rem 0 0.5rem; }
h2 { font-size: 1.4rem; line-height: 1.3; margin: 2.5rem 0 0.75rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
h3 { font-size: 1.1rem; margin: 1.75rem 0 0.4rem; }
section:first-of-type > h2:first-child { border-top: 0; padding-top: 0; }

.lead { font-size: 1.2rem; color: var(--muted); margin-top: 0; }
.meta { color: var(--muted); font-size: 0.95rem; }

.hero { text-align: center; padding: 2rem 0 1rem; }
.hero img { width: 128px; height: 128px; }
.hero h1 { font-size: 2.4rem; margin-top: 0.75rem; }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.25rem 1.4rem;
  margin: 1.25rem 0;
}
.card > :first-child { margin-top: 0; }
.card > :last-child { margin-bottom: 0; }

.pill {
  display: inline-block;
  background: var(--accent-soft);
  color: var(--text);
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  font-size: 0.95rem;
}

.langs { display: flex; gap: 0.75rem; font-size: 0.95rem; margin: 0.5rem 0 1rem; }

ul { padding-left: 1.25rem; }
li + li { margin-top: 0.35rem; }

details { border-bottom: 1px solid var(--line); padding: 0.6rem 0; }
summary { cursor: pointer; font-weight: 600; }
details p { margin: 0.5rem 0 0.25rem; }

footer.site {
  border-top: 1px solid var(--line);
  padding: 1.5rem 0 2.5rem;
  color: var(--muted);
  font-size: 0.85rem;
}
footer.site p { margin: 0.4rem 0; }
