/* Kit A Steady Navy: colours from brand/kit-a/palette.json */
:root {
  --bg: #ffffff;
  --surface: #f4f6f9;
  --text: #14202e;
  --muted: #526070;
  --link: #1d5fd6;
  --heading: #0f2a4a;
  --primary: #0f2a4a;
  --primary-hover: #1d4a7a;
  --on-primary: #ffffff;
  --accent: #2563eb;
  --label: #2563eb;
  --border: #e2e8f0;
  --panel: #0f2a4a;
  --on-panel: #ffffff;
  --panel-link: #8ab4ff;
  --panel-label: #8ab4ff;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1a2e;
    --surface: #11253f;
    --text: #e8eef6;
    --muted: #a9b6c8;
    --link: #8ab4ff;
    --heading: #ffffff;
    --primary: #8ab4ff;
    --primary-hover: #6ea0ff;
    --on-primary: #0b1a2e;
    --accent: #6ea0ff;
    --label: #8ab4ff;
    --border: #22395a;
    --panel: #11253f;
    --on-panel: #e8eef6;
    --panel-link: #8ab4ff;
    --panel-label: #8ab4ff;
  }
}

/* Premium Computer Services - site styles (v2). Colours come from the :root block that
   tools/build-site.js writes above this file from the kit's palette.json. */

@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/inter-regular-1.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/inter-medium-1.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/inter-semibold-1.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/inter-bold-1.woff2") format("woff2"); }

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  color-scheme: light dark;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
}

img,
svg {
  display: block;
  max-width: 100%;
}

.wrap {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.wrap.narrow {
  max-width: 46rem;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
}

.skip:focus {
  left: 1rem;
  top: 1rem;
  padding: 0.5rem 0.75rem;
  background: var(--primary);
  color: var(--on-primary);
  border-radius: 6px;
  z-index: 10;
}

a {
  color: var(--link);
  text-underline-offset: 0.16em;
  text-decoration-thickness: 1px;
}

a:hover {
  text-decoration-thickness: 2px;
}

a:focus-visible,
.button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Header */

.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 5rem;
}

.brand {
  display: block;
  flex: none;
}

.brand img {
  height: 2.6rem;
  width: auto;
}

.header-link {
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  color: var(--primary);
}

.header-link:hover {
  text-decoration: underline;
}

/* Type */

h1,
h2,
h3 {
  color: var(--heading);
  line-height: 1.2;
}

h1 {
  font-size: 2.125rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin: 0 0 0.75rem;
}

h2 {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 2.5rem 0 0.75rem;
}

h3 {
  font-size: 1.1875rem;
  font-weight: 600;
  margin: 1.75rem 0 0.5rem;
}

p,
ul,
ol {
  margin: 0 0 1rem;
}

ul,
ol {
  padding-left: 1.25rem;
}

li {
  margin-bottom: 0.4rem;
}

.label {
  font-size: 0.78125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--label);
  margin: 0 0 0.75rem;
}

.nowrap {
  white-space: nowrap;
}

.em,
.em a {
  font-weight: 600;
  overflow-wrap: anywhere;
}

/* Home: hero */

.hero {
  padding: 4rem 0 3.5rem;
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items: center;
}

.hero h1 {
  font-size: 2.75rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}

.hero .intro {
  font-size: 1.1875rem;
  color: var(--muted);
  max-width: 34rem;
  margin-bottom: 1.75rem;
}

.button {
  display: inline-block;
  padding: 0.8rem 1.35rem;
  border-radius: 8px;
  background: var(--primary);
  color: var(--on-primary);
  font-weight: 600;
  text-decoration: none;
}

.button:hover {
  background: var(--primary-hover);
}

.hero-art img {
  width: 100%;
  height: auto;
}

/* Home: services */

.services {
  padding: 1rem 0 1.5rem;
}

.services h2,
.who h2 {
  margin-top: 0;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.25rem 1.5rem 1.5rem;
}

.card img {
  width: 100%;
  height: auto;
  margin: 0 0 0.5rem;
}

.card h3 {
  margin: 0.25rem 0 0.75rem;
}

.card .label {
  margin-bottom: 0.5rem;
}

.card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.card li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.55rem;
  font-size: 1rem;
}

.card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--accent);
}

/* Home: who we help */

.who {
  padding: 3rem 0 1rem;
}

.who-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 0;
}

.who-list li {
  margin: 0;
  padding: 1rem 1.25rem;
  border-left: 3px solid var(--accent);
  background: var(--surface);
  border-radius: 0 10px 10px 0;
  font-weight: 600;
  color: var(--heading);
}

/* Home: contact */

.contact {
  padding: 3rem 0 4rem;
}

.contact-panel {
  background: var(--panel);
  color: var(--on-panel);
  border-radius: 18px;
  padding: 2.25rem 2.5rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.5rem 2.5rem;
  align-items: center;
}

.contact-panel h2 {
  color: var(--on-panel);
  margin: 0 0 0.5rem;
}

.contact-panel p {
  margin: 0;
  font-size: 1.125rem;
}

.contact-panel a {
  color: var(--panel-link);
}

.contact-panel .label {
  color: var(--panel-label);
  margin: 0;
}

/* Policy and support pages */

.page {
  padding-top: 2.5rem;
  padding-bottom: 3.5rem;
}

.updated {
  color: var(--muted);
  font-size: 0.9375rem;
}

.lead {
  font-size: 1.1875rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: 10px;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
}

.panel h2 {
  margin-top: 0.25rem;
}

.panel > :last-child {
  margin-bottom: 0;
}

section[id],
h2[id],
h3[id] {
  scroll-margin-top: 1rem;
}

/* Footer */

.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 2rem 0 2.25rem;
  color: var(--muted);
  font-size: 0.9375rem;
}

.site-footer .skyline {
  width: 13rem;
  height: auto;
  margin: 0 0 1rem;
}

.site-footer p {
  margin: 0 0 0.4rem;
}

/* Narrow screens */

@media (max-width: 52rem) {
  .hero .wrap {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .hero-art {
    max-width: 22rem;
  }

  .cards,
  .who-list {
    grid-template-columns: 1fr;
  }

  .contact-panel {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 30rem) {
  body {
    font-size: 1rem;
  }

  .wrap {
    padding: 0 1.125rem;
  }

  .site-header .wrap {
    min-height: 4.25rem;
  }

  .brand img {
    height: 2.15rem;
  }

  .hero {
    padding: 2.25rem 0 2rem;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero .intro {
    font-size: 1.0625rem;
  }

  .hero-art {
    max-width: 17rem;
  }

  h1 {
    font-size: 1.75rem;
  }

  .contact-panel {
    padding: 1.75rem 1.5rem;
  }
}
