
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #fff;
  color: #111;

  font-family: Arial, Helvetica, sans-serif;
  font-size: 11px;
  line-height: 1.35;
padding: 5%;
  letter-spacing: 0.01em;
}



.layout {
  display: grid;

  grid-template-columns: repeat(12, 1fr);
  column-gap: 18px;
  row-gap: 60px;

  max-width: 1000px;
  margin: 0 auto;
  padding: 5%;
}



header {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

h1 {
  
  font-size: 30px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.subtitle {
  box-align: grid;
  grid-column: 1 / 5;
  font-size: 11px;
  color: #000000;
  max-width: calc((100% - 84px) / 2);
  padding-bottom: 60px;
}

/* FILTERS
===================== */
.filters {
  grid-column: 1 / 3;
}

.filters h2 {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #050505;
}

.filter-group {
  margin-bottom: 4px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  align-items: center;
  text-transform: uppercase;
}

.filters input[type="checkbox"] {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.filters label {
  font-size: 10px;
  color: #e84848;
  margin-right: 8px;
  cursor: pointer;
  text-decoration: underline;
  padding: 1px 1px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.filters label:hover {
  color: #e84848;
}

.filters input[type="checkbox"]:checked + label {
  color: #000;
  text-decoration: none;
  font-weight: 600;
}







/* internal grid */
.archive-grid {
  padding-top: 60px;
  display: grid;

  grid-template-columns: repeat(4, 1fr);
  gap: 32px 28px;
}

/* ENTRYs  */

.archive-entry {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.archive-id {
  font-size: 10px;
  letter-spacing: 0.14em;
  color: #999;
}

.meta {
  font-size: 10.5px;
  color: #666;
  line-height: 1.4;
}

.download-link {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #999;
  text-decoration: none;
}

.download-link:hover {
  color: #000;
}





.image-wrapper {
  position: relative;
}

.photo,
.svg-grid {
  width: 100%;
  display: block;
}


.svg-fullscreen {
  position: fixed;
  inset: 0;
  z-index: 9999;

  display: flex;
  justify-content: center;
  align-items: center;

  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.svg-fullscreen img {
  max-width: 420px;
  max-height: 70vh;
}

/* hover reveal */
.image-wrapper:hover .svg-fullscreen {
  opacity: 1;
  visibility: visible;
}



body.mode-svg .photo {
  display: none;
}

body.mode-photo .svg-grid {
  display: none;
}



section.filters:has(#indoors:checked) ~ #archive .archive-entry:not([data-location="indoors"]),
section.filters:has(#outdoors:checked) ~ #archive .archive-entry:not([data-location="outdoors"]) {
  display: none;
}

section.filters:has(#marker:checked) ~ #archive .archive-entry:not([data-material="marker"]),
section.filters:has(#crayon:checked) ~ #archive .archive-entry:not([data-material="crayon"]),
section.filters:has(#scratch:checked) ~ #archive .archive-entry:not([data-material="scratch"]),
section.filters:has(#chalk:checked) ~ #archive .archive-entry:not([data-material="chalk"]),
section.filters:has(#pencils:checked) ~ #archive .archive-entry:not([data-material="pencils"]) {
  display: none;
}

section.filters:has(#stroke:checked) ~ #archive .archive-entry:not([data-method="stroke"]),
section.filters:has(#filled:checked) ~ #archive .archive-entry:not([data-method="filled in"]) {
  display: none;
}
