/* nielsen.net
 *
 * Tokens lifted verbatim from lauterhorn.com and lauterstar.com so the three
 * sites read as one family. Their stylesheet is 636 lines because those sites
 * have cards, galleries and app listings. This one is a single page, so it is
 * a lean subset rather than a copy. Change a token here only if it changes
 * there too.
 */

:root {
  --bg:            #ffffff;
  --surface:       #f4f3f0;
  --surface-2:     #eae9e4;
  --border:        #d6d4cd;
  --border-strong: #aeada5;
  --text:          #1a2332;
  --text-dim:      #4a5568;
  --text-mute:     #5a6675;
  --accent:        #1d6a44;
  --accent-text:   #1d6a44;
  --accent-hover:  #14523a;
  --accent-soft:   rgba(29,106,68,.08);
  --accent-border: rgba(29,106,68,.22);

  --radius-sm:   4px;
  --radius-md:   6px;
  --radius-lg:  10px;
}

[data-theme="dark"] {
  --bg:            #0e0e0f;
  --surface:       #161618;
  --surface-2:     #1c1c1f;
  --border:        #26262a;
  --border-strong: #34343a;
  --text:          #eeeae4;
  --text-dim:      #a6a29c;
  --text-mute:     #8a857e;
  --accent:        #217a4b;
  --accent-text:   #63cf97;
  --accent-hover:  #2c8f5c;
  --accent-soft:   rgba(46,158,102,.12);
  --accent-border: rgba(46,158,102,.35);
}

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

body {
  margin: 0;
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.wrap {
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Visible only on keyboard focus. Same behaviour as the other two sites. */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: #fff;
  padding: 10px 16px;
  border-radius: 0 0 var(--radius-md) 0;
  z-index: 10;
}
.skip-link:focus { left: 0; }

.masthead {
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}
.masthead-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 60px;
}
.wordmark {
  font-family: 'Lora', Georgia, serif;
  font-weight: 600;
  font-size: 17px;
  letter-spacing: .01em;
  color: var(--text);
}

.theme-toggle {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-dim);
  cursor: pointer;
  font-size: 15px;
  line-height: 1;
  padding: 7px 10px;
}
.theme-toggle:hover {
  border-color: var(--border-strong);
  color: var(--text);
}

main { flex: 1; padding: 56px 0 72px; }

h1 {
  font-family: 'Lora', Georgia, serif;
  font-size: clamp(28px, 5vw, 44px);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 24px;
}

/* Standalone section headings, e.g. "Getting in touch". */
.section-heading {
  font-family: 'Lora', Georgia, serif;
  font-size: 20px;
  font-weight: 600;
  margin: 44px 0 16px;
}

/* Company names inside the cards. These are h2 as well, because the page has
 * no intervening heading level - jumping straight to h3 would break the
 * outline for anyone navigating by headings. Styled smaller, not demoted. */
.entity h2 {
  font-family: 'Lora', Georgia, serif;
  font-size: 17px;
  font-weight: 600;
  margin: 0 0 6px;
}

p { margin: 0 0 16px; }

.lede {
  font-size: 18px;
  color: var(--text-dim);
  max-width: 60ch;
}

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

.entities {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.entity {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent-border);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
}
.entity p:last-child { margin-bottom: 0; }

.meta {
  color: var(--text-mute);
  font-size: 14px;
}

/* Bulleted list without the cramped default indent. */
.plain-list {
  margin: 0 0 16px;
  padding-left: 20px;
}
.plain-list li { margin-bottom: 8px; }

.wordmark-link {
  text-decoration: none;
  color: inherit;
}
.wordmark-link:hover .wordmark { color: var(--accent-text); }

/* Error pages: 404/403/500. Same shell, big code, one way back. */
.error-page { text-align: center; padding-top: 88px; }
.error-code {
  font-family: 'Lora', Georgia, serif;
  font-size: clamp(56px, 12vw, 96px);
  font-weight: 700;
  line-height: 1;
  color: var(--accent-text);
  margin: 0 0 8px;
}
.error-page .lede { margin-left: auto; margin-right: auto; }

footer {
  background: var(--surface-2);
  border-top: 1px solid var(--border);
  padding: 28px 0;
  font-size: 14px;
  color: var(--text-mute);
}
footer p { margin: 0 0 4px; }
footer p:last-child { margin-bottom: 0; }
footer a { color: var(--text-dim); }
footer a:hover { color: var(--accent-text); }

/* Respect a stated preference for less motion, and keep focus obvious. */
:focus-visible {
  outline: 2px solid var(--accent-text);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}
