/* Chenaniah's website: the app's colours (lib/core/theme/app_palette.dart)
   and fonts, served from here (no third-party requests). */
@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("fonts/AtkinsonHyperlegibleNext-Variable.ttf") format("truetype");
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: "Outfit";
  src: url("fonts/Outfit-Variable.ttf") format("truetype");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --background: #121417;
  --surface: #1B1E23;
  --surface-high: #242830;
  --border: #2E333B;
  --text: #F2EEE6;
  --text-secondary: #A8ADB7;
  --accent: #F2B544;
  --accent-foreground: #F2B544;
  --on-accent: #121417;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root {
    --background: #F6F4EF;
    --surface: #FFFFFF;
    --surface-high: #ECE9E2;
    --border: #D6D1C7;
    --text: #17191C;
    --text-secondary: #595E67;
    --accent: #F2B544;
    --accent-foreground: #8A5600;
    --on-accent: #121417;
    color-scheme: light;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: "Atkinson Hyperlegible Next", system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
}
main, header, footer {
  max-width: 46rem;
  margin: 0 auto;
  padding: 0 1rem;
}
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: .75rem;
  color: var(--text);
  text-decoration: none;
  font-family: "Outfit", system-ui, sans-serif;
  font-weight: 600;
  font-size: 1.35rem;
}
.brand img { width: 2.5rem; height: 2.5rem; }
nav.languages { display: flex; gap: .25rem; flex-wrap: wrap; }
nav.languages a {
  color: var(--text-secondary);
  text-decoration: none;
  padding: .35rem .6rem;
  border-radius: .5rem;
  font-size: .95rem;
}
nav.languages a:hover, nav.languages a:focus-visible {
  background: var(--surface-high);
  color: var(--text);
}
h1, h2, h3 {
  font-family: "Outfit", system-ui, sans-serif;
  font-weight: 600;
  line-height: 1.25;
}
h1 { font-size: 2rem; margin: 1.5rem 0 .5rem; }
h2 { font-size: 1.4rem; margin: 2.25rem 0 .5rem; }
h3 { font-size: 1.1rem; margin: 1.5rem 0 .25rem; }
p, li { color: var(--text); }
.lead { color: var(--text-secondary); font-size: 1.15rem; }
.updated { color: var(--text-secondary); font-size: .95rem; }
a { color: var(--accent-foreground); }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
section.language {
  border-top: 1px solid var(--border);
  margin-top: 2.5rem;
  padding-top: .5rem;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: .25rem 1.25rem;
  margin: 1rem 0;
}
.button {
  display: inline-block;
  background: var(--accent);
  color: var(--on-accent);
  text-decoration: none;
  font-weight: 700;
  padding: .7rem 1.2rem;
  border-radius: .75rem;
  min-height: 48px;
}
.links { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; padding: 0; list-style: none; }
footer {
  color: var(--text-secondary);
  font-size: .9rem;
  padding-top: 2rem;
  padding-bottom: 3rem;
  border-top: 1px solid var(--border);
  margin-top: 3rem;
}
footer a { color: var(--text-secondary); }
