:root {
  --ink: #14100b;
  --paper: #f4ecdf;
  --gold: #e8c795;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { min-height: 100%; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--serif);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; }

.skip-link {
  position: fixed;
  top: -5rem;
  left: 1rem;
  z-index: 2;
  padding: .65rem .9rem;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
}

.skip-link:focus { top: 1rem; }

.shelf-header {
  padding: 1.4rem clamp(1.25rem, 5vw, 3rem);
}

.brand {
  color: rgba(244, 236, 223, .56);
  font-size: .82rem;
  text-decoration: none;
}

.brand:hover { color: var(--paper); }

.shelf {
  width: min(100% - 2.5rem, 46rem);
  margin: 0 auto;
  padding: clamp(3.5rem, 9vw, 6.5rem) 0 5rem;
}

.shelf-intro {
  margin-bottom: clamp(2.25rem, 6vw, 3.5rem);
}

.shelf-intro h1 {
  margin: 0;
  color: var(--paper);
  font-size: clamp(1.8rem, 5vw, 2.4rem);
  font-weight: 400;
  line-height: 1.1;
}

.shelf-intro p {
  margin: .55rem 0 0;
  color: rgba(244, 236, 223, .42);
  font-size: .88rem;
  line-height: 1.5;
}

.resource-list {
  margin: 0;
  padding: 0;
  border-top: 1px solid rgba(244, 236, 223, .13);
  list-style: none;
}

.resource-list li {
  border-bottom: 1px solid rgba(244, 236, 223, .13);
}

.resource-link {
  display: grid;
  grid-template-columns: 5rem minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
  padding: 1.2rem 0 1.25rem;
  text-decoration: none;
}

.resource-date {
  padding-top: .16rem;
  color: rgba(244, 236, 223, .34);
  font-family: var(--sans);
  font-size: .67rem;
  letter-spacing: .06em;
  line-height: 1.4;
  white-space: nowrap;
}

.resource-copy { display: grid; }

.resource-title {
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1.35;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: 1px;
  text-underline-offset: .24em;
}

.resource-note {
  max-width: 35rem;
  margin-top: .32rem;
  color: rgba(244, 236, 223, .43);
  font-size: .86rem;
  line-height: 1.48;
}

.resource-link:hover .resource-title,
.resource-link:focus-visible .resource-title {
  text-decoration-color: rgba(232, 199, 149, .72);
}

.resource-link:hover .resource-date,
.resource-link:focus-visible .resource-date {
  color: rgba(232, 199, 149, .64);
}

.resource-link:focus-visible {
  border-radius: 2px;
  outline: 1px solid rgba(232, 199, 149, .55);
  outline-offset: .4rem;
}

.close-door {
  display: inline-block;
  margin-top: 2.5rem;
  color: rgba(244, 236, 223, .32);
  font-family: var(--sans);
  font-size: .67rem;
  letter-spacing: .04em;
  text-underline-offset: .25em;
}

.close-door:hover { color: var(--paper); }

@media (max-width: 600px) {
  .shelf { padding-top: 2.75rem; }
  .resource-link {
    grid-template-columns: 1fr;
    gap: .28rem;
    padding-block: 1.05rem 1.1rem;
  }
  .resource-date { padding-top: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; }
}
