/* base.css: structure shared by every generated site.
   Override the tokens in styles.css. Put the app-specific look there, not here. */

:root {
  --bg: #111;
  --surface: #1c1c1c;
  --text: #fff;
  --muted: rgb(255 255 255 / .68);
  --line: rgb(255 255 255 / .1);
  --primary: #6b5bff;
  --accent: #ffcc33;
  --accent-ink: #111;
  --radius: 20px;
  --font-display: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-body: var(--font-display);
  --wrap: 1120px;
  --gutter: clamp(16px, 4vw, 32px);
}

/* reset */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100svh; display: flex; flex-direction: column;
  background: var(--bg); color: var(--text);
  font: 400 17px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; margin: 0 0 .5em; text-wrap: balance; }
p { margin: 0 0 1em; text-wrap: pretty; }
a { color: inherit; }
main { flex: 1; }

/* layout */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

/* a11y */
.skip-link {
  position: absolute; left: 12px; top: -48px; z-index: 100;
  padding: 8px 14px; border-radius: 10px; background: var(--accent); color: var(--accent-ink);
  text-decoration: none; font-weight: 600;
}
.skip-link:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* site header */
.site-header { padding-block: 18px; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }

/* language switcher (plain links) */
.lang-switch { display: inline-flex; gap: 4px; font-size: 14px; }
.lang-switch a { padding: 4px 10px; border-radius: 999px; text-decoration: none; color: var(--muted); }
.lang-switch a[aria-current="true"] { color: var(--text); background: var(--line); }

/* legal / support pages */
.prose { max-width: 68ch; margin-inline: auto; padding: clamp(24px, 6vw, 64px) var(--gutter) 64px; }
.prose h1 { font-size: clamp(2rem, 5vw, 2.75rem); }
.prose .meta { color: var(--muted); font-size: .95em; margin-bottom: 2em; }
.prose h2 { font-size: 1.3rem; margin-top: 2.2em; }
.prose h3 { font-size: 1.08rem; margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.25em; }
.prose li { margin-bottom: .4em; }
.prose a { color: var(--accent); text-underline-offset: 3px; }
.prose table { width: 100%; border-collapse: collapse; margin: 1em 0 1.5em; font-size: .95em; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.prose th { font-weight: 600; white-space: nowrap; }
.prose details { border: 1px solid var(--line); border-radius: 14px; padding: 4px 16px; margin-bottom: 10px; background: color-mix(in srgb, var(--surface) 60%, transparent); }
.prose summary { cursor: pointer; font-weight: 600; padding: 10px 0; }
.prose details[open] summary { margin-bottom: 4px; }
.contact-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; margin: 1.5em 0 2em; background: color-mix(in srgb, var(--surface) 75%, transparent); }

/* footer */
.site-footer { padding-block: 28px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
