:root {
  --paper: #f6f1e5;
  --ink: #1d1a17;
  --muted: #524a42;
  --rule: rgba(29, 26, 23, 0.16);
  --accent: #6b2f2f;

  --measure: 68ch;
  --radius: 10px;

  --display-font: "Seanchlo", "EB Garamond", ui-serif, Georgia, "Times New Roman", Times, serif;
}

* { box-sizing: border-box; }
html, body { height: 100%; }

@font-face {
  font-family: "Seanchlo";
  src:
    url("../fonts/bungc.woff2") format("woff2"),
    url("../fonts/bungc.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "EB Garamond", ui-serif, Georgia, "Times New Roman", Times, serif;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

.siteBg,
.siteBgWash {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.siteBg {
  z-index: 0;
  background-image: var(--site-bg-url);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: 60% 15%;
  opacity: 0.72;
  filter: saturate(0.9) contrast(0.9);
  transform: scale(1.05);
}

.siteBgWash {
  z-index: 1;
  background:
    radial-gradient(900px 520px at 55% 18%, rgba(246, 241, 229, 0.08) 0%, rgba(246, 241, 229, 0.38) 65%, rgba(246, 241, 229, 0.50) 100%),
    linear-gradient(180deg, rgba(246, 241, 229, 0.46) 0%, rgba(246, 241, 229, 0.46) 100%);
}

.wrap {
  position: relative;
  z-index: 2;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
a:hover { color: var(--accent); }

.kicker a,
nav a,
.navRow a {
  font-family: var(--display-font);
  letter-spacing: 0.2px;
  font-weight: 400;
}

.wrap {
  max-width: 1100px;
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 24px 18px 60px;
}

header.siteHeader {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 18px 0 16px;
  border-bottom: 1px solid var(--rule);
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: center;
}

.brand a {
  text-decoration: none;
}

.brandTitle {
  font-size: clamp(30px, 4vw, 44px);
  letter-spacing: 0.2px;
  line-height: 1.1;
  font-family: var(--display-font);
  font-weight: 400;
}

.brandTagline {
  color: var(--muted);
  font-size: 18px;
  font-family: var(--display-font);
  font-weight: 400;
  letter-spacing: 0.2px;
}

main {
  padding-top: 28px;
  flex: 1;
}

.paperPanel {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: clamp(18px, 3vw, 34px);
  margin: 10px auto 26px;
  max-width: calc(var(--measure) + 2 * 34px);
  box-shadow:
    0 1px 0 rgba(29, 26, 23, 0.06),
    0 10px 30px rgba(29, 26, 23, 0.10);
}

@media (max-width: 620px) {
  .paperPanel {
    margin-top: 8px;
    padding: 16px 14px;
  }
}

.prose {
  max-width: var(--measure);
}

.poemBody {
  text-align: center;
}

.poemBody p {
  text-align: center;
}

.kicker {
  color: var(--muted);
  font-style: italic;
  margin: 0 0 8px;
}

.kickerSubhead {
  font-family: var(--display-font);
  font-style: normal;
  letter-spacing: 0.2px;
  font-size: 30px;
  margin-bottom: 14px;
  color: var(--ink);
}

h1, h2, h3 {
  margin: 0 0 14px;
  line-height: 1.15;
  font-family: var(--display-font);
  font-weight: 400;
}

h1 { font-size: clamp(34px, 4vw, 56px); }
h2 { font-size: clamp(26px, 3vw, 36px); }
h3 { font-size: 22px; }

.meta {
  color: var(--muted);
  margin: 8px 0 18px;
}

.authorMeta {
  font-family: var(--display-font);
  font-weight: 400;
  letter-spacing: 0.2px;
}

.subtitle {
  margin: 6px 0 6px;
  font-family: var(--display-font);
  font-weight: 400;
  font-size: 18px;
  letter-spacing: 0.2px;
  color: var(--muted);
}

.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}

@media (min-width: 960px) {
  .grid {
    grid-template-columns: 360px 1fr;
    gap: 36px;
    align-items: start;
  }
}

.cover {
  border: 1px solid var(--rule);
  border-radius: 0;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.25);
}
.cover img {
  display: block;
  width: 100%;
  height: auto;
}

.list {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
  max-width: var(--measure);
}

.listItem {
  padding: 14px 0;
  border-top: 1px solid var(--rule);
}
.listItem:first-child { border-top: 0; }

.homeCards {
  max-width: min(780px, 100%);
}

.homeCards .listItem {
  padding: 16px 16px 14px;
  margin: 12px 0;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow:
    0 1px 0 rgba(29, 26, 23, 0.05),
    0 10px 26px rgba(29, 26, 23, 0.08);
}

.homeCards .listItem:first-child {
  border-top: 1px solid var(--rule);
}

.homeCards .listTitle {
  margin-bottom: 6px;
}

.homeCards .listTitle a {
  text-decoration: none;
}

.homeCards .listTitle a:hover {
  text-decoration: underline;
}

.listTitle {
  font-size: 22px;
  margin: 0 0 4px;
}

.listTitle a {
  font-family: var(--display-font);
  font-weight: 400;
}

.listMeta {
  color: var(--muted);
  margin: 0;
}

.siteHeaderRight {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
}

.homeBtn {
  display: inline-block;
  padding: 8px 12px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.35);
  font-family: var(--display-font);
  font-weight: 400;
  letter-spacing: 0.2px;
}

.homeBtn:hover {
  border-color: rgba(107, 47, 47, 0.5);
}

.articleColumn {
  max-width: var(--measure);
  margin: 0 auto;
}

.abairPlayer {
  margin: 0 0 14px;
  padding: 12px 14px;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.35);
}

.navRow {
  display: flex;
  gap: 14px;
  justify-content: space-between;
  border-top: 1px solid var(--rule);
  margin-top: 30px;
  padding-top: 18px;
  max-width: var(--measure);
  margin-left: auto;
  margin-right: auto;
}

footer.siteFooter {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 16px;
}

.siteFooterRow {
  margin: 0;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  width: 100%;
}

.siteFooterRow > span {
  flex: 1 1 0;
}

.siteFooterRow > span:nth-child(1) { text-align: left; }
.siteFooterRow > span:nth-child(2) { text-align: center; }
.siteFooterRow > span:nth-child(3) { text-align: right; }

@media (max-width: 780px) {
  .siteFooterRow {
    flex-direction: column;
    align-items: center;
    gap: 6px;
  }
  .siteFooterRow > span { text-align: center; }
}

