/* Budapp website – same tokens as src/theme/index.ts (dark) plus a light variant. Mobile first.
   System fonts only: nothing is loaded from other servers. */
:root {
  color-scheme: light dark;
  --bg: #F4F2EA;
  --surface: #FFFFFF;
  --surface-alt: #E9EDE4;
  --border: #D9DFD5;
  --moss: #3E6B4A;
  --moss-light: #5C8F68;
  --amber: #E0A526;
  --amber-dim: rgba(224, 165, 38, 0.16);
  --on-amber: #1A1405;
  --text: #1C2A21;
  --text-muted: #55665A;
  --link: #3E6B4A;
  --radius: 18px;
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0F1A14;
    --surface: #16251C;
    --surface-alt: #1E3226;
    --border: #2A4234;
    --amber-dim: rgba(224, 165, 38, 0.15);
    --text: #EDEFE8;
    --text-muted: #9DB0A2;
    --link: #F2C45A;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 var(--font);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
main { flex: 1; }
a { color: var(--link); text-underline-offset: 2px; }
a:focus-visible, .button:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; }
img { max-width: 100%; height: auto; }
h1, h2, h3 { line-height: 1.25; letter-spacing: -0.01em; }
h1 { font-size: 2rem; font-weight: 800; margin: 0 0 0.5em; letter-spacing: -0.02em; }
h2 { font-size: 1.3rem; margin: 2em 0 0.5em; }
h3 { font-size: 1.05rem; margin: 1.5em 0 0.3em; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: 760px; margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; background: var(--surface); padding: 8px 12px; border-radius: 8px; z-index: 10; }

/* Header */
.site-header { border-bottom: 1px solid var(--border); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 800; font-size: 1.2rem; }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.site-header nav a { color: var(--text-muted); text-decoration: none; font-weight: 600; font-size: 0.95rem; }
.site-header nav a:hover { color: var(--text); }

/* Buttons and badges */
.button {
  display: inline-block;
  padding: 14px 26px;
  border-radius: 12px;
  background: var(--amber);
  color: var(--on-amber);
  font-weight: 700;
  text-decoration: none;
}
.button:hover { filter: brightness(1.06); }
.pill {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--amber);
  background: var(--amber-dim);
  font-weight: 700;
  font-size: 0.9rem;
}
.label { color: var(--amber); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; margin: 0 0 0.5em; }
.muted { color: var(--text-muted); }

/* Start page */
.hero { text-align: center; padding: 40px 0 24px; }
.hero img { width: 220px; margin-bottom: 16px; }
.hero h1 { font-size: 2.4rem; margin-bottom: 0.2em; }
.hero .lead { font-size: 1.2rem; color: var(--text-muted); max-width: 30em; margin: 0 auto 1.2em; }

.notice {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--amber);
  border-radius: 12px;
  padding: 16px 18px;
  margin: 24px 0;
}
.notice p:last-child { margin-bottom: 0; }

.features { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 12px; }
.features li { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; }
.features h3 { margin: 10px 0 4px; }
.features p { margin: 0; color: var(--text-muted); }
.icon { width: 40px; height: 40px; border-radius: 10px; background: var(--surface-alt); color: var(--moss-light); display: grid; place-items: center; }
.icon svg { width: 22px; height: 22px; }
@media (min-width: 600px) {
  .features { grid-template-columns: 1fr 1fr; }
  .hero { padding-top: 64px; }
  .hero img { width: 260px; }
}

/* Text pages (legal texts, support) */
.page { padding: 32px 0 48px; }
.legal h2 { padding-top: 0.5em; border-top: 1px solid var(--border); }
.legal ul { padding-left: 1.2em; margin: 0 0 1em; }
.legal li { margin-bottom: 0.3em; }
.legal li::marker { color: var(--amber); }
.legal p, .legal li { overflow-wrap: anywhere; }
.source { margin-top: 2.5em; font-size: 0.9rem; }

details { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; margin-bottom: 10px; }
summary { cursor: pointer; padding: 14px 16px; font-weight: 700; }
details > div { padding: 0 16px 4px; }

/* Status pages (confirmed, expired link, 404) */
.status { text-align: center; padding: 48px 0 56px; }
.status img { width: 160px; margin-bottom: 8px; }
.status .button { margin: 8px 0 20px; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 24px 0 32px; font-size: 0.9rem; color: var(--text-muted); }
.site-footer ul { list-style: none; padding: 0; margin: 0 0 12px; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.site-footer a { color: var(--text-muted); }
.site-footer a:hover { color: var(--text); }
.site-footer p { margin: 0; }
