:root {
  color-scheme: dark;
  --bg: #0e0d0b;
  --panel: #171512;
  --panel-2: #211d18;
  --text: #eee7dc;
  --muted: #b9aa98;
  --soft: #8e7e69;
  --line: #373026;
  --accent: #d55f38;
  --accent-2: #9dc5bb;
  --max: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.55;
}

a {
  color: inherit;
  text-decoration-color: rgba(213, 95, 56, 0.55);
  text-underline-offset: 0.18em;
}

a:hover {
  color: #fff8ef;
  text-decoration-color: var(--accent);
}

.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(14, 13, 11, 0.92);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(12px);
}

.nav {
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 13px;
  letter-spacing: 0;
  text-transform: uppercase;
  color: #f3eadc;
}

.nav-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 13px;
  color: var(--muted);
}

.hero {
  min-height: 58vh;
  display: grid;
  align-items: end;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(14, 13, 11, 0.08), rgba(14, 13, 11, 0.96)),
    var(--hero-image, linear-gradient(135deg, #211d18, #0e0d0b));
  background-size: cover;
  background-position: center;
}

.hero-inner {
  max-width: var(--max);
  width: 100%;
  margin: 0 auto;
  padding: 96px 20px 40px;
}

.kicker,
.meta,
.eyebrow {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 12px;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--accent-2);
}

h1,
h2,
h3 {
  letter-spacing: 0;
  font-weight: 400;
  line-height: 1.05;
}

h1 {
  max-width: 780px;
  margin: 12px 0;
  font-size: clamp(42px, 8vw, 90px);
}

h2 {
  margin: 0 0 18px;
  font-size: 32px;
}

h3 {
  margin: 0 0 8px;
  font-size: 22px;
}

.lede {
  max-width: 680px;
  color: #d9cdbd;
  font-size: 19px;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 42px 20px;
}

.intro-band {
  max-width: 820px;
  margin-bottom: 46px;
  color: #ded2c2;
  font-size: 21px;
}

.intro-band p {
  margin: 0 0 1em;
}

.page-note {
  max-width: 700px;
  margin: -4px 0 24px;
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 15px;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 32px;
  align-items: start;
}

.filters,
.side-note {
  border-top: 1px solid var(--line);
  padding-top: 18px;
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 14px;
}

.filter-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.filter-list a,
.button-link {
  display: inline-block;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 7px 10px;
  background: #15130f;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 13px;
  text-decoration: none;
}

.archive-list {
  display: grid;
  gap: 14px;
}

.archive-item {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr) 88px;
  gap: 20px;
  padding: 20px 18px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(23, 21, 18, 0.55);
}

.archive-item .date,
.archive-item .type {
  color: var(--soft);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 13px;
}

.archive-item .title {
  font-size: 21px;
}

.archive-item .source {
  margin-top: 4px;
  color: var(--soft);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 12px;
  overflow-wrap: anywhere;
}

.post {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 20px 80px;
}

.post h1 {
  font-size: 1.15rem;
}

.post-meta {
  margin: 18px 0 34px;
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 14px;
}

.post-body {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--muted, #9a938a);
  font-style: italic;
}

.post-body p {
  margin: 0 0 0.8em;
}

.post-body blockquote {
  margin: 1.4em 0;
  padding-left: 18px;
  border-left: 2px solid var(--accent);
  color: #dacdbc;
}

.process-list {
  display: grid;
  gap: 24px;
  margin: 34px 0 0;
}

.process-list section {
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.process-list h2 {
  margin-bottom: 10px;
  font-size: 26px;
}

.post-body pre {
  overflow-x: auto;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #15130f;
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
}

.study-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 34px 28px;
}

.study-tile {
  min-width: 0;
}

.study-tile-link {
  display: grid;
  aspect-ratio: 16 / 9;
  min-height: 280px;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #15130f;
  text-decoration: none;
}

.study-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.92) contrast(1.03);
  transition: transform 180ms ease, filter 180ms ease;
}

.study-tile-link:hover img {
  transform: scale(1.025);
  filter: saturate(1) contrast(1.06);
}

.study-tile-link::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(14, 13, 11, 0.08), rgba(14, 13, 11, 0.88));
}

.study-tile-text {
  position: relative;
  z-index: 1;
  align-self: end;
  display: grid;
  gap: 8px;
  padding: 24px;
}

.study-tile-title {
  max-width: 680px;
  font-size: 34px;
  line-height: 1.05;
}

.study-tile-note {
  max-width: 520px;
  color: #dfd2c1;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 14px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 0 0 20px;
}

.feature-card {
  border-top: 1px solid var(--line);
  padding-top: 16px;
  min-width: 0;
}

.feature-card h3 {
  margin: 8px 0 10px;
}

.feature-card p {
  margin: 0;
  color: var(--soft);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 12px;
  overflow-wrap: anywhere;
}

.home-sections {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 34px;
  margin-top: 42px;
}

.media-item {
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.media-item img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: #15130f;
}

.media-item .caption {
  margin-top: 8px;
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 13px;
}

.image-page img {
  display: block;
  width: min(100%, 740px);
  aspect-ratio: 16 / 9;
  margin: 0 auto;
  object-fit: contain;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: #15130f;
}

.study-page {
  max-width: 1080px;
  margin: 0 auto;
  padding: 48px clamp(18px, 4vw, 42px) 96px;
}

.study-page h1 {
  max-width: 820px;
  font-size: clamp(40px, 7vw, 82px);
}

.study-image {
  display: block;
  width: 100%;
  margin: 0 0 16px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #15130f;
}

.study-description {
  margin: 14px 0 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--muted, #9a938a);
  font-style: italic;
}

.study-content {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--muted, #9a938a);
  font-style: italic;
}

.study-content p {
  margin: 0 0 0.8em;
}

.study-content h2,
.study-content h3 {
  font-size: 1.15rem;
  margin: 1.2em 0 0.5em;
  font-style: normal;
  color: var(--text, #d4cec4);
}

.study-piece-link {
  margin: 0 0 10px;
  font-size: 1.15rem;
}

.study-piece-link a {
  color: var(--accent-2, #9dc5bb);
  text-decoration: underline;
  text-decoration-color: rgba(157, 197, 187, 0.4);
  text-underline-offset: 0.18em;
}

.study-piece-link a:hover {
  color: #fff8ef;
  text-decoration-color: var(--accent);
}

.study-piece-link a:hover {
  text-decoration: underline;
}

.entry-description {
  margin: 6px 0 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--muted, #9a938a);
  font-style: italic;
}

.archive-item-wide {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: 16px;
  align-items: start;
}

.study-section {
  max-width: 780px;
  margin: 58px auto 0;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}

.study-section h2 {
  margin-bottom: 16px;
  font-size: 1.15rem;
}

.study-section audio {
  display: block;
  width: 100%;
  margin: 0 0 22px;
  accent-color: var(--accent);
}

.footer {
  border-top: 1px solid var(--line);
  color: var(--soft);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 13px;
}

@media (max-width: 780px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
  }

  .split {
    grid-template-columns: 1fr;
  }

  .archive-item {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .feature-grid,
  .home-sections,
  .study-grid {
    grid-template-columns: 1fr;
  }

  .study-tile-link {
    min-height: 0;
  }

  .study-tile-title {
    font-size: 28px;
  }

  .hero {
    min-height: 52vh;
  }

  .intro-band {
    font-size: 18px;
  }
}

@media (max-width: 560px) {
  .study-grid {
    gap: 30px;
    justify-items: center;
  }

  .study-tile {
    width: min(100%, 320px);
  }

  .study-tile-text {
    gap: 6px;
    padding: 14px;
  }

  .study-tile-title {
    font-size: 22px;
    line-height: 1.08;
  }

  .study-tile-note {
    display: none;
  }
}

.site-footer {
  padding: 24px 20px;
  text-align: center;
  border-top: 1px solid var(--border, #2a2520);
  font-size: 0.85rem;
  color: var(--muted, #9a938a);
}

.site-footer a {
  color: var(--muted, #9a938a);
  text-decoration: underline;
}

.site-footer a:hover {
  color: var(--text, #d4cec4);
}

.footer-name {
  opacity: 0.7;
}


/* Comments */
.comments-section {
  max-width: 780px;
  margin: 58px auto 0;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}

.comments-section h2 {
  margin-bottom: 16px;
  font-size: 1.15rem;
}

.comments-list {
  margin-bottom: 24px;
}

.comment {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.comment:last-child {
  border-bottom: none;
}

.comment-meta {
  display: flex;
  gap: 12px;
  align-items: baseline;
  margin-bottom: 6px;
}

.comment-name {
  font-size: 0.95rem;
  font-weight: bold;
}

.comment-date {
  font-size: 0.8rem;
  color: var(--soft);
}

.comment-body {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--muted);
  font-style: italic;
}

.comments-empty {
  color: var(--soft);
  font-size: 0.9rem;
  font-style: italic;
}

.comment-form,
.subscribe-form {
  margin-top: 16px;
}

.form-row {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}

.form-row input {
  flex: 1;
  padding: 8px 12px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.95rem;
}

.comment-form textarea {
  width: 100%;
  padding: 8px 12px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.95rem;
  resize: vertical;
  min-height: 80px;
  margin-bottom: 10px;
}

.comment-form button,
.subscribe-form button {
  padding: 8px 20px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.95rem;
  cursor: pointer;
}

.comment-form button:hover,
.subscribe-form button:hover {
  border-color: var(--accent);
}

.form-note {
  margin-top: 8px;
  font-size: 0.9rem;
  color: var(--soft);
}

.form-note.success {
  color: var(--accent-2);
}

.form-note.error {
  color: var(--accent);
}

.honeypot {
  position: absolute;
  left: -9999px;
}

.subscribe-prompt {
  margin-top: 12px;
  font-size: 0.9rem;
  color: var(--accent-2);
}

.subscribe-prompt a {
  text-decoration: underline;
}

/* Subscribe section */
.subscribe-section {
  max-width: 780px;
  margin: 58px auto 0;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}

.subscribe-section h2 {
  margin-bottom: 16px;
  font-size: 1.15rem;
}