/* Pray for Landon — static site stylesheet */

:root {
  --ink: #2b2e2a;
  --ink-soft: #5a5f57;
  --paper: #faf7f0;
  --paper-raised: #ffffff;
  --line: #e3ddca;
  --moss: #57705a;
  --moss-deep: #3d5240;
  --clay: #a8623f;
  --gold: #b58a3d;
  --radius: 3px;
  --measure: 68ch;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.site-header__inner {
  max-width: 880px;
  margin: 0 auto;
  padding: 1.5rem 1.5rem 1.25rem;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
}

.site-title {
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  margin: 0;
  font-weight: 600;
}

.site-title a {
  color: var(--moss-deep);
  text-decoration: none;
}

.site-nav {
  display: flex;
  gap: 1.5rem;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 0.92rem;
}

.site-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--moss-deep);
  border-bottom-color: var(--moss);
}

.hero {
  position: relative;
  min-height: 190px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  text-align: center;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(218deg, rgba(31, 78, 121, 0.52) 66%, rgba(245, 247, 250, 0.52) 93%);
}
.hero-title {
  position: relative;
  z-index: 1;
  color: #fff;
  margin: 0;
  padding: 1.5rem;
  font-size: 1.6rem;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}
@media (min-width: 700px) {
  .hero { min-height: 400px; }
  .hero-title { font-size: 2.1rem; }
}
@media (min-width: 1000px) {
  .hero { min-height: 750px; }
  .hero-title { font-size: 2.6rem; }
}

main {
  max-width: 880px;
  margin: 0 auto;
  padding: 2.75rem 1.5rem 4rem;
}

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

h1, h2, h3 {
  font-weight: 600;
  color: var(--ink);
  line-height: 1.25;
}

.page-title {
  font-size: 2rem;
  margin: 0 0 0.35rem;
}

.page-kicker {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  text-transform: none;
  color: var(--moss);
  font-size: 0.95rem;
  margin: 0 0 0.75rem;
}

.lede {
  font-size: 1.1rem;
  color: var(--ink-soft);
  max-width: var(--measure);
}

.prose p { margin: 0 0 1.1em; max-width: var(--measure); }
.prose h2 { font-size: 1.35rem; margin: 2rem 0 0.75rem; }
.prose h3 { font-size: 1.15rem; margin: 1.75rem 0 0.6rem; }
.prose ul, .prose ol { max-width: var(--measure); padding-left: 1.3em; margin: 0 0 1.1em; }
.prose li { margin-bottom: 0.4em; }
.prose figure { margin: 1.5rem 0; }
.prose img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
  display: block;
}
.prose a { color: var(--moss-deep); }

.img-row {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
  margin: 1.5rem 0;
}
.img-row img {
  flex: 1 1 220px;
  max-width: 100%;
  border-radius: var(--radius);
}

/* Images inside the home-page story accordion (not nested in .prose) */
.story-body img {
  max-width: 100%;
  width: auto;
  height: auto;
  border-radius: var(--radius);
  display: block;
  margin: 1.1rem 0;
}

/* Donate button */
.btn-donate {
  display: inline-block;
  margin: 0.75rem 0 1.75rem;
  padding: 0.85rem 1.8rem;
  background: var(--moss-deep);
  color: #fff;
  text-decoration: none;
  border-radius: var(--radius);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
  transition: background-color 0.15s ease;
}
.btn-donate:hover { background: #2c3a2f; }
.btn-donate:visited { color: #fff; }

/* Story accordion on the home page */
.story {
  margin-top: 1.5rem;
  border-top: 1px solid var(--line);
}
.story-item {
  border-bottom: 1px solid var(--line);
}
.story-item summary {
  cursor: pointer;
  list-style: none;
  padding: 1.05rem 0.25rem;
  font-size: 1.05rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--ink);
}
.story-item summary::-webkit-details-marker { display: none; }
.story-item summary::after {
  content: "+";
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-weight: 400;
  color: var(--moss);
  font-size: 1.4rem;
  line-height: 1;
  flex-shrink: 0;
}
.story-item[open] summary::after { content: "\2212"; }
.story-item summary:hover { color: var(--moss-deep); }
.story-item .story-body {
  padding: 0 0.25rem 1.35rem;
}
.story-item .story-body p { max-width: var(--measure); }

/* Updates listing */
.update-list { list-style: none; margin: 1.5rem 0 0; padding: 0; }
.update-list li {
  border-top: 1px solid var(--line);
  padding: 1.4rem 0;
}
.update-list li:last-child { border-bottom: 1px solid var(--line); }
.update-list time {
  display: block;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 0.85rem;
  color: var(--moss);
  margin-bottom: 0.3rem;
}
.update-list h2 {
  font-size: 1.3rem;
  margin: 0 0 0.4rem;
}
.update-list a { text-decoration: none; color: inherit; }
.update-list a:hover h2 { color: var(--moss-deep); }
.update-list p { margin: 0; color: var(--ink-soft); max-width: var(--measure); }

/* Post header */
.post-meta {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 0.88rem;
  color: var(--moss);
  margin: 0 0 0.5rem;
}
.post-author { color: var(--ink-soft); }

.post-nav {
  margin-top: 3rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 0.92rem;
}
.post-nav a { color: var(--moss-deep); text-decoration: none; }
.post-nav a:hover { text-decoration: underline; }

.site-footer {
  border-top: 1px solid var(--line);
  padding: 2rem 1.5rem 3rem;
  text-align: center;
  color: var(--ink-soft);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 0.85rem;
}

@media (max-width: 560px) {
  .page-title { font-size: 1.6rem; }
  .site-nav { gap: 1rem; font-size: 0.88rem; }
}
