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

body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f5f5f5;
  color: #1f1f1f;
  font-family: Charter, 'Bitstream Charter', 'Sitka Text', Cambria, serif;
  -webkit-font-smoothing: antialiased;
}

/* Language switcher — top right */
.lang-switcher {
  position: fixed;
  top: 2rem;
  right: 2rem;
  display: flex;
  gap: 0.25rem;
  background: rgba(0, 0, 0, 0.04);
  border-radius: 999px;
  padding: 0.2rem;
  z-index: 10;
}

.lang-btn {
  background: none;
  border: none;
  color: #9b9c9d;
  font-family: ui-monospace, 'Cascadia Code', 'Source Code Pro', Menlo, Consolas, 'DejaVu Sans Mono', monospace;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
}

.lang-btn:hover {
  color: #1f1f1f;
}

.lang-btn.active {
  background: rgba(0, 0, 0, 0.06);
  color: #1f1f1f;
}

/* Container */
.container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  width: 100%;
  padding: 2rem 4rem;
}

/* Quote card */
.quote-card {
  max-width: 750px;
  width: 100%;
  margin: 0 auto;
  animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Two-column layout: photo left, quote right */
.quote-layout {
  display: flex;
  align-items: center;
  gap: 3rem;
}

/* Author photo */
.author-photo {
  flex-shrink: 0;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  border: 4px solid #fff;
  overflow: hidden;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.author-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Quote content */
.quote-content {
  flex: 1;
  min-width: 0;
}

blockquote {
  position: relative;
}

blockquote p {
  font-size: 1.5rem;
  line-height: 1.6;
  font-style: italic;
  color: #1f1f1f;
}

.quote-open,
.quote-close {
  font-size: 3rem;
  line-height: 1;
  color: #e63b11;
  opacity: 0.25;
  user-select: none;
}

.quote-open {
  display: block;
  margin-bottom: -0.3rem;
}

.quote-close {
  display: block;
  text-align: right;
  margin-top: -0.3rem;
}

/* Author name */
.author-name {
  margin-top: 1rem;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: #6c6c6c;
}

.author-source {
  font-style: italic;
  font-weight: 400;
}

/* Share bar — discrete, below the card */
.share-bar {
  margin-top: 2.5rem;
  display: flex;
  justify-content: center;
  gap: 0.6rem;
}

.share-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: transparent;
  color: #9b9c9d;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
}

.share-btn:hover {
  color: #e63b11;
}

.share-btn.copied {
  color: #50c878;
}

/* Loading */
.loading {
  color: #d5d5d6;
  font-size: 1.5rem;
}

/* About link — bottom left */
.about-link {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  color: #9b9c9d;
  font-family: ui-monospace, 'Cascadia Code', 'Source Code Pro', Menlo, Consolas, 'DejaVu Sans Mono', monospace;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-decoration: none;
  transition: color 0.2s ease;
}

.about-link:hover {
  color: #1f1f1f;
}

/* About page */
.about-card {
  max-width: 520px;
  width: 100%;
  margin: 0 auto;
  font-family: ui-monospace, 'Cascadia Code', 'Source Code Pro', Menlo, Consolas, 'DejaVu Sans Mono', monospace;
  animation: fadeIn 0.6s ease-out;
}

.about-card h1 {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: #1f1f1f;
}

.about-content {
  font-size: 0.9rem;
  line-height: 1.8;
  color: #3a3a3a;
}

.about-content p {
  margin-bottom: 1rem;
}

.about-back {
  display: inline-block;
  margin-top: 2rem;
  color: #9b9c9d;
  font-family: ui-monospace, 'Cascadia Code', 'Source Code Pro', Menlo, Consolas, 'DejaVu Sans Mono', monospace;
  font-size: 0.8rem;
  text-decoration: none;
  transition: color 0.2s ease;
}

.about-back:hover {
  color: #e63b11;
}

/* Responsive — stack on smaller screens */
@media (max-width: 768px) {
  .container {
    padding: 2rem;
  }

  .quote-layout {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }

  .author-photo {
    width: 110px;
    height: 110px;
  }

  .author-name {
    text-align: center;
  }

  .lang-switcher {
    top: 1rem;
    right: 1rem;
  }

  .about-link {
    bottom: 1rem;
    left: 1rem;
  }
}

@media (max-width: 600px) {
  blockquote p {
    font-size: 1.2rem;
  }

  .quote-open,
  .quote-close {
    font-size: 2.2rem;
  }
}
