/*
  Aaron Horrell – Shared Styles
  ------------------------------------------------------------------
  One stylesheet for homepage + project pages. Lightweight, responsive,
  dark‑mode aware.
*/

:root {
  --bg: #ffffff;
  --surface: #f6f8fa;
  --text: #111827;
  --muted: #6b7280;
  --border: #e5e7eb;
  --brand: #12b5c9; /* teal accent */
  --brand-ink: #0d8da0;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  --radius: 18px;
  --maxw: 1100px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0f14;
    --surface: #121820;
    --text: #e5e7eb;
    --muted: #94a3b8;
    --border: #1f2937;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  }
}

/* Resets & base */
* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
}
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica,
    Arial, "Apple Color Emoji", "Segoe UI Emoji";
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a {
  color: var(--brand-ink);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}

/* Header / nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(180%) blur(6px);
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}
.brand {
  font-weight: 800;
  letter-spacing: 0.4px;
  font-size: 18px;
}
.nav ul {
  list-style: none;
  display: flex;
  gap: 18px;
  margin: 0;
  padding: 0;
}
.nav a {
  font-weight: 600;
  color: var(--text);
  opacity: 0.85;
}
.nav a[aria-current="page"] {
  color: var(--brand-ink);
}

/* Hero */
.hero {
  padding: 70px 0 30px;
}
.hero.project {
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--brand) 20%, transparent),
    transparent 50%
  );
  padding: 40px 0 0;
  border-bottom: 1px solid var(--border);
}
.title {
  font-size: clamp(28px, 5vw, 44px);
  line-height: 1.15;
  margin: 6px 0 12px;
  letter-spacing: 0.3px;
}
.kicker {
  font-weight: 700;
  color: var(--brand-ink);
  letter-spacing: 0.2px;
}
.lead {
  color: var(--muted);
  font-size: 18px;
}

.cta {
  display: flex;
  gap: 12px;
  margin-top: 22px;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow);
  font-weight: 700;
}
.btn-primary {
  background: linear-gradient(140deg, var(--brand), var(--brand-ink));
  color: #fff;
  border: none;
}
.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
  text-decoration: none;
}

.hero-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}
.hero-card ul {
  margin: 0;
  padding-left: 18px;
}
.hero-figure {
  margin: 22px auto 0;
  max-width: var(--maxw);
  border-top-left-radius: var(--radius);
  border-top-right-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.hero-figure img {
  display: block;
  width: 100%;
  height: auto;
}

/* Sections */
section {
  padding: 60px 0;
}
.section-title {
  font-size: 26px;
  margin: 0 0 22px;
  letter-spacing: 0.2px;
}
.grid {
  display: grid;
  gap: 18px;
}
.grid.cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.grid.cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
@media (max-width: 900px) {
  .hero .wrap {
    grid-template-columns: 1fr !important;
  }
  .grid.cols-2,
  .grid.cols-3 {
    grid-template-columns: 1fr;
  }
}

/* Skill chips */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.chip {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-weight: 600;
  font-size: 14px;
}

/* Cards */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
}
.card h3 {
  margin-top: 0;
  margin-bottom: 6px;
  font-size: 18px;
}
.meta {
  color: var(--muted);
  font-size: 14px;
}

/* Experience timeline */
.timeline {
  position: relative;
  margin-left: 14px;
}
.timeline:before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 2px;
  background: var(--border);
}
.tl-item {
  position: relative;
  margin-left: 18px;
  padding-left: 18px;
}
.tl-item:before {
  content: "";
  position: absolute;
  left: -10px;
  top: 0.7em;
  width: 10px;
  height: 10px;
  background: var(--brand);
  border-radius: 50%;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 20%, transparent);
}

/* Project cards */
.project-thumb {
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: repeating-linear-gradient(
    45deg,
    color-mix(in srgb, var(--surface) 90%, #000 10%),
    color-mix(in srgb, var(--surface) 90%, #000 10%) 10px,
    var(--surface) 10px,
    var(--surface) 20px
  );
  display: grid;
  place-items: center;
  color: var(--muted);
  font-weight: 700;
}

/* Media helpers (project pages) */
.media-16x9 {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  background: #000;
}
.media-16x9 iframe,
.media-16x9 video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Footer */
footer {
  border-top: 1px solid var(--border);
  padding: 30px 0;
  color: var(--muted);
}

/* Utilities */
.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;
}
.space-xxs {
  height: 8px;
}
.space-xs {
  height: 14px;
}
.space-s {
  height: 22px;
}
.space-m {
  height: 30px;
}
.space-l {
  height: 48px;
}

/* Layout variants used on hero */
.hero .wrap {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}

/* Pager */
.pager {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 26px 0 40px;
  border-top: 1px solid var(--border);
  margin-top: 12px;
}

/* Print */
@media print {
  .site-header,
  .cta,
  .project-thumb {
    display: none;
  }
  section {
    padding: 16px 0;
  }
  .hero {
    padding-top: 0;
  }
}
