/* Joe Wooten — joewooten.com
   Self-hosted fonts only. No third-party requests. */

@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/newsreader-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Newsreader";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/newsreader-latin-400-italic.woff2") format("woff2");
}
@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/newsreader-latin-500-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Newsreader";
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/newsreader-latin-500-italic.woff2") format("woff2");
}
@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/newsreader-latin-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Public Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/public-sans-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Public Sans";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/public-sans-latin-400-italic.woff2") format("woff2");
}
@font-face {
  font-family: "Public Sans";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/public-sans-latin-500-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Public Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/public-sans-latin-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Public Sans";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/public-sans-latin-700-normal.woff2") format("woff2");
}

:root {
  --paper: #f4f0e6;
  --card: #fffdf8;
  --ink: #1b242e;
  --ink-soft: #2c3846;
  --muted: #4a5562;
  --line: #e0d8c8;
  --accent: #0f4f4a;
  --accent-dark: #0c403c;
  --accent-soft: #e5f1ef;
  --badge-bg: #f6e4c4;
  --badge-ink: #5a3810;
  --badge-line: #e2c48a;
  --focus: #1b242e;
  --serif: "Newsreader", "Iowan Old Style", Palatino, "Palatino Linotype", Georgia, serif;
  --sans: "Public Sans", "Segoe UI", sans-serif;
  --max: 72rem;
  --gutter: 1.25rem;
  color-scheme: light;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
}

h1,
h2,
h3,
p,
ul,
ol,
dl,
figure,
address {
  margin: 0;
}

ul,
ol {
  padding: 0;
}

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

address {
  font-style: normal;
}

::selection {
  background: #d5ebe7;
  color: var(--ink);
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

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

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -4rem;
  z-index: 100;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  font-weight: 600;
  padding: 0.6rem 0.9rem;
  border-radius: 0 0 0.6rem 0.6rem;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--paper);
  border-top: 4px solid var(--accent);
  border-bottom: 1px solid var(--line);
}

.header-inner,
.wrap,
.footer-inner {
  width: min(var(--max), calc(100% - (2 * var(--gutter))));
  margin-inline: auto;
}

.header-inner {
  min-height: 4.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  position: relative;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 44px;
  text-decoration: none;
  color: var(--ink);
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

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

.brand-mark {
  width: 2rem;
  height: 2rem;
  display: block;
  flex: none;
}

.brand-name {
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  font: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
}

.nav-toggle-icon {
  width: 1rem;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  box-shadow: 0 -6px 0 currentColor, 0 6px 0 currentColor;
  display: inline-block;
  flex: none;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-icon {
  background: transparent;
  box-shadow: none;
  position: relative;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-icon::before,
.nav-toggle[aria-expanded="true"] .nav-toggle-icon::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 1rem;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-icon::before {
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-icon::after {
  transform: rotate(-45deg);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 0.95rem;
}

.site-nav a:hover {
  color: var(--ink);
  background: rgba(15, 79, 74, 0.08);
}

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

main {
  flex: 1;
  outline: none;
}

.wrap {
  padding-top: 2.75rem;
  padding-bottom: 4rem;
}

.kicker {
  margin: 0 0 0.75rem;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

h1,
h2,
h3 {
  font-family: var(--serif);
  color: var(--ink);
  letter-spacing: -0.025em;
  font-feature-settings: "kern" 1, "liga" 1;
}

h1 {
  font-weight: 500;
  font-size: clamp(2.7rem, 6vw, 4.4rem);
  line-height: 0.98;
}

h2 {
  font-weight: 600;
  font-size: clamp(1.7rem, 3vw, 2.15rem);
  line-height: 1.15;
}

h3 {
  font-weight: 600;
  font-size: 1.35rem;
  line-height: 1.2;
}

.lede {
  margin-top: 0.9rem;
  font-size: 1.2rem;
  line-height: 1.5;
  color: var(--ink-soft);
}

.page-head {
  max-width: 40rem;
  margin-bottom: 2.4rem;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(16rem, 0.85fr);
  gap: 2rem 3rem;
  align-items: start;
}

.hero h1 {
  font-size: clamp(3rem, 7vw, 5rem);
}

.role {
  margin-top: 1rem;
  max-width: 38rem;
  font-size: 1.28rem;
  line-height: 1.4;
  color: var(--ink-soft);
}

.legal {
  margin-top: 0.75rem;
  color: var(--muted);
}

.hero-copy,
.prose,
.panel,
.page-head {
  min-width: 0;
}

.hero-copy .prose {
  margin-top: 1.15rem;
  max-width: 38rem;
}

.prose p + p,
.panel p + p {
  margin-top: 1rem;
}

.prose a,
.panel a,
.cred-list a,
.role a {
  color: var(--accent);
  text-underline-offset: 0.16em;
}

.prose a:hover,
.panel a:hover,
.cred-list a:hover,
.role a:hover {
  color: var(--accent-dark);
}

.contact-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.4rem;
}

.contact-row a,
.footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 44px;
  padding: 0.35rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}

.contact-row a:hover,
.footer-links a:hover {
  border-color: var(--accent);
  color: var(--accent-dark);
}

.ext-icon {
  width: 0.9rem;
  height: 0.9rem;
  display: inline-block;
  flex: none;
}

.now-card,
.record-card,
.panel,
.app-card,
.path-card,
.skill-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 1.15rem;
}

.now-card,
.record-card {
  padding: 1.2rem 1.25rem 1.3rem;
}

.now-card h2,
.record-card h2 {
  font-family: var(--sans);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.35rem;
}

.now-list,
.record {
  display: grid;
  gap: 0;
}

.now-list {
  list-style: none;
}

.now-list li,
.record > div {
  padding: 0.8rem 0;
  border-top: 1px solid var(--line);
}

.now-list li:first-child,
.record > div:first-child {
  border-top: 0;
  padding-top: 0.45rem;
}

.now-label,
.record dt {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.now-value,
.record dd {
  display: block;
  margin-top: 0.15rem;
  font-weight: 600;
  color: var(--ink);
}

.now-meta {
  display: block;
  margin-top: 0.15rem;
  color: var(--ink-soft);
  font-weight: 400;
}

.paths {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

.paths h2,
.block h2 {
  margin-bottom: 1rem;
}

.path-grid,
.app-grid,
.skill-grid {
  display: grid;
  gap: 1rem;
  list-style: none;
}

.path-grid,
.app-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.skill-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.path-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-height: 100%;
  padding: 1.15rem 1.2rem 1.3rem;
  text-decoration: none;
  color: inherit;
}

.path-card:hover,
.skill-card:hover {
  border-color: #9dbdb8;
}

.app-card:hover {
  border-color: #9dbdb8;
  border-top-color: var(--accent);
}

.path-index {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--accent);
}

.path-title {
  font-family: var(--serif);
  font-size: 1.7rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

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

.block + .block {
  margin-top: 2.75rem;
}

.section-intro {
  max-width: 40rem;
  margin: -0.35rem 0 1rem;
  color: var(--ink-soft);
}

.app-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 1.2rem 1.2rem 1.35rem;
  border-top: 3px solid var(--accent);
}

.app-card .cta {
  margin-top: auto;
  padding-top: 1.15rem;
}

.badge {
  display: inline-block;
  margin: 0;
  padding: 0.2rem 0.55rem;
  border: 1px solid var(--badge-line);
  border-radius: 999px;
  background: var(--badge-bg);
  color: var(--badge-ink);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.app-card h3 {
  margin-top: 0.85rem;
  font-size: 1.85rem;
}

.tagline {
  margin-top: 0.35rem;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 1.2rem;
  line-height: 1.35;
  color: var(--ink);
}

.app-card .app-copy {
  margin-top: 0.55rem;
  color: var(--ink-soft);
}

.panel {
  padding: 1.3rem 1.35rem 1.45rem;
  max-width: 46rem;
}

.panel ul,
.role-body ul {
  margin-top: 0.7rem;
  padding-left: 1.15rem;
}

.panel li + li,
.role-body li + li {
  margin-top: 0.35rem;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(16rem, 0.8fr);
  gap: 1.5rem 2.5rem;
  align-items: start;
}

.cta {
  margin-top: 1.4rem;
}

a.button,
a.button:hover,
a.button:focus-visible {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  max-width: 100%;
  min-height: 48px;
  padding: 0.65rem 1.15rem;
  border-radius: 999px;
  background: var(--accent);
  color: #f7f4ec;
  text-decoration: none;
  font-weight: 700;
  text-align: center;
  flex-wrap: wrap;
}

a.button:hover,
a.button:focus-visible {
  background: var(--accent-dark);
  color: #f7f4ec;
}

.button .ext-icon {
  width: 1rem;
  height: 1rem;
}

.roles,
.cred-list,
.link-list {
  list-style: none;
}

.roles {
  border-top: 1px solid var(--line);
}

.role {
  display: grid;
  grid-template-columns: 14.5rem minmax(0, 1fr);
  gap: 0.25rem 1.5rem;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--line);
}

.dates {
  margin: 0;
  padding-top: 0.28rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  font-size: 0.95rem;
}

.org {
  margin-top: 0.15rem;
  font-weight: 600;
}

.skill-card {
  padding: 1.05rem 1.1rem 1.15rem;
}

.skill-card h3 {
  font-family: var(--sans);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.skill-card p {
  margin-top: 0.4rem;
}

.cred-list li + li {
  margin-top: 1.1rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
}

.cred-list .org {
  font-weight: 500;
  color: var(--ink-soft);
}

.link-list {
  display: grid;
  gap: 0.35rem;
  margin-top: 1.25rem;
}

.link-list a {
  color: var(--accent);
  font-weight: 600;
}

.site-footer {
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.footer-inner {
  padding: 1.4rem 0 2rem;
  display: grid;
  gap: 0.25rem;
}

.footer-name {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 600;
}

.footer-legal {
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 500;
}

.footer-legal::before {
  content: "·";
  margin: 0 0.4rem;
  color: var(--line);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  margin-top: 0.55rem;
}

.footer-copy {
  margin-top: 0.7rem;
  color: var(--muted);
  font-size: 0.9rem;
}

@media (max-width: 900px) {
  .path-grid,
  .app-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 840px) {
  .header-inner {
    flex-wrap: wrap;
    padding-bottom: 0.7rem;
  }

  .site-nav {
    width: 100%;
    flex-wrap: wrap;
  }

  html.js .nav-toggle {
    display: inline-flex;
  }

  html.js .site-nav {
    display: none;
    position: absolute;
    top: calc(100% + 0.4rem);
    right: 0;
    width: min(18.5rem, calc(100vw - 2rem));
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 0.15rem;
    padding: 0.45rem;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 1rem;
    box-shadow: 0 18px 40px rgba(27, 36, 46, 0.12);
    z-index: 40;
  }

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

  html.js .site-nav a {
    width: 100%;
    justify-content: flex-start;
    border-radius: 0.7rem;
  }
}

@media (max-width: 800px) {
  .hero,
  .split,
  .skill-grid,
  .role {
    grid-template-columns: 1fr;
  }

  .dates {
    padding-top: 0;
  }

  .wrap {
    padding-top: 2rem;
  }
}

@media (max-width: 360px) {
  .brand {
    font-size: 1.05rem;
    gap: 0.45rem;
  }

  .nav-toggle {
    padding-inline: 0.65rem;
  }
}

@media (prefers-contrast: more) {
  :root {
    --line: #1b242e;
    --muted: #1b242e;
    --ink-soft: #1b242e;
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

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

  body {
    background: #fff;
    color: #000;
  }

  .wrap {
    width: auto;
    padding: 0;
  }

  .panel,
  .app-card,
  .now-card,
  .record-card,
  .skill-card,
  .role {
    break-inside: avoid;
  }

  a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-weight: 400;
    font-size: 0.85em;
  }
}
