@font-face {
  font-family: Inter;
  src: url("fonts/Inter-Variable.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* Shadowfax Consulting — dark and bold landing page
   Palette from the approved logo pack. */

:root {
  --charcoal: #252931;
  --slate: #3e4149;
  --teal: #208784;
  --grey: #9e9ea1;
  --bg: #1f242a;
  --white: #fbfcfb;
  --horse: #e5e4e6;
  --teal-hover: #259e9a;
  --focus: #5ec4c0;
  --max: 76rem;
  --font: Inter, "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
}

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

html {
  color-scheme: dark;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--white);
  font-family: var(--font);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

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

/* --- Skip link --- */

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--teal);
  color: var(--white);
  font-weight: 600;
  text-decoration: none;
  border-radius: 4px;
}

.skip-link:focus {
  top: 1rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* --- Buttons --- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.75rem 1.75rem;
  background: var(--teal);
  color: var(--white);
  font-family: inherit;
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1;
  text-decoration: none;
  border: 2px solid var(--teal);
  border-radius: 4px;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn:hover {
  background: var(--teal-hover);
  border-color: var(--teal-hover);
}

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

.btn-secondary {
  background: transparent;
  color: var(--white);
  border-color: var(--teal);
}

.btn-secondary:hover {
  background: var(--teal);
  border-color: var(--teal);
  color: var(--white);
}

/* --- Hero --- */

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 32rem;
  min-height: min(100svh, 46rem);
  padding: 4rem 1.5rem 3.5rem;
  background:
    radial-gradient(ellipse 70% 55% at 50% 38%, rgba(32, 135, 132, 0.09), transparent 70%);
}

.hero picture,
.hero .logo {
  width: min(34rem, 86vw);
}

.hero .logo {
  height: auto;
  margin-inline: auto;
}

h1 {
  margin: 2.25rem 0 0.75rem;
  max-width: 14em;
  color: var(--white);
  font-size: clamp(1.8rem, 8vw, 3.75rem);
  font-weight: 650;
  letter-spacing: -0.035em;
  line-height: 1.15;
  text-wrap: balance;
}

.headline-break {
  white-space: nowrap;
}

.subhead {
  margin: 0 0 2.25rem;
  color: var(--grey);
  font-size: clamp(1.125rem, 2.2vw, 1.4375rem);
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.4;
}

/* --- Services --- */

.services {
  padding: 4.5rem 1.5rem 4rem;
  background: var(--charcoal);
  border-block: 1px solid rgba(158, 158, 161, 0.12);
}

.eyebrow {
  margin: 0 auto 2.25rem;
  max-width: var(--max);
  color: var(--teal);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  line-height: 1.3;
  text-transform: uppercase;
}

.service-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.25rem 2.5rem;
  margin: 0 auto;
  max-width: var(--max);
}

.service {
  padding-top: 1.15rem;
  border-top: 2px solid var(--teal);
}

.service h3 {
  margin: 0 0 0.6rem;
  color: var(--white);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.service p {
  margin: 0;
  color: var(--grey);
  font-size: 1.0625rem;
  line-height: 1.55;
}

/* --- About --- */

.about {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 4.5rem 1.5rem 4.75rem;
}

.about p:first-of-type {
  margin: 0 0 2.25rem;
  max-width: 38rem;
  color: var(--horse);
  font-size: clamp(1.125rem, 2vw, 1.3125rem);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.55;
}

.email-line {
  margin: 1.15rem 0 0;
  font-size: 0.975rem;
}

.email-line a {
  color: var(--grey);
  text-decoration: none;
  border-bottom: 1px solid rgba(158, 158, 161, 0.4);
}

.email-line a:hover {
  color: var(--white);
  border-bottom-color: var(--teal);
}

.email-line a:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

/* --- Footer --- */

footer {
  padding: 2rem 1.5rem 2.5rem;
  border-top: 1px solid rgba(158, 158, 161, 0.12);
  color: var(--grey);
  font-size: 0.875rem;
  line-height: 1.55;
  text-align: center;
}

footer p {
  margin: 0;
}

footer .copyright {
  margin-top: 0.35rem;
}

.nobr {
  white-space: nowrap;
}

body {
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}

footer {
  padding-bottom: calc(2.5rem + env(safe-area-inset-bottom, 0px));
}

/* --- Breakpoints --- */

@media (min-width: 640px) {
  .hero {
    padding: 5rem 2rem 4.5rem;
  }

  .hero picture,
  .hero .logo {
    width: min(38.5rem, 80vw);
  }

  h1 {
    margin-top: 2.75rem;
  }
}

@media (min-width: 900px) {
  .service-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem 2.75rem;
  }

  .services,
  .about {
    padding-block: 5.25rem;
  }
}
