/* Cedarwick author profiles — Founder Gate 2 refinement */

.cw-author-profile-hero {
  background:
    linear-gradient(110deg, rgba(199, 155, 79, 0.12), transparent 48%),
    var(--cw-parchment);
}

.cw-author-profile-hero-grid,
.cw-author-profile-grid,
.cw-author-features-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(280px, 0.88fr);
  gap: clamp(2.5rem, 7vw, 6rem);
  align-items: center;
}

.cw-author-profile-hero h1 {
  max-width: 760px;
}

.cw-author-writes {
  max-width: 720px;
  margin-top: 1.5rem;
  font-size: clamp(1.02rem, 1.7vw, 1.2rem);
  line-height: 1.72;
}

.cw-author-visual {
  margin: 0;
}

.cw-author-visual-card {
  position: relative;
  min-height: 390px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 1rem;
  padding: clamp(2rem, 5vw, 3.5rem);
  overflow: hidden;
  border: 1px solid rgba(128, 96, 47, 0.42);
  border-top: 3px solid #80602f;
  background:
    radial-gradient(circle at 50% 20%, rgba(199, 155, 79, 0.18), transparent 34%),
    #f8f1e5;
}

.cw-author-visual-card::after {
  content: "";
  position: absolute;
  inset: 1rem;
  border: 1px solid rgba(128, 96, 47, 0.18);
  pointer-events: none;
}

.cw-author-visual-card img {
  width: 104px;
  height: 104px;
  object-fit: contain;
  opacity: 0.14;
}

.cw-author-initials {
  position: relative;
  z-index: 1;
  color: var(--cw-navy);
  font-family: var(--cw-display);
  font-size: clamp(4.4rem, 8vw, 7.4rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 0.9;
}

.cw-author-visual-card small {
  position: relative;
  z-index: 1;
  color: #80602f;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.cw-author-visual figcaption {
  margin-top: 0.75rem;
  color: #505a55;
  font-size: 0.78rem;
  line-height: 1.5;
}

.cw-author-visual-portrait img {
  display: block;
  width: 100%;
  max-height: 560px;
  object-fit: cover;
  border: 1px solid rgba(128, 96, 47, 0.42);
}

.cw-author-visual-compact .cw-author-visual-card {
  min-height: 180px;
  padding: 1.4rem;
}

.cw-author-visual-compact .cw-author-visual-card img {
  width: 62px;
  height: 62px;
}

.cw-author-visual-compact .cw-author-initials {
  font-size: clamp(2.7rem, 4vw, 4rem);
}

.cw-author-visual-compact figcaption {
  display: none;
}

.cw-author-bio-section h2 {
  max-width: 800px;
  margin: 0.45rem 0 1.2rem;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.06;
}

.cw-author-bio-section p:not(.cw-overline) {
  max-width: 780px;
  line-height: 1.76;
}

.cw-author-positioning {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(1.8rem, 4vw, 2.8rem);
  border: 1px solid rgba(128, 96, 47, 0.45);
  background: #f3e8d7;
}

.cw-author-positioning h3 {
  margin: 0.45rem 0 1rem;
  font-size: clamp(1.7rem, 3vw, 2.45rem);
  line-height: 1.08;
}

.cw-author-source-link {
  margin-top: 1.4rem;
}

.cw-author-book-card {
  display: grid;
  grid-template-columns: minmax(230px, 0.62fr) minmax(0, 1.38fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
  padding: clamp(1.5rem, 4vw, 2.8rem);
  border-top: 1px solid var(--cw-rule);
  border-bottom: 1px solid var(--cw-rule);
}

.cw-author-book-art {
  display: block;
  text-decoration: none;
}

.cw-author-book-art img {
  display: block;
  width: 100%;
  max-height: 470px;
  object-fit: contain;
  filter: drop-shadow(0 18px 22px rgba(32, 39, 36, 0.14));
}

.cw-author-book-art-fallback {
  min-height: 330px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 0.8rem;
  border: 1px solid rgba(128, 96, 47, 0.34);
  background: linear-gradient(145deg, #efe3cf, #f8f3e9);
  color: var(--cw-ink);
  text-align: center;
}

.cw-author-book-art-fallback span {
  font-family: var(--font-display);
  font-size: clamp(3.8rem, 8vw, 6.5rem);
  line-height: 1;
}

.cw-author-book-art-fallback small {
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.cw-author-book-card + .cw-author-book-card {
  margin-top: 1.25rem;
}

.cw-author-book-card h3 {
  margin: 0.45rem 0 0.4rem;
  font-size: clamp(2rem, 4vw, 3.3rem);
}

.cw-author-book-card h3 a {
  color: var(--cw-ink);
  text-decoration: none;
}

.cw-author-book-card p {
  line-height: 1.7;
}

.cw-author-book-status {
  color: #6b3037 !important;
  font-size: 0.77rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.cw-author-territory-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--cw-rule);
  border-left: 1px solid var(--cw-rule);
}

.cw-author-territory-grid article {
  padding: clamp(1.7rem, 4vw, 2.7rem);
  border-right: 1px solid var(--cw-rule);
  border-bottom: 1px solid var(--cw-rule);
}

.cw-author-territory-grid h3 {
  margin-top: 0;
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
}

.cw-author-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 1.2rem 0 0;
  padding: 0;
  list-style: none;
}

.cw-author-tag-list li {
  margin: 0;
  padding: 0.55rem 0.75rem;
  border: 1px solid rgba(128, 96, 47, 0.42);
  background: rgba(239, 229, 213, 0.52);
  color: #38443f;
  font-size: 0.82rem;
  line-height: 1.2;
}

.cw-author-features-grid {
  align-items: stretch;
}

.cw-author-features-grid > div,
.cw-author-features-grid > aside {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.cw-author-features h2,
.cw-author-features h3 {
  color: var(--cw-paper);
}

.cw-author-features h2 {
  margin: 0.45rem 0 1rem;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.05;
}

.cw-author-features h3 {
  margin: 0.45rem 0 1rem;
  font-size: clamp(1.55rem, 2.7vw, 2.2rem);
}

.cw-author-features p {
  color: #e8ddca;
  line-height: 1.72;
}

.cw-author-features aside {
  padding: clamp(1.8rem, 4vw, 2.8rem);
  border: 1px solid rgba(227, 195, 143, 0.48);
  background: rgba(13, 34, 48, 0.28);
}

.cw-author-features .cw-editorial-button {
  align-self: flex-start;
  margin-top: 1rem;
  border-color: #e3c38f;
  background: #e3c38f;
  color: var(--cw-navy);
}

.cw-author-features .cw-editorial-button:hover {
  border-color: var(--cw-paper);
  background: var(--cw-paper);
  color: var(--cw-navy);
}

.cw-author-roster article {
  display: flex;
  flex-direction: column;
}

.cw-author-roster .cw-author-visual {
  margin-bottom: 1.4rem;
}

.cw-author-roster-writes {
  color: #505a55;
}

.cw-author-roster .cw-text-link:last-child {
  margin-top: auto;
  padding-top: 0.9rem;
}

@media (max-width: 900px) {
  .cw-author-profile-hero-grid,
  .cw-author-profile-grid,
  .cw-author-features-grid,
  .cw-author-book-card {
    grid-template-columns: 1fr;
  }

  .cw-author-visual {
    width: min(520px, 100%);
  }

  .cw-author-book-art img {
    max-height: 420px;
  }
}

@media (max-width: 680px) {
  .cw-author-visual-card {
    min-height: 300px;
  }

  .cw-author-territory-grid {
    grid-template-columns: 1fr;
  }

  .cw-author-book-card {
    padding-inline: 0;
  }

  .cw-author-visual-compact .cw-author-visual-card {
    min-height: 150px;
  }
}

/* Expanded Author Public Identity content model */
.cw-author-lens-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--cw-rule);
  border-left: 1px solid var(--cw-rule);
}

.cw-author-lens-grid article {
  min-width: 0;
  padding: clamp(1.7rem, 4vw, 2.7rem);
  border-right: 1px solid var(--cw-rule);
  border-bottom: 1px solid var(--cw-rule);
  background: rgba(251, 247, 239, 0.55);
}

.cw-author-lens-grid article > span {
  color: #80602f;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.cw-author-lens-grid h3 {
  margin: 1.2rem 0 0.8rem;
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  line-height: 1.08;
}

.cw-author-lens-grid p {
  margin: 0;
  line-height: 1.72;
}

.cw-author-public-background {
  margin-top: 1.8rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(128, 96, 47, 0.32);
}

.cw-author-public-background dl {
  margin: 0;
}

.cw-author-public-background dl > div {
  display: grid;
  grid-template-columns: minmax(110px, 0.38fr) minmax(0, 1fr);
  gap: 0.8rem 1.2rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid rgba(128, 96, 47, 0.2);
}

.cw-author-public-background dt {
  color: #80602f;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cw-author-public-background dd {
  margin: 0;
  line-height: 1.5;
}

.cw-author-public-background a {
  color: #6b3037;
  text-decoration: none;
}

.cw-author-statement {
  padding: clamp(4rem, 8vw, 7rem) 0;
  border-top: 1px solid rgba(167, 124, 63, 0.35);
  border-bottom: 1px solid rgba(167, 124, 63, 0.35);
  background:
    radial-gradient(circle at 85% 30%, rgba(199, 155, 79, 0.11), transparent 32%),
    var(--cw-navy);
}

.cw-author-statement .cw-overline {
  color: #e3c38f;
}

.cw-author-statement blockquote {
  max-width: 980px;
  margin: 1rem 0 0;
  color: var(--cw-paper);
  font-family: var(--cw-display);
  font-size: clamp(2.15rem, 4.8vw, 4.2rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.018em;
}

.cw-author-statement-name {
  margin-top: 1.4rem;
  color: #e8ddca !important;
  font-size: 0.9rem;
  font-style: italic;
}

@media (max-width: 900px) {
  .cw-author-lens-grid {
    grid-template-columns: 1fr;
  }

  .cw-author-public-background dl > div {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }
}

@media (max-width: 680px) {
  .cw-author-statement blockquote {
    font-size: clamp(2rem, 10vw, 3.1rem);
  }
}
