/* Zary Lab hub, v1. System fonts only. No tracking. */
:root {
  --ink: #161410;
  --paper: #f4efe6;
  --panel: #fbf8f2;
  --rule: #d2c8b6;
  --muted: #5a544a;
  --link: #1a3654;
  --link-hover: #0d2136;
  --focus: #1a3654;
  --max: 42rem;
  --wide: 58rem;
}

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

html {
  color-scheme: light;
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--link);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

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

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

h1, h2, h3, p {
  margin-top: 0;
}

h1, h2, h3 {
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: 0.75rem;
  z-index: 100;
  padding: 0.5rem 0.85rem;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: none;
}

.wrap {
  width: min(var(--wide), calc(100% - 2.5rem));
  margin-inline: auto;
}

.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  padding: 1.25rem 0 1.1rem;
  border-bottom: 1px solid var(--rule);
}

.brand {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
}

.brand:hover {
  color: var(--ink);
  text-decoration: underline;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  color: var(--ink);
  text-decoration: none;
  font-size: 0.95rem;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  text-decoration: underline;
}

main {
  padding: 2.75rem 0 3.5rem;
}

.intro {
  max-width: var(--max);
  margin-bottom: 3.25rem;
}

.kicker {
  margin: 0 0 0.85rem;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.intro h1 {
  margin-bottom: 1.15rem;
  font-size: clamp(2.25rem, 6vw, 3.4rem);
  line-height: 1.05;
}

.intro p {
  margin-bottom: 1rem;
  font-size: 1.125rem;
}

.intro p:last-child {
  margin-bottom: 0;
}

.section {
  margin-top: 0.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--rule);
}

.section h2 {
  margin-bottom: 0.4rem;
  font-size: 1.55rem;
}

.section-lead {
  max-width: var(--max);
  margin-bottom: 1.5rem;
  color: var(--muted);
}

.projects {
  list-style: none;
  margin: 0;
  padding: 0;
}

.project {
  padding: 1.25rem 0;
  border-top: 1px solid var(--rule);
}

.project:last-child {
  border-bottom: 1px solid var(--rule);
}

.project h3 {
  margin-bottom: 0.15rem;
  font-size: 1.2rem;
}

.project h3 a {
  color: var(--ink);
  text-decoration: none;
}

.project h3 a:hover {
  color: var(--link);
  text-decoration: underline;
}

.host {
  display: block;
  margin-bottom: 0.45rem;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.01em;
  color: var(--muted);
}

.project p {
  max-width: var(--max);
  margin-bottom: 0.7rem;
}

.visit {
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 0.9rem;
}

.elsewhere {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 40rem) {
  .elsewhere {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem 2rem;
  }
}

.elsewhere article {
  padding: 1.1rem 1.15rem 1.2rem;
  background: var(--panel);
  border: 1px solid var(--rule);
}

.elsewhere h3 {
  margin-bottom: 0.45rem;
  font-size: 1.15rem;
}

.elsewhere h3 a {
  color: var(--ink);
  text-decoration: none;
}

.elsewhere h3 a:hover {
  color: var(--link);
  text-decoration: underline;
}

.elsewhere p {
  margin-bottom: 0.7rem;
}

.site-footer {
  padding: 1.25rem 0 2rem;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 0.85rem;
}

.not-found {
  max-width: var(--max);
  padding: 4rem 0 5rem;
}

.not-found h1 {
  margin-bottom: 0.85rem;
  font-size: clamp(2rem, 5vw, 2.8rem);
}

@media (max-width: 30rem) {
  .wrap {
    width: min(var(--wide), calc(100% - 1.75rem));
  }

  body {
    font-size: 1rem;
  }

  .intro p {
    font-size: 1.05rem;
  }
}
