:root {
  --text: #1a1a1a;
  --bg: #ffffff;
  --accent: #E85D04;
  --col: 544px;
  --page: 720px;
  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'Source Sans 3', -apple-system, BlinkMacSystemFont, sans-serif;
}

::selection {
  background: var(--accent);
  color: var(--text);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.125rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

main {
  max-width: var(--page);
  margin: 0 auto;
  padding: 5rem 1.5rem 4rem;
}

main > section {
  max-width: var(--col);
  margin: 0 auto;
}

main.research > section,
main.recommendations > section,
main.gallery > section {
  max-width: none;
}

.rec-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  margin-top: 1.5rem;
}

.rec-column h2 {
  margin-top: 0;
}

.rec-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.rec-column li {
  margin: 0 0 1.75rem;
}

.rec-cover {
  display: block;
  width: 100%;
  max-width: 160px;
  height: auto;
  margin-bottom: 0.6rem;
}

.rec-title {
  display: block;
  font-weight: 600;
}

.rec-meta {
  display: block;
  font-size: 0.9rem;
  margin-top: 0.1rem;
}

.rec-note {
  display: block;
  font-style: italic;
  font-size: 0.9rem;
  margin-top: 0.25rem;
}

@media (max-width: 640px) {
  .rec-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

header {
  margin-bottom: 2.5rem;
}

h1 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0 0 1.25rem;
}

h2 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin: 2.75rem 0 1rem;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  font-size: 1rem;
}

nav a {
  color: var(--accent);
  text-decoration: none;
}

nav a[aria-current="page"] {
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.25em;
}

section p {
  text-align: justify;
  hyphens: auto;
  margin: 0 0 1.25rem;
}

details.topic {
  background: var(--bg);
  border-left: 4px solid var(--accent);
  margin: 0 0 1.25rem;
}

details.topic summary {
  padding: 1rem 1.25rem;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  cursor: pointer;
  list-style: none;
  position: relative;
}

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

details.topic summary::after {
  content: "+";
  position: absolute;
  right: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--sans);
  font-weight: 400;
  color: var(--accent);
}

details.topic[open] summary::after {
  content: "−";
}

details.topic summary:hover {
  opacity: 0.7;
}

details.topic .topic-body {
  padding: 0 1.25rem 0.75rem;
}

details.topic .topic-body > p:first-child {
  margin-top: 0;
}

.preview {
  position: absolute;
  max-width: 360px;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--text);
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  line-height: 1.5;
  z-index: 100;
  pointer-events: none;
  text-align: left;
}

section ul {
  list-style: none;
  margin: 0 0 1.75rem;
  padding: 0;
}

section li {
  margin: 0 0 0.5rem;
  text-align: left;
}

section ul.papers {
  list-style: disc;
  padding-left: 1.25rem;
}

section ul.papers li {
  margin: 0 0 0.75rem;
}

figure {
  margin: 0 0 3rem;
}

figure img {
  width: 100%;
  height: auto;
  display: block;
}

figcaption {
  margin-top: 0.6rem;
  font-size: 0.95rem;
  text-align: left;
}

a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

a:hover {
  opacity: 0.5;
}

footer {
  margin-top: 4rem;
  font-size: 0.95rem;
}

footer p {
  margin: 0;
  text-align: left;
}
