/* Magic Tap Studio
   Colours: deep violet accent, chosen by Marc on 28 November 2026.
   Light mode: violet #5b2a86 on white is 9.9 to 1. Text #1c1c1e on white is 17 to 1.
   Dark mode: lavender #c9a8f0 on #14161a is 8.9 to 1. Text #f2f2f4 on #14161a is 16.2 to 1.
   Fonts: each device's own system font, so nothing is downloaded. */

:root {
  --background: #ffffff;
  --text: #1c1c1e;
  --accent: #5b2a86;
  --line: #e4dcef;
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #14161a;
    --text: #f2f2f4;
    --accent: #c9a8f0;
    --line: #3a3245;
  }
}

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

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

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.125rem;
  line-height: 1.6;
  border-top: 0.5rem solid var(--accent);
}

header,
main,
footer {
  max-width: 40rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

header {
  padding-top: 4rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--line);
}

h1 {
  margin: 0 0 0.5rem;
  color: var(--accent);
  font-size: 2.5rem;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.tagline {
  margin: 0;
  font-size: 1.3rem;
  line-height: 1.4;
}

main {
  padding-top: 1rem;
  padding-bottom: 2rem;
}

main:focus {
  outline: none;
}

h2 {
  margin: 2.5rem 0 0.75rem;
  font-size: 1.5rem;
  line-height: 1.25;
}

p {
  margin: 0 0 1rem;
}

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

a:hover {
  text-decoration-thickness: 0.15em;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

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

.skip-link:focus {
  top: 1rem;
  outline: 3px solid var(--text);
  outline-offset: 2px;
}

footer {
  padding-top: 1.5rem;
  padding-bottom: 3rem;
  border-top: 1px solid var(--line);
  font-size: 1rem;
}

footer p {
  margin: 0;
}

@media (forced-colors: active) {
  body {
    border-top-color: CanvasText;
  }
  .skip-link:focus {
    outline-color: CanvasText;
  }
}
