/* newmanandkin.com: the one-pager and the crawler page. Fonts are self-hosted (no third-party requests). */
@font-face {
  font-family: 'Familjen Grotesk';
  src: url('/fonts/familjen-grotesk.woff2') format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Fragment Mono';
  src: url('/fonts/fragment-mono.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #f1f4f2;
  --ink: #17241f;
  --muted: #56665f;
  --rule: #c9d3cd;
  --jade: #276b55;
  --panel: #17241f;
  --panel-ink: #d5e0da;
  --panel-dim: #7f948b;
  --panel-hi: #8fd3b6;
  --sans: 'Familjen Grotesk', ui-sans-serif, system-ui, sans-serif;
  --mono: 'Fragment Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #111916;
    --ink: #e2eae5;
    --muted: #97a8a0;
    --rule: #2a3933;
    --jade: #7cc4a5;
    --panel: #0a100e;
    --panel-ink: #cfdbd4;
    --panel-dim: #6e8279;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--sans);
  font-kerning: normal;
}
a {
  color: var(--jade);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}
a:hover {
  text-decoration-thickness: 2px;
}
:focus-visible {
  outline: 2px solid var(--jade);
  outline-offset: 3px;
  border-radius: 2px;
}
code,
pre {
  font-family: var(--mono);
  font-size: 0.875em;
}

.page {
  max-width: 44rem;
  margin: 0 auto;
  padding: clamp(2.5rem, 9vw, 6rem) 1rem 3rem;
}
.home-link {
  display: inline-block;
  margin-bottom: clamp(2rem, 6vw, 3.5rem);
  color: var(--ink);
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
}
.home-link:hover {
  color: var(--jade);
}

h1 {
  margin: 0;
  font-weight: 650;
  font-size: clamp(2.6rem, 10vw, 5.25rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
}
h1 small {
  font-size: 0.32em;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--muted);
  vertical-align: 0.15em;
  margin-left: 0.2em;
}
h2 {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
  font-weight: 650;
  letter-spacing: -0.015em;
  line-height: 1.3;
}
p,
ul {
  margin: 0 0 1rem;
}
.lede {
  max-width: 34rem;
  font-size: 1.1875rem;
  color: var(--muted);
}
h1 + .lede {
  margin-top: 1.25rem;
}
.about {
  margin-top: 2.75rem;
}
.section {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
}
.section > :last-child {
  margin-bottom: 0;
}
.list {
  padding-left: 1.1rem;
}
.list li {
  margin-bottom: 0.4rem;
}
.list li::marker {
  color: var(--muted);
}

/* The family tree: one company, two trading names. The trunk drops from the "N" of the name. */
.tree {
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0 0 0 clamp(0.35rem, 1.1vw, 0.6rem);
}
.tree li {
  position: relative;
  padding: 0.9rem 0 1.5rem 2.25rem;
}
.tree li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  border-left: 2px solid var(--jade);
}
.tree li::after {
  content: '';
  position: absolute;
  left: 0;
  top: 1.75rem;
  width: 1.5rem;
  border-top: 2px solid var(--jade);
}
.tree li:last-child {
  padding-bottom: 0;
}
.tree li:last-child::before {
  bottom: auto;
  height: 1.75rem;
  width: 1.5rem;
  border-bottom: 2px solid var(--jade);
  border-bottom-left-radius: 0.75rem;
}
.tree li:last-child::after {
  content: none;
}
.brand {
  display: block;
  font-size: 1.5rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.6;
}
.tree p {
  margin: 0 0 0.25rem;
  max-width: 32rem;
}
.domain {
  font-family: var(--mono);
  font-size: 0.875rem;
  color: var(--muted);
}

/* Dark panels: the user agent and the access log, as a site owner sees them. */
.panel {
  background: var(--panel);
  color: var(--panel-ink);
  border-radius: 0.5rem;
  font-family: var(--mono);
  font-size: 0.8125rem;
  line-height: 1.7;
}
.ua {
  padding: 0.85rem 1rem;
  overflow-wrap: anywhere;
}
.ua b,
.log .agent {
  color: var(--panel-hi);
  font-weight: 400;
}
/* Each entry wraps with a hanging indent, so the user agent stays in view at any width. */
.log {
  margin: 0;
  padding: 1rem 1.1rem;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.log .line {
  display: block;
  padding-left: 2ch;
  text-indent: -2ch;
}
.log .line + .line {
  margin-top: 0.5rem;
}
.log .dim {
  color: var(--panel-dim);
}
figure {
  margin: 2.5rem 0 0;
}
figcaption {
  margin-top: 0.6rem;
  font-size: 0.9375rem;
  color: var(--muted);
}
pre.robots {
  margin: 0 0 1rem;
  padding: 0.85rem 1rem;
  background: transparent;
  border: 1px solid var(--rule);
  border-left: 3px solid var(--jade);
  border-radius: 0.375rem;
  overflow-x: auto;
}

.footer {
  margin-top: 4rem;
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
  font-size: 0.875rem;
  color: var(--muted);
}
.footer p {
  margin: 0;
}

@media (prefers-reduced-motion: no-preference) {
  .tree li {
    animation: grow 0.5s ease-out both;
  }
  .tree li:nth-child(2) {
    animation-delay: 0.12s;
  }
  @keyframes grow {
    from {
      opacity: 0;
      transform: translateY(-0.4rem);
    }
  }
}
