:root {
  color-scheme: light;
  font-size: 15px;
  line-height: 1.4;
  font-family: "Iowan Old Style", "Georgia", "Times New Roman", serif;
  --content-width: 640px;
  --layout-width: 840px;
  --column-gap: 48px;
}

* {
  box-sizing: border-box;
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bar-grow {
  from {
    transform: scaleY(0);
  }
  to {
    transform: scaleY(1);
  }
}

body {
  margin: 0;
  background-color: #fbfaf8;
  color: #2c2c2c;
  min-width: var(--layout-width);
}

.container {
  width: var(--layout-width);
  margin-left: max(64px, calc((100vw - var(--layout-width)) / 2));
  margin-right: max(64px, calc((100vw - var(--layout-width)) / 2));
  padding: 0;
}

.masthead {
  padding: 64px 0 48px;
}

.site-footer {
  padding: 40px 0 96px;
}

.site-footer .container {
  text-align: center;
}

.site-title {
  margin: 0;
  font-size: 2.4rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.site-title a {
  color: inherit;
  text-decoration: none;
}

.site-title a:hover,
.site-title a:focus {
  text-decoration: none;
}

[data-anim] {
  opacity: 0;
  transform: translateY(12px);
  animation: fade-up 0.85s ease forwards;
  animation-delay: var(--anim-delay, 0s);
}

.feed {
  width: var(--content-width);
  margin-left: max(64px, calc((100vw - var(--layout-width)) / 2));
  margin-right: max(64px, calc((100vw - var(--layout-width)) / 2));
  padding: 0 0 48px;
}

.home-layout {
  width: var(--layout-width);
  margin-left: max(64px, calc((100vw - var(--layout-width)) / 2));
  margin-right: max(64px, calc((100vw - var(--layout-width)) / 2));
  padding: 0 0 72px;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: var(--column-gap);
  align-items: start;
}

.home-layout .feed {
  width: 100%;
  margin: 0;
  padding: 0 0 64px;
}

.resource-rail {
  display: grid;
  gap: 28px;
  position: static;
  align-self: stretch;
  align-content: start;
}

.resource-card {
  display: grid;
  gap: 14px;
  padding: 0;
  align-content: start;
}

.resource-eyebrow {
  margin: 0;
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(44, 44, 44, 0.54);
}

.resource-title {
  margin: 0;
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: -0.014em;
  line-height: 1.22;
}

.resource-intro {
  margin: 0;
  color: rgba(44, 44, 44, 0.66);
  font-size: 0.9rem;
  line-height: 1.54;
}

.resource-groups {
  display: grid;
  gap: 22px;
  position: relative;
  z-index: 1;
  align-content: start;
}

.resource-group {
  display: grid;
  gap: 12px;
  border-left: 2px solid var(--resource-accent, rgba(44, 44, 44, 0.18));
  padding-left: 18px;
}

.resource-group-title {
  margin: 0;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(44, 44, 44, 0.58);
}

.resource-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.resource-link {
  display: grid;
  gap: 4px;
  padding: 0;
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.resource-link:hover .resource-link-title,
.resource-link:focus .resource-link-title {
  text-decoration: underline;
}

.resource-link-title {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.resource-link-meta {
  font-size: 0.76rem;
  color: rgba(44, 44, 44, 0.58);
  line-height: 1.38;
}

.resource-teaser {
  display: grid;
  gap: 12px;
}

.resource-teaser-label {
  display: block;
  margin: 0;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  color: rgba(44, 44, 44, 0.5);
}

.resource-teaser-copy {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.5;
  color: rgba(44, 44, 44, 0.7);
}

.resource-teaser-list {
  margin: 0;
  padding-left: 1.05em;
  font-size: 0.8rem;
  line-height: 1.48;
  color: rgba(44, 44, 44, 0.6);
  list-style: disc;
}

.resource-teaser-list li {
  margin-bottom: 8px;
}

.resource-teaser-list li:last-child {
  margin-bottom: 0;
}

.resource-teaser-list li::marker {
  color: rgba(44, 44, 44, 0.45);
}

.book-display {
  display: grid;
  gap: 10px;
  align-items: start;
}

.book-cover {
  width: 120px;
  height: auto;
  border-radius: 3px;
}

.book-info {
  display: grid;
  gap: 4px;
}

.book-title {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.3;
  color: #1a1a1a;
}

.book-author {
  margin: 0;
  font-size: 0.8rem;
  color: rgba(44, 44, 44, 0.65);
  line-height: 1.4;
}

.day {
  padding: 14px 0 6px;
  margin-bottom: 28px;
}

.feed > .day:first-of-type {
  padding-top: 0;
}

.day:last-of-type {
  margin-bottom: 0;
  padding-bottom: 0;
}

.day-label {
  margin: 0 0 12px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(44, 44, 44, 0.5);
}

.entry-page .day-label {
  margin: 28px 0 0;
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(44, 44, 44, 0.48);
}

.entry-header {
  display: block;
}

.entry-title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.55;
}

.entry-title-link {
  display: inline;
  color: #1a1a1a;
  text-decoration-line: underline;
  text-decoration-color: rgba(0, 0, 0, 0.14);
  text-decoration-thickness: 0.7px;
  text-underline-offset: 0.4em;
  transition: text-decoration-color 0.28s ease;
}

.entry-title-link:hover,
.entry-title-link:focus {
  text-decoration-color: rgba(0, 0, 0, 0.22);
}

.entry-permalink {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  line-height: 1;
  color: #5f5f5f;
  text-decoration: none;
  border: none;
  background: transparent;
  transition: color 0.2s ease;
  margin-left: 0.5em;
  vertical-align: middle;
  position: relative;
  top: -0.05em;
}

.entry-permalink span {
  display: inline-block;
  width: 10px;
  height: 10px;
  background: currentColor;
  border-radius: 0;
  transform: none;
}

.entry-permalink:hover,
.entry-permalink:focus {
  color: #1a1a1a;
}

.entry {
  display: grid;
  gap: 10px;
  justify-items: start;
  --entry-seq: 0;
  margin-bottom: 28px;
  padding-bottom: 0;
  border-bottom: none;
  animation-delay: calc(var(--anim-delay, 0s) + 0.12s + var(--entry-seq) * 0.1s);
}

.entry > p {
  margin: 0;
  line-height: 1.5;
}

.day > .entry:last-child {
  margin-bottom: 12px;
}

.entry-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.entry-tags li {
  margin: 0;
}

.entry-tags a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 10px;
  border-radius: 999px;
  background: rgba(44, 44, 44, 0.08);
  color: rgba(26, 26, 26, 0.82);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.entry-tags a:hover,
.entry-tags a:focus {
  background: rgba(44, 44, 44, 0.14);
  color: #1a1a1a;
}

blockquote {
  position: relative;
  margin: 0;
  max-width: 540px;
  padding: 12px 18px 12px 20px;
  background: transparent;
  border-radius: 2px;
  font-size: 1rem;
  font-style: italic;
  color: #242424;
  text-align: left;
  opacity: 0;
  transform: translateY(8px);
  animation: fade-up 0.95s ease forwards;
  animation-delay: calc(var(--anim-delay, 0s) + 0.22s + var(--entry-seq) * 0.1s);
}

blockquote ul {
  margin: 0;
  padding-left: 1.25em;
  list-style: disc;
}

blockquote li {
  margin-bottom: 0.45em;
}

blockquote li:last-child {
  margin-bottom: 0;
}

blockquote::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 2px;
  background: rgba(44, 44, 44, 0.18);
  transform: scaleY(0);
  transform-origin: top;
  animation: bar-grow 0.9s ease forwards;
  animation-delay: calc(var(--anim-delay, 0s) + 0.22s + var(--entry-seq) * 0.1s);
}

blockquote p {
  margin: 0 0 0.58em;
  line-height: 1.5;
}

blockquote p:last-child {
  margin-bottom: 0;
}

.entry-video {
  width: 100%;
  margin: 4px 0 0;
  display: grid;
  gap: 12px;
}

.entry-video-frame {
  position: relative;
  background: transparent;
  border-radius: 0;
  overflow: hidden;
}

.entry-video-player {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #000;
  border: none;
  border-radius: 0;
  outline: none;
}

.entry-video-player:focus-visible {
  outline: none;
}

.entry-video-preview {
  position: absolute;
  bottom: 18px;
  left: 18px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 20px 10px 18px;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: #0a0a0a;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.24s ease, transform 0.24s ease, background 0.24s ease,
    color 0.24s ease;
}

.entry-video[data-ready="true"] .entry-video-preview {
  opacity: 1;
  transform: translateY(0);
}

.entry-video:not([data-ready="true"]) .entry-video-preview,
.entry-video:not([data-ready="true"]) .entry-video-toggle {
  pointer-events: none;
}

.entry-video-preview:hover,
.entry-video-preview:focus {
  background: rgba(255, 255, 255, 0.98);
}

.entry-video-preview:focus {
  outline: 2px dotted rgba(10, 10, 10, 0.66);
  outline-offset: 3px;
}

.entry-video-preview-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
}

.entry-video-icon {
  display: inline-block;
  transition: opacity 0.22s ease;
}

.entry-video-icon-play {
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 9px solid currentColor;
  opacity: 1;
}

.entry-video-icon-pause {
  position: relative;
  width: 10px;
  height: 10px;
  margin-left: 1px;
  opacity: 0;
}

.entry-video-icon-pause::before,
.entry-video-icon-pause::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 3px;
  border-radius: 1px;
  background: currentColor;
}

.entry-video-icon-pause::before {
  left: 0;
}

.entry-video-icon-pause::after {
  right: 0;
}

.entry-video-preview.is-playing .entry-video-icon-play {
  opacity: 0;
}

.entry-video-preview.is-playing .entry-video-icon-pause {
  opacity: 1;
}

.entry-video-toggle {
  position: absolute;
  bottom: 18px;
  right: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: none;
  border-radius: 4px;
  background: rgba(22, 22, 22, 0.46);
  color: rgba(255, 255, 255, 0.92);
  cursor: pointer;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.24s ease, transform 0.24s ease,
    background 0.24s ease, color 0.24s ease;
}

.entry-video[data-ready="true"] .entry-video-toggle {
  opacity: 1;
  transform: translateY(0);
}

.entry-video-toggle:hover,
.entry-video-toggle:focus {
  background: rgba(22, 22, 22, 0.75);
}

.entry-video-toggle:focus {
  outline: 2px dotted rgba(255, 255, 255, 0.7);
  outline-offset: 3px;
}

.entry-video-toggle-icon {
  position: relative;
  display: inline-block;
  width: 12px;
  height: 12px;
}

.entry-video-toggle-icon::before,
.entry-video-toggle-icon::after {
  content: "";
  position: absolute;
  display: block;
}

.entry-video[data-playing="false"] .entry-video-toggle-icon::before {
  top: 50%;
  left: 3px;
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 7px solid currentColor;
  transform: translateY(-50%);
}

.entry-video[data-playing="false"] .entry-video-toggle-icon::after {
  width: 0;
  height: 0;
}

.entry-video[data-playing="true"] .entry-video-toggle-icon::before,
.entry-video[data-playing="true"] .entry-video-toggle-icon::after {
  top: 2px;
  bottom: 2px;
  width: 2px;
  border-radius: 1px;
  background: currentColor;
}

.entry-video[data-playing="true"] .entry-video-toggle-icon::before {
  left: 3px;
}

.entry-video[data-playing="true"] .entry-video-toggle-icon::after {
  right: 3px;
}

.entry-video-caption {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.5;
  color: rgba(44, 44, 44, 0.7);
}

.entry-video[data-unmuted="true"] .entry-video-preview {
  background: rgba(36, 36, 36, 0.92);
  color: rgba(255, 255, 255, 0.96);
}

.entry-video[data-controls="true"] .entry-video-preview,
.entry-video[data-controls="true"] .entry-video-toggle {
  display: none;
}

.tag-summary,
.tag-index {
  display: grid;
  gap: 12px;
  margin: 0 0 28px;
}

.tag-heading {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tag-description {
  margin: 0;
  color: rgba(44, 44, 44, 0.62);
  font-size: 0.85rem;
  line-height: 1.5;
}

.tag-nav {
  margin: 0;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tag-nav-link {
  color: rgba(26, 26, 26, 0.74);
  text-decoration: none;
  transition: color 0.2s ease;
}

.tag-nav-link:hover,
.tag-nav-link:focus {
  color: #1a1a1a;
}

.tag-index-list {
  display: grid;
  gap: 10px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.tag-index-list li {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 0.85rem;
}

.tag-index-list a {
  color: #1a1a1a;
  text-decoration: none;
  font-weight: 600;
}

.tag-index-list span {
  color: rgba(44, 44, 44, 0.55);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  blockquote::before {
    transform: scaleY(1);
  }
  .entry-title-link {
    transition: none !important;
  }
}

@media (max-width: 860px) {
  :root {
    font-size: 14px;
    --layout-width: 100%;
    --content-width: 100%;
    --column-gap: 32px;
  }

  body {
    min-width: 0;
    overflow-x: hidden;
  }

  .container,
  .feed,
  .home-layout {
    width: 100%;
    margin: 0 auto;
    padding-left: 24px;
    padding-right: 24px;
  }

  .feed {
    padding-bottom: 48px;
  }

  .home-layout {
    grid-template-columns: 1fr;
    gap: 36px;
    padding-bottom: 56px;
  }

  .home-layout .feed {
    padding: 0;
  }

  .resource-rail {
    order: 2;
  }

  .site-title {
    font-size: 2rem;
  }

  .resource-title {
    font-size: 1.02rem;
    line-height: 1.3;
  }

  .day {
    padding: 18px 0 8px;
    margin-bottom: 32px;
  }

  .day-label {
    font-size: 0.8rem;
    letter-spacing: 0.04em;
  }

  .entry-title {
    font-size: 1.05rem;
    letter-spacing: 0.04em;
    line-height: 1.45;
  }

  .tag-heading {
    font-size: 1rem;
  }
}

@media (max-width: 520px) {
  :root {
    font-size: 13.5px;
  }

  .container,
  .feed,
  .home-layout {
    padding-left: 18px;
    padding-right: 18px;
  }

  .site-title {
    font-size: 1.82rem;
  }

  .resource-title {
    font-size: 1.12rem;
  }

  .entry-title {
    font-size: 1rem;
    letter-spacing: 0.04em;
  }

  .day-label {
    font-size: 0.76rem;
  }
}
