htmp {
  font-size: clamp(16px, 1.5vw + 0.75rem, 24px);
}

body {
  background-color: #c0def3;
  color: #222;
	font-size: 150%;
}

.menu-toggle {
  background-color: #2c3e50;
  color: #eee;
}

.sidebar {
  background-color: #2c3e50;
}

.topbar {
  background-color: #1a2634;
}

.topbar h1 {
  color: #eee;
}

h1, h2, h3, summary {
  font-family: Georgia, "Palatino Linotype", Palatino, serif;
}

blockquote {
  border-left: 4px solid #2c3e50;
  margin: 1.5rem 2rem;
  padding: 0.5rem 1.5rem;
  font-family: Georgia, "Palatino Linotype", Palatino, serif;
  font-style: italic;
  color: #444;
}

blockquote cite {
  display: block;
  margin-top: 0.5rem;
  font-style: normal;
  font-size: 0.9em;
  color: #666;
}

.sidebar a,
.sidebar summary {
  color: #eee;
  border-bottom: 1px solid #3d5166;
}

.sidebar a:hover,
.sidebar summary:hover {
  background-color: #3d5166;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

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

.menu-toggle {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 3;
  border: none;
  padding: 0.5rem 1rem;
  font-size: 1.25rem;
  cursor: pointer;
  box-shadow: 1px 1px 5px rgba(0, 0, 0, 0.2);
}

/* Sidebar is hidden by default */
.sidebar {
  position: fixed;
  top: 60px;
  left: 0;
  width: 250px;
  bottom: 0;
  padding-top: 1rem;
  overflow-y: auto;
  transition: transform 0.3s ease;
  box-shadow: 2px 0 6px rgba(0,0,0,0.1);
  z-index: 2;
  transform: translateX(-100%);
}

#nav-toggle:checked ~ .sidebar {
  transform: translateX(0);
}

#nav-toggle:checked ~ .main {
  margin-left: 250px;
}

#nav-toggle:checked ~ .backdrop {
  opacity: 1;
  pointer-events: auto;
}

.visually-hidden {
  position: fixed;
  top: 0; left: 0;
  width: 1px; height: 1px;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  opacity: 0;
}

.backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 2;
}

.main {
  margin-top: 60px;
  padding: 1rem;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
  transition: margin-left 0.3s ease;
}

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 1rem;
  z-index: 1;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.topbar h1 {
  margin: 0;
  font-size: 1.5rem;
}

details > summary {
  font-size: 1.3em;
}

.sidebar a,
.sidebar summary {
  display: block;
  padding: 0.75rem 1rem;
  text-decoration: none;
  font-weight: bold;
  cursor: pointer;
  border-bottom: 1px solid #f4b88b;
}

.text-center {
	text-align: center;
}
