/* =========================================================
   Northslate LLC — site styles
   Colors, type and motion match the "Professional" style of sethricks.org:
   flat surfaces, hairlines, calm hover fills. No gradients, glows or tilts.
   ========================================================= */

@font-face {
  font-family: "Manrope"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url("/fonts/manrope-var.woff2") format("woff2");
}
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("/fonts/inter-var.woff2") format("woff2");
}

:root {
  --paper: #FAF8F3; --paper-2: #F1EEE7; --surface: #FFFFFF;
  --ink: #17181C; --ink-soft: #5E5D59; --ink-faint: #6F6E68;
  --line: rgba(23, 24, 28, 0.12); --line-strong: rgba(23, 24, 28, 0.22); --line-soft: rgba(23, 24, 28, 0.07);
  --accent: #365F85; --accent-bright: #6E91B7; --accent-soft: #E6EDF4; --on-accent: #FFFFFF;
  --shadow-sm: 0 1px 2px rgba(23, 24, 28, .04);
  --shadow-md: 0 10px 28px -16px rgba(23, 24, 28, .16);
  --radius-sm: 8px; --radius-btn: 10px; --radius-lg: 16px;
  --maxw: 1120px;
  --gutter: clamp(20px, 5vw, 56px);
  --ease-out: cubic-bezier(.165, .85, .45, 1);
  --ease-reveal: cubic-bezier(.16, 1, .3, 1);
  --dur-hover: 240ms;
  --dur-press: 140ms;
  --font-display: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #16171B; --paper-2: #1D1F24; --surface: #202227;
    --ink: #EDEAE3; --ink-soft: #B6B2A9; --ink-faint: #A29E96;
    --line: rgba(237, 234, 227, 0.12); --line-strong: rgba(237, 234, 227, 0.24); --line-soft: rgba(237, 234, 227, 0.07);
    --accent: #8DB2D8; --accent-bright: #6E91B7; --accent-soft: rgba(141, 178, 216, 0.16); --on-accent: #16171B;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .35);
    --shadow-md: 0 12px 30px -16px rgba(0, 0, 0, .55);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }

body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.028em; line-height: 1.07; }
::selection { background: var(--accent-soft); color: var(--ink); }
:is(a, button):focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Motion ---------- */
.js .reveal { opacity: 0; transform: translateY(16px); }
.js .reveal.in { opacity: 1; transform: none; transition: opacity .8s var(--ease-reveal), transform .8s var(--ease-reveal); }
.js .reveal[data-delay="1"].in { transition-delay: .07s; }
.js .reveal[data-delay="2"].in { transition-delay: .14s; }
.js .reveal[data-delay="3"].in { transition-delay: .21s; }

/* page-load sequence: lines rise one after another */
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.rise { animation: rise .9s var(--ease-reveal) both; }
.rise[data-delay="1"] { animation-delay: .06s; }
.rise[data-delay="2"] { animation-delay: .12s; }
.rise[data-delay="3"] { animation-delay: .18s; }
.rise[data-delay="4"] { animation-delay: .24s; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  transition: background-color .4s var(--ease-out), box-shadow .4s var(--ease-out);
}
.nav-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 22px var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  transition: padding .4s var(--ease-out);
}
.nav.scrolled {
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: blur(16px) saturate(150%); -webkit-backdrop-filter: blur(16px) saturate(150%);
  box-shadow: 0 1px 0 var(--line-soft);
}
.nav.scrolled .nav-inner { padding-top: 13px; padding-bottom: 13px; }

.logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 1.12rem; letter-spacing: -0.015em; }
.logo-mark {
  display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 7px; flex: none;
  background: var(--accent); color: var(--on-accent); font: 800 15px/1 var(--font-display); letter-spacing: 0;
}

.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; }
.nav-link {
  padding: 8px 12px; border-radius: var(--radius-sm); font-size: .92rem; font-weight: 500; color: var(--ink-soft);
  transition: background-color var(--dur-hover) var(--ease-out), color var(--dur-hover) var(--ease-out);
}
.nav-link:hover, .nav-link[aria-current="page"] { color: var(--ink); background: color-mix(in srgb, var(--ink) 5%, transparent); }
@media (max-width: 560px) {
  .nav-link.optional { display: none; }
}

/* ---------- Buttons ---------- */
.btn, .nav-cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border-radius: var(--radius-btn); font-family: var(--font-body); font-weight: 600;
  transition: background-color var(--dur-hover) var(--ease-out), color var(--dur-hover) var(--ease-out),
              border-color var(--dur-hover) var(--ease-out), transform var(--dur-press) var(--ease-out);
}
.btn { padding: 13px 22px; font-size: .98rem; line-height: 25px; }
.nav-cta { margin-left: 6px; padding: 9px 16px; font-size: .92rem; }
.btn:active, .nav-cta:active { transform: scale(.985); }
.btn-primary, .nav-cta { background: var(--ink); color: var(--paper); border: 1px solid var(--ink); }
.btn-primary:hover, .nav-cta:hover {
  background: color-mix(in srgb, var(--ink) 84%, var(--paper)); border-color: color-mix(in srgb, var(--ink) 84%, var(--paper));
}
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line-strong); }
.btn-ghost:hover { background: color-mix(in srgb, var(--ink) 5%, transparent); }
.btn-arrow { display: inline-block; transition: transform var(--dur-hover) var(--ease-out); }
.btn-primary:hover .btn-arrow { transform: translateX(3px); }
.btn-ghost:hover .btn-arrow { transform: translate(2px, -2px); }

/* text links: the underline fades in */
.text-link {
  color: var(--accent); text-decoration: underline 1px; text-underline-offset: 4px; text-decoration-color: transparent;
  transition: text-decoration-color var(--dur-hover) var(--ease-out), color var(--dur-hover) var(--ease-out);
}
.text-link:hover { text-decoration-color: currentColor; }

/* ---------- Hero ---------- */
.hero { min-height: min(84svh, 780px); display: flex; align-items: center; padding: 128px 0 64px; }
.hero > .wrap { width: 100%; }
.kicker {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 26px;
  font-size: .9rem; font-weight: 500; color: var(--ink-soft);
}
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent-bright); flex: none; }
.hero h1 { font-size: clamp(2.5rem, 6.2vw, 5.1rem); line-height: 1.02; letter-spacing: -0.038em; margin-bottom: 28px; }
.hero h1 .line { display: block; }
.hero h1 .soft { color: var(--ink-soft); }
.hero-sub { font-size: clamp(1.1rem, 1.9vw, 1.3rem); line-height: 1.6; max-width: 34em; margin-bottom: 38px; color: var(--ink-soft); }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Sections ---------- */
.section { padding: clamp(56px, 8vw, 96px) 0; border-top: 1px solid var(--line-soft); }
.section-head { max-width: 780px; margin-bottom: clamp(32px, 5vw, 48px); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 16px;
  font-size: .78rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft);
}
.section-title { font-size: clamp(2rem, 4.6vw, 3.1rem); line-height: 1.06; max-width: 22ch; margin-bottom: 16px; }
.section-lead { font-size: clamp(1.05rem, 1.6vw, 1.18rem); line-height: 1.65; max-width: 36em; color: var(--ink-soft); }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 860px) { .cards { grid-template-columns: 1fr; } }
.card {
  display: block; height: 100%; padding: 30px 28px 28px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
  transition: transform 300ms var(--ease-out), border-color var(--dur-hover) var(--ease-out), box-shadow 300ms var(--ease-out);
}
.card:hover { transform: translateY(-2px); border-color: var(--line-strong); box-shadow: var(--shadow-md); }
.card-num { display: block; margin-bottom: 22px; font-size: .8rem; font-weight: 600; color: var(--ink-faint); font-variant-numeric: tabular-nums; }
.card h3 { font-size: 1.22rem; letter-spacing: -0.02em; margin-bottom: 8px; }
.card p { color: var(--ink-soft); font-size: 1rem; line-height: 1.6; }
.card .text-link { display: inline-block; margin-top: 14px; font-weight: 600; }
a.card:hover .text-link { text-decoration-color: currentColor; }

/* ---------- Contact ---------- */
.contact {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px 40px; align-items: center;
  padding: clamp(30px, 5vw, 52px); border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.contact h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 10px; }
.contact p { color: var(--ink-soft); max-width: 30em; }
.contact-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; justify-self: end; }
.contact-actions .text-link { font-size: .95rem; }
@media (max-width: 760px) {
  .contact { grid-template-columns: 1fr; }
  .contact-actions { justify-self: start; }
}

/* ---------- Footer ---------- */
.footer { margin-top: clamp(56px, 8vw, 96px); background: var(--paper-2); border-top: 1px solid var(--line-soft); overflow: hidden; }
.footer-inner { max-width: var(--maxw); margin: 0 auto; padding: 56px var(--gutter) 34px; }
.footer-big {
  font-family: var(--font-display); font-weight: 700; font-size: clamp(3rem, 13vw, 9rem);
  line-height: .92; letter-spacing: -0.045em; margin-bottom: 28px; user-select: none;
  color: color-mix(in srgb, var(--ink) 7%, var(--paper-2));
}
.footer-big span { color: var(--accent-bright); opacity: .75; }
@media (prefers-color-scheme: dark) { .footer-big { color: color-mix(in srgb, var(--ink) 9%, var(--paper-2)); } }
.footer-row {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 28px;
  padding-top: 22px; border-top: 1px solid var(--line); font-size: .85rem; color: var(--ink-faint);
}
.footer-links { display: flex; flex-wrap: wrap; gap: 22px; }
.footer-links a {
  font-weight: 500; color: var(--ink-soft);
  text-decoration: underline 1px; text-underline-offset: 4px; text-decoration-color: transparent;
  transition: text-decoration-color var(--dur-hover) var(--ease-out), color var(--dur-hover) var(--ease-out);
}
.footer-links a:hover { color: var(--ink); text-decoration-color: currentColor; }

/* ---------- Document pages (privacy, 404) ---------- */
.doc { max-width: 760px; margin: 0 auto; padding: 140px var(--gutter) 0; }
.doc h1 { font-size: clamp(2.2rem, 6vw, 3.4rem); letter-spacing: -0.035em; margin-bottom: 14px; }
.doc .meta { color: var(--ink-faint); margin-bottom: 36px; }
.doc h2 { font-size: 1.35rem; margin: 40px 0 12px; }
.doc p, .doc li { color: var(--ink-soft); margin-bottom: 12px; }
.doc ul { padding-left: 1.2em; }
.doc strong { color: var(--ink); }
.doc main a, .doc p a {
  color: var(--accent); text-decoration: underline 1px; text-underline-offset: 4px;
  text-decoration-color: color-mix(in srgb, var(--accent) 40%, transparent);
  transition: text-decoration-color var(--dur-hover) var(--ease-out);
}
.doc p a:hover { text-decoration-color: currentColor; }
.review {
  background: #FDF1C7; color: #6B4A0B; padding: 0 .35em; border-radius: 4px;
  font-weight: 600; font-size: .88em; box-decoration-break: clone; -webkit-box-decoration-break: clone;
}
.notice {
  margin-top: 40px; padding: 16px 20px; border-radius: var(--radius-sm);
  background: var(--paper-2); color: var(--ink-soft); border: 1px solid var(--line);
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}
