/* Kinward Advisory styles. Colours, type and spacing follow the brand guide
   (brand/Kinward Round 1 Directions/Kinward Brand Identity -static-.html, sections 05 and 06). */

:root {
  --bg: #F6F1E7;
  --surface: #FFFFFF;
  --surface-2: #ECE5D6;
  --text: #111614;
  --muted: #4A544F;
  --primary: #1F4D3A;
  --accent: #E0A43B;
  --on-accent: #111614;
  --border: #DDD6C8;
  --font-heading: "Archivo", system-ui, sans-serif;
  --font-body: "Atkinson Hyperlegible", system-ui, sans-serif;
  color-scheme: light;
}

/* Dark mode: follow the device unless the visitor picked light. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #111614;
    --surface: #1A2420;
    --surface-2: #24302A;
    --text: #F6F1E7;
    --muted: #A7B0AA;
    --primary: #7FBF9A;
    --border: #2F3B35;
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #111614;
  --surface: #1A2420;
  --surface-2: #24302A;
  --text: #F6F1E7;
  --muted: #A7B0AA;
  --primary: #7FBF9A;
  --border: #2F3B35;
  color-scheme: dark;
}

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.55;
}

a {
  color: var(--primary);
}

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

.wrap {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Header */
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 16px;
  padding-bottom: 16px;
}

.logo {
  min-width: 0;
}

.logo img {
  display: block;
  height: auto;
  max-height: 36px;
  width: auto;
  max-width: 100%;
}

/* Show the colour logo in light mode and the white logo in dark mode. */
.logo-dark { display: none !important; }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .logo-light { display: none !important; }
  :root:not([data-theme="light"]) .logo-dark { display: block !important; }
}

:root[data-theme="dark"] .logo-light { display: none !important; }
:root[data-theme="dark"] .logo-dark { display: block !important; }

.theme-toggle {
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 15px;
  white-space: nowrap;
  flex-shrink: 0;
  cursor: pointer;
}

/* Main */
main {
  flex: 1;
  padding: 48px 0 64px;
}

h1 {
  margin: 0 0 16px;
  font-family: var(--font-heading);
  font-stretch: 112%;
  font-weight: 800;
  font-size: 36px;
  line-height: 1.1;
}

.lead {
  margin: 0 0 32px;
  max-width: 620px;
}

.card {
  max-width: 620px;
  padding: 24px;
  background: var(--surface);
  border-radius: 12px;
}

.card p {
  margin: 0 0 16px;
}

.button {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 6px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 700;
  text-decoration: none;
}

/* Footer */
.site-footer {
  padding: 24px 0;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 15px;
}

.site-footer p {
  margin: 0;
}

@media (min-width: 768px) {
  h1 {
    font-size: 48px;
    line-height: 1.08;
  }

  main {
    padding-top: 96px;
  }
}
