/* Frank Sharp — fwsharp.com
   Clean light professional, mobile-first (~390px+) */

:root {
  --bg: #f7f8fa;
  --surface: #ffffff;
  --text: #1a1d23;
  --muted: #5c6570;
  --border: #e2e5ea;
  --accent: #1e4d8c;
  --accent-hover: #163a6b;
  --accent-soft: #e8f0fa;
  --link: #1e4d8c;
  --radius: 10px;
  --shadow: 0 1px 3px rgba(26, 29, 35, 0.06), 0 4px 12px rgba(26, 29, 35, 0.04);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --max: 42rem;
  --wide: 52rem;
}

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

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

a {
  color: var(--link);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

a:hover {
  color: var(--accent-hover);
}

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  border-radius: 0 0 var(--radius) 0;
}

.skip-link:focus {
  left: 0;
}

/* Header / nav */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-inner {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.logo {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.logo:hover {
  color: var(--accent);
}

.logo span {
  color: var(--muted);
  font-weight: 500;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
  align-items: center;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  padding: 0.25rem 0;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--accent);
}

.nav a.nav-secondary {
  font-weight: 400;
  font-size: 0.875rem;
  opacity: 0.9;
}

/* Main */
main {
  flex: 1;
  width: 100%;
}

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.5rem 1rem 3rem;
}

.container--wide {
  max-width: var(--wide);
}

/* Home hero */
.hero {
  padding: 2rem 0 1.5rem;
}

.hero h1 {
  margin: 0 0 0.35rem;
  font-size: clamp(1.75rem, 5vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.role-line {
  margin: 0 0 1.25rem;
  font-size: 1.0625rem;
  color: var(--accent);
  font-weight: 600;
}

.about {
  margin: 0 0 1.75rem;
  color: var(--muted);
  font-size: 1.0625rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.25rem;
  font-size: 0.9375rem;
  font-weight: 600;
  font-family: inherit;
  border-radius: var(--radius);
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.btn--primary {
  background: var(--accent);
  color: #fff;
}

.btn--primary:hover {
  background: var(--accent-hover);
  color: #fff;
}

.btn--secondary {
  background: var(--surface);
  color: var(--accent);
  border-color: var(--border);
}

.btn--secondary:hover {
  background: var(--accent-soft);
  color: var(--accent-hover);
  border-color: #c5d4e8;
}

/* Cards / sections */
.section-title {
  margin: 0 0 1rem;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.25rem;
  box-shadow: var(--shadow);
  margin-bottom: 1rem;
}

.card h2,
.card h3 {
  margin: 0 0 0.5rem;
}

.muted {
  color: var(--muted);
}

.meta {
  font-size: 0.875rem;
  color: var(--muted);
  margin: 0 0 0.75rem;
}

/* Resume */
.resume-header {
  margin-bottom: 1.75rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
}

.resume-header h1 {
  margin: 0 0 0.25rem;
  font-size: clamp(1.5rem, 4vw, 1.875rem);
  letter-spacing: -0.02em;
}

.resume-contact {
  margin: 0.75rem 0 0;
  font-size: 0.9375rem;
}

.resume-contact a {
  word-break: break-all;
}

.job {
  margin-bottom: 1.75rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.job:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.job-title {
  margin: 0;
  font-size: 1.0625rem;
  font-weight: 700;
}

.job-org {
  font-weight: 600;
  color: var(--accent);
}

.job ul {
  margin: 0.5rem 0 0;
  padding-left: 1.2rem;
}

.job li {
  margin-bottom: 0.4rem;
}

.job li:last-child {
  margin-bottom: 0;
}

.skills-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 560px) {
  .skills-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.skill-block h3 {
  margin: 0 0 0.35rem;
  font-size: 0.9375rem;
  color: var(--accent);
}

.skill-block p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--muted);
}

.edu-item {
  margin-bottom: 1rem;
}

.edu-item:last-child {
  margin-bottom: 0;
}

.edu-item h3 {
  margin: 0 0 0.25rem;
  font-size: 1rem;
}

.edu-item p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--muted);
}

/* Pokémon page — light secondary, not brand pitch */
.pogo-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  margin-bottom: 0.75rem;
}

.pogo-hero h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.5rem, 4vw, 1.875rem);
}

.trainer-card {
  display: grid;
  gap: 0.75rem;
}

.trainer-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.35rem 1rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--border);
}

.trainer-row:last-child {
  border-bottom: none;
}

.trainer-label {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--muted);
}

.trainer-value {
  font-family: var(--mono);
  font-size: 0.875rem;
}

.placeholder-note {
  font-size: 0.8125rem;
  color: var(--muted);
  font-style: italic;
  margin-top: 1rem;
}

/* Footer */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 1.5rem 1rem;
  margin-top: auto;
}

.footer-inner {
  max-width: var(--wide);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  align-items: center;
  font-size: 0.875rem;
  color: var(--muted);
}

.footer-inner a {
  color: var(--muted);
  text-decoration: none;
}

.footer-inner a:hover {
  color: var(--accent);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
}

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

@media (min-width: 640px) {
  .container {
    padding: 2rem 1.5rem 3.5rem;
  }

  .hero {
    padding: 2.5rem 0 2rem;
  }
}
