/* ryanmoch.com — dark theme */

/* Palette matched to printables.com dark theme (Prusa orange #fa6831) */
:root {
  --bg: #1c1e21;
  --surface: #242629;
  --border: #35383c;
  --text: #e0e0e0;
  --muted: #b3b3b3;
  --accent: #fa6831;
  --accent-soft: rgba(250, 104, 49, 0.14);
  --max-width: 46rem;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
}

/* ---- Navigation ---- */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(24, 25, 26, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

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

.brand {
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.01em;
}

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

.nav-links {
  display: flex;
  gap: 1.25rem;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
}

.nav-links a:hover {
  color: var(--text);
}

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

/* ---- Hero ---- */

.hero {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 4.5rem 1.25rem 1rem;
}

.hero h1 {
  margin: 0;
  font-size: 2.6rem;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.hero-tagline {
  margin: 0.5rem 0 0;
  font-size: 1.35rem;
  color: var(--accent);
  font-weight: 500;
}

.hero-meta {
  margin: 0.4rem 0 0;
  color: var(--muted);
}

/* ---- Main content ---- */

main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.5rem 1.25rem 4rem;
}

h1, h2, h3 {
  line-height: 1.25;
}

main h1 {
  font-size: 2.1rem;
  margin: 2.5rem 0 0.5rem;
}

main h2 {
  font-size: 1.45rem;
  margin: 2.5rem 0 0.75rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--border);
}

main h3 {
  font-size: 1.15rem;
  margin: 1.75rem 0 0.25rem;
}

p {
  margin: 0.75rem 0;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

main .lead {
  font-size: 1.15rem;
  color: var(--text);
}

hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2.5rem 0;
}

/* ---- Skill chips ---- */

.skills {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 0 1.5rem;
}

.skills h3 {
  margin-top: 1.25rem;
  color: var(--text);
}

.skills ul {
  list-style: none;
  margin: 0.5rem 0 0.75rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.skills li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.2rem 0.7rem;
  font-size: 0.85rem;
  color: var(--text);
}

/* ---- Experience timeline ---- */

.timeline {
  position: relative;
  margin: 1rem 0 0;
  padding-left: 1.5rem;
  border-left: 2px solid var(--border);
}

.timeline h3 {
  position: relative;
  margin-top: 2rem;
}

.timeline h3:first-child {
  margin-top: 0.75rem;
}

.timeline h3::before {
  content: "";
  position: absolute;
  left: calc(-1.5rem - 6px);
  top: 0.5em;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

/* the italic line right under each role heading is the date/location */
.timeline h3 + p {
  margin-top: 0.15rem;
  font-size: 0.9rem;
}

.timeline h3 + p em {
  font-style: normal;
  color: var(--muted);
}

/* ---- Cards (interest areas) ---- */

.cards h2 {
  border-bottom: none;
  padding-bottom: 0;
  margin: 0.25rem 0;
}

.cards section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem 1.25rem;
  margin: 1rem 0;
}

/* ---- Footer ---- */

.site-footer {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.5rem 1.25rem 2.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  gap: 0.6rem;
  color: var(--muted);
}

.footer-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
}

/* ---- 404 ---- */

.notfound {
  text-align: center;
  padding: 5rem 0;
}

.notfound h1 {
  font-size: 4rem;
  margin: 0;
  color: var(--accent);
}

/* ---- Small screens ---- */

@media (max-width: 700px) {
  .hero {
    padding-top: 3rem;
  }

  .hero h1 {
    font-size: 2.1rem;
  }

  .hero-tagline {
    font-size: 1.15rem;
  }

  .nav-inner {
    padding: 0.65rem 1rem;
  }

  .nav-links {
    gap: 0.9rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
