:root {
  --card-bg: #fff;
  --accent: #2563eb;
  --text: #111827;
  --text-muted: #6b7280;
  --shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
  --radius: 14px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  /* font-family: "adobe-jenson-pro", serif; */
  font-family: "adobe-aldine-variable", serif;
  font-variation-settings: "opsz" 8, "wght" 300;
  font-size: 1.2rem;
  font-weight: 400;
  background: radial-gradient(circle at top, #f8f6ef, #eeeee8 40%, #e1dccb);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 16px;
}

.page {
  width: 100%;
  max-width: 800px;
  text-align: center;
}

#cards {
  view-transition-name: cards-container;
  margin-bottom: 1.0rem;
}

header {
  margin-bottom: 2.0rem;

  p {
    color: var(--text-muted);
    font-size: 0.95rem;
  }
}

h1 {
  font-size: clamp(5rem, 8vw, 10rem);
  font-variation-settings: "opsz" 6, "wght" 500;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}

.card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 2.0rem 3.0rem 2.0rem;
  box-shadow: var(--shadow);
  border: 1px solid rgba(184, 177, 148, 0.35);
  display: none;
  flex-direction: column;
  gap: 14px;
  position: relative;
  cursor: pointer;
  transition: transform 0.12s, box-shadow 0.12s;
}

.card.active {
  display: flex;
}

.card::before {
  content: "";
  position: absolute;
  font-size: 4.5rem;
  top: -28px;
  right: 10px;
  color: rgba(37, 99, 235, 0.12);
  font-weight: 700;
  pointer-events: none;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.12);
}

.card:active {
  transform: translateY(1px) scale(0.995);
}

div.quote-text {
  /* margin-bottom: 1.5rem; */

  p {
    font-size: 1.75rem;
    line-height: 1.25;
    margin-bottom: 0.875rem;
    text-wrap: balance;
  }

}

.quote-text p:first-child::before {
  content: "“";
}

.quote-text p:last-child::after {
  content: "”";
}

.author-work {
  font-size: 1.5rem;
  color: var(--text-muted);
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;

  .work {
    font-style: italic;
  }
}

.tag {
  display: inline-flex;
  justify-content: center;
  gap: 2.0rem;
  width: 100%;

  div {
    font-size: 0.67rem;
    font-family: "chidori-vf", sans-serif;
    font-variation-settings: "wdth" 100, "wght" 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    background: rgba(206, 202, 189, 0.137);
    border-radius: 0.125rem;
    padding: 3px 9px;
  }
}

.hint {
  margin: 0.5rem 0 1.5rem;
  font-size: 1.0.rem;
  color: var(--text-muted);
}

footer {
  color: var(--text-muted);
  margin-top: 2.0rem;
}

@media (max-width: 600px) {
  body {
    padding: 24px 12px;
  }
}

::view-transition-old(cards-container),
::view-transition-new(cards-container) {
  animation-duration: 0.4s;
}

::view-transition-old(cards-container) {
  animation-name: fade-out;
}

::view-transition-new(cards-container) {
  animation-name: fade-in;
}

@keyframes fade-out {
  to {
    opacity: 0;
    transform: scale(0.95);
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
    transform: scale(1.05);
  }
}