/* Ancestor Stories — public landing + per-story pages */
.as-wrap { max-width: 1100px; margin: 0 auto; }

/* Hero row: Oaks quote box (left) + featured story (right) */
.as-hero-row { display: flex; gap: 16px; align-items: stretch; margin: 0 0 22px; }
.as-oaks {
  flex: 0 0 46%; background: rgba(255,255,255,.72); border: 1px solid rgba(120,100,70,.18);
  border-radius: 12px; padding: 9px 16px; box-shadow: 0 4px 16px rgba(60,45,25,.07);
  display: flex; flex-direction: column; justify-content: center;
}
.as-oaks blockquote { margin: 0; }
.as-oaks blockquote p { font-family: 'Playfair Display', Georgia, serif; font-style: italic; font-size: 1.3rem; line-height: 1.32; color: #3a2f22; margin: 0 0 .2rem; }
.as-oaks blockquote p strong { font-style: normal; }
.as-oaks blockquote footer { font-family: 'Lora', Georgia, serif; font-size: .7rem; color: #6b5d49; }
.as-oaks__purpose { font-family: 'Lora', Georgia, serif; font-size: .99rem; color: #4a3f30; margin: .25rem 0 0; white-space: nowrap; }

.as-featured {
  flex: 1; background: #fff; border: 2px solid #cbb884; border-radius: 12px;
  padding: 10px 20px; box-shadow: 0 4px 16px rgba(60,45,25,.07); display: flex; flex-direction: column; justify-content: center;
}
.as-featured__tag { align-self: flex-start; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: #7a5a1e; background: #f6edd6; padding: 3px 10px; border-radius: 11px; }
.as-featured h2 { font-family: 'Playfair Display', Georgia, serif; font-size: 1.45rem; color: #3a2f22; margin: 6px 0 5px; }
.as-featured h2 a { color: inherit; text-decoration: none; }
.as-featured__hook { font-family: 'Lora', Georgia, serif; font-size: .92rem; line-height: 1.45; color: #4a3f30; margin: 4px 0 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.as-readlink { align-self: flex-start; font-family: 'Lora', Georgia, serif; font-weight: 600; font-size: .88rem; color: #3a5e16; text-decoration: none; }

.as-pillrow { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0; }
.as-pill { font-size: 10.5px; font-weight: 700; padding: 3px 9px; border-radius: 11px; }

.as-h { font-family: 'Playfair Display', Georgia, serif; font-size: 1.5rem; color: #3a2f22; margin: 36px 0 16px; }
.as-cat-header { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin: 36px 0 16px; }
.as-cat-header .as-h { margin: 0; }

.as-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; align-items: start; }
.as-tile { background: #fff; border: 1px solid #e9e4d6; border-radius: 12px; padding: 18px 20px; box-shadow: 0 3px 12px rgba(60,45,25,.05); }
.as-tile__head { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; text-decoration: none; color: inherit; }
.as-tile__head:hover .as-tile__name { text-decoration: underline; }
.as-tile__icon { font-size: 1.2rem; }
.as-tile__name { font-family: 'Playfair Display', Georgia, serif; font-weight: 600; font-size: 1.1rem; color: #3a2f22; }
.as-tile__desc { font-family: 'Lora', Georgia, serif; font-size: .85rem; color: #6b5d49; margin: 0 0 10px; }
.as-tile__list { list-style: none; padding: 0; margin: 0 0 10px; }
.as-tile__list li { font-family: 'Lora', Georgia, serif; font-size: .92rem; line-height: 1.7; position: relative; padding-left: 14px; }
.as-tile__list li::before { content: "•"; position: absolute; left: 2px; color: #b9892f; }
.as-tile__list a { color: #3a5e16; text-decoration: none; }
.as-tile__list a:hover { text-decoration: underline; }
.as-tile__empty { color: #9a8e76; font-style: italic; }
.as-tile__soon { font-family: 'Lora', Georgia, serif; font-size: .85rem; color: #9a8e76; font-style: italic; margin: 4px 0 8px; }
.as-tile__more { font-size: .85rem; color: #7a5a1e; font-weight: 600; text-decoration: none; }

.as-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.as-chip { font-family: 'Lora', Georgia, serif; font-size: .85rem; padding: 5px 14px; border: 1px solid #d9cdae; border-radius: 16px; background: #fff; color: #5a4a30; cursor: pointer; }
.as-chip.is-on { background: #3a5e16; color: #fff; border-color: #3a5e16; }

.as-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.as-card { display: block; background: #fff; border: 1px solid #e9e4d6; border-radius: 12px; padding: 18px 20px; text-decoration: none; box-shadow: 0 3px 12px rgba(60,45,25,.05); }
.as-card:hover { border-color: #cbb884; }
.as-card h3 { font-family: 'Playfair Display', Georgia, serif; font-size: 1.2rem; color: #3a2f22; margin: 0 0 6px; }
.as-card p { font-family: 'Lora', Georgia, serif; font-size: .92rem; line-height: 1.55; color: #4a3f30; margin: 0 0 10px; }

.as-empty { font-family: 'Lora', Georgia, serif; color: #6b5d49; font-style: italic; }
.as-share { text-align: center; margin: 40px 0 12px; }
.as-share__btn { display: inline-block; font-family: 'Lora', Georgia, serif; font-weight: 600; background: #3a5e16; color: #fff; padding: 10px 24px; border-radius: 24px; text-decoration: none; }

/* Story page */
.as-back { display: inline-block; margin: 0 0 16px; font-family: 'Lora', Georgia, serif; color: #3a5e16; text-decoration: none; }
.as-cathead { display: flex; align-items: center; gap: 10px; margin: 0 0 4px; }
.as-cathead h1 { font-family: 'Playfair Display', Georgia, serif; font-size: 1.9rem; color: #3a2f22; margin: 0; }
.as-cathead .as-tile__icon { font-size: 1.6rem; }
.as-catdesc { font-family: 'Lora', Georgia, serif; color: #6b5d49; margin: 0 0 18px; }
.as-full { max-width: 760px; margin: 0 auto; }
.as-full h1 { font-family: 'Playfair Display', Georgia, serif; font-size: 2.1rem; color: #3a2f22; margin: 0 0 10px; }
.as-full__body { font-family: 'Lora', Georgia, serif; font-size: 1.12rem; line-height: 1.75; color: #2f2a22; margin-top: 14px; }
.as-full__body p { margin: 0 0 1.1rem; }
.as-full__body blockquote { margin: 1.1rem 0; padding: 2px 0 2px 18px; border-left: 3px solid #cdbf9c; font-style: italic; color: #4a3f30; }
.as-full__body sup { font-size: .72em; color: #b9892f; font-weight: 700; }
.as-refs { margin-top: 28px; padding-top: 16px; border-top: 1px dashed #e0d8c4; }
.as-refs h3 { font-size: 11px; text-transform: uppercase; letter-spacing: .6px; color: #8a7a58; margin: 0 0 10px; }
.as-refs ol { margin: 0; padding-left: 22px; }
.as-refs li { font-family: 'Lora', Georgia, serif; font-size: .82rem; line-height: 1.55; color: #4a443a; margin-bottom: 8px; }
.as-refs cite { font-style: italic; }

.as-media { margin: 22px 0; padding: 14px 16px; background: #faf7ef; border: 1px solid #ece3cf; border-radius: 10px; }
.as-media__row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.as-media__label { font-family: 'Lora', Georgia, serif; font-size: .9rem; color: #5a4a30; font-weight: 600; }
.as-media__audio { height: 34px; max-width: 320px; }
.as-media__lyrics { display: inline-block; margin-top: 10px; font-size: .85rem; color: #3a5e16; font-weight: 600; text-decoration: none; }
.as-media__note { font-size: .75rem; color: #8a7a58; margin: 8px 0 0; }

.as-previewbar { background: #fbf3df; border: 1px solid #e4d3a6; border-left: 5px solid #b9892f; border-radius: 8px; padding: 8px 14px; margin: 0 0 20px; font-family: 'Lora', Georgia, serif; font-size: .82rem; color: #6b4f15; }

@media (max-width: 760px) {
  .as-hero-row { flex-direction: column; }
  .as-oaks { flex: 1 1 auto; }
}

/* Share a Story form */
.as-form { max-width: 760px; margin: 0 auto; }
.as-form__intro { font-family: 'Lora', Georgia, serif; color: #4a3f30; line-height: 1.65; margin: 0 0 20px; }
.as-guide { background: #faf7ef; border: 1px solid #ece3cf; border-radius: 10px; padding: 14px 18px; margin: 0 0 24px; font-family: 'Lora', Georgia, serif; font-size: .9rem; color: #4a3f30; line-height: 1.55; }
.as-guide h3 { font-family: 'Playfair Display', Georgia, serif; font-size: 1.1rem; margin: 0 0 8px; color: #3a2f22; }
.as-guide ul { margin: 6px 0; padding-left: 20px; }
.as-guide li { margin-bottom: 4px; }
.as-guide code { background: #fff; border: 1px solid #ece3cf; border-radius: 4px; padding: 1px 5px; font-size: .85em; }
.as-field { margin: 0 0 18px; }
.as-field label.as-lbl { display: block; font-family: 'Lora', Georgia, serif; font-weight: 600; color: #3a2f22; margin: 0 0 4px; }
.as-field .as-hint { display: block; font-weight: 400; font-size: .82rem; color: #6b5d49; margin: 2px 0 6px; }
.as-field input[type=text], .as-field input[type=email], .as-field textarea {
  width: 100%; box-sizing: border-box; font: inherit; font-family: 'Lora', Georgia, serif; font-size: 1rem;
  padding: 9px 12px; border: 1px solid #d9cdae; border-radius: 8px; background: #fff; color: #2f2a22;
}
.as-field textarea { min-height: 150px; resize: vertical; line-height: 1.5; }
.as-cats-choose { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.as-cats-choose label { display: inline-flex; align-items: center; gap: 6px; font-family: 'Lora', Georgia, serif; font-weight: 400; color: #3a2f22; }
.as-req { color: #a3402e; }
.as-submitrow { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.as-submit { font-family: 'Lora', Georgia, serif; font-weight: 600; background: #3a5e16; color: #fff; border: none; padding: 11px 28px; border-radius: 24px; cursor: pointer; font-size: 1rem; }
.as-submit:disabled { opacity: .5; cursor: default; }
.as-formstatus { font-family: 'Lora', Georgia, serif; font-size: .9rem; color: #a3402e; }

.as-modal-bg { position: fixed; inset: 0; background: rgba(40,30,15,.45); display: flex; align-items: center; justify-content: center; z-index: 1000; padding: 20px; }
.as-modal { background: #fff; border-radius: 14px; padding: 28px 32px; max-width: 460px; text-align: center; box-shadow: 0 10px 40px rgba(0,0,0,.25); }
.as-modal h2 { font-family: 'Playfair Display', Georgia, serif; color: #3a2f22; margin: 0 0 10px; }
.as-modal p { font-family: 'Lora', Georgia, serif; color: #4a3f30; line-height: 1.6; margin: 0 0 18px; }
.as-modal__btns { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.as-modal__btn { font-family: 'Lora', Georgia, serif; font-weight: 600; background: #3a5e16; color: #fff; border: none; padding: 9px 22px; border-radius: 22px; cursor: pointer; text-decoration: none; display: inline-block; }
.as-modal__btn--alt { background: #fff; color: #3a5e16; border: 1px solid #cbb884; }

/* Ancestor Story photo (Mike/Sage, 2026-07-20). Matches the page's existing
   parchment/manuscript palette and the .as-media block's proportions. */
.as-photo { float: right; width: 42%; margin: 0 0 14px 20px; }
.as-photo img { width: 100%; display: block; border-radius: 10px; border: 1px solid #ece3cf; }
.as-photo__cap { font-family: 'Lora', Georgia, serif; font-size: .78rem; font-style: italic;
  color: #8a7a58; margin: 6px 2px 0; line-height: 1.4; }
@media (max-width: 760px) {
  .as-photo { float: none; width: 100%; margin: 0 0 16px; }
}
