/* danielgericke.com — Daniel Gericke, authoritative professional profile
   Zero-runtime JS. Webfonts self-referenced from Google Fonts (CSP updated in _headers).
   Voice: third-person, formal, full career record — a senior operator's dossier.
   Light editorial ground, Newsreader serif + IBM Plex Sans, teal hairlines,
   numbered career index. Deliberately distinct from dangericke.com (dark builder). */

:root {
  --paper: #faf9f6;          /* warm near-white ground */
  --paper-2: #ffffff;        /* cards */
  --paper-3: #f1efe9;        /* alt panel */
  --ink: #16201f;            /* near-black, faint green undertone */
  --ink-2: #2c3937;          /* subheads */
  --text: #3d4a48;           /* body */
  --muted: #707b78;          /* secondary */
  --teal: #0f6b66;           /* accent (AA on paper) */
  --teal-deep: #0a4f4b;
  --teal-tint: #e4efed;      /* fills */
  --line: #e2ddd2;           /* warm hairline */
  --line-2: #d3cdbf;
  --line-teal: rgba(15, 107, 102, 0.32);
  --maxw: 1080px;
  --radius: 3px;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.72;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 {
  font-family: var(--serif);
  color: var(--ink);
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
  font-weight: 500;
}
h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); font-weight: 400; }
h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 500; }
h3 { font-size: 1.32rem; font-weight: 600; }

p { margin: 0 0 1.2em; }

a { color: var(--teal); text-decoration: none; }
a:hover, a:focus { color: var(--teal-deep); text-decoration: underline; text-underline-offset: 3px; }

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
  border-radius: 2px;
}

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

/* ---- Eyebrow ---- */
.eyebrow {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--teal);
  margin: 0 0 18px;
  display: inline-flex; align-items: center; gap: 12px;
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--teal); }

/* ---- Layout ---- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 36px; }
.section { padding: 88px 0; }
.section--ruled { border-top: 1px solid var(--line); }
.section--alt { background: var(--paper-3); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: #fff;
  padding: 12px 18px; z-index: 100; font-weight: 600;
}
.skip-link:focus { left: 0; }

/* ---- Header ---- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 249, 246, 0.86);
  backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 74px; flex-wrap: wrap; }
.brand {
  display: inline-flex; align-items: baseline; gap: 10px;
  font-family: var(--serif); font-size: 1.18rem; font-weight: 500;
  color: var(--ink); letter-spacing: -0.01em; white-space: nowrap;
}
.brand:hover { text-decoration: none; color: var(--ink); }
.brand .brand-rule { width: 22px; height: 1px; background: var(--teal); align-self: center; }
.nav-links { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; margin: 0; padding: 0; list-style: none; }
.nav-links a {
  display: inline-block; padding: 8px 14px;
  color: var(--text); font-family: var(--sans);
  font-size: 0.86rem; font-weight: 500; letter-spacing: 0.01em;
  border-radius: var(--radius);
}
.nav-links a:hover, .nav-links a:focus { background: var(--paper-3); color: var(--ink); text-decoration: none; }

/* ---- Hero (editorial dossier) ---- */
.hero { padding: 84px 0 0; position: relative; }
.hero-top {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: end;
  padding-bottom: 36px;
}
.hero h1 {
  color: var(--ink);
  letter-spacing: -0.022em;
  margin: 0;
  line-height: 0.98;
}
.hero h1 .sub-name { display: block; font-size: 0.42em; color: var(--muted); font-style: italic; letter-spacing: 0; margin-top: 0.5em; font-weight: 400; }
.hero-portrait {
  width: 160px; height: 200px; flex: 0 0 auto;
  object-fit: cover; object-position: top center;
  border-radius: var(--radius);
  filter: grayscale(1) contrast(1.05);
  border: 1px solid var(--line-2);
}
/* ruled metadata row */
.hero-meta {
  display: flex; flex-wrap: wrap;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--line);
}
.hero-meta .cell {
  flex: 1 1 200px;
  padding: 24px 26px 22px 26px;
  border-left: 1px solid var(--line);
}
.hero-meta .cell:first-child { border-left: 0; padding-left: 0; }
.hero-meta .k {
  display: block; font-family: var(--sans);
  font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.18em;
  color: var(--teal); font-weight: 600; margin-bottom: 8px;
}
.hero-meta .v { font-family: var(--serif); font-size: 1.12rem; color: var(--ink); line-height: 1.35; }
.hero-intro { padding: 44px 0 8px; max-width: 60ch; }
.hero-intro p {
  font-family: var(--serif); font-size: 1.5rem; line-height: 1.5;
  color: var(--ink-2); font-weight: 400;
}

/* ---- Career index (numbered) ---- */
.career-list { display: flex; flex-direction: column; margin-top: 40px; }
.career-item {
  display: grid;
  grid-template-columns: 56px 200px 1fr;
  gap: 28px;
  padding: 30px 0;
  border-top: 1px solid var(--line);
  align-items: start;
  transition: background-color 0.18s ease;
}
.career-item:last-child { border-bottom: 1px solid var(--line); }
.career-item:hover { background: var(--paper-2); }
.career-item .no {
  font-family: var(--serif); font-size: 1.05rem; color: var(--teal);
  font-weight: 500; padding-top: 3px;
}
.career-item .when {
  font-family: var(--sans); font-size: 0.78rem; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--muted); font-weight: 600; padding-top: 5px;
}
.career-item .role { }
.career-item .role h3 { margin: 0 0 4px; color: var(--ink); }
.career-item .role .org { font-family: var(--sans); font-size: 0.95rem; color: var(--teal); font-weight: 600; margin: 0 0 10px; }
.career-item .role p { margin: 0; font-size: 1rem; color: var(--text); }
@media (max-width: 720px) {
  .career-item { grid-template-columns: 40px 1fr; gap: 8px 20px; }
  .career-item .when { grid-column: 2; padding-top: 0; margin-bottom: 6px; }
  .career-item .role { grid-column: 2; }
  .career-item .no { grid-row: span 2; }
}

/* ---- Expertise grid ---- */
.expertise {
  display: grid; gap: 1px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin-top: 40px;
  background: var(--line); border: 1px solid var(--line);
}
.expertise .cell {
  background: var(--paper); padding: 30px 28px;
  transition: background-color 0.18s ease;
}
.expertise .cell:hover { background: var(--paper-2); }
.expertise .cell h3 { font-family: var(--serif); font-size: 1.18rem; color: var(--ink); margin: 0 0 10px; font-weight: 600; }
.expertise .cell p { margin: 0; font-size: 0.96rem; color: var(--text); line-height: 1.6; }
.expertise .cell .mk {
  display: block; width: 24px; height: 2px; background: var(--teal); margin-bottom: 16px;
}

/* ---- Prose ---- */
.prose { max-width: 66ch; }
.prose .lead { font-family: var(--serif); font-size: 1.42rem; line-height: 1.5; color: var(--ink-2); font-weight: 400; }
.prose p { margin-bottom: 1.2em; }

.section-head { max-width: 60ch; margin-bottom: 4px; }

/* ---- Speaking ---- */
.speaking-list { list-style: none; padding: 0; margin: 36px 0 0; }
.speaking-list li {
  display: flex; align-items: baseline; gap: 20px;
  padding: 18px 0; border-top: 1px solid var(--line);
  font-family: var(--serif); font-size: 1.22rem; color: var(--ink);
}
.speaking-list li:last-child { border-bottom: 1px solid var(--line); }
.speaking-list .venue { flex: 1; }
.speaking-list .topic { font-family: var(--sans); font-size: 0.9rem; color: var(--muted); font-weight: 400; }

/* ---- Contact ---- */
.contact-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.profile-links { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 12px; }
.profile-links a {
  display: inline-block; padding: 11px 20px;
  border: 1px solid var(--line-2); border-radius: var(--radius);
  font-family: var(--sans); font-size: 0.9rem; font-weight: 500; color: var(--ink);
  transition: border-color 0.16s ease, background-color 0.16s ease;
}
.profile-links a:hover, .profile-links a:focus { border-color: var(--teal); background: var(--teal-tint); text-decoration: none; color: var(--teal-deep); }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 26px; font-family: var(--sans); font-size: 0.95rem; font-weight: 600;
  border-radius: var(--radius); border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.btn--primary { background: var(--teal); color: #fff; }
.btn--primary:hover, .btn--primary:focus { background: var(--teal-deep); color: #fff; text-decoration: none; }
.btn--outline { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn--outline:hover, .btn--outline:focus { border-color: var(--teal); color: var(--teal-deep); text-decoration: none; }

/* ---- Footer ---- */
.site-footer { background: var(--ink); color: #9fb0ad; padding: 56px 0 48px; border-top: 3px solid var(--teal); }
.footer-grid { display: flex; justify-content: space-between; gap: 28px; flex-wrap: wrap; align-items: center; }
.site-footer a { color: #d6e0de; }
.site-footer a:hover { color: #fff; }
.footer-links { list-style: none; display: flex; gap: 10px 22px; margin: 0; padding: 0; flex-wrap: wrap; }
.footer-links a { font-family: var(--sans); font-size: 0.88rem; font-weight: 500; }
.footer-copy { font-family: var(--sans); font-size: 0.84rem; color: #7c8b88; margin: 0; }

/* ---- Utilities ---- */
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ---- Responsive ---- */
@media (max-width: 720px) {
  .hero-top { grid-template-columns: 1fr; gap: 28px; align-items: start; }
  .hero-portrait { width: 120px; height: 150px; order: -1; }
  .hero-meta .cell { flex: 1 1 100%; border-left: 0; border-bottom: 1px solid var(--line); padding: 18px 0; }
  .hero-meta .cell:last-child { border-bottom: 0; }
  .section { padding: 60px 0; }
}
@media (max-width: 520px) { .container { padding: 0 22px; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}
