/* Dark Roast Flow. Values follow .claude/skills/landing-page-design: Tailwind type scale,
   the spacing table, Tailwind radii, flat dark backgrounds, one custom easing curve. */
:root {
  color-scheme: dark;
  --bg: #131209;
  --surface: #1F1F1F;
  --line: #313131;
  --text: #FFFFFF;
  --muted: #9B9B9B;
  --live: #4ADE80;

  --s-50: 4px;  --s-75: 8px;  --s-100: 12px; --s-200: 16px; --s-300: 24px;
  --s-400: 32px; --s-500: 40px; --s-600: 48px; --s-700: 64px; --s-800: 80px; --s-900: 96px;

  --ease: cubic-bezier(0.32, 0.72, 0, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Geist", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 24px;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { margin: 0; font-weight: 600; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; border-radius: 4px; }

.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 var(--s-300); }
.narrow { max-width: 768px; }

.skip {
  position: absolute; left: var(--s-200); top: -100px; z-index: 20;
  background: var(--text); color: var(--bg); padding: var(--s-75) var(--s-100);
  border-radius: 8px; font-weight: 600;
}
.skip:focus { top: var(--s-200); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: var(--s-75);
  padding: var(--s-75) var(--s-100);
  border-radius: 9999px;
  background: var(--text); color: var(--bg);
  font-size: 16px; line-height: 24px; font-weight: 600; text-decoration: none;
  transition: transform 700ms var(--ease), background-color 700ms var(--ease);
}
.btn:hover { background: #E5E5E5; transform: translateY(-2px); }
.btn:active { transform: scale(0.98); }
.btn-sm { font-size: 14px; line-height: 20px; }
.icon { width: 20px; height: 20px; flex: none; }
.icon-lg { width: 32px; height: 32px; color: var(--muted); }

/* Hero */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: center;
  padding: var(--s-900) 0 var(--s-700);
  background: var(--bg) url(hiker-hd.jpg) center 40% / cover no-repeat;
}
.hero::before { content: ""; position: absolute; inset: 0; background: rgba(19, 18, 9, 0.5); }
.hero-content { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: var(--s-300); }
.status {
  display: inline-flex; align-items: center; gap: var(--s-75);
  font-size: 14px; line-height: 20px; font-weight: 500; color: var(--muted);
  padding: var(--s-50) var(--s-100); border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.2); background: rgba(19, 18, 9, 0.5);
}
.status-text { white-space: nowrap; }
.typed { color: var(--text); }
.caret { display: inline-block; width: 2px; height: 16px; margin-left: 2px; vertical-align: -3px; background: var(--live); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.pulse { width: 8px; height: 8px; border-radius: 9999px; background: var(--live); box-shadow: 0 0 0 4px rgba(74, 222, 128, 0.2); animation: pulse 6s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }
.hero h1 {
  max-width: 680px;
  font-size: 30px; line-height: 36px; letter-spacing: -0.02em;
  background: linear-gradient(90deg, #FFFFFF, #9B9B9B);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero h1 .line { display: block; text-wrap: balance; }
.lede { max-width: 680px; font-size: 18px; line-height: 28px; color: #D4D4D4; }
.live-dot { width: 8px; height: 8px; border-radius: 9999px; background: var(--live); box-shadow: 0 0 0 4px rgba(74, 222, 128, 0.2); }

/* Tagline reveal */
.tagline { padding: var(--s-900) 0; }
.tagline-text { max-width: 900px; font-size: 30px; line-height: 36px; font-weight: 600; letter-spacing: -0.02em; text-wrap: balance; }
.tagline-text .w { color: rgba(255, 255, 255, 0.3); transition: color 700ms var(--ease); }
.tagline-text .w.on { color: var(--text); }

/* Job Town */
.app { padding: var(--s-700) 0; }
.app:last-of-type { padding-bottom: var(--s-900); }
.eyebrow { font-size: 14px; line-height: 20px; color: var(--muted); font-weight: 500; margin-bottom: var(--s-100); }
.app-head { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-200); margin-bottom: var(--s-200); }
.app-head h2 { font-size: 36px; line-height: 40px; letter-spacing: -0.02em; }
.chip {
  font-size: 14px; line-height: 20px; font-weight: 500; color: var(--muted);
  padding: var(--s-50) var(--s-100); border-radius: 9999px; border: 1px solid var(--line);
}
.section-lede { max-width: 680px; font-size: 18px; line-height: 28px; color: var(--muted); margin-bottom: var(--s-600); }
.grid { display: grid; gap: var(--s-200); grid-template-columns: 1fr; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
  padding: var(--s-300);
  display: flex; flex-direction: column; gap: var(--s-100);
  transition: transform 700ms var(--ease), border-color 700ms var(--ease);
}
.card:hover { transform: translateY(-4px); border-color: #4A4A4A; }
.card h3, .card h4 { font-size: 18px; line-height: 28px; }
.card p { color: var(--muted); }
/* My Fire Pension */
.project { text-decoration: none; }
.project-text { display: flex; flex-direction: column; gap: var(--s-75); max-width: 680px; }
.project-link { display: inline-flex; align-items: center; gap: var(--s-75); font-weight: 600; white-space: nowrap; }
.project:hover .project-link .icon { transform: translate(2px, -2px); }
.project-link .icon { transition: transform 700ms var(--ease); }
.chip-live { display: inline-flex; align-items: center; gap: var(--s-75); color: var(--text); }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: var(--s-400) 0 var(--s-600); color: var(--muted); font-size: 14px; line-height: 20px; }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-200); }
.footer ul { display: flex; flex-wrap: wrap; gap: var(--s-300); list-style: none; margin: 0; padding: 0; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--text); }

@media (min-width: 768px) {
  .hero h1 { font-size: 48px; line-height: 1; }
  .tagline-text { font-size: 48px; line-height: 1; }
  .app-head h2 { font-size: 48px; line-height: 1; }
  .grid { grid-template-columns: repeat(3, 1fr); }
  .project { flex-direction: row; align-items: center; gap: var(--s-300); }
  .project-link { margin-left: auto; }
}

/* Scroll reveal: only hidden when the script is running, so the page still reads without it. */
.js .reveal { opacity: 0; transform: translateY(64px); filter: blur(12px); }
.js .reveal.in {
  opacity: 1; transform: none; filter: none;
  transition: opacity 800ms var(--ease), transform 800ms var(--ease), filter 800ms var(--ease);
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; filter: none; }
  .pulse, .caret { animation: none; }
  .tagline-text .w { color: var(--text); transition: none; }
}
