@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-display: swap;
  font-weight: 100;
  src: local("Source Sans 3 ExtraLight"), local("SourceSans3-ExtraLight"), url("/fonts/static/SourceSans3-ExtraLight.woff2") format("woff2"), url("/fonts/static/SourceSans3-ExtraLight.ttf") format("truetype");
}
@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-display: swap;
  font-weight: 200;
  src: local("Source Sans 3 ExtraLight"), local("SourceSans3-ExtraLight"), url("/fonts/static/SourceSans3-ExtraLight.woff2") format("woff2"), url("/fonts/static/SourceSans3-ExtraLight.ttf") format("truetype");
}
@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-display: swap;
  font-weight: 300;
  src: local("Source Sans 3 Light"), local("SourceSans3-Light"), url("/fonts/static/SourceSans3-Light.woff2") format("woff2"), url("/fonts/static/SourceSans3-Light.ttf") format("truetype");
}
@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: local("Source Sans 3 Regular"), local("SourceSans3-Regular"), url("/fonts/static/SourceSans3-Regular.woff2") format("woff2"), url("/fonts/static/SourceSans3-Regular.ttf") format("truetype");
}
@font-face {
  font-family: "Source Sans 3";
  font-style: italic;
  font-display: swap;
  font-weight: 400;
  src: local("Source Sans 3 Italic"), local("SourceSans3-Italic"), url("/fonts/static/SourceSans3-Italic.woff2") format("woff2"), url("/fonts/static/SourceSans3-Italic.ttf") format("truetype");
}
@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: local("Source Sans 3 Medium"), local("SourceSans3-Medium"), url("/fonts/static/SourceSans3-Medium.woff2") format("woff2"), url("/fonts/static/SourceSans3-Medium.ttf") format("truetype");
}
@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: local("Source Sans 3 SemiBold"), local("SourceSans3-SemiBold"), url("/fonts/static/SourceSans3-SemiBold.woff2") format("woff2"), url("/fonts/static/SourceSans3-SemiBold.ttf") format("truetype");
}
@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: local("Source Sans 3 Bold"), local("SourceSans3-Bold"), url("/fonts/static/SourceSans3-Bold.woff2") format("woff2"), url("/fonts/static/SourceSans3-Bold.ttf") format("truetype");
}
@font-face {
  font-family: "Source Sans 3";
  font-style: italic;
  font-display: swap;
  font-weight: 700;
  src: local("Source Sans 3 Bold Italic"), local("SourceSans3-BoldItalic"), url("/fonts/static/SourceSans3-BoldItalic.woff2") format("woff2"), url("/fonts/static/SourceSans3-BoldItalic.ttf") format("truetype");
}
@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-display: swap;
  font-weight: 800;
  src: local("Source Sans 3 ExtraBold"), local("SourceSans3-ExtraBold"), url("/fonts/static/SourceSans3-ExtraBold.woff2") format("woff2"), url("/fonts/static/SourceSans3-ExtraBold.ttf") format("truetype");
}
@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-display: swap;
  font-weight: 900;
  src: local("Source Sans 3 Black"), local("SourceSans3-Black"), url("/fonts/static/SourceSans3-Black.woff2") format("woff2"), url("/fonts/static/SourceSans3-Black.ttf") format("truetype");
}
@font-face {
  font-family: "Source Code Pro";
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: local("Source Code Pro Medium"), local("SourceCodePro-Medium"), url("/fonts/static/SourceCodePro-Medium.woff2") format("woff2"), url("/fonts/static/SourceCodePro-Medium.ttf") format("truetype");
}
@font-face {
  font-family: "Source Code Pro";
  font-style: italic;
  font-display: swap;
  font-weight: 600;
  src: local("Source Code Pro Medium Italic"), local("SourceCodePro-MediumItalic"), url("/fonts/static/SourceCodePro-MediumItalic.woff2") format("woff2"), url("/fonts/static/SourceCodePro-MediumItalic.ttf") format("truetype");
}
@font-face {
  font-family: "Source Serif";
  font-style: normal;
  font-display: swap;
  font-weight: 200;
  src: local("Source Serif ExtraLight"), local("SourceSerif4-ExtraLight"), url("/fonts/static/SourceSerif4-ExtraLight.woff2") format("woff2"), url("/fonts/static/SourceSerif4-ExtraLight.ttf") format("truetype");
}
@font-face {
  font-family: "Source Serif";
  font-style: normal;
  font-display: swap;
  font-weight: 300;
  src: local("Source Serif Light"), local("SourceSerif4-Light"), url("/fonts/static/SourceSerif4-Light.woff2") format("woff2"), url("/fonts/static/SourceSerif4-Light.ttf") format("truetype");
}
@font-face {
  font-family: "Source Serif";
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: local("Source Serif Regular"), local("SourceSerif4-Regular"), url("/fonts/static/SourceSerif4-Regular.woff2") format("woff2"), url("/fonts/static/SourceSerif4-Regular.ttf") format("truetype");
}
@font-face {
  font-family: "Source Serif";
  font-style: italic;
  font-display: swap;
  font-weight: 400;
  src: local("Source Serif Italic"), local("SourceSerif4-Italic"), url("/fonts/static/SourceSerif4-Italic.woff2") format("woff2"), url("/fonts/static/SourceSerif4-Italic.ttf") format("truetype");
}
@font-face {
  font-family: "Source Serif";
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: local("Source Serif SemiBold"), local("SourceSerif4-SemiBold"), url("/fonts/static/SourceSerif4-SemiBold.woff2") format("woff2"), url("/fonts/static/SourceSerif4-SemiBold.ttf") format("truetype");
}
@font-face {
  font-family: "Source Serif";
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: local("Source Serif Bold"), local("SourceSerif4-Bold"), url("/fonts/static/SourceSerif4-Bold.woff2") format("woff2"), url("/fonts/static/SourceSerif4-Bold.ttf") format("truetype");
}
@font-face {
  font-family: "Source Serif";
  font-style: italic;
  font-display: swap;
  font-weight: 700;
  src: local("Source Serif Bold Italic"), local("SourceSerif4-BoldItalic"), url("/fonts/static/SourceSerif4-BoldItalic.woff2") format("woff2"), url("/fonts/static/SourceSerif4-BoldItalic.ttf") format("truetype");
}
@font-face {
  font-family: "Source Serif";
  font-style: normal;
  font-display: swap;
  font-weight: 900;
  src: local("Source Serif Black"), local("SourceSerif4-Black"), url("/fonts/static/SourceSerif4-Black.woff2") format("woff2"), url("/fonts/static/SourceSerif4-Black.ttf") format("truetype");
}
@font-face {
  font-family: "Source Serif 18pt";
  font-style: normal;
  font-display: swap;
  font-weight: 200;
  src: local("Source Serif ExtraLight"), local("SourceSerif4_18pt-ExtraLight"), url("/fonts/static/SourceSerif4_18pt-ExtraLight.woff2") format("woff2"), url("/fonts/static/SourceSerif4_18pt-ExtraLight.ttf") format("truetype");
}
@font-face {
  font-family: "Source Serif 18pt";
  font-style: normal;
  font-display: swap;
  font-weight: 300;
  src: local("Source Serif Light"), local("SourceSerif4_18pt-Light"), url("/fonts/static/SourceSerif4_18pt-Light.woff2") format("woff2"), url("/fonts/static/SourceSerif4_18pt-Light.ttf") format("truetype");
}
@font-face {
  font-family: "Source Serif 18pt";
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: local("Source Serif Regular"), local("SourceSerif4_18pt-Regular"), url("/fonts/static/SourceSerif4_18pt-Regular.woff2") format("woff2"), url("/fonts/static/SourceSerif4_18pt-Regular.ttf") format("truetype");
}
@font-face {
  font-family: "Source Serif 18pt";
  font-style: italic;
  font-display: swap;
  font-weight: 400;
  src: local("Source Serif Italic"), local("SourceSerif4_18pt-Italic"), url("/fonts/static/SourceSerif4_18pt-Italic.woff2") format("woff2"), url("/fonts/static/SourceSerif4_18pt-Italic.ttf") format("truetype");
}
@font-face {
  font-family: "Source Serif 18pt";
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: local("Source Serif SemiBold"), local("SourceSerif4_18pt-SemiBold"), url("/fonts/static/SourceSerif4_18pt-SemiBold.woff2") format("woff2"), url("/fonts/static/SourceSerif4_18pt-SemiBold.ttf") format("truetype");
}
@font-face {
  font-family: "Source Serif 18pt";
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: local("Source Serif Bold"), local("SourceSerif4_18pt-Bold"), url("/fonts/static/SourceSerif4_18pt-Bold.woff2") format("woff2"), url("/fonts/static/SourceSerif4_18pt-Bold.ttf") format("truetype");
}
@font-face {
  font-family: "Source Serif 18pt";
  font-style: italic;
  font-display: swap;
  font-weight: 700;
  src: local("Source Serif Bold Italic"), local("SourceSerif4_18pt-BoldItalic"), url("/fonts/static/SourceSerif4_18pt-BoldItalic.woff2") format("woff2"), url("/fonts/static/SourceSerif4_18pt-BoldItalic.ttf") format("truetype");
}
@font-face {
  font-family: "Source Serif 18pt";
  font-style: normal;
  font-display: swap;
  font-weight: 900;
  src: local("Source Serif Black"), local("SourceSerif4_18pt-Black"), url("/fonts/static/SourceSerif4_18pt-Black.woff2") format("woff2"), url("/fonts/static/SourceSerif4_18pt-Black.ttf") format("truetype");
}
@font-face {
  font-family: "Source Serif 48pt";
  font-style: normal;
  font-display: swap;
  font-weight: 200;
  src: local("Source Serif ExtraLight"), local("SourceSerif4_48pt-ExtraLight"), url("/fonts/static/SourceSerif4_48pt-ExtraLight.woff2") format("woff2"), url("/fonts/static/SourceSerif4_48pt-ExtraLight.ttf") format("truetype");
}
@font-face {
  font-family: "Source Serif 48pt";
  font-style: normal;
  font-display: swap;
  font-weight: 300;
  src: local("Source Serif Light"), local("SourceSerif4_48pt-Light"), url("/fonts/static/SourceSerif4_48pt-Light.woff2") format("woff2"), url("/fonts/static/SourceSerif4_48pt-Light.ttf") format("truetype");
}
@font-face {
  font-family: "Source Serif 48pt";
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: local("Source Serif Regular"), local("SourceSerif4_48pt-Regular"), url("/fonts/static/SourceSerif4_48pt-Regular.woff2") format("woff2"), url("/fonts/static/SourceSerif4_48pt-Regular.ttf") format("truetype");
}
@font-face {
  font-family: "Source Serif 48pt";
  font-style: italic;
  font-display: swap;
  font-weight: 400;
  src: local("Source Serif Italic"), local("SourceSerif4_48pt-Italic"), url("/fonts/static/SourceSerif4_48pt-Italic.woff2") format("woff2"), url("/fonts/static/SourceSerif4_48pt-Italic.ttf") format("truetype");
}
@font-face {
  font-family: "Source Serif 48pt";
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: local("Source Serif SemiBold"), local("SourceSerif4_48pt-SemiBold"), url("/fonts/static/SourceSerif4_48pt-SemiBold.woff2") format("woff2"), url("/fonts/static/SourceSerif4_48pt-SemiBold.ttf") format("truetype");
}
@font-face {
  font-family: "Source Serif 48pt";
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: local("Source Serif Bold"), local("SourceSerif4_48pt-Bold"), url("/fonts/static/SourceSerif4_48pt-Bold.woff2") format("woff2"), url("/fonts/static/SourceSerif4_48pt-Bold.ttf") format("truetype");
}
@font-face {
  font-family: "Source Serif 48pt";
  font-style: italic;
  font-display: swap;
  font-weight: 700;
  src: local("Source Serif Bold Italic"), local("SourceSerif4_48pt-BoldItalic"), url("/fonts/static/SourceSerif4_48pt-BoldItalic.woff2") format("woff2"), url("/fonts/static/SourceSerif4_48pt-BoldItalic.ttf") format("truetype");
}
@font-face {
  font-family: "Source Serif 48pt";
  font-style: normal;
  font-display: swap;
  font-weight: 900;
  src: local("Source Serif Black"), local("SourceSerif4_48pt-Black"), url("/fonts/static/SourceSerif4_48pt-Black.woff2") format("woff2"), url("/fonts/static/SourceSerif4_48pt-Black.ttf") format("truetype");
}
* {
  font-family: "Source Serif", serif;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Source Serif 18pt", serif;
}

#page-header h1 {
  font-family: "Source Serif 48pt", serif;
}

a.button, nav a, .time *, footer *, .banner *, #link-list a, table *, article p, article p *, .subtitle, form *, .skill-section span, .timeline-note, article ul *, .item-year {
  font-family: "Source Sans 3", sans-serif;
}

code {
  font-family: "Source Code Pro", monospace;
}

html {
  --primary: rgb(43, 96, 102);
  --primary-light: rgb(103, 213, 223);
  --primary-dark: rgb(15, 56, 59);
  --accent: rgb(163, 206, 93);
  --accent-light: rgb(212, 243, 163);
  --accent-dark: rgb(69, 102, 15);
  --success: #00e676;
  --warning: #ffd600;
  --error: #ff1744;
  --required: rgb(208, 93, 93);
  --on-primary: rgb(244, 248, 248);
  --on-accent: rgb(2, 13, 14);
  --on-primary-light: rgb(2, 13, 14);
  --on-accent-light: rgb(2, 13, 14);
  --link: var(--accent-light);
  --link-hover: rgb(103, 213, 223);
  --code-fg: rgb(103, 213, 223);
  --darkest: rgb(8, 18, 19);
  --background: rgb(19, 24, 24);
  --surface: rgb(23, 32, 32);
  --border: rgb(33, 47, 47);
  --text: rgb(230, 240, 241);
  --text-subtle: rgb(218, 233, 194);
}

html[data-theme=light],
html.light {
  --primary: rgb(30, 90, 96);
  --primary-light: rgb(80, 180, 190);
  --primary-dark: rgb(220, 235, 236);
  --accent: rgb(70, 110, 30);
  --accent-light: rgb(55, 115, 25);
  --accent-dark: rgb(230, 245, 200);
  --darkest: rgb(245, 248, 248);
  --background: rgb(248, 250, 250);
  --surface: rgb(255, 255, 255);
  --border: rgb(200, 215, 215);
  --text: rgb(18, 28, 28);
  --text-subtle: rgb(60, 80, 80);
  --error: rgb(196, 30, 42);
  --required: rgb(176, 24, 36);
  --success: rgb(0, 130, 60);
  --on-primary: rgb(244, 248, 248);
  --on-accent: rgb(255, 255, 255);
  --on-primary-light: rgb(2, 13, 14);
  --on-accent-light: rgb(255, 255, 255);
  --link: rgb(55, 115, 25);
  --link-hover: rgb(30, 90, 96);
  --code-fg: rgb(55, 115, 25);
}

/* _layout.sass */
/* Variables */
html {
  background: var(--background);
}

/* Base Layout */
body {
  background: var(--background);
  color: var(--text);
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  width: 100%;
  height: 100%;
  max-width: 1024px;
  margin: 1.5rem auto;
  padding: 1.5rem;
  box-sizing: border-box;
  border-radius: 8px;
}

header {
  background: var(--surface);
  margin: 0 auto;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  position: relative;
}

/* search + toggle never participate in flow: pinned to the top-right
 * corner of the header. The menu flows in a reserved-width box and
 * wraps freely without ever displacing them. */
#site-search {
  position: absolute;
  top: 0.6rem;
  right: 4.2rem;
  white-space: nowrap;
  /* undo _forms.sass global form styling */
  display: block;
  width: auto;
  max-width: none;
  margin: 0;
  background: transparent;
  padding: 0;
}
#site-search i {
  position: absolute;
  left: 0.55rem;
  top: 0;
  height: 2.1rem;
  line-height: 2.1rem;
  font-size: 0.85rem;
  pointer-events: none;
}

/* right control: theme toggle, rightmost */
#theme-toggle {
  position: absolute;
  top: 0.6rem;
  right: 1rem;
}

/* left group: site title + menu (wraps inside this box when tight) */
.header-start {
  margin-right: 15.5rem;
}

header h1 {
  margin: 0 0.75rem 0 0;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  display: inline-block;
  height: 2.1rem;
  line-height: 2.1rem;
  vertical-align: top;
}

header h1 a {
  color: inherit;
  text-decoration: none;
}
header h1 a:hover, header h1 a:focus {
  color: var(--accent);
}

nav {
  display: inline-block;
  vertical-align: top;
  min-width: 0;
}

/* collapse the intrinsic whitespace between inline-block pills;
 * spacing below comes from margins, so gaps are exact */
nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0;
  font-family: "Source Sans 3", sans-serif;
}

nav ul li {
  margin: 0.2rem 0.15rem;
  padding: 0;
  display: inline-block;
  font-size: 0.9rem;
}

button {
  box-sizing: border-box;
  height: 2.1rem;
  padding: 0 0.55rem;
  border-radius: 0.45rem;
  background: var(--primary);
  color: var(--on-primary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  display: inline-block;
  white-space: nowrap;
  transition: background 0.4s ease-in-out, color 0.4s ease-in-out;
  border: 0px;
  font-family: "Source Sans 3", sans-serif;
}
button i {
  font-size: 0.85rem;
  margin-right: 0.3rem;
}
button:hover, button:focus {
  background: var(--accent-dark);
  color: var(--text);
  cursor: pointer;
}

nav ul li a {
  box-sizing: border-box;
  height: 2.1rem;
  line-height: 2.1rem;
  padding: 0 0.55rem;
  border-radius: 0.45rem;
  background: var(--primary);
  color: var(--on-primary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  display: inline-block;
  white-space: nowrap;
  transition: background 0.4s ease-in-out, color 0.4s ease-in-out;
}
nav ul li a i {
  font-size: 0.85rem;
  margin-right: 0.3rem;
}
nav ul li a:hover, nav ul li a:focus {
  background: var(--accent-dark);
  color: var(--text);
}

/* current page and its ancestors stand out in the menu */
nav ul li a.active {
  background: var(--accent);
  color: var(--on-accent);
}
nav ul li a.active i {
  color: var(--on-accent);
}
nav ul li a.active:hover, nav ul li a.active:focus {
  background: var(--accent);
  color: var(--on-accent);
}

nav ul li a.ancestor {
  background: var(--accent-dark);
  color: var(--text);
}

/* --- Header: search --- */
/* The glyph is centered the deterministic way (fixed height + matching
 * line-height, no transform) so it stays aligned in every renderer. */
.search-glyph {
  position: absolute;
  left: 0.55rem;
  top: 0;
  height: 2.1rem;
  line-height: 2.1rem;
  color: var(--text-subtle);
  font-size: 0.85rem;
  pointer-events: none;
}

#search-input {
  box-sizing: border-box;
  display: inline-block;
  vertical-align: top;
  height: 2.1rem;
  width: 11rem;
  max-width: 100%;
  padding: 0 0.6rem 0 2rem;
  border: 1px solid var(--border);
  border-radius: 0.45rem;
  background: var(--primary-dark);
  color: var(--text);
  font: inherit;
  font-size: 0.9rem;
}
#search-input::placeholder {
  color: var(--text-subtle);
}
#search-input:focus {
  outline: 2px solid var(--accent-light);
  outline-offset: 1px;
}

/* light theme: --primary-dark washes out against the light header, so the
 * field matches the pills instead (dark teal, light text) */
html[data-theme=light] #search-input,
html.light #search-input {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--on-primary);
}

html[data-theme=light] #search-input::placeholder,
html.light #search-input::placeholder {
  color: var(--on-primary);
  opacity: 0.7;
}

html[data-theme=light] .search-glyph,
html.light .search-glyph {
  color: var(--on-primary);
}

.search-results {
  position: absolute;
  top: calc(100% + 0.4rem);
  right: 0;
  z-index: 1000;
  width: min(20rem, 100vw - 2rem);
  max-height: 60vh;
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  padding: 0.25rem;
}
.search-results ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: block;
}
.search-results li {
  display: block;
}
.search-results li a {
  display: block;
  padding: 0.45rem 0.6rem;
  border-radius: 0.4rem;
  color: var(--text);
  text-decoration: none;
  font-size: 0.9rem;
}
.search-results li a:hover, .search-results li a:focus {
  background: var(--primary-dark);
  color: var(--text);
  outline: none;
}
.search-results .search-section {
  display: block;
  font-size: 0.72rem;
  color: var(--text-subtle);
  margin-top: 0.1rem;
}
.search-results .search-count, .search-results .search-empty {
  margin: 0.3rem 0.5rem;
  font-size: 0.75rem;
  color: var(--text-subtle);
}
.search-results .search-empty {
  margin: 0.45rem 0.6rem;
}

/* --- Header: theme toggle (rightmost) --- */
#theme-toggle {
  box-sizing: border-box;
  width: 2.6rem;
  padding: 0.55rem 0;
  background: var(--primary);
  color: var(--on-primary);
  border: none;
  border-radius: 0.45rem;
  font-size: 1rem;
  line-height: 1;
  text-align: center;
  cursor: pointer;
  transition: background 0.4s ease-in-out, color 0.4s ease-in-out;
}
#theme-toggle:hover, #theme-toggle:focus {
  background: var(--accent-dark);
  color: var(--text);
}

#theme-toggle .fa-moon {
  display: none;
}

html[data-theme=light] #theme-toggle .fa-sun,
html.light #theme-toggle .fa-sun {
  display: none;
}

html[data-theme=light] #theme-toggle .fa-moon,
html.light #theme-toggle .fa-moon {
  display: inline;
}

@media (max-width: 1100px) {
  nav ul li a i {
    display: none;
  }
}
@media (max-width: 1000px) {
  #search-input {
    width: 9rem;
  }
}
@media (max-width: 880px) {
  /* pills drop below the title line and wrap across the full width;
  * the reserved right-hand strip now only has to clear the title */
  nav {
    display: block;
    width: 100%;
    margin-top: 0.35rem;
  }
  #search-input {
    width: 8rem;
  }
  #site-search {
    right: 4rem;
    top: 0.75rem;
  }
  #theme-toggle {
    top: 0.75rem;
  }
  .header-start {
    margin-right: 0;
  }
  header h1 {
    font-size: 1.1rem;
    margin-right: 12.6rem;
  }
  nav ul li {
    font-size: 0.85rem;
  }
  nav ul li a {
    padding: 0 0.45rem;
    font-size: 0.85rem;
    height: 2rem;
    line-height: 2rem;
  }
}
@media (max-width: 520px) {
  body {
    padding: 1rem;
  }
  header {
    padding: 0.55rem 0.65rem;
  }
  .header-start {
    margin-right: 0;
  }
  header h1 {
    font-size: 1rem;
    margin-right: 10.5rem;
  }
  #search-input {
    width: 6.5rem;
  }
  #site-search {
    top: 0.55rem;
    right: 3.8rem;
  }
  #theme-toggle {
    top: 0.55rem;
    right: 0.65rem;
  }
  nav {
    margin-top: 0.3rem;
  }
  nav ul li {
    font-size: 0.8rem;
  }
  nav ul li a {
    font-size: 0.8rem;
    height: 1.9rem;
    line-height: 1.9rem;
    padding: 0 0.4rem;
  }
}
/* 320-400px phones shrink further: title, input, and offsets tighten
 * so the title still clears the pinned controls */
@media (max-width: 400px) {
  header h1 {
    font-size: 0.9rem;
    margin-right: 9.6rem;
  }
  #search-input {
    width: 6rem;
  }
  #site-search {
    right: 3.4rem;
  }
}
main {
  margin: 1.5rem 0;
  padding: 1.5rem;
}

footer {
  background: var(--surface);
  margin: 1.5rem;
  padding: 1.5rem;
  border-radius: 8px;
  margin: 0 auto;
  text-align: center;
}

footer p {
  margin: 0;
  font-size: 0.75rem;
  color: var(--text-subtle);
  text-align: center;
}

footer a i {
  margin-right: 0.25rem;
}

section {
  border-bottom: 3px solid var(--surface);
  margin: 2rem 0;
  padding-bottom: 2rem;
}

#page-header {
  border-bottom: 3px solid var(--surface);
  margin: 2rem 0;
  padding-bottom: 2rem;
  text-align: center;
}
#page-header h1 {
  margin: 0;
  width: 100%;
  font-size: 3rem;
  word-break: break-word;
  font-weight: 400;
}
#page-header .subtitle {
  margin: 0;
  width: 100%;
  font-size: 1.2rem;
  font-weight: 100;
  color: var(--text-subtle);
}

.time {
  font-size: 0.8rem;
  color: var(--text-subtle);
  text-align: center;
}

#cards {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin: 2rem 0;
}
#cards > article {
  flex: 1 1 calc(50% - 0.75rem);
  min-width: 300px;
  max-width: calc(50% - 0.75rem);
  box-sizing: border-box;
}
@media (max-width: 900px) {
  #cards > article {
    flex-basis: 100%;
    max-width: 100%;
  }
}

article {
  background: var(--surface);
  border-radius: 8px;
  padding: 1rem 1.5rem;
  transition: background 0.4s ease-in-out;
}
article:hover, article:focus {
  background: var(--primary-dark);
}
article h3 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
}
article p {
  margin: 0.5rem 0;
  font-size: 1rem;
  color: var(--text);
  font-weight: 300;
}
article .subtitle {
  margin: 0 0 0 0.5rem;
  width: 100%;
  font-size: 1.1rem;
  font-weight: 300;
  color: var(--text-subtle);
}

/* Whole-card click targets: only .card articles stretch their
 * direct-child anchor across the card as an invisible overlay.
 * Plain articles (e.g. section page lists) keep normal inline links. */
article.card {
  position: relative;
  z-index: 2;
}
article.card > a {
  color: var(--text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  text-indent: -9999px;
  overflow: hidden;
  text-decoration: none;
  transition: color 0.4s ease-in-out;
}
article.card > a:hover, article.card > a:focus {
  color: var(--accent-light);
}

.term-title {
  font-weight: 700;
  padding: 0.3rem 0.8rem;
  margin-bottom: 0.5rem;
  border-radius: 8px;
}

pre {
  padding: 0.75rem 1rem;
  border-radius: 8px;
  overflow-x: auto;
  background: var(--primary-dark);
  line-height: 1.45;
  font-size: 0.85rem;
  display: block;
}
pre code {
  font-size: 0.85rem;
  color: var(--code-fg);
}

.banner {
  position: fixed;
  top: 0;
  width: 100%;
  max-width: 1024px;
  background-color: var(--accent);
  color: var(--on-accent);
  padding: 5px 0;
  font-weight: 400;
  text-align: center;
  font-size: 1.1em;
  border-radius: 0 0 8px 8px;
  z-index: 1000;
  font-size: 0.9rem;
  height: 1.3rem;
  margin-left: calc(0% - 1.5rem);
}
.banner a {
  color: var(--on-accent);
  text-decoration: underline;
  font-weight: 700;
  transition: color 0.4s ease-in-out;
}
.banner a:hover, .banner a:focus {
  color: var(--primary-dark);
}

body:has(.banner) {
  margin-top: 2.6rem;
}

@media (max-width: 600px) {
  .banner {
    position: absolute;
    top: 0;
    width: calc(100% - 1.5rem);
    max-width: 1024px;
    background-color: var(--accent);
    color: var(--darkest);
    padding: 5px;
    font-weight: 400;
    text-align: center;
    font-size: 1.1em;
    border-radius: 0 0 8px 8px;
    z-index: 1000;
    font-size: 0.9rem;
    height: 4.3rem;
    margin-left: calc(0% - 1.5rem);
  }
  .banner .banner-text {
    display: block;
    margin: 0 5px;
  }
  body:has(.banner) {
    margin-top: 5.6rem;
  }
}
hr {
  border: none;
  border-top: 3px solid var(--border);
  margin: 2rem 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: var(--on-accent);
  padding: 0.5rem 1rem;
  z-index: 10000;
}
.skip-link:focus {
  left: 0;
}

*:focus-visible {
  outline: 3px solid var(--accent-light);
  outline-offset: 2px;
}

/* Screen-reader-only utility */
.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;
}

/* hidden elements are fully out of layout, in every renderer */
[hidden] {
  display: none !important;
}

/* print helpers */
.print-only {
  display: none;
}

/* Monochrome icons in headings and cards (decorative: aria-hidden in markup) */
main h2 i, main h3 i, #page-header i, #link-list i {
  color: var(--primary-light);
  margin-right: 0.45rem;
  font-size: 0.85em;
}

h2 i, h3 i, #cards h3 i {
  vertical-align: baseline;
}

/* Content images (e.g. the bio portrait): sized, centered, never overflowing */
main img {
  max-width: 45%;
  height: auto;
  display: block;
  margin: 1rem auto;
  border-radius: 8px;
}

@media (max-width: 600px) {
  main img {
    max-width: 70%;
  }
}
/* ---------------- Interactive demoes (Projects page) ---------------- */
.demo-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
  background: var(--surface);
  width: auto;
  max-width: none;
  margin: 1rem 0;
  padding: 1rem;
  border-radius: 8px;
}
.demo-form label {
  display: inline;
  margin: 0;
  font-weight: 600;
  color: var(--text-subtle);
}
.demo-form input, .demo-form select {
  display: inline-block;
  width: auto;
  margin: 0;
  padding: 0.32rem 0.5rem;
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: 0.4rem;
  color: var(--text);
  font-size: 0.95rem;
}
.demo-form input:focus, .demo-form select:focus {
  border-color: var(--accent);
}
.demo-form input[type=number] {
  width: 5.5rem;
}
.demo-form input[type=range] {
  width: 11rem;
}
.demo-form button {
  background: var(--primary);
  color: var(--on-primary);
  border: none;
  border-radius: 0.4rem;
  padding: 0.38rem 0.8rem;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
}
.demo-form button:hover, .demo-form button:focus {
  background: var(--accent-dark);
  color: var(--text);
}
.demo-form button.quiet, .demo-form button.quiet:hover, .demo-form button.quiet:focus {
  background: var(--primary-dark);
  color: var(--text-subtle);
}

.demo-output {
  margin: 1rem 0;
  overflow-x: auto;
}
.demo-output table {
  border-collapse: collapse;
  background: var(--surface);
  margin: 0 auto;
  font-size: 0.92rem;
}
.demo-output table caption {
  caption-side: top;
  text-align: left;
  font-weight: 600;
  padding: 0.25rem 0.1rem;
  color: var(--text);
}
.demo-output table th, .demo-output table td {
  border: 1px solid var(--border);
  padding: 0.2rem 0.5rem;
  text-align: left;
  font-variant-numeric: tabular-nums;
}
.demo-output table th {
  background: var(--primary-dark);
}

#ssa-canvas, .demo-canvas {
  display: block;
  width: 100%;
  height: 260px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--background);
}

/* the Galton board needs extra headroom for peg rows + bins */
#gt-canvas {
  height: 340px;
}

#ssa-status, #ss-summary, #uni-stats, #re-note, #gt-status, #q-note, #gr-note {
  font-size: 0.85rem;
  color: var(--text-subtle);
}

.demo-table-note {
  font-size: 0.85rem;
  color: var(--text-subtle);
  margin: 0.25rem 0 0;
}

#ssa-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  margin: 0.4rem 0 0;
  font-size: 0.9rem;
  color: var(--text);
}
#ssa-legend .legend-swatch {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}
#ssa-legend .legend-swatch::before {
  content: "";
  display: inline-block;
  width: 1.5rem;
  border-top: 3px solid currentColor;
  border-radius: 2px;
}
#ssa-legend .legend-swatch:nth-of-type(2)::before {
  border-top-style: dashed;
}
#ssa-legend .legend-swatch:nth-of-type(3)::before {
  border-top-style: dotted;
}
#ssa-legend .legend-swatch:nth-of-type(4)::before {
  border-top-style: double;
  border-top-width: 5px;
}

/* Shared bar-chart layout: used by the uniformization, queue, and
 * gambler's-ruin demos. Element ids keep working as aliases. */
#uni-bars, #q-bars, #gr-bars, .barchart {
  display: flex;
  align-items: flex-end;
  gap: 0.4rem;
  height: 9rem;
  padding: 0 0.5rem;
  border-bottom: 2px solid var(--border);
}
#uni-bars .bar-col, #q-bars .bar-col, #gr-bars .bar-col, .barchart .bar-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  justify-content: flex-end;
}
#uni-bars .bar, #q-bars .bar, #gr-bars .bar, .barchart .bar {
  width: 100%;
  max-height: calc(100% - 1.2rem);
  background: var(--primary-light);
  display: block;
}
#uni-bars .bar-label, #q-bars .bar-label, #gr-bars .bar-label, .barchart .bar-label {
  font-size: 0.7rem;
  margin-top: 0.25rem;
  color: var(--text-subtle);
}

/* Prev/next navigation between demo pages */
.demo-nav {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin: 1.5rem 0 0.5rem;
  font-size: 0.9rem;
}
.demo-nav a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  max-width: 46%;
}
.demo-nav a i {
  font-size: 0.8em;
  color: var(--primary-light);
}
.demo-nav .demo-nav-next {
  margin-left: auto;
  text-align: right;
}

@media (max-width: 600px) {
  body {
    padding: 1rem;
  }
  main {
    padding: 1rem 0.5rem;
  }
  #page-header h1 {
    font-size: clamp(1.8rem, 8vw, 3rem);
  }
  table#taxonomy-table {
    display: block;
    overflow-x: auto;
  }
}
table#taxonomy-table {
  width: 100%;
  border-collapse: collapse;
  box-sizing: border-box;
  background: var(--surface);
  text-align: left;
}
table#taxonomy-table tr {
  border-bottom: 3px solid var(--background);
}
table#taxonomy-table tr:nth-child(even) {
  background: var(--surface);
  transition: background 0.4s ease-in-out;
}
table#taxonomy-table tr:nth-child(odd) {
  background: var(--background);
  transition: background 0.4s ease-in-out;
}
table#taxonomy-table tr:hover, table#taxonomy-table tr:focus {
  background: var(--border);
}
table#taxonomy-table thead {
  text-align: left;
  border: none;
  border-radius: 8px 8px 0 0;
}
table#taxonomy-table th {
  color: var(--text);
  background: var(--darkest) !important;
  padding: 0.6rem 0.6rem;
  text-align: left;
  font-weight: 600;
  border: none;
}
table#taxonomy-table td {
  padding: 0.3rem 0.6rem;
  text-align: left;
  font-weight: 600;
  border: none;
}
table#taxonomy-table td.description {
  font-weight: 300;
  color: var(--text-subtle);
}
table#taxonomy-table td.tool {
  min-width: 100px;
}
table#taxonomy-table a.term-link {
  padding: 0.2rem 0.6rem;
  margin: 0.2rem;
  display: inline-block;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  color: var(--text);
  transition: color 0.4s ease-in-out, background 0.4s ease-in-out;
}
table#taxonomy-table a.term-link:hover, table#taxonomy-table a.term-link:focus {
  color: var(--darkest) !important;
  background: var(--text-subtle) !important;
}
table#taxonomy-table a.taxonomy-name {
  padding: 0;
  margin: 0.2rem;
  display: inline-block;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  color: var(--text);
  transition: color 0.4s ease-in-out;
}
table#taxonomy-table a.taxonomy-name:hover, table#taxonomy-table a.taxonomy-name:focus {
  color: var(--accent-light);
}
table#taxonomy-table a {
  color: var(--text);
  text-decoration: none;
}
table#taxonomy-table a:hover, table#taxonomy-table a:focus {
  color: var(--accent);
}

#taxonomy-page a.term-link {
  padding: 0.3rem 1.2rem;
  margin: 0.2rem;
  display: inline-block;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  font-size: 1.2rem;
  color: var(--text);
  transition: color 0.4s ease-in-out, background 0.4s ease-in-out;
}
#taxonomy-page a.term-link:hover, #taxonomy-page a.term-link:focus {
  color: var(--darkest) !important;
  background: var(--text-subtle) !important;
}

/* _text.sass */
a {
  color: var(--link);
  text-decoration: underline;
  transition: color 0.4s ease-in-out;
}
a:hover, a:focus {
  color: var(--link-hover);
}

#quick-links {
  text-align: left;
}

#link-list {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  flex-wrap: wrap;
  margin: 2rem 0 1.5rem 0;
  justify-content: center;
}

#link-list h2 {
  flex: none;
}

#link-list ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

#link-list ul li {
  margin: 0;
  padding: 0;
}

#link-list ul li a {
  padding: 0.3rem 0.6rem;
  border-radius: 8px;
  background: var(--primary-light);
  color: var(--on-primary-light);
  text-decoration: none;
  font-weight: 500;
  transition: background 0.4s ease-in-out, color 0.4s ease-in-out;
}
#link-list ul li a:hover, #link-list ul li a:focus {
  background: var(--accent-light);
  color: var(--on-accent-light);
}

a.button {
  padding: 0.3rem 0.6rem;
  margin: 0 0.2rem;
  border-radius: 8px;
  background: var(--accent);
  color: var(--on-accent);
  text-decoration: none;
  font-weight: 500;
  transition: background 0.4s ease-in-out, color 0.4s ease-in-out;
}
a.button:hover, a.button:focus {
  background: var(--accent-light);
  color: var(--on-accent-light);
}

a.back-button {
  padding: 0.3rem 0.6rem;
  margin: 0 0.2rem;
  border-radius: 8px;
  background: var(--primary-dark);
  color: var(--text-subtle);
  text-decoration: none;
  font-weight: 500;
  transition: background 0.4s ease-in-out;
}
a.back-button:hover, a.back-button:focus {
  background: var(--accent-dark);
}

a.social-icon {
  width: 2.1rem;
  height: 2.1rem;
  font-size: 1.2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 45%;
  margin-right: 0.33rem;
  padding: 0;
  background: var(--primary);
  color: var(--on-primary);
  text-decoration: none;
  font-weight: 500;
  transition: background 0.4s ease-in-out;
}
a.social-icon:hover, a.social-icon:focus {
  background: var(--accent-dark);
  color: var(--text);
}

#publications {
  font-weight: 300;
}
#publications ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1em;
}
#publications ul li {
  background: var(--surface);
  border-radius: 8px;
  padding: 1em 1.5em;
}
#publications a {
  color: var(--link);
  text-decoration: none;
  font-weight: 100;
  transition: color 0.4s ease-in-out;
}
#publications a:hover, #publications a:focus {
  color: var(--link-hover);
}

/* print.sass — every page is tuned to print cleanly */
@page {
  margin: 1.2cm 1.4cm;
}
@media print {
  html {
    font-size: 10pt;
    background: white;
  }
  body {
    background: white;
    -webkit-print-color-adjust: exact;
    max-width: 100% !important;
    margin: 0;
    padding: 0;
    border-radius: 0;
  }
  * {
    box-shadow: none !important;
    color: black !important;
  }
  /* Browser chrome, navigation, and interactive controls never print */
  nav, .banner, .skip-link, #site-search, #search-results,
  button, form, input, select, textarea, canvas, a.back-button {
    display: none !important;
  }
  .time {
    text-align: center;
  }
  main {
    padding: 0;
    margin: 0;
  }
  header {
    padding: 0.5rem 0 1rem;
    margin: 0 0 1rem;
    background: white !important;
    text-align: center;
    border: none !important;
  }
  header h1 {
    text-align: center;
    display: block;
    width: 100%;
  }
  /* neutralize the screen header layout while printing */
  .header-start {
    float: none !important;
    margin-right: 0 !important;
  }
  header::after {
    content: "www.landonjtaylor.net";
    display: block;
    text-align: center;
    width: 100%;
    clear: both;
  }
  /* boxed regions print as clean outlines */
  header, footer, article, .button, table a.term-link, #link-list a {
    border: 1px solid black;
    background: white !important;
    color: black !important;
  }
  /* flex card grids can't fragment across pages — linearize them */
  #cards, #publications ul {
    display: block !important;
  }
  #cards > article {
    max-width: 100% !important;
    margin: 0 0 0.6rem !important;
  }
  /* year badges and skill pills: inline chips, no float collisions */
  .item-year, .skill-item {
    background: white !important;
    border: 1px solid black !important;
    float: none !important;
    display: inline-block !important;
    margin: 0 0 0.2rem 0.4rem !important;
  }
  /* timeline prints in monochrome */
  .timeline-content {
    background: white !important;
    border: 1px solid black;
  }
  .vertical-timeline::before {
    background: black !important;
  }
  .timeline-item::before {
    background: white !important;
    border: 2px solid black !important;
  }
  /* demo tables keep their data but lose the dark header fill */
  .demo-output table th,
  table#taxonomy-table th {
    background: white !important;
  }
  /* content images print at a modest, centered size */
  main img {
    max-width: 45% !important;
    height: auto !important;
    margin: 0 auto 0.5rem !important;
  }
  /* demo output is created by page JS; skip blank boxes when it never ran */
  .demo-output:not(.js-live) {
    display: none !important;
  }
  .print-only {
    display: block !important;
    font-size: 0.85em;
    font-style: italic;
  }
  /* offline context for key resources */
  #cvsection article a.button::after,
  #publications li a::after {
    content: " (" attr(href) ")";
    font-size: 8pt;
  }
  /* code blocks (PGP key, etc.) print as plain monospace text */
  pre {
    background: white !important;
    border: 1px solid black;
    line-height: 1.15;
    white-space: pre-wrap;
    overflow-wrap: break-word;
  }
  /* pagination hygiene: cards and tables stay whole */
  article, .card, #page-header, table, .timeline-content {
    break-inside: avoid;
    page-break-inside: avoid;
  }
  h1, h2, h3 {
    break-after: avoid;
    page-break-after: avoid;
  }
  table {
    border: 1px solid black;
  }
  table tr {
    border-bottom: 1px solid black !important;
  }
  table tr:nth-child(even) {
    background: #ddd !important;
  }
  table tr:nth-child(odd) {
    background: #fff !important;
  }
}
#timeline h2 {
  text-align: center;
}
#timeline .vertical-timeline {
  position: relative;
  list-style: none;
  padding: 0;
  margin: 2em 0;
}
#timeline .vertical-timeline::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 6px;
  border-radius: 3px;
  background: var(--primary);
  transform: translateX(-50%);
}
#timeline .timeline-item {
  position: relative;
  width: 50%;
  padding: 1em 2em;
  box-sizing: border-box;
}
#timeline .timeline-item::before {
  content: "";
  position: absolute;
  top: 1.2em;
  width: 1.2em;
  height: 1.2em;
  background: var(--accent);
  border-radius: 50%;
  z-index: 1;
  border: 3px solid var(--primary);
}
#timeline .timeline-item:nth-child(odd) {
  left: 0;
  text-align: right;
}
#timeline .timeline-item:nth-child(odd)::before {
  left: calc(100% - (0.6em + 3px));
}
#timeline .timeline-item:nth-child(odd) .timeline-date {
  text-align: right;
}
#timeline .timeline-item:nth-child(even) {
  left: 50%;
  text-align: left;
}
#timeline .timeline-item:nth-child(even)::before {
  right: calc(100% - (0.6em + 3px));
}
#timeline .timeline-content {
  background: var(--surface);
  padding: 0.5em 1em;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(78, 62, 62, 0.05);
  display: inline-block;
  max-width: 90%;
}
#timeline .timeline-content span {
  display: block;
}
#timeline .timeline-date {
  margin: 0 1rem;
  font-size: 1.05em;
  font-weight: 700;
}
#timeline .timeline-event {
  font-size: 0.9em;
  font-weight: 500;
  font-style: italic;
  margin: 0 1rem;
}
#timeline .timeline-note {
  margin: 0 1rem;
  font-weight: 300;
  font-size: 0.7rem;
}
@media (max-width: 800px) {
  #timeline .vertical-timeline::before {
    left: 1em;
    transform: none;
  }
  #timeline .timeline-item,
  #timeline .timeline-item:nth-child(even),
  #timeline .timeline-item:nth-child(odd) {
    width: 100%;
    left: 0;
    text-align: left;
    padding-left: 2.5em;
    padding-right: 1em;
  }
  #timeline .timeline-item::before,
  #timeline .timeline-item:nth-child(even)::before,
  #timeline .timeline-item:nth-child(odd)::before {
    left: 0.5em;
    right: auto;
  }
  #timeline span {
    text-align: left !important;
  }
}

#cv #cards {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin: 2rem 0;
  align-content: stretch;
}
@media (min-width: 900px) {
  #cv #cards > article {
    flex: 1 1 auto;
    min-width: 200px;
    max-width: 50%;
    box-sizing: border-box;
    align-self: stretch;
  }
  #cv #cards > article:nth-child(odd) {
    max-width: calc(64% - 1.5rem / 2);
  }
  #cv #cards > article:nth-child(even) {
    max-width: calc(36% - 1.5rem / 2);
  }
}
@media (max-width: 900px) {
  #cv #cards {
    flex-direction: column;
  }
  #cv #cards > article {
    flex-basis: 100%;
    max-width: 100%;
    align-self: stretch;
  }
}
#cv #cards > article:hover p .item-year {
  background: var(--accent-dark);
}
#cv #cards > article:hover .skill-item {
  background: var(--accent-dark);
}
#cv p, #cv .skill-section {
  line-height: 1.128rem;
}
#cv p:not(:first-of-type), #cv .skill-section:not(:first-of-type) {
  border-top: 2px solid var(--border);
}
#cv p, #cv .skill-section {
  padding: 1rem 0;
}
#cv p .item-title, #cv .skill-section .item-title {
  font-weight: 600;
  margin: 0;
}
#cv p .item-journal, #cv .skill-section .item-journal {
  font-size: 0.9rem;
  font-weight: 300;
}
#cv p .item-authors, #cv .skill-section .item-authors {
  font-size: 0.9rem;
  font-weight: 300;
}
#cv p .item-year, #cv .skill-section .item-year {
  font-weight: 700;
  font-size: 0.9rem;
  float: right;
  background: var(--primary-dark);
  padding: 0.3rem 0.6rem;
  border-radius: 0.4rem;
  display: block;
  margin-left: 1rem;
  transition: background 0.4s ease-in-out;
}
#cv p .item-note, #cv .skill-section .item-note {
  font-size: 0.9rem;
  font-weight: 300;
  display: block;
  font-style: italic;
  color: var(--text-subtle);
}
#cv .skill-section {
  border-top: none !important;
  padding: 0 !important;
  margin: 1rem 0 !important;
}
#cv .skill-section .item-title {
  display: none;
}
#cv .skills-wordcloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5em;
}
#cv .skills-wordcloud .skill-item {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.4rem;
  border-radius: 0.4rem;
  background: var(--primary-dark);
  margin: 0 0.1rem 0.3rem 0;
  transition: background 0.4s ease-in-out;
  font-size: 0.8rem;
}
#cv .skills-wordcloud .skill-item i {
  margin-right: 0.3rem;
}
#cv .skills-wordcloud .skill-item .skill-name {
  font-weight: 400;
}

.external-link-icon {
  float: right;
  color: var(--accent);
}

#cvsection article a.button {
  position: static;
  width: auto;
  height: auto;
  text-indent: 0;
  font-size: 0.7rem;
  padding: 0.1rem 0.3rem;
  margin: 0 0.1rem 0 0;
  display: inline-block;
  background: var(--accent-light);
  transition: background 0.4s ease-in-out, color 0.4s ease-in-out;
  color: var(--on-accent-light);
  border-radius: 0.2rem;
}
#cvsection article a.button:hover {
  color: var(--on-primary-light);
  background: var(--primary-light);
}
#cvsection #cards {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin: 2rem 0;
  align-content: stretch;
}
@media (min-width: 900px) {
  #cvsection #cards > article {
    flex: 1 1 auto;
    min-width: 200px;
    max-width: 50%;
    box-sizing: border-box;
    align-self: stretch;
  }
  #cvsection #cards > article:nth-child(odd) {
    max-width: calc(50% - 1.5rem / 2);
  }
  #cvsection #cards > article:nth-child(even) {
    max-width: calc(50% - 1.5rem / 2);
  }
}
@media (max-width: 900px) {
  #cvsection #cards {
    flex-direction: column;
  }
  #cvsection #cards > article {
    flex-basis: 100%;
    max-width: 100%;
    align-self: stretch;
  }
}
#cvsection #cards > article:hover:not(:has(.external-link-icon)) {
  background: var(--surface);
}
#cvsection p, #cvsection .skill-section {
  line-height: 1.128rem;
  margin: 1rem 0 0 0;
  border-top: 2px solid var(--border);
  padding: 1rem 0;
}
#cvsection p .item-title, #cvsection .skill-section .item-title {
  font-weight: 600;
  margin: 0;
}
#cvsection p .item-journal, #cvsection .skill-section .item-journal {
  font-size: 0.9rem;
  font-weight: 300;
}
#cvsection p .item-authors, #cvsection .skill-section .item-authors {
  font-size: 0.9rem;
  font-weight: 300;
}
#cvsection p .item-note, #cvsection .skill-section .item-note {
  font-size: 0.9rem;
  font-weight: 300;
  display: block;
  font-style: italic;
  color: var(--text-subtle);
}
#cvsection .item-year {
  font-weight: 700;
  font-size: 0.9rem;
  float: right;
  background: var(--primary-dark);
  padding: 0.3rem 0.6rem;
  border-radius: 0.4rem;
  display: block;
  margin-left: 1rem;
  transition: background 0.4s ease-in-out;
}
#cvsection .skill-section {
  border-top: none !important;
  padding: 0 !important;
  margin: 1rem 0 !important;
}
#cvsection .skill-section .item-title {
  display: none;
}
#cvsection .skills-wordcloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5em;
}
#cvsection .skills-wordcloud .skill-item {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.4rem;
  border-radius: 0.4rem;
  background: var(--primary-dark);
  margin: 0 0.1rem 0.3rem 0;
  transition: background 0.4s ease-in-out;
  font-size: 0.8rem;
}
#cvsection .skills-wordcloud .skill-item i {
  margin-right: 0.3rem;
}
#cvsection .skills-wordcloud .skill-item .skill-name {
  font-weight: 400;
}
#cvsection ul {
  list-style: circle;
  margin: 0;
  line-height: 1rem;
  border-top: 2px solid var(--border);
  padding: 1rem;
  font-size: 0.9rem;
}
#cvsection ul li {
  margin: 0.5rem 0;
}

#cv #cards > article:focus-within,
#cvsection #cards > article:focus-within {
  outline: 3px solid var(--accent-light);
  outline-offset: 2px;
}

form {
  background: var(--surface);
  width: calc(100% - 4rem);
  max-width: 700px;
  display: block;
  margin: 2rem auto;
  padding: 2rem;
  border-radius: 0.5rem;
}
form label {
  display: block;
  margin-bottom: 0;
  font-weight: 600;
  color: var(--text);
}
form input, form textarea, form select {
  display: block;
  width: calc(100% - 2rem);
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  margin-top: 0;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  background: var(--background);
  font-size: 1rem;
  color: var(--text);
  transition: border-color 0.4s ease-in-out;
}
form input:focus, form textarea:focus, form select:focus {
  border-color: var(--primary);
  outline: none;
}
form button, form input[type=submit] {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 0.5rem;
  padding: 0.75rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.4s ease-in-out;
}
form button:hover, form input[type=submit]:hover {
  background: var(--primary);
}
form #fnContactCaptcha {
  display: block;
  margin: 0;
}
form .required::before {
  content: "*";
  color: var(--required);
  margin-left: 0.25rem;
}

/*# sourceMappingURL=styles.css.map */