:root {
  --background: 40 20% 96%;
  --foreground: 30 10% 15%;
  --primary: 25 30% 35%;
  --primary-foreground: 40 20% 96%;
  --secondary: 35 15% 90%;
  --secondary-foreground: 30 10% 20%;
  --muted: 35 12% 90%;
  --muted-foreground: 30 8% 45%;
  --accent: 30 20% 88%;
  --accent-foreground: 30 10% 18%;
  --border: 35 15% 88%;
  --card: 40 18% 94%;
  --ring: 25 30% 35%;
  --radius: 0.5rem;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  font-family: 'Outfit', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

.page {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  background: hsl(var(--background));
}

.content {
  width: 100%;
  max-width: 448px;
  padding: 48px 24px;
}

.page-header {
  text-align: center;
  margin-bottom: 48px;
}

.hindi-title {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 300;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: hsl(var(--muted-foreground));
}

.page-header h1 {
  margin: 0;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 0.025em;
  color: hsl(var(--foreground));
}

.title-divider {
  width: 48px;
  height: 1px;
  margin: 16px auto 0;
  background: hsl(var(--primary) / 0.3);
}

.stanzas {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.stanza {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.stanza-line {
  margin: 0;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.375;
  letter-spacing: 0.025em;
  color: hsl(var(--foreground) / 0.9);
}

.bottom-spacer {
  margin-top: 56px;
  height: 1px;
}

.sticky-header,
.sticky-footer {
  position: fixed;
  left: 0;
  right: 0;
  z-index: 10;
  background: hsl(var(--background) / 0.9);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: all 300ms ease;
  opacity: 0;
  pointer-events: none;
}

.sticky-header {
  top: 0;
  transform: translateY(-100%);
  border-bottom: 1px solid hsl(var(--border) / 0.5);
}

.sticky-footer {
  bottom: 0;
  transform: translateY(100%);
  border-top: 1px solid hsl(var(--border) / 0.5);
}

body.is-scrolled .sticky-header,
body.is-scrolled .sticky-footer {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.sticky-header-inner {
  max-width: 448px;
  margin: 0 auto;
  padding: 12px 24px;
  text-align: center;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.025em;
  color: hsl(var(--foreground));
}

.sticky-footer-inner {
  max-width: 448px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.om {
  font-size: 12px;
  letter-spacing: 0.2em;
  color: hsl(var(--muted-foreground));
}

.scroll-top {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  margin: 0;
  padding: 4px;
  border-radius: calc(var(--radius) - 2px);
  background: transparent;
  color: hsl(var(--foreground) / 0.9);
  cursor: pointer;
  transition: color 200ms ease;
}

.scroll-top:hover {
  color: hsl(var(--foreground));
}

.scroll-top:focus-visible {
  outline: 2px solid hsl(var(--ring));
  outline-offset: 2px;
}
