@charset "UTF-8";
:root {
  color-scheme: light;
  --paper: #fafbf8;
  --ink: #242c29;
  --accent: #3659d9;
}
* {
  box-sizing: border-box;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
body {
  margin: 0;
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a {
  color: inherit;
  text-decoration: none;
}
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 5px;
  border-radius: 4px;
}
::selection {
  background: #dbe2ff;
}
.skip-link {
  position: fixed;
  z-index: 10;
  top: 12px;
  left: 12px;
  padding: 12px 18px;
  background: var(--ink);
  color: white;
  transform: translateY(-160%);
}
.skip-link:focus {
  transform: translateY(0);
}
.masthead {
  text-align: center;
  padding: 75px 24px 42px;
}
h1 {
  margin: 0;
  font-size: inherit;
}
.masthead a {
  display: inline-block;
}
.wordmark {
  display: block;
  width: 290px;
  max-width: 100%;
  height: auto;
}
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 300px));
  justify-content: center;
  gap: 22px;
  max-width: 1020px;
  padding: 0 28px;
  margin: 0 auto;
}
.project-card {
  position: relative;
  min-width: 0;
  border: 1px solid #cbd6c6;
  border-radius: 13px;
  overflow: hidden;
  background: #fff;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease;
}
.project-card:hover,
.project-card:focus-within {
  transform: translateY(-3px);
  border-color: #91a587;
  box-shadow: 0 8px 20px #40523812;
}
.project-link {
  display: block;
  height: 100%;
}
.project-link:focus-visible {
  outline-offset: -4px;
  border-radius: 11px;
}
.project-art {
  position: relative;
  height: 180px;
  overflow: hidden;
  border-bottom: 1px solid #d4decf;
}
.books-art {
  background: #e1e9d8;
}
.book-spines {
  position: absolute;
  bottom: -24px;
  left: 19px;
  display: flex;
  gap: 5px;
  transform: rotate(-10deg);
}
.spine {
  position: relative;
  width: 32px;
  height: 155px;
  background: #7a8468;
  color: #eeecd8;
  border: 1px solid #899465;
  box-shadow:
    inset 3px 0 6px #151e2522,
    3px 3px 8px #324f1320;
  border-radius: 3px 2px 0 0;
}
.spine::before,
.spine::after {
  content: "";
  position: absolute;
  height: 1px;
  background: #ded4a580;
  left: 4px;
  right: 4px;
}
.spine::before {
  top: 29px;
}
.spine::after {
  bottom: 24px;
}
.spine i {
  display: block;
  text-align: center;
  font:
    normal 8px Georgia,
    serif;
  margin-top: 12px;
}
.spine b {
  position: absolute;
  top: 40px;
  left: 10px;
  font:
    normal 7px Georgia,
    serif;
  letter-spacing: 1px;
  writing-mode: vertical-rl;
}
.spine-two {
  height: 174px;
  background: #8c7154;
  margin-top: -19px;
}
.spine-three {
  background: #7a708a;
  height: 151px;
  margin-top: 4px;
}
.spine-four {
  background: #607e68;
  height: 165px;
  margin-top: -10px;
}
.spine-five {
  background: #5c7e8b;
}
.preview-window {
  position: absolute;
  width: 77%;
  top: 41px;
  left: 43%;
  transform: rotate(4deg);
  border: 1px solid #aab7a4;
  border-radius: 5px;
  overflow: hidden;
  background: #f6f4ef;
  box-shadow: -8px 9px 18px #32452029;
}
.preview-window img {
  display: block;
  width: 100%;
  height: auto;
}
.project-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 18px 17px;
}
h2 {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.35px;
  margin: 0;
  line-height: 1.4;
}
.project-title > span {
  color: #657b5a;
  font-size: 18px;
}
.project-details {
  position: absolute;
  inset: 0 0 auto;
  height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 44px 24px 18px;
  background: #fafbf8f5;
  color: #47553f;
  opacity: 0;
  visibility: hidden;
  transform: translateY(5px);
  pointer-events: none;
  transition:
    opacity 0.16s ease,
    transform 0.16s ease,
    visibility 0.16s ease;
}
.project-details p {
  margin: 0 0 14px;
  font-size: 13px;
  line-height: 1.6;
}
.project-domain {
  font-size: 11px;
  color: #566f4d;
  overflow-wrap: anywhere;
}
.project-card.is-expanded .project-details,
.project-card:not(.details-enhanced)
  .project-link:focus-visible
  + .project-details {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.project-info-toggle {
  -webkit-tap-highlight-color: transparent;
  display: none;
  position: absolute;
  top: 9px;
  right: 9px;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid #b9c5b2;
  border-radius: 50%;
  background: #fffefb;
  color: #546b4c;
  cursor: pointer;
  font:
    italic 600 16px Georgia,
    serif;
}
.project-info-toggle:not([hidden]) {
  display: grid;
  place-items: center;
}
.project-info-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.project-info-toggle[aria-expanded="true"] {
  border-color: #69855b;
}
@media (hover: hover) and (pointer: fine) {
  .project-card:not(.details-enhanced):hover .project-details {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  .project-info-toggle {
    opacity: 0;
    transition: opacity 0.16s ease;
  }
  .project-card:hover .project-info-toggle,
  .project-info-toggle:focus-visible {
    opacity: 1;
  }
}
.site-footer {
  padding: 41px 24px 36px;
}
.site-footer nav {
  display: flex;
  justify-content: center;
  gap: 23px;
  font-size: 12px;
  color: #67735f;
}
.site-footer a {
  padding: 8px 0;
  text-underline-offset: 4px;
}
.site-footer a:hover {
  text-decoration: underline;
}
.not-found {
  max-width: 500px;
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
}
.not-found h1 {
  font-size: 24px;
  margin: 0 0 20px;
}
.not-found a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 4px;
}
@media (max-width: 600px) {
  .masthead {
    padding-top: 54px;
    padding-bottom: 34px;
  }
  .wordmark {
    width: 252px;
  }
  .project-grid {
    padding: 0 24px;
    grid-template-columns: minmax(0, 320px);
    gap: 20px;
  }
  .site-footer {
    padding-top: 32px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .project-card,
  .project-details,
  .project-info-toggle {
    transition: none;
  }
  .project-card:hover,
  .project-card:focus-within {
    transform: none;
  }
}
