/* Prairie North Media — company site
   Palette tokens are imported from palette.css, copied verbatim from the brand pack.
   Type: Georgia for display (matches the wordmark), system sans for body.
   The brand fonts are NOT settled — see brand/README.txt — so nothing here loads a
   web font. Swap these two stacks when a licensed pair is chosen. */

@import url("palette.css");

:root {
  --font-display: Georgia, "Times New Roman", serif;
  --font-body: "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;

  --ink: #14212e;
  --ink-soft: #4a5a6a;

  --measure: 68ch;
  --shell: 1120px;
  --pad: clamp(1.25rem, 4vw, 2.5rem);
}

/* ---------- reset-ish ---------- */

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

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  line-height: 1.65;
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--pnm-deep-north); }

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.15;
  margin: 0;
  font-weight: 700;
}

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--pnm-snow);
  color: var(--pnm-deep-north);
  padding: 0.75rem 1.25rem;
  z-index: 100;
}
.skip-link:focus { left: 0; }

:focus-visible {
  outline: 3px solid var(--pnm-sky-dark-bg);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- header ---------- */

.site-header {
  background: var(--pnm-midnight);
  border-bottom: 1px solid rgba(95, 180, 232, 0.18);
  position: sticky;
  top: 0;
  z-index: 50;
}

.site-header .shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding-block: 0.9rem;
}

.logo img { width: clamp(190px, 24vw, 232px); height: auto; }

.site-nav {
  display: flex;
  gap: clamp(1rem, 3vw, 2rem);
  font-size: 0.9375rem;
  letter-spacing: 0.02em;
}

.site-nav a {
  color: var(--pnm-snow);
  text-decoration: none;
  padding-block: 0.35rem;
  border-bottom: 2px solid transparent;
  transition: border-color 140ms ease, color 140ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--pnm-bright-aurora);
  border-bottom-color: var(--pnm-bright-aurora);
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  background:
    radial-gradient(1100px 520px at 78% -12%, #1a4a71 0%, transparent 62%),
    var(--pnm-midnight);
  color: var(--pnm-snow);
  padding-block: clamp(3.5rem, 9vw, 6.5rem) clamp(5rem, 11vw, 8rem);
  overflow: hidden;
}

/* contour rows echoing the mark's prairie field */
.hero__contours {
  position: absolute;
  inset: auto 0 -2px 0;
  width: 100%;
  height: clamp(90px, 14vw, 170px);
  opacity: 0.5;
  pointer-events: none;
}

.hero__inner { position: relative; z-index: 1; max-width: 46rem; }

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--pnm-bright-aurora);
  margin: 0 0 1.1rem;
}

.hero h1 {
  font-size: clamp(2.1rem, 1.4rem + 3.4vw, 3.6rem);
  letter-spacing: -0.015em;
  margin-bottom: 1.25rem;
}

.hero p {
  font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.25rem);
  color: #c9dcea;
  max-width: 40rem;
  margin: 0 0 2rem;
}

.actions { display: flex; flex-wrap: wrap; gap: 0.85rem; }

.btn {
  display: inline-block;
  padding: 0.8rem 1.6rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.9688rem;
  text-decoration: none;
  border: 2px solid transparent;
  transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease;
}

.btn--primary {
  background: var(--pnm-bright-aurora);
  color: var(--pnm-midnight);
}
.btn--primary:hover, .btn--primary:focus-visible { background: #6cebc8; }

.btn--ghost {
  border-color: rgba(242, 248, 250, 0.4);
  color: var(--pnm-snow);
}
.btn--ghost:hover, .btn--ghost:focus-visible {
  border-color: var(--pnm-snow);
  background: rgba(242, 248, 250, 0.08);
}

/* ---------- generic sections ---------- */

.section { padding-block: clamp(3.25rem, 8vw, 5.5rem); }
.section--tint { background: var(--pnm-ice); }
.section--dark { background: var(--pnm-deep-north); color: var(--pnm-snow); }

.section__head { max-width: var(--measure); margin-bottom: clamp(2rem, 4vw, 3rem); }

.section h2 {
  font-size: clamp(1.6rem, 1.2rem + 1.7vw, 2.35rem);
  letter-spacing: -0.01em;
  margin-bottom: 0.85rem;
}

.section__head p { color: var(--ink-soft); margin: 0; font-size: 1.0625rem; }
.section--dark .section__head p { color: #c9dcea; }

/* ---------- service cards ---------- */

.cards {
  display: grid;
  gap: clamp(1.25rem, 3vw, 2rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
}

.card {
  background: #fff;
  border: 1px solid #cfe2ea;
  border-top: 4px solid var(--pnm-big-sky);
  border-radius: 8px;
  padding: clamp(1.5rem, 3vw, 2.25rem);
}

.card:nth-child(2) { border-top-color: var(--pnm-prairie-pine); }

.card h3 {
  font-size: 1.375rem;
  color: var(--pnm-deep-north);
  margin-bottom: 0.75rem;
}

.card > p { color: var(--ink-soft); margin: 0 0 1.4rem; }

.card ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.6rem;
}

.card li {
  position: relative;
  padding-left: 1.65rem;
  font-size: 0.9688rem;
}

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

.card:nth-child(2) li::before { background: var(--pnm-big-sky); }

/* ---------- about ---------- */

.prose { max-width: var(--measure); }
.prose p { margin: 0 0 1.15rem; }
.prose p:last-child { margin-bottom: 0; }

/* ---------- contact ---------- */

.contact-grid {
  display: grid;
  gap: clamp(1.5rem, 4vw, 3rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
}

.contact-item h3 {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--pnm-sky-dark-bg);
  margin-bottom: 0.5rem;
}

.contact-item p, .contact-item a {
  margin: 0;
  font-size: 1.125rem;
  color: var(--pnm-snow);
}

.contact-item a { text-decoration-color: rgba(242, 248, 250, 0.45); text-underline-offset: 4px; }
.contact-item a:hover { color: var(--pnm-bright-aurora); }

/* ---------- footer ---------- */

.site-footer {
  background: var(--pnm-midnight);
  color: #93aec4;
  padding-block: 2.5rem;
  font-size: 0.875rem;
}

.site-footer .shell {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  align-items: center;
  justify-content: space-between;
}

.site-footer img { width: 150px; opacity: 0.85; }
.site-footer p { margin: 0; }
