/* Northernstar public site. Static, no JavaScript.
   Tokens follow the operator dashboard: neo black and lime, Inter. Light and dark follow the device. */

:root {
  --ink: #111510;
  --lime: #c7f43d;
  --bg: #f7f8f2;
  --surface: #ffffff;
  --muted: #656b61;
  --border: #d8dfd1;
  --link: #111510;
  --band-bg: #111510;
  --band-text: #f7f8f2;
  --band-muted: #a4ada0;
  --focus: #111510;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #080b08;
    --surface: #111611;
    --ink: #f4f6ef;
    --muted: #a4ada0;
    --border: #2b3429;
    --link: #c7f43d;
    --band-bg: #111611;
    --focus: #c7f43d;
  }
}

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

html { -webkit-text-size-adjust: 100%; scrollbar-color: var(--muted) var(--bg); }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem; /* 17px, never below 16px */
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

::selection { background: var(--lime); color: #111510; }

main { flex: 1; }

.wrap { width: min(100% - 2rem, 70rem); margin-inline: auto; }

/* Keyboard focus is always visible. */
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 2px; }

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 10;
  background: var(--lime); color: #111510; padding: .6rem 1rem; font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 1rem; }

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

/* Header */
.site-header { border-bottom: 1px solid var(--border); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1.5rem; padding-block: 1rem; }

.brand { display: inline-flex; align-items: center; gap: .6rem; font-weight: 700; font-size: 1.25rem; letter-spacing: -.01em; color: var(--ink); text-decoration: none; }
.brand-mark { width: 1.1rem; height: 1.1rem; background: var(--lime); border: 2px solid #111510; border-radius: 3px; flex: none; }

nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; }
nav a { display: inline-block; padding: .4rem 0; color: var(--ink); text-decoration: none; font-weight: 500; border-bottom: 2px solid transparent; }
nav a:hover { border-bottom-color: var(--lime); }
nav a[aria-current="page"] { border-bottom-color: var(--lime); font-weight: 600; }

/* Type */
h1, h2, h3 { line-height: 1.15; letter-spacing: -.02em; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(2.1rem, 5.5vw + .5rem, 3.75rem); font-weight: 750; }
h2 { font-size: clamp(1.5rem, 2.2vw + 1rem, 2.1rem); font-weight: 700; margin-top: 3rem; margin-bottom: .75rem; }
h3 { font-size: 1.15rem; font-weight: 650; letter-spacing: -.01em; margin-top: 1.75rem; margin-bottom: .4rem; }
p { margin: 0 0 1rem; max-width: 68ch; }
.lead { font-size: clamp(1.15rem, .8vw + 1rem, 1.35rem); color: var(--muted); max-width: 60ch; }
.muted { color: var(--muted); }

/* Buttons: text on lime is always the dark ink. */
.button { display: inline-block; background: var(--lime); color: #111510; font-weight: 650; text-decoration: none; padding: .8rem 1.4rem; border-radius: 8px; border: 2px solid #111510; }
.button:hover { background: #d6fb62; }
.button.quiet { background: transparent; color: var(--ink); border-color: var(--border); }
.button.quiet:hover { border-color: var(--ink); background: transparent; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }

/* Home: hero */
.hero { padding-block: clamp(3rem, 9vw, 7rem) clamp(2.5rem, 6vw, 4.5rem); }
.hero h1 { max-width: 16ch; }
.hero .lead { margin-top: 1.5rem; }

/* Home: how it works. The order matters here, so the steps are numbered. */
.band { background: var(--band-bg); color: var(--band-text); padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.band h2 { margin-top: 0; color: var(--band-text); }
.steps { list-style: none; counter-reset: step; margin: 2rem 0 0; padding: 0; display: grid; gap: 0; border-top: 1px solid #2b3429; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 3.25rem 1fr; gap: 1rem; padding-block: 1.25rem; border-bottom: 1px solid #2b3429; }
.steps li::before { content: counter(step); font-size: 2rem; font-weight: 750; line-height: 1.1; color: var(--lime); font-variant-numeric: tabular-nums; }
.steps strong { display: block; font-size: 1.15rem; color: var(--band-text); }
.steps span { color: var(--band-muted); }

@media (min-width: 52rem) {
  .steps { grid-template-columns: repeat(4, 1fr); border-top: 0; gap: 1.5rem; }
  .steps li { align-content: start; grid-template-columns: 1fr; border: 0; border-top: 2px solid var(--lime); padding-block: 1rem 0; gap: .6rem; }
}

/* Home: two plain sections */
.two-col { display: grid; gap: 2.5rem; padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.two-col h2 { margin-top: 0; }
@media (min-width: 52rem) { .two-col { grid-template-columns: 1fr 1fr; gap: 4rem; } }

/* Business details block */
.details { margin: 0; display: grid; gap: 1.1rem; }
.details dt { font-weight: 650; }
.details dd { margin: 0; color: var(--muted); }
.details a { font-weight: 500; }
address { font-style: normal; }

/* Legal and contact pages */
.page { padding-block: clamp(2.5rem, 7vw, 5rem); }
.page > h1 { font-size: clamp(2rem, 4vw + .5rem, 3rem); }
.page .updated { color: var(--muted); margin-top: .75rem; }
.page h2:first-of-type { margin-top: 2.5rem; }
.page ul { max-width: 68ch; padding-left: 1.25rem; margin: 0 0 1rem; }
.page li { margin-bottom: .4rem; }
.notice { max-width: 68ch; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 1.1rem 1.25rem; margin: 1.5rem 0; }
.notice p:last-child { margin-bottom: 0; }

/* Footer: business name, address, phone and email on every page. */
.site-footer { border-top: 1px solid var(--border); margin-top: 3rem; padding-block: 2.25rem; background: var(--surface); }
.site-footer .wrap { display: grid; gap: 1.75rem; }
.site-footer strong { font-size: 1.1rem; }
.site-footer address, .site-footer p { color: var(--muted); max-width: none; margin: .35rem 0 0; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; }
.site-footer a { display: inline-block; padding: .25rem 0; }
@media (min-width: 52rem) { .site-footer .wrap { grid-template-columns: 1fr auto; align-items: start; gap: 3rem; } }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
