/* quotes.charlessieg.com: the stage (a quote, large), quote lists, people, and About. */

/* Size steps by length: the longer the quote, the smaller the type. */
.z-s { --q-size: clamp(2.3rem, 5.5vw + 0.8rem, 4.4rem); }
.z-m { --q-size: clamp(2rem, 4.5vw + 0.8rem, 3.6rem); }
.z-l { --q-size: clamp(1.8rem, 3vw + 0.8rem, 2.8rem); }
.z-xl { --q-size: clamp(1.6rem, 2vw + 0.8rem, 2.3rem); }

/* One serif for every quote. Cormorant Garamond has a small x-height, so --q-scale lifts each size step to read as large as the script faces did. */
.quote { --q-scale: 1.18; --q-lead: 1.22; margin: 0 auto; max-width: 46rem; }
.quote__text { margin: 0; font-family: "Quotes Cormorant Garamond", var(--serif); font-size: calc(var(--q-size, 2.4rem) * var(--q-scale, 1)); line-height: var(--q-lead, 1.3); font-weight: 500; text-wrap: pretty; }
/* A short quote breaks into even lines, so it never strands one word (or half of a hyphenated name) on a line of its own. */
.z-s .quote__text, .z-m .quote__text { text-wrap: balance; }
.quote__text p { margin: 0 0 0.5em; }
.quote__text p:last-child { margin-bottom: 0; }
.quote__by { margin-top: 1.6rem; font: 400 1rem/1.5 var(--sans); color: var(--ink-soft); }
.quote__who { font-weight: 600; color: var(--ink); }
.quote__source { color: var(--ink-soft); font-family: "Quotes Cormorant Garamond", var(--serif); font-style: italic; font-weight: 400; font-size: 1.2rem; }

/* The stage: the quote of the day (or one quote) centered with room around it. */
.stage { padding: clamp(2rem, 8vh, 5rem) var(--gutter) 1rem; text-align: center; }
.stage__kicker { margin: 0 0 1.6rem; font: 600 0.85rem/1.3 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-soft); text-wrap: balance; }
.stage__quote::before { content: "\201C" / ""; display: block; margin-bottom: -0.35em; font: 400 clamp(4rem, 10vw, 6.5rem)/1 var(--serif); color: var(--accent); opacity: 0.85; }
.stage__actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 0.9rem 1.8rem; margin-top: 2.6rem; list-style: none; padding: 0; }
.stage__actions[hidden] { display: none; }
.stage__actions--list li { margin: 0; }

.js-pending .stage__quote { visibility: hidden; }

.btn {
  appearance: none; display: inline-block; cursor: pointer; text-decoration: none;
  padding: 0.7rem 1.6rem; border: 2px solid var(--accent); border-radius: 999px;
  background: transparent; color: var(--accent);
  font: 600 1rem/1.2 var(--sans); letter-spacing: 0.03em;
}
.btn[hidden] { display: none; }
.btn:hover { background: var(--accent); color: var(--paper); }
.btn--link { margin-block: 0.4rem; }
.textlink { color: var(--ink-soft); font-size: 0.95rem; }
.textlink:hover { color: var(--ink); }

@media (prefers-reduced-motion: no-preference) {
  .quote--enter { animation: quote-rise 0.7s ease both; }
  @keyframes quote-rise { from { opacity: 0; transform: translateY(0.4rem); } to { opacity: 1; transform: none; } }
}

/* Plain pages: People, a person, About, 404. */
.wrap--narrow { width: 100%; max-width: var(--measure); margin-inline: auto; padding: clamp(2rem, 6vh, 3.5rem) var(--gutter) 0; }
.page-title { font: 600 clamp(2rem, 4vw + 1rem, 3rem)/1.1 var(--serif); margin-bottom: 0.6rem; }
.section-title { font: 600 1.5rem/1.2 var(--serif); margin: 2.4rem 0 0.8rem; }
.lead { font-size: 1.1rem; color: var(--ink-soft); }

.people { list-style: none; margin-top: 2rem; display: grid; gap: 1.6rem; }
.people__name { font: 600 1.5rem/1.2 var(--serif); }
.people__facts { margin: 0.2rem 0 0.4rem; color: var(--ink-soft); font-size: 0.95rem; }
.people__about { margin: 0; max-width: 34rem; }

.quote-list { list-style: none; margin-top: 1rem; }
.quote-list__item { padding-block: 2rem; border-top: 1px solid var(--rule); }
.quote-list__item:target { background: color-mix(in srgb, var(--accent) 12%, var(--paper)); }
.quote-list .quote { text-align: left; max-width: none; }
.quote-list .quote__text { font-size: max(calc(var(--q-size, 2rem) * var(--q-scale, 1) * 0.62), 1.15rem); }
.quote-list .quote__by { margin-top: 0.8rem; font-size: 0.95rem; }
.quote-list .quote__source { font-size: 1.15rem; }
.quote-list__link { margin: 0.6rem 0 0; font-size: 0.95rem; }
.quote-list__link a { color: var(--ink-soft); }

.about section p { max-width: var(--measure); }
.face-list { list-style: none; display: grid; gap: 0.4rem; margin: 0.8rem 0 1rem; }
.face-name { font-family: "Quotes Cormorant Garamond", var(--serif); font-weight: 500; font-size: 1.35rem; color: var(--ink); }
