/* BaPix site. Colours and type from the app's design « Fonte & Ambre »
   (docs/design/mockups/v0.3.1/tokens): dark only, one amber accent. */

@font-face {
  font-family: 'Archivo Condensed';
  src: url('/assets/fonts/archivo-condensed-800.woff2') format('woff2');
  font-weight: 800;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('/assets/fonts/inter-400.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('/assets/fonts/inter-600.woff2') format('woff2');
  font-weight: 600;
  font-display: swap;
}

:root {
  --bg-base: #0d0e10;
  --bg-surface: #16181b;
  --line-decor: #2a2e33;
  --text-primary: #f3f2ee;
  --text-secondary: #a3a7ae;
  --accent: #f2a93b;
  --on-accent: #1a1206;
  --wrap: 44rem;
  --gutter: 1rem;
  --display: 'Archivo Condensed', 'Arial Narrow', sans-serif;
  --body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color-scheme: dark;
}

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

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

body {
  margin: 0;
  background: var(--bg-base);
  color: var(--text-primary);
  font: 400 1.0625rem/1.65 var(--body);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

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

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -4rem;
  padding: 0.75rem 1rem;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 600;
  z-index: 1;
}
.skip-link:focus {
  top: 0.5rem;
}

/* Header and footer */
.site-header {
  border-bottom: 1px solid var(--line-decor);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  min-height: 4rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  min-height: 44px;
  color: var(--text-primary);
  text-decoration: none;
  font: 800 1.5rem/1 var(--display);
  letter-spacing: 0.01em;
}
.brand img {
  border-radius: 8px;
}

.site-footer {
  margin-top: 4rem;
  border-top: 1px solid var(--line-decor);
  color: var(--text-secondary);
  font-size: 0.9375rem;
}
.site-footer .wrap {
  padding-top: 1.5rem;
  padding-bottom: 2rem;
}
.site-footer p {
  margin: 0 0 0.75rem;
}
.brand-mini {
  font: 800 1.125rem/1 var(--display);
  color: var(--text-primary);
}
.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.5rem;
}
.site-footer li a {
  display: inline-block;
  min-height: 44px;
  line-height: 44px;
}

/* Headings */
h1,
h2 {
  font-family: var(--display);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: 0.005em;
  overflow-wrap: break-word;
}
h1 {
  font-size: clamp(2.5rem, 9vw, 4rem);
  margin: 0 0 1.25rem;
}
h2 {
  font-size: clamp(1.75rem, 5vw, 2.25rem);
  margin: 3rem 0 1rem;
}
h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  margin: 2rem 0 0.5rem;
}
p {
  margin: 0 0 1rem;
}

.lede {
  font-size: 1.1875rem;
  color: var(--text-secondary);
  max-width: 36rem;
}
.kicker {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}
.num {
  color: var(--accent);
}

/* Home and 404 */
.hero {
  padding: 4rem 0 1rem;
}
.note {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.5rem 0.875rem;
  border: 1px solid var(--accent);
  border-radius: 999px;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.9375rem;
}

/* Policy */
.doc-head {
  padding: 3rem 0 0.5rem;
}
.lang-switch a {
  display: inline-block;
  min-height: 44px;
  line-height: 44px;
}
.summary {
  margin: 0;
  padding: 1.25rem 1.25rem 1.25rem 2.5rem;
  background: var(--bg-surface);
  border-left: 3px solid var(--accent);
  border-radius: 0 12px 12px 0;
}
.summary li + li {
  margin-top: 0.625rem;
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
