/* North City Consulting — drafting-table scheme: paper white, ultramarine, ink */

:root {
  --bg: #fbfaf7;
  --panel: #f1f1ea;
  --ink: #12181f;
  --muted: #4c5661;
  --blue: #2743b8;
  --blue-deep: #1c2f85;
  --line: #d9d9cf;
  --grid-line: rgba(39, 67, 184, 0.07);
  --max: 66rem;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Archivo", "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: "Archivo", "Helvetica Neue", Arial, sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0 0 1rem;
}

a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--blue-deep); }

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

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

header {
  border-bottom: 2px solid var(--ink);
  background: var(--bg);
}

.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.3rem;
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--ink);
}
.wordmark:hover { color: var(--ink); }

.wordmark svg { flex: none; }

.wordmark .name {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.wordmark .name em {
  font-style: normal;
  color: var(--blue);
}

nav { display: flex; gap: 1.7rem; flex-wrap: wrap; }

nav a {
  color: var(--muted);
  text-decoration: none;
  font-family: "IBM Plex Mono", "SFMono-Regular", Menlo, monospace;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
nav a:hover { color: var(--blue); text-decoration: underline; }
nav a[aria-current="page"] { color: var(--blue); }

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

.hero {
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 28px 28px;
  padding: 6rem 0 5rem;
}

.eyebrow {
  font-family: "IBM Plex Mono", "SFMono-Regular", Menlo, monospace;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue);
  margin: 0 0 1.2rem;
}

.hero h1 {
  font-size: clamp(2.5rem, 5.5vw, 4.1rem);
  max-width: 20ch;
  margin-bottom: 1.4rem;
}

.hero p {
  max-width: 52ch;
  font-size: 1.25rem;
  color: var(--muted);
  margin: 0 0 2.4rem;
}

.hero ul {
  list-style: none;
  margin: 0 0 2.4rem;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, max-content));
  gap: 0.5rem 3rem;
  max-width: 44rem;
}

.hero ul li { padding-left: 1.2rem; position: relative; }
.hero ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 0.5em;
  height: 0.5em;
  background: var(--blue);
}

.btn {
  display: inline-block;
  background: var(--blue);
  color: #fff;
  text-decoration: none;
  font-family: "IBM Plex Mono", "SFMono-Regular", Menlo, monospace;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.9rem 1.5rem;
  border: 2px solid var(--blue);
}
.btn:hover { background: var(--blue-deep); border-color: var(--blue-deep); color: #fff; }

.btn.ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn.ghost:hover { background: transparent; color: var(--blue); border-color: var(--blue); }

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

section { padding: 4rem 0; border-bottom: 1px solid var(--line); }
section:last-of-type { border-bottom: none; }

section h2 {
  font-size: 1.9rem;
  max-width: 30ch;
}

section h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.2rem);
  max-width: 24ch;
}

.lede { max-width: 58ch; color: var(--muted); }

/* numbered services */

.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 2px;
  margin-top: 2.5rem;
  background: var(--line);
  border: 1px solid var(--line);
}

.service {
  background: var(--bg);
  padding: 1.6rem 1.4rem;
}

.service .num {
  font-family: "IBM Plex Mono", "SFMono-Regular", Menlo, monospace;
  font-size: 0.78rem;
  color: var(--blue);
  letter-spacing: 0.08em;
  display: block;
  margin-bottom: 0.6rem;
}

.service h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }
.service p { margin: 0; color: var(--muted); font-size: 0.97rem; }

/* case studies */

.case {
  margin-top: 2.5rem;
  max-width: 46rem;
  border: 1px solid var(--line);
  border-left: 3px solid var(--blue);
  background: var(--panel);
  padding: 1.8rem 1.8rem 1.6rem;
}

.case-tag {
  font-family: "IBM Plex Mono", "SFMono-Regular", Menlo, monospace;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  margin: 0 0 0.8rem;
}

.case h3 { font-size: 1.35rem; margin-bottom: 0.7rem; }

.case > p:not(.case-tag) { color: var(--muted); margin: 0 0 1.2rem; }

.case-points {
  list-style: none;
  margin: 0;
  padding: 0;
}

.case-points li {
  padding: 0.55rem 0 0.55rem 1.2rem;
  position: relative;
  border-top: 1px solid var(--line);
  font-size: 0.97rem;
}

.case-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.15em;
  width: 0.5em;
  height: 0.5em;
  background: var(--blue);
}

/* who it's for */

.fits {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  max-width: 44rem;
}

.fits li {
  padding: 1.1rem 0;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 1rem;
  align-items: baseline;
}
.fits li:last-child { border-bottom: 1px solid var(--line); }

.fits .tick {
  color: var(--blue);
  font-family: "IBM Plex Mono", "SFMono-Regular", Menlo, monospace;
  flex: none;
}

/* contact */

.contact { background: var(--panel); }

.email, .hero .email {
  font-size: clamp(1.3rem, 3.4vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  word-break: break-all;
}

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

.about-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3.5rem;
  padding-block: 4.5rem;
}

.about-grid h1 { font-size: clamp(2.2rem, 4.5vw, 3.2rem); }

.about-body p { max-width: 60ch; }

aside.facts {
  border: 1px solid var(--line);
  border-top: 3px solid var(--blue);
  background: var(--panel);
  padding: 1.5rem 1.4rem;
  align-self: start;
  position: sticky;
  top: 2rem;
}

aside.facts h2 {
  font-family: "IBM Plex Mono", "SFMono-Regular", Menlo, monospace;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue);
}

aside.facts dl { margin: 0; }
aside.facts dt {
  font-family: "IBM Plex Mono", "SFMono-Regular", Menlo, monospace;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 1.1rem;
}
aside.facts dd {
  margin: 0.2rem 0 0;
  font-size: 0.95rem;
}

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

footer {
  border-top: 2px solid var(--ink);
  padding: 1.6rem 0 2.2rem;
  color: var(--muted);
  font-size: 0.85rem;
}

footer .wrap {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

@media (max-width: 44rem) {
  .about-grid { grid-template-columns: 1fr; gap: 2rem; }
  aside.facts { position: static; }
  .hero { padding: 3.5rem 0 3rem; }

  .masthead {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.9rem;
    padding-block: 1.1rem;
  }

  .wordmark svg { width: 28px; height: 28px; }
  .wordmark .name { font-size: 1.15rem; }

  nav {
    gap: 0.35rem 1.1rem;
    row-gap: 0.35rem;
  }

  nav a { font-size: 0.75rem; }
}
