/* ============================================================
   AUNTIE KARMA PRESENTS — house style
   Teleserye drama: deep red, gold seal, cream paper.
   Mobile-first, big type, whole-card tap targets, no JS.
   ============================================================ */

:root {
  --drama: #a50f2d;        /* teleserye red */
  --drama-dark: #6e0a1e;
  --gold: #c9971c;
  --gold-soft: #e9c96a;
  --ink: #2a211d;
  --ink-soft: #5d5049;
  --paper: #fdf8ef;
  --card: #ffffff;
  --radius: 14px;
  --shadow: 0 2px 10px rgba(42, 33, 29, 0.12);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Lora", Georgia, serif;
  font-size: 20px;
  line-height: 1.65;
}

a { color: inherit; text-decoration: none; }

.wrap {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 16px 64px;
}

/* ---------- masthead ---------- */

.masthead {
  background: var(--drama);
  background: linear-gradient(160deg, var(--drama) 0%, var(--drama-dark) 100%);
  color: #fff;
  text-align: center;
  padding: 26px 16px;
  border-bottom: 5px solid var(--gold);
}

.masthead-logo {
  display: block;
  width: 64px;
  height: 64px;
  margin: 0 auto 14px;
  border-radius: 50%;
  /* box-shadow: 0 3px 0 rgba(0,0,0,0.2); */
  transition: filter 0.12s ease, transform 0.12s ease;
}

.masthead-logo img {
  display: block;
  width: 100%;
  height: 100%;
}

.masthead-logo:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.masthead-logo:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 4px;
}

.masthead .kicker {
  font-family: "Anton", "Arial Narrow", sans-serif;
  font-size: 15px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin: 0 0 6px;
}

.masthead h1 {
  font-family: "Anton", "Arial Narrow", sans-serif;
  font-size: clamp(40px, 9vw, 62px);
  line-height: 1.02;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  text-shadow: 0 3px 0 rgba(0,0,0,0.25);
}

.masthead .tagline {
  font-style: italic;
  font-size: 17px;
  margin: 10px 0 0;
  color: #f6e9d7;
}

/* ---------- story grid ---------- */

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

@media (min-width: 560px) {
  .grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 920px) {
  .grid { grid-template-columns: 1fr 1fr 1fr; }
}

.wrap-wide { max-width: 1100px; }

.story-card {
  display: block;
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(42,33,29,0.08);
  transition: transform 0.12s ease;
}

.story-card:active { transform: scale(0.985); }

/* responsive story-card image */
.card-art {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: #e8dfd1;
}


.card-body { padding: 16px 18px 18px; }

.card-title {
  font-family: "Oswald", "Arial Narrow", sans-serif;
  font-weight: 600;
  font-size: 22px;
  line-height: 1.24;
  margin: 0 0 10px;
  color: var(--drama-dark);
}

.card-meta {
  font-family: -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 14.5px;
  color: var(--ink-soft);
  display: flex;
  gap: 0;
  flex-wrap: nowrap;
}

.card-meta .yes { color: var(--fb-blue); font-weight: 700; }

.card-meta-line { white-space: nowrap; }

.card-promise-short { display: none; }

@media (min-width: 560px) and (max-width: 1099px) {
  .card-meta { font-size: 12.5px; }
  .card-promise-long { display: none; }
  .card-promise-short { display: inline; }
}

.read-btn {
  display: inline-block;
  margin-top: 12px;
  background: var(--drama);
  color: #fff;
  font-family: "Anton", "Arial Narrow", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 15px;
  padding: 9px 16px;
  border-radius: 999px;
}

/* ---------- story page ---------- */

.story-hero {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  margin-top: 24px;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: #e8dfd1;
  box-shadow: var(--shadow);
}

.story-title {
  font-family: "Oswald", "Arial Narrow", sans-serif;
  font-weight: 600;
  font-size: clamp(28px, 6.5vw, 40px);
  line-height: 1.18;
  color: var(--drama-dark);
  margin: 22px 0 6px;
}

.story-meta {
  font-family: -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 15px;
  color: var(--ink-soft);
  margin-bottom: 26px;
}

.story-meta .yes { color: var(--fb-blue); font-weight: 700; }

.story-byline {
  font-size: 14px;
  font-weight: 700;
}

.story-byline .yes {
  color: inherit;
  font-weight: inherit;
}

.review-note {
  max-width: 680px;
  margin: 28px auto;
  text-align: center;
}

.story p { margin: 0 0 1.15em; }

.story hr {
  height: 1.25rem;
  margin: 2.2rem 0;
  overflow: visible;
  border: 0;
  text-align: center;
}

.story hr::after {
  content: "✦  ✦  ✦";
  position: relative;
  top: -0.25rem;
  color: var(--gold);
  font-size: 18px;
  letter-spacing: 0.35em;
}

/* ---------- multi-part story navigation ---------- */

.story[data-story-parts] h2 {
  margin: 2.2rem 0 1.2rem;
  color: var(--drama-dark);
  font-family: "Oswald", "Arial Narrow", sans-serif;
  font-size: clamp(22px, 4.5vw, 28px);
  line-height: 1.25;
  text-align: center;
}

.story[data-story-parts] h2::before {
  content: "✦  ✦  ✦";
  display: block;
  margin-bottom: 1rem;
  color: var(--gold);
  font-family: Georgia, serif;
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 0.35em;
}

.story-part-pagination {
  display: grid;
  grid-template-areas:
    "indicator"
    "next"
    "previous";
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  justify-items: center;
  gap: 10px;
  margin: 28px 0 6px;
  padding-top: 20px;
  border-top: 1px solid rgba(42, 33, 29, 0.1);
}

.story-part[hidden] { display: none; }

[data-after-story-parts][hidden] { display: none; }

.part-indicator {
  grid-area: indicator;
  color: var(--ink-soft);
  font-family: "Oswald", "Arial Narrow", sans-serif;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
}

.part-button {
  width: max-content;
  max-width: 100%;
  padding: 9px 14px;
  border: 2px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  font-family: "Oswald", "Arial Narrow", sans-serif;
  font-size: 14px;
  line-height: 1.25;
}

.part-button.previous {
  grid-area: previous;
  justify-self: center;
  background: transparent;
  color: var(--ink-soft);
  font-size: 13px;
  padding: 3px 10px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.part-button.previous:disabled {
  visibility: hidden;
}

.part-button.next {
  grid-area: next;
  justify-self: center;
  width: min(100%, 420px);
  padding: 14px 22px;
  background: var(--gold);
  color: #fff;
  border-color: var(--gold);
  box-shadow: var(--shadow);
  font-family: "Anton", "Arial Narrow", sans-serif;
  font-size: 18px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.part-button.next:hover { filter: brightness(1.08); }

.part-button:focus-visible,
.story[data-story-parts]:focus-visible,
.story[data-story-parts] h2:focus-visible {
  outline: 3px solid var(--fb-blue);
  outline-offset: 2px;
}

/* ---------- related stories seal ---------- */

.related-stories {
  margin-top: 52px;
  background: #fff;
  border: 3px solid var(--gold);
  border-radius: var(--radius);
  padding: 30px 22px 22px;
  position: relative;
  box-shadow: var(--shadow);
}

.related-stories::before {
  content: "★";
  position: absolute;
  top: -23px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold);
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  box-shadow: var(--shadow);
}

.related-stories h2 {
  font-family: "Anton", "Arial Narrow", sans-serif;
  text-transform: uppercase;
  text-align: center;
  color: var(--gold);
  letter-spacing: 0.14em;
  font-size: 24px;
  margin: 6px 0 20px;
}

.related-story-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.related-story-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: var(--paper);
  color: var(--ink-soft);
  font-family: "Lora", Georgia, serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
}

.related-story-link:hover {
  border-color: var(--gold);
  background: #fff8e5;
}

.related-story-link:focus-visible {
  outline: 3px solid var(--fb-blue);
  outline-offset: 2px;
}

.related-story-arrow {
  flex: 0 0 auto;
  color: var(--gold);
  font-size: 22px;
}

/* ---------- footer nav ---------- */

.more {
  display: block;
  text-align: center;
  margin: 42px auto 0;
  background: var(--drama);
  color: #fff;
  font-family: "Anton", "Arial Narrow", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 18px;
  padding: 15px 22px;
  border-radius: 999px;
  max-width: 340px;
  box-shadow: var(--shadow);
}

.site-footer {
  text-align: center;
  font-size: 15px;
  font-style: italic;
  color: var(--ink-soft);
  margin-top: 46px;
}
