/* Brad Thorne — resume site */

:root {
  --bg: #f7f6f3;
  --bg-alt: #efeee9;
  --surface: #ffffff;
  --ink: #1c2430;
  --ink-muted: #4a5564;
  --ink-soft: #6b7280;
  --line: #d8d5cd;
  --accent: #0f6e6a;
  --accent-soft: rgba(15, 110, 106, 0.1);
  --accent-strong: #0b5552;
  --header-h: 3.5rem;
  --max: 46rem;
  --radius: 0.5rem;
  --shadow: 0 1px 2px rgba(28, 36, 48, 0.04), 0 8px 24px rgba(28, 36, 48, 0.06);
  --font-sans: "Source Sans 3", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-serif: "Source Serif 4", Georgia, "Times New Roman", serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 0.75rem);
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
}

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

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100%;
  z-index: 1000;
  padding: 0.5rem 0.75rem;
  background: var(--ink);
  color: #fff;
  border-radius: 0.25rem;
}

.skip-link:focus {
  top: 0.75rem;
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* Sticky header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(247, 246, 243, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  width: min(100% - 2rem, 56rem);
  margin-inline: auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.01em;
}

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

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 1.15rem;
}

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

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--accent-strong);
}

.nav-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 0.4rem;
  background: var(--surface);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
}

.nav-toggle span {
  display: block;
  width: 1.1rem;
  height: 2px;
  background: var(--ink);
  border-radius: 1px;
}

/* Hero */
.hero {
  padding: 3.5rem 0 2.75rem;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(15, 110, 106, 0.05), transparent 60%),
    var(--bg);
}

.eyebrow {
  margin: 0 0 0.65rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero h1 {
  margin: 0 0 0.85rem;
  font-family: var(--font-serif);
  font-size: clamp(2.35rem, 5vw, 3.25rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.hero-meta {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.55rem;
  color: var(--ink-muted);
  font-size: 1rem;
}

.hero-meta a {
  color: var(--ink-muted);
  text-decoration: none;
}

.hero-meta a:hover {
  color: var(--accent-strong);
  text-decoration: underline;
}

.sep {
  color: var(--ink-soft);
}

/* Sections */
.section {
  padding: 3rem 0;
}

.section-alt {
  background: var(--bg-alt);
  border-block: 1px solid var(--line);
}

.section h2 {
  margin: 0 0 1.35rem;
  font-family: var(--font-serif);
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--ink);
  padding-bottom: 0.55rem;
  border-bottom: 2px solid var(--accent);
  display: inline-block;
}

.summary-text {
  margin: 0;
  color: var(--ink-muted);
  font-size: 1.0625rem;
  max-width: 42rem;
}

/* Competency chips */
.chips {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.chips li {
  padding: 0.4rem 0.8rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink);
  box-shadow: 0 1px 0 rgba(28, 36, 48, 0.03);
}

.chips li:hover {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
  background: var(--accent-soft);
}

/* Experience */
.role {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line);
}

.role:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.role:first-of-type {
  padding-top: 0.25rem;
}

.role-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.35rem 1.25rem;
  margin-bottom: 0.85rem;
}

.role h3 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.org {
  margin: 0.2rem 0 0;
  color: var(--ink-muted);
  font-size: 0.975rem;
}

.dates {
  margin: 0.15rem 0 0;
  color: var(--accent-strong);
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
}

.role ul,
.sub-role ul {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--ink-muted);
}

.role li,
.sub-role li {
  margin-bottom: 0.4rem;
}

.role li:last-child,
.sub-role li:last-child {
  margin-bottom: 0;
}

.sub-roles {
  margin-top: 1.25rem;
  padding: 1rem 1.1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.sub-role + .sub-role {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.sub-role h4 {
  margin: 0 0 0.45rem;
  font-size: 1rem;
  font-weight: 650;
  color: var(--ink);
}

/* Education */
.edu-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
}

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

.edu-card h3 {
  margin: 0 0 0.35rem;
  font-size: 1.1rem;
  font-weight: 700;
}

.edu-detail {
  margin: 0 0 0.5rem;
  color: var(--ink-muted);
}

.edu-meta {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent-strong);
}

/* Contact */
.contact-lead {
  margin: 0 0 1.25rem;
  color: var(--ink-muted);
  max-width: 36rem;
}

.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.contact-list li {
  display: grid;
  gap: 0.15rem;
}

.contact-list .label {
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.contact-list a {
  font-weight: 600;
  text-decoration: none;
  color: var(--ink);
}

.contact-list a:hover {
  color: var(--accent-strong);
  text-decoration: underline;
}

/* Footer */
.site-footer {
  padding: 1.5rem 0 2rem;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.875rem;
}

.site-footer p {
  margin: 0;
}

/* Mobile nav */
@media (max-width: 720px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 0;
    background: rgba(247, 246, 243, 0.98);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 0.75rem 1rem;
  }

  .hero {
    padding-top: 2.5rem;
  }

  .dates {
    white-space: normal;
  }
}

/* Print */
@media print {
  :root {
    --bg: #fff;
    --bg-alt: #fff;
    --surface: #fff;
    --line: #ccc;
  }

  body {
    background: #fff;
    color: #000;
    font-size: 11pt;
    line-height: 1.45;
  }

  .site-header,
  .nav-toggle,
  .skip-link,
  .site-footer {
    display: none !important;
  }

  html {
    scroll-padding-top: 0;
  }

  .hero,
  .section,
  .section-alt {
    padding: 0.75rem 0;
    background: #fff;
    border: 0;
  }

  .container {
    width: 100%;
    max-width: none;
  }

  .section h2 {
    border-bottom-color: #000;
    color: #000;
  }

  .chips li,
  .edu-card,
  .sub-roles {
    box-shadow: none;
    border-color: #ccc;
  }

  a {
    color: #000;
    text-decoration: none;
  }

  .role {
    break-inside: avoid;
  }

  .hero h1 {
    font-size: 22pt;
  }
}
