/* jeffstjohn.org — base styles
   Palette sampled from the career word cloud and site logo:
   navy #203864, orange #efa14e, teal #17807e, sage #a8c8c8 */

:root {
  --navy: #203864;
  --orange: #efa14e;
  --teal: #17807e;
  --linkedin: #0a66c2;
  --linkedin-hover: #084e96;

  --bg: #ffffff;
  --surface: #ffffff;
  --text: #203864;
  --muted: #55606f;
  --rule: #111111;
  --link: #1a5fb4;
  --maxw: 68rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #12161f;
    --surface: #1a2030;
    --text: #e6ecf7;
    --muted: #9aa6bb;
    --rule: #46516b;
    --link: #8ab4f8;
  }
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1rem/1.6 ui-sans-serif, system-ui, -apple-system, "Segoe UI",
        Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

.skip { position: absolute; left: -9999px; }
.skip:focus {
  left: 1rem; top: 1rem; z-index: 10;
  background: var(--surface); color: var(--text);
  padding: 0.5rem 0.85rem; border: 1px solid var(--rule); border-radius: 0.375rem;
}

a { color: var(--link); }

:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }

/* Header — centered name, as on the original site */

.site-header { padding-block: 2.5rem 1.5rem; }

.brand {
  display: block;
  text-align: center;
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.015em;
  color: var(--text);
  text-decoration: none;
}

/* Word cloud with the LinkedIn button set into its open lower-left space */

.cloud { position: relative; }

.cloud img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0.5rem;
}

.linkedin {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.15rem;
  border-radius: 0.4rem;
  background: var(--linkedin);
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1;
  text-decoration: none;
  box-shadow: 0 1px 3px rgb(0 0 0 / 0.28);
}

.linkedin:hover, .linkedin:focus-visible {
  background: var(--linkedin-hover);
  color: #fff;
}

/* Overlay only where the cloud actually has whitespace and there is room. */
@media (min-width: 46rem) {
  .linkedin { position: absolute; left: 0; bottom: 12%; }
}

/* On narrow screens the overlay would cover words — stack it instead. */
@media (max-width: 45.99rem) {
  .linkedin { margin-top: 1.25rem; }
}

/* Footer */

.site-footer {
  margin-top: 2.5rem;
  border-top: 3px solid var(--rule);
  padding-block: 1.75rem 3rem;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
}

.footer-name {
  margin: 0;
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.015em;
  color: var(--text);
}

.footer-links { font-size: 0.9375rem; }

/* Interior pages (privacy policy) */

.page { padding-block: 1rem 2rem; }
.page h1 { font-size: clamp(1.75rem, 4vw, 2.25rem); margin: 0 0 0.5rem; }
.page h2 { font-size: 1.1875rem; margin: 2rem 0 0.5rem; }
.page p, .page li { color: var(--muted); max-width: 42rem; }
.page .updated { font-size: 0.875rem; margin-bottom: 2rem; }
