/* Verstehe site. System fonts, no external requests. Colours follow the app's theme
   (app/themes/verstehe.css): neutral ground, one indigo accent; the dark ground is the icon's ink. */

:root {
  color-scheme: light dark;
  --bg: #f6f7f9;
  --surface: #ffffff;
  --fg: #181b1f;
  --muted: #5a5e65;
  --line: #dcdee2;
  --accent: #3b63be;
  --gold: #946800;
  --measure: 40rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1115;
    --surface: #161920;
    --fg: #f1f2f4;
    --muted: #a1a5ab;
    --line: #262a31;
    --accent: #84a9f7;
    --gold: #f2c230;
  }
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial,
    "Noto Sans", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-wrap: break-word;
  hyphens: auto;
}

a {
  color: var(--accent);
  text-underline-offset: 0.15em;
}

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}

.skip {
  position: absolute;
  left: -999px;
}

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

.wrap {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--fg);
  font-weight: 650;
  text-decoration: none;
}

.brand img {
  width: 2rem;
  height: 2rem;
  border-radius: 0.5rem;
}

.langs {
  display: flex;
  gap: 0.25rem;
  font-size: 0.9375rem;
}

.langs a {
  padding: 0.25rem 0.5rem;
  border-radius: 0.375rem;
  text-decoration: none;
}

.langs a:hover {
  background: var(--surface);
}

/* Content */

main {
  padding-bottom: 3rem;
}

h1 {
  font-size: clamp(1.75rem, 6vw, 2.25rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 1.5rem 0 0.75rem;
}

h2 {
  font-size: 1.25rem;
  line-height: 1.3;
  margin: 2.25rem 0 0.5rem;
}

h3 {
  font-size: 1.0625rem;
  line-height: 1.4;
  margin: 1.5rem 0 0.25rem;
}

p,
ul {
  margin: 0 0 0.9rem;
}

ul {
  padding-left: 1.25rem;
}

li + li {
  margin-top: 0.3rem;
}

.lead {
  font-size: 1.1875rem;
  color: var(--fg);
}

.meta {
  color: var(--muted);
  font-size: 0.9375rem;
}

.note {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  padding: 0.9rem 1rem;
  margin: 1.25rem 0;
}

.note p:last-child,
.note ul:last-child {
  margin-bottom: 0;
}

address {
  font-style: normal;
}

.lang-section + .lang-section {
  margin-top: 3.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--line);
}

/* Landing */

.hero {
  padding: 2.5rem 0 1rem;
}

.hero img {
  width: 5.5rem;
  height: 5.5rem;
  border-radius: 1.25rem;
  display: block;
}

.hero h1 {
  margin-top: 1.25rem;
}

.hero .gold {
  color: var(--gold);
}

.links {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
  display: grid;
  gap: 0.6rem;
}

.links li + li {
  margin-top: 0;
}

.links a {
  display: block;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  padding: 0.85rem 1rem;
  text-decoration: none;
  font-weight: 600;
}

.links a span {
  display: block;
  color: var(--muted);
  font-weight: 400;
  font-size: 0.9375rem;
}

/* FAQ */

details {
  border-bottom: 1px solid var(--line);
  padding: 0.75rem 0;
}

details:first-of-type {
  border-top: 1px solid var(--line);
}

summary {
  cursor: pointer;
  font-weight: 600;
}

details > :not(summary):first-of-type {
  margin-top: 0.6rem;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--line);
  padding-top: 1.25rem;
  padding-bottom: 2.5rem;
  color: var(--muted);
  font-size: 0.9375rem;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  margin-bottom: 0.75rem;
}

.site-footer p {
  margin: 0;
}
