:root {
  color-scheme: light;
  --ink: #141414;
  --overlap: 23px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: #202020;
  color: var(--ink);
  font: 16px/1.45 system-ui, sans-serif;
}
.app {
  width: min(100%, 470px);
  min-height: 100svh;
  margin-inline: auto;
  background: #fff;
}
.intro {
  position: relative;
  isolation: isolate;
  min-height: 280px;
  padding: 21px 20px 45px;
}
.edition {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 5px 9px;
  margin: 0 0 24px;
  color: #555;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.edition > span:first-child { color: #346e83; }
.edition > span:last-child { margin-left: auto; }
h1 {
  margin: 0 0 13px;
  font-size: clamp(37px, 10vw, 55px);
  line-height: .98;
  letter-spacing: -.068em;
}
.intro > p:last-of-type { margin: 0; max-width: 59%; }
.reader {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: -1;
  width: min(43%, 190px);
}
.quote-stack { list-style: none; margin: 0; padding: 0 0 var(--overlap); }
.quote-card {
  position: relative;
  margin-bottom: calc(-1 * var(--overlap));
  padding: 0 20px var(--overlap);
  border-radius: 30px 30px 0 0;
  background: #337b94;
  color: #fff;
}
.quote-card:nth-child(2) { background: #ffc56f; color: #17120e; }
.quote-card:nth-child(3) { background: #b63f34; }
.quote-card:nth-child(4) { background: #81302c; }
.quote-card:nth-child(5) { background: #365747; }
.quote-card summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 10px;
  list-style: none;
  cursor: pointer;
  min-height: 83px;
  padding-block: 14px;
}
.quote-card summary::-webkit-details-marker { display: none; }
.quote-title { font-size: clamp(19px, 5.6vw, 25px); font-weight: 650; letter-spacing: -.035em; }
.card-label { display: block; font-size: 13px; opacity: .92; }
.expand { font-size: 20px; line-height: 1; letter-spacing: 1px; }
details[open] .expand { transform: rotate(90deg); }
.quote-body { border-top: 1px solid currentColor; padding: 14px 0 20px; }
blockquote { margin: 0; font-size: clamp(17px, 4.5vw, 22px); font-weight: 600; line-height: 1.36; letter-spacing: -.02em; }
.quote-tag { display: inline-block; margin-top: 14px; padding: 4px 10px; border-radius: 100px; background: #ffffff28; font-size: 10px; font-weight: 750; letter-spacing: .07em; }
.message { margin: 0; padding: 10px 20px; font-size: 13px; }
.message:empty { display: none; }
.app-nav {
  position: sticky;
  bottom: 0;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
  padding: 8px 14px max(10px, env(safe-area-inset-bottom));
  border-radius: 25px 25px 0 0;
  background: #141414;
  color: #fff;
}
.app-nav a, .app-nav button {
  display: grid;
  justify-items: center;
  place-content: center;
  gap: 3px;
  min-height: 48px;
  color: inherit;
  background: transparent;
  border: 0;
  border-radius: 9px;
  text-decoration: none;
  font: inherit;
  font-size: 11px;
  cursor: pointer;
}
.app-nav a:hover, .app-nav button:hover:not(:disabled) { background: #333; }
.app-nav button:disabled { color: #aaa; cursor: default; }
.app-nav svg { width: 21px; height: 21px; }
#remaining { grid-column: 1/-1; margin: 1px 0 0; text-align: center; color: #d7d7d7; font-size: 11px; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
@media (min-width: 560px) {
  body { padding: 24px 0; }
  .app { border-radius: 27px; min-height: calc(100svh - 48px); overflow: clip; box-shadow: 0 16px 60px #0006; }
  .app-nav { bottom: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

.quote-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.quote-actions .quote-tag { margin-top: 0; }
.quote-actions button {
  min-height: 44px;
  padding: 6px 12px;
  border: 1px solid currentColor;
  border-radius: 100px;
  background: transparent;
  color: inherit;
  font: 650 12px system-ui, sans-serif;
  cursor: pointer;
}
.quote-actions button:hover { background: #ffffff28; }
.share-feedback:not(:empty) { display: block; margin-top: 8px; font-size: 12px; }

.quote-audience {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 20px 14px;
  font-size: 13px;
  font-weight: 650;
}
.quote-audience select {
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid #d4d4d4;
  border-radius: 10px;
  background: #f8f8f8;
  color: var(--ink);
  font: inherit;
}
