:root {
  --color-bg: #fafaf9;
  --color-text: #18181b;
  --color-text-muted: #6b7280;
  --color-accent: #1e3a5f;
  --color-accent-hover: #2a5489;
  --color-border: #e5e5e5;
  --color-surface: #f4f4f5;

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;

  --max-width: 700px;
  --nav-max-width: 960px;
}

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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.7;
}

body::before {
  content: "";
  display: block;
  height: 3px;
  background: var(--color-accent);
}

/* --- Skip Link --- */

.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--color-text);
  color: var(--color-bg);
  padding: 0.5rem 1rem;
  z-index: 100;
  font-size: 0.875rem;
  text-decoration: none;
}

.skip-link:focus {
  top: 3px;
}

/* --- Navigation --- */

.site-nav {
  max-width: var(--nav-max-width);
  margin: 0 auto;
  padding: 1.5rem 2rem;
  display: flex;
  align-items: baseline;
  gap: 2rem;
  flex-wrap: wrap;
}

.nav-home {
  font-weight: 600;
  color: var(--color-text);
  text-decoration: none;
  font-size: 0.9375rem;
  letter-spacing: -0.01em;
}

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

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

.nav-links a {
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.15s ease;
}

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

/* --- Main Content --- */

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

/* --- Typography --- */

h1 {
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.25rem;
  letter-spacing: -0.025em;
}

h2 {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.3;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}

h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.4;
  margin-top: 2rem;
  margin-bottom: 0.5rem;
}

p {
  margin-bottom: 1rem;
}

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

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

strong {
  font-weight: 600;
}

ul,
ol {
  margin-bottom: 1rem;
  padding-left: 1.25rem;
}

li {
  margin-bottom: 0.375rem;
}

li > ul,
li > ol {
  margin-top: 0.375rem;
  margin-bottom: 0;
}

blockquote {
  border-left: 3px solid var(--color-border);
  padding-left: 1.25rem;
  margin: 1.5rem 0;
  color: var(--color-text-muted);
}

code {
  font-family: var(--font-mono);
  font-size: 0.875em;
  background: var(--color-surface);
  padding: 0.125rem 0.375rem;
  border-radius: 3px;
}

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

/* --- Page Layout --- */

.page h1 {
  margin-bottom: 1.75rem;
}

/* --- Positioning Statement (Home) --- */

.positioning {
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--color-text);
  margin-bottom: 3rem;
  max-width: 640px;
  border-left: 3px solid var(--color-accent);
  padding-left: 1.25rem;
}

/* --- Section Headings with Rule --- */

.section-rule {
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 0.375rem;
  margin-top: 3rem;
}

.section-rule:first-of-type {
  margin-top: 0;
}

/* --- Artifact Layout --- */

.artifact-header {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--color-border);
  border-left: 3px solid var(--color-accent);
  padding-left: 1.25rem;
}

.artifact-header h1 {
  margin-bottom: 0.5rem;
}

.artifact-meta {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  color: var(--color-text-muted);
  font-size: 0.875rem;
}

.artifact-meta span:not(:last-child)::after {
  content: "\00b7";
  margin-left: 0.5rem;
}

/* --- Artifact List --- */

.artifact-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 2rem;
}

.artifact-list li {
  padding: 1rem 0;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 0;
}

.artifact-list li:first-child {
  border-top: 1px solid var(--color-border);
}

.artifact-list a {
  display: block;
  text-decoration: none;
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.artifact-list a:hover {
  text-decoration: underline;
}

.artifact-company {
  color: var(--color-text-muted);
  font-size: 0.875rem;
}

/* --- Project List --- */

.project-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 2rem;
}

.project-list li {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 0;
}

.project-list li:first-child {
  border-top: 1px solid var(--color-border);
}

/* --- Inspect Links (Home) --- */

.inspect-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}

.inspect-list li {
  margin-bottom: 0.625rem;
}

.inspect-list a {
  font-weight: 500;
}

.inspect-desc {
  color: var(--color-text-muted);
  font-size: 0.9375rem;
}

/* --- Resume --- */

.resume h2 {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 0.375rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.resume h2:first-of-type {
  margin-top: 0;
}

.role {
  margin-bottom: 1.75rem;
}

.role-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.125rem;
}

.role-title {
  font-weight: 600;
  font-size: 1rem;
}

.role-period {
  color: var(--color-text-muted);
  font-size: 0.875rem;
  white-space: nowrap;
}

.role-company {
  color: var(--color-text-muted);
  font-size: 0.9375rem;
  margin-bottom: 0.5rem;
}

.resume ul {
  padding-left: 1.125rem;
}

.resume li {
  font-size: 0.9375rem;
  margin-bottom: 0.25rem;
}

.resume-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
}

.resume-links li {
  margin-bottom: 0;
}

/* --- Fit Notes --- */

.fit-section {
  margin-bottom: 2rem;
}

.constraint {
  background: var(--color-surface);
  border-left: 3px solid var(--color-accent);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  font-size: 0.9375rem;
}

/* --- Leadership --- */

.leadership-section {
  margin-bottom: 2.5rem;
}

/* --- Footer --- */

.site-footer {
  max-width: var(--nav-max-width);
  margin: 0 auto;
  padding: 2rem;
  text-align: center;
  color: var(--color-text-muted);
  font-size: 0.8125rem;
  border-top: 1px solid var(--color-border);
}

/* --- Responsive --- */

@media (max-width: 640px) {
  .site-nav {
    padding: 1rem 1.25rem;
    gap: 0.75rem;
  }

  .nav-links {
    gap: 1rem;
  }

  main {
    padding: 1.5rem 1.25rem 3rem;
  }

  h1 {
    font-size: 1.375rem;
  }

  h2 {
    font-size: 1.125rem;
    margin-top: 2rem;
  }

  .positioning {
    font-size: 1.0625rem;
  }

  .artifact-meta {
    flex-direction: column;
    gap: 0.125rem;
  }

  .artifact-meta span:not(:last-child)::after {
    display: none;
  }

  .role-header {
    flex-direction: column;
    gap: 0;
  }
}

/* --- Print --- */

@media print {
  body::before,
  .site-nav,
  .site-footer,
  .skip-link {
    display: none;
  }

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

  main {
    max-width: none;
    padding: 0;
    margin: 0;
  }

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

  h1 {
    font-size: 16pt;
    margin-bottom: 0.5rem;
  }

  h2 {
    font-size: 10pt;
    margin-top: 1rem;
    margin-bottom: 0.375rem;
  }

  .resume h2 {
    color: #333;
  }

  .role {
    margin-bottom: 0.75rem;
  }

  .role-header {
    margin-bottom: 0;
  }

  .resume li {
    font-size: 9.5pt;
    margin-bottom: 0.125rem;
  }

  .resume ul {
    padding-left: 1rem;
  }

  .page,
  .artifact {
    page-break-inside: avoid;
  }
}
