/*
Theme Name: BlankSlate Child
Template: blankslate
Version: 0.1
*/

body {
  --bg-color: #d6d6d6;
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.5;
  color: #111;
  background: var(--bg-color);
}

body[data-bg-theme="white"] {
  --bg-color: #ffffff;
  background: var(--bg-color);
  color: #111;
}

body[data-bg-theme="grey"] {
  --bg-color: #d6d6d6;
  background: var(--bg-color);
  color: #111;
}

body[data-bg-theme="black"] {
  --bg-color: #000000;
  background: var(--bg-color);
  color: #f0f0f0;
}

.series {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 1rem;
}

.series-header {
  margin-bottom: 4rem;
}

.series-header h1 {
  font-size: 1.5rem;
  margin: 0 0 1rem;
  font-weight: 400;
}

.series-cover {
  position: relative;
  overflow: hidden;
}

.series-cover img {
  display: block;
  width: 100%;
  height: auto;
}

.series-cover::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--bg-color);
  opacity: 0.5;
  pointer-events: none;
}

.series-text {
  color: #777;
  column-count: 1;
  column-gap: normal;
}

body[data-bg-theme="black"] .series-text {
  color: #dedede;
}

.photo-stream {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

.photo-item img {
  width: 100%;
  height: auto;
  display: block;
}

.photo {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.photo-frame {
  margin: 0 0 1.5rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.photo-frame img {
  display: block;
  max-height: 75vh;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

.photo-meta {
  font-size: 0.9rem;
  opacity: 0.75;
  text-align: center;
  display: block;
}

.photo-series {
  display: block;
  margin-bottom: 0.25rem;
}

.photo-series a {
  text-decoration: none;
  color: inherit;
  border-bottom: 1px dashed #cfcfcf;
}

.photo-series a:hover {
  text-decoration: none;
  border-bottom: 1px solid #a8a8a8;
}

.series-index {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 1rem;
}

.series-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
}

.series-item a {
  display: block;
  text-decoration: none;
  color: inherit;
}

.series-thumb {
  margin-bottom: 1rem;
  position: relative;
  overflow: hidden;
}

.series-thumb img {
  display: block;
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
  margin: 0;
  transition: filter 0.25s ease;
}

.series-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--bg-color);
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.series-item a:hover .series-thumb::after {
  opacity: 0.18;
}

.series-title {
  font-size: 1.5rem;
  font-weight: 400;
  margin: 0 0 0.75rem;
}

.photo-exif {
  margin-top: 0.75rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.85rem;
  opacity: 0.75;
}

@media (max-width: 1024px) {
  .series {
    padding: 2.5rem 1rem;
  }

  .series-index {
    padding: 2.5rem 1rem;
  }

  .series-list {
    gap: 2.5rem;
  }

  .series-thumb {
    margin-bottom: 0.75rem;
  }

  .series-thumb img {
    width: 100%;
    height: auto;
    max-height: none;
  }
}

@media (max-width: 640px) {
  .series {
    padding: 1.5rem 1rem;
  }

  .series-index {
    padding: 1.5rem 1rem;
  }

  .series-list {
    gap: 1rem;
  }

  .series-thumb {
    margin-bottom: 0.5rem;
  }

  .series-thumb img {
    width: 100%;
    height: auto;
    max-height: none;
  }
}

footer {
  text-align: center;
  padding: 1.5rem 0;
  opacity: .6;
  font-size: .9rem;
}

.site-header {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem;
}

.site-header-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.site-branding a {
  font-size: 1.43rem;
  font-weight: 600;
  text-decoration: none;
  color: inherit;
}

.site-tagline {
  margin: 0.1rem 0 0 0;
  font-size: 0.95rem;
  opacity: 0.75;
}

.theme-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
}

.theme-switch__btn {
  --btn-bg: #ffffff;
  position: relative;
  appearance: none;
  border: 1px solid #d0d0d0;
  background: var(--btn-bg);
  color: #111;
  width: 28px;
  height: 28px;
  padding: 0;
  border-radius: 6px;
  font-size: 0;
  cursor: pointer;
  transition: all 0.15s ease;
}

.theme-switch__btn[data-bg-theme="white"] {
  --btn-bg: #ffffff;
}

.theme-switch__btn[data-bg-theme="grey"] {
  --btn-bg: #d6d6d6;
}

.theme-switch__btn[data-bg-theme="black"] {
  --btn-bg: #0f0f0f;
  color: #f0f0f0;
}

.theme-switch__btn:hover {
  border-color: #a0a0a0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.theme-switch__btn.is-active {
  border-color: #666;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.08);
}

.theme-switch__btn.is-active::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  transform: translate(-50%, -50%);
}

body[data-bg-theme="black"] .theme-switch__btn {
  border-color: #3a3a3a;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.05);
}

body[data-bg-theme="black"] .theme-switch__btn.is-active {
  border-color: #5a5a5a;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.12);
}
