/* NorthSpec holding site. Brand tokens: build brief section 2.1.
   Hex values live only in the two token blocks below. */

@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/space-grotesk-latin-600-normal.woff2") format("woff2");
}

:root {
  color-scheme: light dark;
  --bg: #F5F3EE;
  --text: #1B1F24;
  --muted: #4A4F57;
  --card: #FBFAF7;
  --line: #DEDAD2;
  --signal: #D6402A;
  --link: #B23520;
  --band-bg: #1B1F24;
  --band-text: #F5F3EE;
  --band-muted: #A8ADB4;
  --band-link: #FF7A62;
  --hero-bg: url("/assets/graphics/hero-light.svg");
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1B1F24;
    --text: #F5F3EE;
    --muted: #A8ADB4;
    --card: #252A31;
    --line: #343A42;
    --signal: #D6402A;
    --link: #FF7A62;
    --band-bg: #252A31;
    --band-text: #F5F3EE;
    --band-muted: #A8ADB4;
    --band-link: #FF7A62;
    --hero-bg: url("/assets/graphics/hero-dark.svg");
  }
}

/* Layout values (section 2.3) */
:root {
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-heading: "Space Grotesk", var(--font-body);
  --gutter: clamp(16px, 4vw, 40px);
  --space: clamp(64px, 10vw, 120px);
}

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

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

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-wrap: break-word;
}

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

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--text);
}

h1 {
  font-size: clamp(2.5rem, 1.6rem + 4vw, 4.25rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.625rem, 1.3rem + 1.4vw, 2.25rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

h3 {
  font-size: 1.125rem;
  line-height: 1.3;
}

p {
  margin: 0;
}

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

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

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

.wrap {
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Skip link */
.skip-link {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 10;
  padding: 10px 16px;
  background: var(--text);
  color: var(--bg);
  border-radius: 6px;
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: none;
}

main:focus {
  outline: none;
}

/* Header */
.site-header {
  padding-block: 20px;
}

.logo-link {
  display: inline-block;
}

.logo-link img {
  width: auto;
  height: 28px;
}

@media (min-width: 768px) {
  .logo-link img {
    height: 32px;
  }
}

/* Shared text pieces */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.eyebrow::before {
  content: "";
  flex: none;
  width: 24px;
  height: 2px;
  background: var(--signal);
}

.lead {
  max-width: 40rem;
  font-size: clamp(1.125rem, 1rem + 0.5vw, 1.3125rem);
  line-height: 1.5;
  color: var(--muted);
}

.section {
  margin-block: var(--space);
}

.section h2 {
  margin-bottom: 32px;
}

/* Hero */
.hero {
  padding-block: 32px 8px;
}

.hero-text {
  max-width: 34rem;
}

.hero-mark img {
  width: 48px;
  height: 48px;
  margin-bottom: 24px;
}

.hero h1::after {
  content: "";
  display: block;
  width: 48px;
  height: 3px;
  margin-block: 24px;
  background: var(--signal);
}

.hero .button {
  margin-top: 32px;
}

@media (min-width: 900px) {
  .hero {
    display: flex;
    align-items: center;
    min-height: clamp(440px, 52vw, 640px);
    padding-block: 48px;
    background: var(--hero-bg) right center / auto 100% no-repeat;
  }

  .hero-mark {
    display: none;
  }

  /* Keep the text in the faded left part of the artwork, clear of the arrow. */
  .hero-text {
    max-width: min(34rem, 56vw - var(--gutter));
  }
}

/* Button */
.button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 12px 20px;
  border-radius: 6px;
  background: var(--text);
  color: var(--bg);
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
}

.button img {
  width: 14px;
  height: 14px;
}

.button:hover {
  text-decoration: underline;
}

@supports (background: color-mix(in srgb, red 50%, blue)) {
  .button:hover {
    background: color-mix(in srgb, var(--text) 86%, var(--bg));
    text-decoration: none;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .button {
    transition: background-color 0.15s ease;
  }
}

/* Cards */
.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 768px) {
  .cards {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
}

.card {
  padding: clamp(20px, 3vw, 28px);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.card img {
  width: 40px;
  height: 40px;
  margin-bottom: 20px;
}

.card h3 {
  margin-bottom: 8px;
}

.card p {
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--muted);
}

/* Loadbay band */
.band {
  padding-block: clamp(56px, 8vw, 96px);
  background: var(--band-bg);
  color: var(--band-text);
}

.band h2 {
  margin-bottom: 20px;
  color: var(--band-text);
}

.band .eyebrow {
  color: var(--band-muted);
}

.band p {
  max-width: 40rem;
}

.band p + p {
  margin-top: 16px;
  color: var(--band-muted);
}

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

/* Contact */
.contact-list {
  display: grid;
  gap: 0;
  max-width: 40rem;
  margin: 0;
}

.contact-list div {
  display: flex;
  flex-wrap: wrap;
  column-gap: 24px;
  row-gap: 2px;
  padding-block: 14px;
  border-top: 1px solid var(--line);
}

.contact-list div:last-child {
  border-bottom: 1px solid var(--line);
}

.contact-list dt {
  flex: 0 0 6rem;
  color: var(--muted);
}

.contact-list dd {
  margin: 0;
  min-width: 0;
}

/* Divider: 1px rule with the mark centred on it */
.divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.divider img {
  width: 12px;
  height: 12px;
}

/* Text pages */
.page {
  padding-block: 48px var(--space);
}

.page h1 {
  margin-bottom: 32px;
}

.prose > * {
  max-width: 40rem;
}

.prose p + p {
  margin-top: 1em;
}

/* Footer */
.site-footer {
  padding-block: 0 48px;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--muted);
}

.site-footer .sep {
  padding-inline: 6px;
}
