:root {
  --accent: #0fa0ce;
  --text: #222;
  --text-muted: #777;
  --border: #ddd;
  --bg: #fff;
  --nav-height: 3.5rem;
  --content-width: 750px;
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: light;
}

body {
  margin: 0;
  padding-top: var(--nav-height);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
}

a {
  color: var(--accent);
  text-decoration: none;
  font-weight: bold;
}

a:hover {
  color: #000;
}

/* Nav
–––––––––––––––––––––––––––––––––––––––––––––––––– */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  min-height: var(--nav-height);
  padding: 0.5rem 1.5rem;
  background: var(--bg);
  box-shadow: 0 8px 12px -10px rgba(0, 0, 0, 0.6);
  font-size: 1.1em;
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown summary {
  list-style: none;
  cursor: pointer;
  font-size: 1.2em;
  font-weight: bold;
  color: var(--text);
  user-select: none;
}

.nav-dropdown summary::-webkit-details-marker {
  display: none;
}

.nav-dropdown summary::after {
  content: " \25be";
  color: var(--text-muted);
}

.nav-dropdown[open] summary::after {
  content: " \25b4";
}

.nav-dropdown ul {
  position: absolute;
  margin: 0.5rem 0 0;
  padding: 0.5rem 0;
  list-style: none;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  min-width: 10rem;
}

.nav-dropdown li {
  margin: 0;
}

.nav-dropdown li a {
  display: block;
  padding: 0.4rem 1.25rem;
}

.nav-dropdown li.divider {
  margin: 0.4rem 0;
  border-top: 1px solid var(--border);
}

.nav-right {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Main content
–––––––––––––––––––––––––––––––––––––––––––––––––– */
main {
  max-width: var(--content-width);
  margin: 0 auto 2rem;
  padding: 0 1rem;
  font-family: Garamond, Georgia, serif;
  font-size: 1.25rem;
  line-height: 1.5;
}

main h2 {
  font-weight: bold;
  font-size: 1.9em;
  margin: 1.5em 0 0.4em;
}

main h3 {
  font-size: 1.5em;
}

main ul {
  padding-left: 1.25em;
}

main li {
  margin-bottom: 0.6em;
}

#posts li a {
  color: #000;
}

#posts li a:hover {
  color: var(--accent);
}

/* Images page
–––––––––––––––––––––––––––––––––––––––––––––––––– */
#images ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

#images li {
  text-align: center;
}

#images img {
  display: inline-block;
  max-width: 320px;
  max-height: 320px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
