:root {
  color-scheme: light;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #263742;
  background: #fff;
  line-height: 1.65;
}

* {
  box-sizing: border-box;
}

body {
  max-width: 68rem;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
}

a {
  color: #155e86;
  text-underline-offset: 0.18em;
}

a:hover {
  color: #093d59;
  text-decoration-thickness: 0.12em;
}

:focus-visible {
  outline: 3px solid #b06019;
  outline-offset: 4px;
}

h1, h2, h3 {
  color: #183342;
  line-height: 1.25;
}

h1 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 5vw, 3rem);
  letter-spacing: -0.035em;
}

h2 {
  margin-top: 2.5rem;
  font-size: 1.5rem;
}

h3 {
  font-size: 1.2rem;
}

p {
  margin: 0.9rem 0;
}

pre {
  max-width: 100%;
  padding: 1rem 1.25rem;
  overflow-x: auto;
  border: 1px solid #d9e3e8;
  border-radius: 0.5rem;
  background: #f5f8fa;
  font-size: 0.9rem;
  line-height: 1.6;
}

li + li {
  margin-top: 0.4rem;
}

hr {
  margin: 1.5rem 0;
  border: 0;
  border-top: 1px solid #d9e3e8;
}

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

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 18rem;
  align-items: center;
  gap: 2.5rem;
}

.intro {
  font-size: 1.15rem;
}

.hero-graphic {
  width: 100%;
  border-radius: 0.75rem;
}

nav a {
  display: inline-block;
  margin: 0.2rem 0.15rem;
}

.browser-explorer {
  padding: 1rem 1.25rem;
  border-left: 3px solid #267a83;
  background: #f0f7f8;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  margin: 1.25rem 0 2rem;
}

.project {
  padding: 1.25rem;
  border: 1px solid #d9e3e8;
  border-top: 3px solid #267a83;
  border-radius: 0.5rem;
}

.project-bubble {
  border-top-color: #ac641f;
}

.project-graphic {
  display: block;
  width: 18rem;
  margin: 0 auto 1.25rem;
  border-radius: 0.5rem;
}

.project h3 {
  margin: 0 0 0.75rem;
  overflow-wrap: anywhere;
}

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

.notebook-preview {
  margin: 1.5rem 0;
  padding: 1rem;
  border: 1px solid #d9e3e8;
  border-radius: 0.5rem;
}

.notebook-preview img {
  display: block;
  margin: 0 auto;
}

figcaption {
  margin-top: 0.75rem;
  color: #526571;
  font-size: 0.9rem;
}

.notebook-list {
  columns: 3 16rem;
  column-gap: 2rem;
}

.notebook-list li {
  break-inside: avoid;
  overflow-wrap: anywhere;
}

details {
  margin-top: 2.5rem;
}

summary {
  cursor: pointer;
}

footer {
  color: #526571;
}

@media (max-width: 42rem) {
  body {
    padding: 1.5rem 1rem;
  }

  .hero, .project-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero {
    gap: 0.75rem;
  }

  .hero-graphic {
    width: 18rem;
    justify-self: center;
  }
}

@media print {
  body {
    max-width: none;
    padding: 0;
  }

  .project {
    break-inside: avoid;
  }
}
