/* STP Consulting Group LLC — site styles (design Alt 3, chosen 2026-11-25). Self-contained: system fonts, no external resources. */

:root {
  --ink: #111;
  --paper: #fff;
  --muted: #555;      /* 7.4:1 on white */
  --line: #ddd;
  --black: #000;
  --on-black: #fff;
  --on-black-muted: #ccc;
}

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

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

img { max-width: 100%; height: auto; }

.wrap {
  width: 100%;
  max-width: 46rem;
  margin: 0 auto;
  padding: 0 1rem;
}

a { color: inherit; text-underline-offset: 0.15em; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible {
  outline: 3px solid currentColor;
  outline-offset: 3px;
  border-radius: 2px;
}

/* Skip link */
.skip {
  position: absolute;
  left: 1rem;
  top: -10rem;
  background: var(--paper);
  color: var(--ink);
  padding: 0.5rem 0.75rem;
  z-index: 10;
}
.skip:focus { top: 0.5rem; }

/* Header: black band, logo as is (white on black) */
.site-header {
  background: var(--black);
  color: var(--on-black);
}
.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}
.brand { display: block; line-height: 0; }
.brand img { width: 13rem; }

.site-header ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
}
.site-header nav a {
  text-decoration: none;
  display: inline-block;
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
}
.site-header nav a:hover { border-bottom-color: var(--on-black-muted); }
.site-header nav a[aria-current="page"] { border-bottom-color: var(--on-black); }

/* Content */
main { flex: 1; }
.hero { padding: 2.5rem 0 0.5rem; }
.page-body { padding-top: 0.5rem; padding-bottom: 3rem; }
.hero + .page-body { padding-top: 1rem; }
main > .hero:last-child { padding-bottom: 3rem; }
h1, h2, h3 { line-height: 1.25; margin: 2rem 0 0.75rem; }
h1 { font-size: 2rem; margin-top: 0; letter-spacing: -0.01em; }
h2 { font-size: 1.375rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.page-body > :first-child,
.page-body > section:first-child > h2 { border-top: 0; padding-top: 0; margin-top: 0; }
h3 { font-size: 1.125rem; margin-top: 0; }
p { margin: 0 0 1rem; }
.lead { font-size: 1.1875rem; }
.small { font-size: 0.9375rem; color: var(--muted); }

.areas { padding-left: 1.25rem; margin: 0 0 1rem; }
.areas li { margin-bottom: 0.25rem; }

.card {
  border: 2px solid var(--black);
  padding: 1rem 1.25rem 0.25rem;
  margin: 1.5rem 0;
}

.js-email a { font-weight: 600; overflow-wrap: anywhere; }

/* Footer */
.site-footer {
  background: var(--black);
  color: var(--on-black-muted);
  font-size: 0.9375rem;
  padding: 1.5rem 0 1rem;
}
.site-footer strong { color: var(--on-black); font-weight: 600; }
.site-footer p { margin: 0 0 0.5rem; }

@media (max-width: 34rem) {
  body { font-size: 1rem; }
  .brand img { width: 10rem; }
  .site-header ul { gap: 0.25rem 1rem; font-size: 0.9375rem; }
  h1 { font-size: 1.625rem; }
  .hero { padding-top: 1.75rem; }
}

/* ===== Alt 3 — Editorial with the logo mark =====
   Serif headings (system fonts), the logo's angular mark as a faint hero shape,
   side-heading layout on wide screens, specializations as a ruled index. */

:root {
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --line: #d8d8d8;
}

.wrap { max-width: 60rem; }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: 0; }

.hero {
  position: relative;
  overflow: hidden;
  padding: 3.5rem 0 3rem;
  border-bottom: 1px solid var(--ink);
  background: url("../images/mark.svg") no-repeat right -2rem center / auto 140%;
}
.hero h1 { font-size: clamp(2.125rem, 5vw, 3.5rem); line-height: 1.1; max-width: 16ch; }
.hero .lead { font-size: 1.25rem; max-width: 36ch; margin-bottom: 0; }
.hero .small { margin-bottom: 0; }
main > .hero:last-child { padding-bottom: 5rem; }
.hero + .page-body { padding-top: 0; }

/* Side headings: h2 in a left column, content on the right */
h2 { font-size: 1.5rem; border-top: 0; padding-top: 0; }
@media (min-width: 48rem) {
  .page-body > section {
    display: grid;
    grid-template-columns: 14rem 1fr;
    column-gap: 2.5rem;
    padding: 2.5rem 0 1.5rem;
    border-bottom: 1px solid var(--line);
  }
  .page-body > section:last-child { border-bottom: 0; }
  .page-body > section > h2 {
    grid-column: 1;
    grid-row: 1 / span 20;
    margin: 0;
  }
  .page-body > section > * { grid-column: 2; }
  .page-body > section:first-child > h2 { padding-top: 0; }
}
@media (max-width: 47.99rem) {
  .page-body > section { padding: 2rem 0 0.5rem; border-bottom: 1px solid var(--line); }
  .page-body > section:last-child { border-bottom: 0; }
  .page-body > section > h2 { margin-top: 0; }
}
.page-body > h2 { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.page-privacy .hero + .page-body,
.page-terms .hero + .page-body,
.page-404 .hero + .page-body { padding-top: 2rem; max-width: 46rem; }

/* Specializations: ruled index in two columns */
.areas {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 1rem;
  columns: 2 16rem;
  column-gap: 2rem;
  border-top: 1px solid var(--ink);
}
.areas li {
  break-inside: avoid;
  margin: 0;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--serif);
  font-size: 1.1875rem;
}

/* Products */
.page-products .lead { font-family: var(--serif); font-style: italic; font-size: 1.5rem; }
.card {
  border: 0;
  border-left: 1px solid var(--ink);
  padding: 0.25rem 0 0 1.5rem;
  margin: 2rem 0;
}
.card h3 { font-size: 1.5rem; }

.js-email a { font-family: var(--serif); font-size: 1.1em; }

@media (max-width: 34rem) {
  .hero { padding: 2.25rem 0 2rem; background-size: auto 110%; background-position: right -4rem center; }
}

/* first section keeps its top padding (overrides the shared first-child reset) */
.page-body > section:first-child { padding-top: 2.5rem; }
@media (max-width: 47.99rem) { .page-body > section:first-child { padding-top: 2rem; } }

/* Visually hidden but read by screen readers and search engines */
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* Home: no visible heading; the lead line carries the hero next to the logo mark */
.page-index .hero {
  padding: 3rem 0 2.75rem;
  background-size: auto 200%;
}
/* Same size as the section headings (h2: 1.5rem at every width), per Tobi 2026-11-25 */
.page-index .hero .lead {
  font-family: var(--serif);
  font-size: 1.5rem;
  line-height: 1.35;
  max-width: 30ch;
}
@media (max-width: 34rem) {
  .page-index .hero { padding: 2rem 0 1.75rem; background-size: auto 150%; }
}
