/* dangericke.com — Dan Gericke, founder site
   Zero-runtime JS. Webfonts self-referenced from Google Fonts (CSP updated in _headers).
   Voice: first-person, present-tense, builder energy. Dark technical ground,
   Space Grotesk + Space Mono, dotted-grid texture, gold signal, DG monogram.
   Deliberately distinct from danielgericke.com (light editorial dossier). */

:root {
  --bg: #0c0e12;            /* page ground */
  --bg-2: #14181f;          /* panels / alt */
  --bg-3: #1b212b;          /* raised */
  --ink: #f3f5f8;           /* headings */
  --text: #aeb7c4;          /* body */
  --muted: #6f7986;         /* secondary */
  --gold: #e7b24c;          /* signal accent */
  --gold-bright: #f4c463;
  --gold-dim: #9a7a2f;
  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(255, 255, 255, 0.16);
  --line-gold: rgba(231, 178, 76, 0.4);
  --maxw: 1080px;
  --radius: 6px;
  --grotesk: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "Space Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

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

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

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

h1, h2, h3 {
  font-family: var(--grotesk);
  color: var(--ink);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
  font-weight: 600;
}
h1 { font-size: clamp(2.3rem, 5.4vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.3rem); }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1.15em; }

a { color: var(--gold-bright); text-decoration: none; }
a:hover, a:focus { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

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

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

/* ---- Mono labels ---- */
.mono-label {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.mono-label .idx { color: var(--muted); }

/* ---- Layout ---- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 32px; }
.section { padding: 92px 0; border-top: 1px solid var(--line); position: relative; }
.section--alt { background: var(--bg-2); }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--gold); color: #1a1303;
  padding: 12px 18px; z-index: 100; font-weight: 700;
  font-family: var(--mono); font-size: 0.85rem;
}
.skip-link:focus { left: 0; }

/* ---- Header ---- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(12, 14, 18, 0.78);
  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: 72px; flex-wrap: wrap;
}
.brand {
  display: inline-flex; align-items: center; gap: 12px;
  color: var(--ink); font-family: var(--grotesk); font-weight: 700;
  letter-spacing: -0.01em; font-size: 1.02rem; white-space: nowrap;
}
.brand:hover { text-decoration: none; color: var(--ink); }
.monogram {
  display: inline-grid; place-items: center;
  width: 38px; height: 38px;
  border: 1.5px solid var(--gold);
  color: var(--gold);
  font-family: var(--mono); font-weight: 700; font-size: 0.92rem;
  letter-spacing: 0.02em;
  border-radius: 5px;
}
.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(--mono);
  font-size: 0.8rem; letter-spacing: 0.01em;
  border-radius: 5px;
}
.nav-links a:hover, .nav-links a:focus {
  background: var(--bg-3); color: var(--ink); text-decoration: none;
}

/* ---- Hero ---- */
.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(900px 460px at 78% 0%, rgba(231, 178, 76, 0.12), transparent 62%),
    var(--bg);
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    radial-gradient(rgba(255, 255, 255, 0.06) 1.1px, transparent 1.1px);
  background-size: 24px 24px;
  mask-image: linear-gradient(180deg, #000 0%, #000 55%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 55%, transparent 100%);
  pointer-events: none;
}
.hero-grid {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: 1.4fr 0.85fr;
  gap: 56px;
  align-items: center;
  padding: 104px 0 96px;
}
.hero-eyebrow {
  font-family: var(--mono);
  font-size: 0.82rem; letter-spacing: 0.02em;
  color: var(--gold); margin: 0 0 26px;
  display: inline-flex; align-items: center; gap: 12px;
}
.hero-eyebrow .pulse {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--gold); box-shadow: 0 0 0 0 rgba(231,178,76,0.6);
  animation: pulse 2.6s ease-out infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(231,178,76,0.5); }
  70% { box-shadow: 0 0 0 9px rgba(231,178,76,0); }
  100% { box-shadow: 0 0 0 0 rgba(231,178,76,0); }
}
.hero h1 {
  color: #fff;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.04;
  max-width: 18ch;
  margin-bottom: 0.6em;
}
.hero h1 .hl { color: var(--gold); }
.hero-sub {
  font-size: 1.18rem; color: var(--text);
  max-width: 46ch; margin-bottom: 2em; line-height: 1.6;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* hero photo */
.hero-photo { position: relative; justify-self: end; width: 100%; max-width: 320px; }
.hero-photo img {
  width: 100%; display: block; border-radius: var(--radius);
  filter: grayscale(0.55) contrast(1.04) brightness(0.95);
  border: 1px solid var(--line-2);
}
.hero-photo::after {
  content: ""; position: absolute; inset: 0; border-radius: var(--radius);
  background: linear-gradient(150deg, rgba(231,178,76,0.16), transparent 55%);
  pointer-events: none;
}
.hero-photo .ph-tag {
  position: absolute; left: 0; bottom: -1px;
  transform: translateY(50%);
  background: var(--bg); border: 1px solid var(--line-gold);
  color: var(--gold); font-family: var(--mono); font-size: 0.72rem;
  letter-spacing: 0.02em; padding: 7px 12px; border-radius: 5px;
  white-space: nowrap;
}

/* corner ticks on photo frame */
.hero-photo .tick {
  position: absolute; width: 14px; height: 14px; border: 2px solid var(--gold); z-index: 2;
}
.hero-photo .tick.tl { top: -3px; left: -3px; border-right: 0; border-bottom: 0; }
.hero-photo .tick.br { bottom: -3px; right: -3px; border-left: 0; border-top: 0; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 26px;
  font-family: var(--grotesk); font-size: 0.96rem; 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, transform 0.18s ease;
}
.btn--primary { background: var(--gold); color: #1a1303; }
.btn--primary:hover, .btn--primary:focus { background: var(--gold-bright); color: #1a1303; text-decoration: none; transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-2); font-family: var(--mono); font-size: 0.88rem; }
.btn--ghost:hover, .btn--ghost:focus { border-color: var(--gold); color: var(--gold); text-decoration: none; }

/* ---- Content ---- */
.section-inner { display: grid; grid-template-columns: 240px 1fr; gap: 48px; align-items: start; }
@media (max-width: 800px) { .section-inner { grid-template-columns: 1fr; gap: 20px; } }
.section-aside { position: sticky; top: 100px; }
@media (max-width: 800px) { .section-aside { position: static; } }
.section-aside h2 { font-size: 1.6rem; }

.prose { max-width: 64ch; }
.prose .lead { font-size: 1.28rem; color: var(--ink); line-height: 1.5; font-weight: 500; letter-spacing: -0.01em; }
.prose p { margin-bottom: 1.2em; }
.prose a { border-bottom: 1px solid var(--line-gold); }

/* ---- Connect / profile links ---- */
.profile-links {
  list-style: none; padding: 0; margin: 28px 0 0;
  display: flex; flex-wrap: wrap; gap: 12px;
}
.profile-links a {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 18px;
  border: 1px solid var(--line-2); border-radius: var(--radius);
  font-family: var(--mono); font-size: 0.85rem; font-weight: 400;
  color: var(--text);
  transition: border-color 0.16s ease, color 0.16s ease, background-color 0.16s ease;
}
.profile-links a::before { content: "→"; color: var(--gold); }
.profile-links a:hover, .profile-links a:focus {
  border-color: var(--gold); color: var(--ink); background: var(--bg-3); text-decoration: none;
}

/* ---- Footer ---- */
.site-footer {
  background: var(--bg); border-top: 1px solid var(--line);
  padding: 56px 0 48px; color: var(--muted);
}
.footer-grid { display: flex; justify-content: space-between; gap: 28px; flex-wrap: wrap; align-items: center; }
.footer-links { list-style: none; display: flex; gap: 8px 18px; margin: 0; padding: 0; flex-wrap: wrap; }
.footer-links a { font-family: var(--mono); font-size: 0.8rem; color: var(--text); }
.footer-links a:hover { color: var(--gold); }
.footer-copy { font-family: var(--mono); font-size: 0.8rem; color: var(--muted); 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: 800px) {
  .hero-grid { grid-template-columns: 1fr; gap: 44px; padding: 72px 0 64px; }
  .hero-photo { justify-self: start; max-width: 240px; order: -1; }
  .section { padding: 64px 0; }
}
@media (max-width: 560px) { .container { padding: 0 20px; } }

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