/*
  MOMOSITAS WRITINGS V1
  Scoped companion stylesheet for writings.html.
  Keeps the existing global MOM style.css intact.
*/

.writings-content {
  padding-top: 2rem;
  padding-bottom: 4rem;
}

.writings-section {
  margin-top: 4rem;
}

.section-kicker {
  font-size: .76rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-weight: 700;
  color: #9f4336;
}

.section-heading {
  display: flex;
  gap: 2rem;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid rgba(16, 48, 81, .18);
  padding-bottom: 1rem;
}

.section-heading h2,
.tiara-gateway h2,
.stay-connected h2 {
  margin: .2rem 0 0;
}

.section-heading > p {
  max-width: 34rem;
  margin: 0;
  opacity: .78;
}

.tiara-gateway {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(220px, .65fr);
  gap: 2rem;
  align-items: center;
  padding: clamp(1.5rem, 4vw, 3rem);
  border: 1px solid rgba(16, 48, 81, .16);
  border-radius: 22px;
  background:
    radial-gradient(circle at 90% 10%, rgba(159, 67, 54, .08), transparent 34%),
    linear-gradient(135deg, rgba(249,244,234,.98), rgba(244,237,224,.9));
  box-shadow: 0 14px 36px rgba(34, 30, 24, .08);
}

.gateway-copy p {
  max-width: 48rem;
  line-height: 1.7;
}

.gateway-note {
  font-size: .93rem;
  opacity: .7;
}

.gateway-mark {
  aspect-ratio: 1 / 1;
  max-width: 260px;
  width: 100%;
  justify-self: end;
  border: 2px solid #9f4336;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transform: rotate(-4deg);
  color: #123452;
  background: rgba(255,255,255,.42);
  box-shadow: inset 0 0 0 8px rgba(159,67,54,.06);
  text-align: center;
}

.gateway-mark span:not(.gateway-star) {
  font-family: Georgia, 'Times New Roman', serif;
  letter-spacing: .15em;
  font-weight: 700;
  font-size: clamp(1.4rem, 3vw, 2.2rem);
}

.gateway-star {
  color: #9f4336;
  font-size: 1.3rem;
  margin-bottom: .25rem;
}

.gateway-mark small {
  letter-spacing: .22em;
  margin-top: .4rem;
  font-size: .68rem;
}

.reading-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.15rem;
}

.reading-card {
  position: relative;
  overflow: hidden;
  min-height: 330px;
  border: 1px solid rgba(16, 48, 81, .14);
  border-radius: 18px;
  background: rgba(255,255,255,.6);
  display: flex;
  flex-direction: column;
  transition: transform .18s ease, box-shadow .18s ease;
}

.reading-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(26, 33, 40, .08);
}

.reading-number {
  position: absolute;
  right: .8rem;
  top: .3rem;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 4.5rem;
  line-height: 1;
  color: rgba(16, 48, 81, .06);
  pointer-events: none;
}

.reading-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.reading-type {
  color: #9f4336;
  letter-spacing: .16em;
  font-size: .7rem;
  font-weight: 700;
  margin-bottom: .65rem;
}

.reading-card h3 {
  font-size: 1.45rem;
  margin: 0 0 .8rem;
  line-height: 1.12;
}

.reading-card p {
  line-height: 1.6;
}

.reading-tagline {
  font-family: Georgia, 'Times New Roman', serif;
  font-style: italic;
  color: #123452;
  font-size: 1.04rem;
}

.text-link,
.coming-link {
  margin-top: auto;
  padding-top: 1rem;
  font-weight: 700;
  text-decoration: none;
}

.text-link {
  color: #123452;
}

.coming-link {
  color: #9f4336;
}

.training-reading-card {
  background:
    linear-gradient(145deg, rgba(159,67,54,.08), rgba(255,255,255,.65));
}

.book-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem;
  align-items: stretch;
}

.book-card {
  border: 1px solid rgba(16, 48, 81, .14);
  border-radius: 18px;
  background: rgba(255,255,255,.68);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.book-cover-wrap {
  width: 100%;
  aspect-ratio: 2 / 3;
  background: #eee7dc;
  overflow: hidden;
}

.book-cover-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.book-copy {
  padding: 1.25rem 1.25rem 1.4rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.book-status {
  letter-spacing: .14em;
  color: #9f4336;
  font-size: .7rem;
  font-weight: 700;
  margin-bottom: .55rem;
}

.book-copy h3 {
  margin: 0 0 .5rem;
  font-size: 1.45rem;
}

.book-copy p {
  line-height: 1.55;
}

.book-button {
  display: inline-block;
  align-self: flex-start;
  margin-top: auto;
  padding: .72rem 1rem;
  border-radius: 999px;
  background: #123452;
  color: white;
  text-decoration: none;
  font-weight: 700;
  font-size: .92rem;
}

.book-button:hover {
  opacity: .92;
}

.book-button-muted {
  background: #ded5c6;
  color: #6e6257;
  cursor: default;
}

.training-cover-placeholder {
  background:
    radial-gradient(circle at 50% 20%, rgba(255,255,255,.17), transparent 28%),
    linear-gradient(155deg, #6d1234, #9b1d4f 47%, #de6b58 100%);
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 1.5rem;
  box-sizing: border-box;
  position: relative;
}

.training-cover-placeholder::before {
  content: "";
  position: absolute;
  inset: 7%;
  border: 1px solid rgba(255,255,255,.45);
}

.training-crown {
  font-size: 3.1rem;
  margin-bottom: .9rem;
  opacity: .92;
}

.training-title {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(1.8rem, 4vw, 3.1rem);
  letter-spacing: .08em;
  line-height: .95;
  font-weight: 700;
}

.training-rule {
  width: 46%;
  height: 1px;
  background: rgba(255,255,255,.65);
  margin: 1.4rem 0 .9rem;
}

.training-coming {
  font-size: .72rem;
  letter-spacing: .18em;
  font-weight: 700;
}

.stay-connected {
  margin-top: 4rem;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border-radius: 20px;
  background: #123452;
  color: white;
  display: flex;
  gap: 2rem;
  align-items: center;
  justify-content: space-between;
}

.stay-connected .section-kicker {
  color: #e7b0a4;
}

.stay-copy {
  max-width: 48rem;
}

.stay-copy p {
  line-height: 1.65;
}

.stay-note {
  opacity: .72;
  font-size: .88rem;
}

.stay-button {
  flex: 0 0 auto;
  text-decoration: none;
  background: #f4ede1;
  color: #123452;
  padding: .9rem 1.15rem;
  border-radius: 999px;
  font-weight: 700;
}

.writings-next {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .8rem;
}

.writings-next a {
  padding: 1rem 1.1rem;
  border: 1px solid rgba(16, 48, 81, .14);
  border-radius: 14px;
  text-decoration: none;
  background: rgba(255,255,255,.5);
  display: flex;
  flex-direction: column;
}

.writings-next small {
  color: #9f4336;
  letter-spacing: .13em;
  font-size: .66rem;
  font-weight: 700;
}

.writings-next strong {
  color: #123452;
  margin-top: .2rem;
}

@media (max-width: 900px) {
  .tiara-gateway {
    grid-template-columns: 1fr;
  }

  .gateway-mark {
    justify-self: start;
    max-width: 190px;
  }

  .reading-grid,
  .book-grid {
    grid-template-columns: 1fr;
  }

  .book-card {
    display: grid;
    grid-template-columns: minmax(170px, 38%) 1fr;
  }

  .book-cover-wrap {
    height: 100%;
    aspect-ratio: auto;
  }

  .book-cover-wrap img {
    min-height: 100%;
  }

  .stay-connected {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 620px) {
  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: .6rem;
  }

  .book-card {
    display: flex;
  }

  .book-cover-wrap {
    aspect-ratio: 2 / 3;
    height: auto;
  }

  .writings-next {
    grid-template-columns: 1fr;
  }
}
