/* ========================================== */
/* HERO BANNER (100% Responsive)              */
/* ========================================== */

.hero-banner {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 500px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #1B1410;
}

.hero-banner-bg {
    position: absolute;
    inset: 0;
    background-image: url('https://picsum.photos/1920/1080?random=200');
    background-size: cover;
    background-position: center;
    z-index: 1;
    transform: scale(1.05);
    filter: blur(1px) brightness(0.9) saturate(1.3);
}

.hero-banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
            rgba(27, 20, 15, 0.45) 0%,
            rgba(27, 20, 15, 0.55) 50%,
            rgba(27, 20, 15, 0.75) 100%);
    z-index: 2;
}

.hero-banner-content {
    position: relative;
    z-index: 5;
    text-align: center;
    padding: 0 5%;
    max-width: 900px;
    width: 100%;
}

.hero-banner-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 6vw, 5.5rem);
    font-weight: 700;
    color: #FFFFFF;
    margin: 0 0 16px;
    line-height: 1.1;
    letter-spacing: -1px;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.7);
}

.hero-banner-subtitle {
    font-family: var(--font-body);
    font-size: clamp(0.9rem, 1.8vw, 1.5rem);
    font-weight: 500;
    color: #FFFFFF;
    margin: 0 0 32px;
    opacity: 0.95;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.7);
}

.hero-socials {
    display: flex;
    justify-content: center;
    gap: clamp(8px, 1.2vw, 14px);
    flex-wrap: wrap;
}

.hero-social-icon {
    width: clamp(38px, 4vw, 48px);
    height: clamp(38px, 4vw, 48px);
    background-color: #FFFFFF;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1B1410;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    flex-shrink: 0;
}

.hero-social-icon svg {
    width: clamp(16px, 1.8vw, 22px);
    height: clamp(16px, 1.8vw, 22px);
}

.hero-social-icon:hover {
    background-color: var(--btn-color);
    color: #FFFFFF;
    transform: translateY(-4px);
}

/* ========================================== */
/* SUBSCRIBE VERTICAL BUTTON                  */
/* ========================================== */

.hero-subscribe {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background-color: #E63946;
    color: #FFFFFF;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: clamp(16px, 2vw, 24px) clamp(8px, 1vw, 12px);
    border-top-left-radius: 30px;
    border-bottom-left-radius: 30px;
    font-family: var(--font-body);
    font-size: clamp(0.65rem, 1vw, 0.8rem);
    font-weight: 700;
    letter-spacing: clamp(2px, 0.3vw, 3px);
    text-transform: uppercase;
    writing-mode: vertical-rl;
    transition: all 0.3s ease;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.3);
}

.hero-subscribe:hover {
    padding-right: 18px;
    background-color: #C1121F;
}

.hero-subscribe-icon {
    writing-mode: horizontal-tb;
    font-size: clamp(0.8rem, 1.2vw, 1rem);
}

/* ========================================== */
/* RESPONSIVE (Mobile & Tablet)               */
/* ========================================== */

@media (max-width: 768px) {
    .hero-banner {
        height: 80vh;
        min-height: 450px;
    }

    .hero-banner-content {
        padding: 0 20px;
    }

    .hero-banner-title {
        font-size: clamp(2rem, 8vw, 3rem);
        margin-bottom: 10px;
    }

    .hero-banner-subtitle {
        font-size: clamp(0.85rem, 3vw, 1.1rem);
        margin-bottom: 24px;
    }

    .hero-subscribe {
        padding: 14px 8px;
        font-size: 0.65rem;
        letter-spacing: 2px;
        border-top-left-radius: 20px;
        border-bottom-left-radius: 20px;
    }
}

@media (max-width: 480px) {
    .hero-banner {
        height: 70vh;
        min-height: 400px;
    }

    .hero-banner-title {
        font-size: 1.9rem;
        letter-spacing: -0.5px;
    }

    .hero-banner-subtitle {
        font-size: 0.85rem;
        margin-bottom: 20px;
    }

    .hero-social-icon {
        width: 36px;
        height: 36px;
    }

    .hero-social-icon svg {
        width: 15px;
        height: 15px;
    }

    .hero-subscribe {
        padding: 12px 6px;
        font-size: 0.6rem;
        letter-spacing: 1.5px;
        gap: 4px;
    }

    .hero-subscribe-icon {
        font-size: 0.75rem;
    }
}

@media (max-width: 360px) {
    .hero-banner {
        height: 65vh;
        min-height: 350px;
    }

    .hero-banner-title {
        font-size: 1.6rem;
    }

    .hero-banner-subtitle {
        font-size: 0.75rem;
    }

    .hero-social-icon {
        width: 32px;
        height: 32px;
    }

    .hero-social-icon svg {
        width: 13px;
        height: 13px;
    }
}

/* ========================================== */
/* SECTION: WORDS WORTH SHARING (Quotes)      */
/* ========================================== */


.quotes-section,
.quotes-section * {
  box-sizing: border-box;
}

.quotes-section {
  --q-bg: #fffdf9;
  --q-card: #f0e4d2;
  --q-ink: #493321;
  --q-text: #30271f;
  --q-brown: #805633;
  --q-muted: #786b5d;
  --q-line: rgba(73, 51, 33, 0.13);

  width: 100%;
  padding: 42px 0 60px;
  background: var(--q-bg);
  color: var(--q-text);
  overflow: hidden;
}

.quotes-container {
  width: min(100% - 48px, 1220px);
  margin-inline: auto;
}

.quotes-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 36px;
}

.quotes-tagline {
  margin: 0 0 12px;
  color: var(--q-brown);
  font: 700 12px/1.4 Inter, Arial, sans-serif;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.quotes-title {
  margin: 0;
  color: var(--q-ink);
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(30px, 3.2vw, 42px);
  font-weight: 700;
  line-height: 1.2;
}

.quotes-title span {
  color: var(--q-brown);
}

.quotes-top-controls {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-shrink: 0;
  padding-bottom: 3px;
}

.quotes-see-all {
  padding: 5px 0;
  border: 0;
  border-bottom: 1px solid var(--q-brown);
  background: transparent;
  color: var(--q-brown);
  font: 700 15px/1.4 Inter, Arial, sans-serif;
  cursor: pointer;
}

.quotes-arrows {
  display: flex;
  gap: 8px;
}

.quotes-arrow {
  width: 40px;
  height: 40px;
  padding: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: var(--q-brown);
  color: #fff;
  cursor: pointer;
  transition: background .2s ease, opacity .2s ease;
}

.quotes-arrow svg,
.quote-btn svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.quotes-arrow:hover:not(:disabled) {
  background: var(--q-ink);
}

.quotes-arrow:disabled {
  opacity: .4;
  cursor: not-allowed;
}

/* Horizontal carousel */

.quotes-grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 48px) / 3);
  gap: 24px;
  align-items: stretch;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.quotes-grid::-webkit-scrollbar {
  display: none;
}

.quote-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 332px;
  padding: 32px 28px 24px;
  border-radius: 16px;
  background: var(--q-card);
  scroll-snap-align: start;
  transition: transform .25s ease, box-shadow .25s ease;
}

.quote-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(73, 51, 33, .1);
}

.quote-icon {
  height: 37px;
  margin-bottom: 17px;
  color: #a58362;
  font: 700 46px/.8 Georgia, serif;
}

.quote-text {
  flex: 1;
  margin: 0 0 25px;
  color: var(--q-text);
  font-family: "Noto Serif Devanagari", Georgia, serif;
  font-size: 16px;
  line-height: 1.85;
  overflow-wrap: anywhere;
}

.quote-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 19px;
  border-top: 1px solid var(--q-line);
}

.quote-author {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
}

.quote-avatar {
  display: block;
  width: 42px;
  height: 42px;
  min-width: 42px;
  border: 2px solid var(--q-bg);
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 2px 7px rgba(73, 51, 33, .14);
}

.quote-author-details {
  min-width: 0;
}

.quote-author-name {
  margin: 0;
  color: var(--q-brown);
  font: 700 13px/1.5 Inter, Arial, sans-serif;
  overflow-wrap: anywhere;
}

.quote-author-eng {
  margin: 3px 0 0;
  color: var(--q-muted);
  font: 400 11px/1.4 Inter, Arial, sans-serif;
  overflow-wrap: anywhere;
}

/* Refined share button - bottom-right */

.quotes-section .quote-btn.quote-share {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  padding: 10px;
  border: 1px solid rgba(128, 86, 51, .16);
  border-radius: 50%;
  background: #fffdf9;
  color: #805633;
  box-shadow: 0 2px 5px rgba(73, 51, 33, .06);
  cursor: pointer;
  transition: background .25s ease, color .25s ease,
              transform .25s ease, box-shadow .25s ease;
}

.quotes-section .quote-btn.quote-share:hover {
  background: #805633;
  color: #fffdf9;
  box-shadow: 0 4px 10px rgba(73, 51, 33, .18);
  transform: translateY(-2px);
}

.quotes-section .quote-btn.quote-share:focus-visible {
  outline: 2px solid #805633;
  outline-offset: 3px;
}

/* See All expanded grid */

.quotes-grid.is-expanded {
  grid-auto-flow: row;
  grid-auto-columns: auto;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: visible;
  scroll-snap-type: none;
}

.quotes-status {
  min-height: 18px;
  margin: 8px 0 0;
  color: var(--q-muted);
  font: 12px/1.5 Inter, Arial, sans-serif;
}

/* Tablet */

@media (max-width: 1024px) {
  .quotes-container {
    width: calc(100% - 40px);
  }

  .quotes-grid {
    grid-auto-columns: calc((100% - 24px) / 2);
    gap: 24px;
  }

  .quotes-grid.is-expanded {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .quote-card {
    padding: 28px 22px 22px;
  }
}

/* Mobile */

@media (max-width: 600px) {
  .quotes-section {
    padding: 34px 0 45px;
  }

  .quotes-container {
    width: calc(100% - 32px);
  }

  .quotes-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 24px;
  }

  .quotes-title {
    font-size: 30px;
  }

  .quotes-top-controls {
    width: 100%;
    justify-content: flex-end;
    gap: 16px;
  }

  .quotes-grid {
    grid-auto-columns: 100%;
    gap: 14px;
  }

  .quote-card {
    min-height: 300px;
    padding: 26px 21px 21px;
  }

  .quote-text {
    font-size: 15px;
    line-height: 1.85;
  }

  .quote-avatar {
    width: 38px;
    height: 38px;
    min-width: 38px;
  }

  .quote-author-name {
    font-size: 12px;
  }

  .quote-author-eng {
    font-size: 10px;
  }

  .quotes-arrow {
    width: 38px;
    height: 38px;
  }

  .quotes-grid.is-expanded {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .quotes-section *,
  .quotes-section *::before,
  .quotes-section *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}


/* ========================================== */
/* SECTION: TODAY'S SOOTRADHAR (Full Width)   */
/* ========================================== */

.sootradhar-shelf-section {
    background-color: #FFFDF9;
    padding: 60px 0;
    width: 100%;
    overflow: hidden;
}

.shelf-full-wrapper {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    background-color: #FFFDF9;
    padding: 40px clamp(16px, 4vw, 60px) 30px;
    display: flex;
    flex-direction: column;
    gap: 22px;
    min-width: 0;
}

.shelf-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px 24px;
    flex-wrap: wrap;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.shelf-titles {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.shelf-eyebrow {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #805633;
    font-weight: 700;
}

.shelf-h1 {
    margin: 0;
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    color: #493321;
    font-size: clamp(28px, 5vw, 38px);
    line-height: 1.15;
}

.shelf-h1 em {
    font-style: normal;
    color: #805633;
}

.shelf-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.shelf-all {
    background: none;
    border: 0;
    padding: 8px 4px;
    margin-right: 6px;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 15px;
    color: #805633;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 5px;
    cursor: pointer;
    transition: color 0.2s ease;
}

.shelf-all:hover {
    color: #493321;
}

.shelf-nav {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 0;
    background-color: #805633;
    color: #FFFDF9;
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: transform 0.15s, opacity 0.15s, background 0.2s;
}

.shelf-nav svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.shelf-nav:hover:not(:disabled) {
    transform: scale(1.08);
    background-color: #493321;
}

.shelf-nav:disabled {
    opacity: 0.3;
    cursor: default;
}

.shelf-track {
    display: flex;
    gap: 18px;
    margin: 0 -16px;
    padding: 16px 16px 26px;
    list-style: none;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    min-width: 0;
    width: 100%;
}

.shelf-track::-webkit-scrollbar {
    display: none;
}

.shelf-track li {
    --tilt: -1.1deg;
    flex: 0 0 auto;
    scroll-snap-align: start;
}

.shelf-track li:nth-child(even) {
    --tilt: 0.9deg;
}

.shelf-track li:nth-child(3n) {
    --tilt: 0.2deg;
}

.shelf-full-wrapper.open .shelf-track {
    flex-wrap: wrap;
    overflow: visible;
    scroll-snap-type: none;
    row-gap: 26px;
    justify-content: center;
}

.shelf-full-wrapper.open .shelf-nav {
    display: none;
}

/* ✅ CARD - Ab Beige Color Mein */
.shelf-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 150px;
    height: 100%;
    padding: 30px 14px 14px;
    position: relative;
    background-color: #F0E4D2;
    border-radius: 6px;
    color: inherit;
    text-decoration: none;
    rotate: var(--tilt);
    box-shadow: 0 1px 0 #D9C7AE, 0 12px 18px -12px rgba(73, 51, 33, 0.45);
    transition: rotate 0.25s ease, translate 0.25s ease, box-shadow 0.25s ease;
}

.shelf-card::before {
    content: "";
    position: absolute;
    top: 10px;
    left: 50%;
    translate: -50% 0;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #FFFDF9;
    box-shadow: inset 0 1.5px 2px rgba(73, 51, 33, 0.45);
}

.shelf-card:hover,
.shelf-card:focus-visible {
    rotate: 0deg;
    translate: 0 -6px;
    box-shadow: 0 1px 0 #D9C7AE, 0 20px 24px -14px rgba(73, 51, 33, 0.45);
}

/* ✅ STAMP - Card ke andar white ring */
.shelf-stamp {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    rotate: -8deg;
    border: 2px solid #B5694A;
    background-color: rgba(181, 105, 74, 0.12);
    box-shadow: inset 0 0 0 4px #F0E4D2, inset 0 0 0 5.5px #B5694A;
}

.shelf-stamp span {
    font-family: 'Playfair Display', serif;
    font-size: 34px;
    line-height: 1;
    color: #493321;
    margin-top: 6px;
}

.shelf-name {
    margin-top: 12px;
    font-family: 'Playfair Display', serif;
    font-size: 16px;
    line-height: 1.35;
    color: #493321;
    min-height: 43px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.shelf-rows {
    align-self: stretch;
    margin-top: 10px;
    display: flex;
    flex-direction: column;
}

.shelf-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 8px;
    padding: 6px 0;
    border-top: 1px dashed #D9C7AE;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    color: #6F5D4C;
}

.shelf-row b {
    font-weight: 600;
    color: #30271F;
    white-space: nowrap;
}

.shelf-note {
    margin: 0;
    font-family: 'Inter', sans-serif;
    font-size: 12.5px;
    color: #6F5D4C;
    opacity: 0.85;
    max-width: 1400px;
    margin-inline: auto;
    width: 100%;
}

/* ========================================== */
/* RESPONSIVE                                 */
/* ========================================== */

@media (max-width: 768px) {
    .sootradhar-shelf-section {
        padding: 40px 0;
    }

    .shelf-full-wrapper {
        padding: 30px 16px 24px;
    }

    .shelf-track {
        margin: 0 -16px;
        padding: 16px 16px 24px;
    }

    .shelf-card {
        width: 140px;
    }
}

@media (max-width: 520px) {
    .shelf-full-wrapper {
        padding: 24px 12px 20px;
        gap: 16px;
    }

    .shelf-card {
        width: 130px;
    }

    .shelf-stamp {
        width: 60px;
        height: 60px;
    }

    .shelf-stamp span {
        font-size: 28px;
    }

    .shelf-h1 {
        font-size: 1.6rem;
    }

    .shelf-nav {
        width: 36px;
        height: 36px;
    }

    .shelf-all {
        font-size: 14px;
    }
}



/* ========================================== */
/* SECTION: WORD OF THE DAY (Aaj Ka Shabd)    */
/* ========================================== */

.wotd-section {
    max-width: 1040px;
    margin: 60px auto;
    min-width: 0;
    background: #F0E4D2;
    border-radius: 26px;
    padding: 12px;
    padding-left: max(16px, env(safe-area-inset-left, 0px));
    padding-right: max(16px, env(safe-area-inset-right, 0px));
}

.wotd-card {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr) minmax(0, 1.5fr);
    grid-template-areas: "leaf entry sher";
    align-items: center;
    gap: 28px;
    background: #FFFDF9;
    border-radius: 16px;
    padding: 24px 28px;
    box-shadow: 0 1px 0 #D9C7AE, 0 14px 22px -16px rgba(73, 51, 33, 0.45);
}

/* Calendar Leaf */
.wotd-leaf {
    grid-area: leaf;
    width: 92px;
    text-align: center;
    rotate: -2.5deg;
    border: 1.5px solid #D9C7AE;
    border-radius: 10px;
    overflow: hidden;
    background: #FFFDF9;
    box-shadow: 0 8px 14px -10px rgba(73, 51, 33, 0.45);
}

.wotd-band {
    position: relative;
    background: #B5694A;
    color: #FFFDF9;
    padding: 9px 0 5px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
}

.wotd-band::before,
.wotd-band::after {
    content: "";
    position: absolute;
    top: 4px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #FFFDF9;
    box-shadow: inset 0 1px 1px rgba(73, 51, 33, 0.45);
}

.wotd-band::before {
    left: 12px;
}

.wotd-band::after {
    right: 12px;
}

.wotd-day {
    font-family: 'Playfair Display', serif;
    font-size: 42px;
    line-height: 1.05;
    color: #493321;
    padding-top: 8px;
    font-variant-numeric: tabular-nums;
}

.wotd-wk {
    font-size: 12px;
    color: #6F5D4C;
    padding: 0 4px 9px;
}

/* Word Entry */
.wotd-entry {
    grid-area: entry;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.wotd-eyebrow {
    font-size: 11.5px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #6F5D4C;
    font-weight: 600;
}

.wotd-word {
    margin: 0;
    font-family: 'Playfair Display', serif;
    font-weight: 400;
    font-size: 46px;
    line-height: 1.1;
    color: #493321;
    overflow-wrap: anywhere;
}

.wotd-roman {
    margin: 0;
    font-size: 14px;
    color: #6F5D4C;
}

.wotd-roman b {
    color: #30271F;
    font-weight: 700;
}

.wotd-meaning {
    margin: 4px 0 0;
    align-self: flex-start;
    font-size: 14px;
    font-weight: 600;
    color: #805633;
    padding: 4px 12px;
    border-radius: 999px;
    border: 1.5px solid #805633;
}

/* Couplet */
.wotd-sher {
    grid-area: sher;
    margin: 0;
    min-width: 0;
    padding-left: 28px;
    border-left: 1.5px dashed #D9C7AE;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.wotd-blockquote {
    margin: 0;
    font-family: 'Playfair Display', serif;
    font-size: clamp(18px, 2.2vw, 22px);
    line-height: 1.75;
    color: #493321;
}

.wotd-blockquote span {
    display: block;
}

.wotd-blockquote span+span {
    padding-left: 1.8em;
}

.wotd-blockquote mark {
    color: inherit;
    background: linear-gradient(transparent 58%, rgba(181, 105, 74, 0.38) 58%);
    padding: 0 2px;
    border-radius: 2px;
}

.wotd-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.wotd-poet {
    font-weight: 700;
    font-size: 15px;
    color: #B5694A;
}

.wotd-acts {
    display: flex;
    align-items: center;
    gap: 6px;
}

.wotd-acts button {
    font: inherit;
    cursor: pointer;
}

.wotd-acts button:focus-visible {
    outline: 2px solid #805633;
    outline-offset: 3px;
}

.wotd-copy {
    background: none;
    border: 0;
    padding: 8px 6px;
    margin-right: 4px;
    color: #805633;
    font-weight: 700;
    font-size: 14px;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 5px;
}

.wotd-nav {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 0;
    display: grid;
    place-items: center;
    background: #805633;
    color: #FFFDF9;
    transition: transform 0.15s;
}

.wotd-nav svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.wotd-nav:hover {
    transform: scale(1.08);
}

/* Animation */
.wotd-swap {
    animation: wotd-rise 0.35s ease both;
}

@keyframes wotd-rise {
    from {
        opacity: 0;
        translate: 0 6px;
    }

    to {
        opacity: 1;
        translate: 0 0;
    }
}

/* ========================================== */
/* RESPONSIVE                                 */
/* ========================================== */

@media (max-width: 760px) {
    .wotd-section {
        margin: 40px auto;
        padding: 10px;
    }

    .wotd-card {
        grid-template-columns: 78px minmax(0, 1fr);
        grid-template-areas:
            "leaf entry"
            "sher sher";
        gap: 18px 18px;
        padding: 20px 18px;
    }

    .wotd-leaf {
        width: 78px;
    }

    .wotd-day {
        font-size: 34px;
    }

    .wotd-word {
        font-size: 36px;
    }

    .wotd-sher {
        padding-left: 0;
        border-left: 0;
        padding-top: 16px;
        border-top: 1.5px dashed #D9C7AE;
    }
}

@media (prefers-reduced-motion: reduce) {
    .wotd-swap {
        animation: none;
    }

    .wotd-nav {
        transition: none;
    }
}


/* primimum feature */

/* ========================================== */
/* SECTION: KAVITA (Full Width)               */
/* ========================================== */

.kv {
    --bg: #fffdf9;
    --section: #f0e4d2;
    --head: #493321;
    --btn: #805633;
    --btn-ink: #fffdf9;
    --body: #30271f;
    --soft: #6f5d4c;
    --clay: #b5694a;
    --rule: #d9c7ae;
    --shadow: rgba(73, 51, 33, .45);
    --font-display: "Tiro Devanagari Hindi", "Noto Serif Devanagari", Georgia, serif;
    --font-body: "Mukta", "Noto Sans Devanagari", system-ui, sans-serif;

    width: 100%;
    background: var(--section);
    padding: 40px clamp(16px, 4vw, 60px);
    color: var(--body);
    font-family: var(--font-body);
    line-height: 1.5;
}

.kv,
.kv *,
.kv *::before,
.kv *::after {
    box-sizing: border-box;
}

.kv a {
    color: inherit;
    text-decoration: none;
}

.kv a:focus-visible {
    outline: 2px solid var(--btn);
    outline-offset: 3px;
    border-radius: 6px;
}

.kv__head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px 24px;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto 24px;
    width: 100%;
}

.kv__titles {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.kv__eyebrow {
    font-size: 12px;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--soft);
    font-weight: 600;
}

.kv__title {
    margin: 0;
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(30px, 5vw, 40px);
    line-height: 1.1;
    color: var(--head);
}

.kv__all {
    font-weight: 700;
    font-size: 15px;
    color: var(--btn);
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 5px;
}

.kv__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 28px;
    align-items: start;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.kv__sheet {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: var(--bg);
    border-radius: 16px;
    padding: 26px 28px 24px 66px;
    box-shadow: 0 1px 0 var(--rule), 0 14px 22px -16px var(--shadow);
}

.kv__sheet::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 48px;
    width: 2px;
    background: color-mix(in srgb, var(--clay) 40%, transparent);
}

.kv__sheet::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 14px;
    width: 14px;
    background:
        radial-gradient(circle 6px at 7px 24%, var(--section) 96%, transparent 100%) no-repeat,
        radial-gradient(circle 6px at 7px 76%, var(--section) 96%, transparent 100%) no-repeat;
}

.kv__tags {
    display: flex;
    gap: 8px;
}

.kv__tag {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .04em;
    padding: 3px 11px;
    border-radius: 999px;
    border: 1.5px solid var(--rule);
    color: var(--soft);
}

.kv__tag--pro {
    background: var(--btn);
    border-color: var(--btn);
    color: var(--btn-ink);
}

.kv__poem {
    margin: 6px 0 0;
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(24px, 3.4vw, 30px);
    line-height: 1.25;
    color: var(--head);
}

.kv__poet {
    margin: 0;
    font-weight: 700;
    font-size: 15px;
    color: var(--clay);
}

.kv__lines {
    margin-top: 8px;
    font-family: var(--font-display);
    font-size: clamp(18px, 2.3vw, 22px);
    line-height: 1.8;
    color: var(--head);
}

.kv__lines span {
    display: block;
}

.kv__lines span+span {
    padding-left: 1.4em;
}

.kv__redacted {
    display: grid;
    gap: 13px;
    padding: 6px 0 4px;
    -webkit-mask-image: linear-gradient(#000, transparent);
    mask-image: linear-gradient(#000, transparent);
}

.kv__redacted i {
    display: block;
    height: 11px;
    border-radius: 6px;
    background: var(--rule);
    filter: blur(1.2px);
}

.kv__redacted i:nth-child(1) {
    width: 94%;
}

.kv__redacted i:nth-child(2) {
    width: 70%;
    margin-left: 1.4em;
}

.kv__redacted i:nth-child(3) {
    width: 88%;
}

.kv__redacted i:nth-child(4) {
    width: 58%;
    margin-left: 1.4em;
}

.kv__gate {
    display: flex;
    align-items: center;
    gap: 12px 14px;
    flex-wrap: wrap;
    margin-top: 4px;
    padding-top: 16px;
    border-top: 1.5px dashed var(--rule);
}

.kv__lock,
.kv__rowlock {
    display: grid;
    place-items: center;
    flex: none;
    border-radius: 50%;
    border: 1.5px solid var(--rule);
    color: var(--soft);
    background: var(--bg);
}

.kv__lock {
    width: 38px;
    height: 38px;
}

.kv__lock svg,
.kv__rowlock svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.kv__gate-text {
    margin: 0;
    flex: 1 1 200px;
    font-size: 14.5px;
    color: var(--soft);
}

.kv__gate-text b {
    color: var(--btn);
}

.kv__gate-actions {
    display: flex;
    align-items: center;
    gap: 12px 16px;
    flex-wrap: wrap;
    flex-basis: 100%;
}

.kv__btn {
    display: inline-flex;
    align-items: center;
    padding: 10px 22px;
    border-radius: 999px;
    background: var(--btn);
    color: var(--btn-ink) !important;
    font-weight: 700;
    font-size: 15px;
    transition: transform .15s, box-shadow .15s;
}

.kv__btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 16px -10px var(--shadow);
}

.kv__login {
    font-size: 14px;
    font-weight: 600;
    color: var(--btn);
    text-decoration: underline;
    text-underline-offset: 4px;
}

.kv__side {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.kv__side-title {
    margin: 0 0 4px;
    font-size: 13px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--soft);
    font-weight: 700;
}

.kv__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.kv__list li+li {
    border-top: 1.5px dashed var(--rule);
}

.kv__row {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    padding: 14px 10px;
    border-radius: 12px;
    transition: background .2s;
}

.kv__row:hover,
.kv__row:focus-visible {
    background: color-mix(in srgb, var(--bg) 75%, transparent);
}

.kv__mono {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    rotate: -6deg;
    font-family: var(--font-display);
    font-size: 22px;
    color: var(--head);
    padding-top: 3px;
    border: 2px solid var(--clay);
    background: color-mix(in srgb, var(--clay) 12%, var(--bg));
    box-shadow: inset 0 0 0 3px var(--bg), inset 0 0 0 4px var(--clay);
}

.kv__row-body {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.kv__row-title {
    font-family: var(--font-display);
    font-size: 18px;
    line-height: 1.3;
    color: var(--head);
}

.kv__row-meta {
    font-size: 12.5px;
    color: var(--soft);
}

.kv__row-line {
    font-family: var(--font-display);
    font-size: 15px;
    color: var(--soft);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.kv__rowlock {
    width: 30px;
    height: 30px;
    transition: background .2s, color .2s, border-color .2s;
}

.kv__rowlock svg {
    width: 14px;
    height: 14px;
}

.kv__row:hover .kv__rowlock,
.kv__row:focus-visible .kv__rowlock {
    background: var(--btn);
    color: var(--btn-ink);
    border-color: var(--btn);
}

@media (max-width: 860px) {
    .kv {
        padding: 30px 16px;
    }

    .kv__grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 22px;
    }

    .kv__sheet {
        padding: 22px 18px 20px 52px;
    }

    .kv__sheet::before {
        left: 38px;
    }

    .kv__sheet::after {
        left: 10px;
    }
}

@media (prefers-reduced-motion: reduce) {

    .kv__btn,
    .kv__row,
    .kv__rowlock {
        transition: none;
    }
}


/* Community stats + Premium pass. Every selector starts with .cm so it cannot touch the rest of the site.
   .cm is the full-width band (background). .cm__inner keeps the content centered. */
.cm {
    --ink: #493321;
    --paper: #f0e4d2;
    --cream: #fffdf9;
    --clay: #e09a76;
    --muted: #cdbca5;
    --line: rgba(240, 228, 210, .24);
    --soft: #6f5d4c;
    --font-display: "Tiro Devanagari Hindi", "Noto Serif Devanagari", Georgia, serif;
    --font-body: "Mukta", "Noto Sans Devanagari", system-ui, sans-serif;

    position: relative;
    overflow: hidden;
    width: 100%;
    margin: 0;
    background: var(--ink);
    background-image: radial-gradient(circle at 88% 0%, rgba(224, 154, 118, .22), transparent 40%);
    padding: clamp(40px, 6vw, 64px) clamp(16px, 4vw, 32px);
    color: var(--paper);
    font-family: var(--font-body);
    line-height: 1.5;
}

.cm__inner {
    max-width: 1040px;
    margin-inline: auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 26px;
}

.cm,
.cm *,
.cm *::before,
.cm *::after {
    box-sizing: border-box;
}

.cm a {
    text-decoration: none;
}

.cm a:focus-visible {
    outline: 2px solid var(--clay);
    outline-offset: 3px;
    border-radius: 8px;
}

/* heading */
.cm__head {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cm__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-size: 12px;
    letter-spacing: .16em;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--muted);
}

.cm__live {
    position: relative;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--clay);
}

.cm__live::after {
    content: "";
    position: absolute;
    inset: -5px;
    border-radius: 50%;
    border: 1.5px solid var(--clay);
    animation: cm-pulse 1.8s ease-out infinite;
}

@keyframes cm-pulse {
    from {
        opacity: .9;
        transform: scale(.5);
    }

    to {
        opacity: 0;
        transform: scale(1.5);
    }
}

.cm__title {
    margin: 0;
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(28px, 4.8vw, 40px);
    line-height: 1.15;
    color: var(--cream);
    text-wrap: balance;
}

.cm__title em {
    font-style: normal;
    color: var(--clay);
}

/* live ticket tiles */
.cm__tiles {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 14px;
}

.cm__tile {
    padding: 18px 18px 16px;
    border-radius: 14px;
    min-width: 0;
    background: rgba(240, 228, 210, .07);
    border: 1.5px solid var(--line);
}

.cm__num {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(34px, 5vw, 42px);
    line-height: 1.05;
    color: var(--cream);
    font-variant-numeric: tabular-nums;
}

.cm__unit {
    color: var(--clay);
}

.cm__label {
    position: relative;
    margin: 14px 0 0;
    padding-top: 12px;
    border-top: 1.5px dashed var(--line);
    font-size: 13.5px;
    color: var(--muted);
}

.cm__label::before,
.cm__label::after {
    content: "";
    position: absolute;
    top: -8px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--ink);
}

.cm__label::before {
    left: -26px;
}

.cm__label::after {
    right: -26px;
}

/* premium pass */
.cm__pass {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    align-items: stretch;
    background: var(--paper);
    color: var(--ink);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 18px 30px -20px rgba(0, 0, 0, .6);
}

.cm__perks {
    padding: 26px 28px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
}

.cm__badge {
    align-self: flex-start;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 999px;
    background: var(--ink);
    color: var(--paper);
}

.cm__pass-title {
    margin: 0;
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(22px, 3.2vw, 28px);
    line-height: 1.25;
    color: var(--ink);
}

.cm__list {
    list-style: none;
    margin: 4px 0 0;
    padding: 0;
    display: grid;
    gap: 9px;
}

.cm__list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 15px;
    color: #30271f;
}

.cm__list svg {
    flex: none;
    width: 20px;
    height: 20px;
    padding: 3px;
    margin-top: 2px;
    border-radius: 50%;
    background: #b5694a;
    stroke: #fffdf9;
    fill: none;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.cm__stub {
    position: relative;
    padding: 26px 28px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 20px;
    min-width: 0;
    border-left: 2px dashed rgba(73, 51, 33, .35);
}

.cm__stub::before,
.cm__stub::after {
    content: "";
    position: absolute;
    left: -9px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--ink);
}

.cm__stub::before {
    top: -8px;
}

.cm__stub::after {
    bottom: -8px;
}

.cm__totals {
    margin: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.cm__totals div {
    min-width: 0;
}

.cm__totals dt {
    font-size: 12px;
    color: var(--soft);
    order: 2;
}

.cm__totals div {
    display: flex;
    flex-direction: column;
}

.cm__totals dd {
    margin: 0;
    order: 1;
    font-family: var(--font-display);
    font-size: 24px;
    line-height: 1.1;
    color: var(--ink);
    font-variant-numeric: tabular-nums;
}

.cm__cta {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
}

.cm__btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 11px 22px;
    border-radius: 999px;
    background: var(--ink);
    color: var(--paper) !important;
    font-weight: 700;
    font-size: 15px;
    text-align: center;
    border: 2px solid var(--ink);
    transition: transform .15s, box-shadow .15s;
}

.cm__btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 16px -10px rgba(73, 51, 33, .8);
}

.cm__btn--ghost {
    background: transparent;
    color: var(--ink) !important;
}

.cm__login {
    align-self: center;
    font-size: 14px;
    font-weight: 600;
    color: #805633;
    text-decoration: underline !important;
    text-underline-offset: 4px;
}

.cm__member {
    margin: 0;
    text-align: center;
    font-weight: 700;
    color: #805633;
}

@media (max-width: 760px) {
    .cm {
        padding-block: 36px;
    }

    .cm__pass {
        grid-template-columns: minmax(0, 1fr);
    }

    .cm__perks {
        padding: 22px 20px 18px;
    }

    .cm__stub {
        padding: 22px 20px;
        border-left: 0;
        border-top: 2px dashed rgba(73, 51, 33, .35);
    }

    .cm__stub::before {
        left: -8px;
        top: -9px;
    }

    .cm__stub::after {
        left: auto;
        right: -8px;
        top: -9px;
        bottom: auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cm__live::after {
        animation: none;
        opacity: 0;
    }

    .cm__btn {
        transition: none;
    }
}





/* Book promotion. Every selector starts with .pb so it cannot touch the rest of the site.
   Sits on a white page. It is a contained block (not full width). */
.pb {
    --ink: #493321;
    --btn: #805633;
    --clay: #b5694a;
    --paper: #f0e4d2;
    --cream: #fffdf9;
    --body: #30271f;
    --soft: #6f5d4c;
    --rule: #d9c7ae;
    --font-display: "Tiro Devanagari Hindi", "Noto Serif Devanagari", Georgia, serif;
    --font-body: "Mukta", "Noto Sans Devanagari", system-ui, sans-serif;

    max-width: 1040px;
    margin: 48px auto;
    padding-inline: clamp(16px, 4vw, 32px);
    color: var(--body);
    font-family: var(--font-body);
    line-height: 1.5;
}

.pb,
.pb *,
.pb *::before,
.pb *::after {
    box-sizing: border-box;
}

.pb a {
    text-decoration: none;
}

.pb a:focus-visible {
    outline: 2px solid var(--btn);
    outline-offset: 3px;
    border-radius: 8px;
}

.pb__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    gap: clamp(28px, 5vw, 56px);
    align-items: center;
}

/* copy */
.pb__copy {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
}

.pb__eyebrow {
    font-size: 12px;
    letter-spacing: .16em;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--clay);
}

.pb__title {
    margin: 0;
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(32px, 5.2vw, 46px);
    line-height: 1.15;
    color: var(--ink);
    text-wrap: balance;
}

.pb__title em {
    font-style: normal;
    color: var(--clay);
    padding: 0 .06em;
    background: linear-gradient(transparent 70%, color-mix(in srgb, var(--clay) 22%, transparent) 70%);
}

.pb__lead {
    margin: 0;
    max-width: 46ch;
    font-size: 16.5px;
    color: #4a3d31;
}

.pb__steps {
    list-style: none;
    margin: 6px 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.pb__steps li {
    position: relative;
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 14px;
    padding-bottom: 18px;
}

.pb__steps li:last-child {
    padding-bottom: 0;
}

.pb__steps li:not(:last-child)::before {
    content: "";
    position: absolute;
    left: 18px;
    top: 42px;
    bottom: 4px;
    border-left: 2px dashed var(--rule);
}

.pb__n {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--ink);
    color: var(--cream);
    font-family: var(--font-display);
    font-size: 18px;
    padding-top: 2px;
}

.pb__steps b {
    display: block;
    font-size: 16px;
    color: var(--ink);
    line-height: 1.3;
    padding-top: 2px;
}

.pb__steps li span:not(.pb__n) {
    display: block;
    font-size: 14px;
    color: var(--soft);
}

.pb__cta {
    display: flex;
    align-items: center;
    gap: 12px 22px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.pb__btn {
    display: inline-flex;
    align-items: center;
    padding: 13px 28px;
    border-radius: 999px;
    background: var(--btn);
    color: var(--cream) !important;
    font-weight: 700;
    font-size: 16px;
    box-shadow: 0 12px 20px -12px rgba(128, 86, 51, .9);
    transition: transform .15s, box-shadow .15s;
}

.pb__btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 24px -12px rgba(128, 86, 51, .9);
}

.pb__link {
    font-weight: 700;
    font-size: 15px;
    color: var(--btn);
    text-decoration: underline !important;
    text-decoration-thickness: 2px;
    text-underline-offset: 5px;
}

/* stage: a warm square with a 3D book standing on two flat ones. All sizes use cqw, so it scales with its box. */
.pb__stage {
    position: relative;
    container-type: inline-size;
    width: 100%;
    max-width: 460px;
    margin-inline: auto;
    aspect-ratio: 1 / 1;
    border-radius: 28px;
    overflow: hidden;
    background: radial-gradient(circle at 50% 38%, #fbf1e1 0, #f0e4d2 55%, #e7d4b9 100%);
    box-shadow: 0 26px 40px -30px rgba(73, 51, 33, .7);
}

.pb__stage::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(73, 51, 33, .14) 1.2px, transparent 1.5px);
    background-size: 18px 18px;
    -webkit-mask-image: radial-gradient(circle at 50% 42%, transparent 28%, #000 90%);
    mask-image: radial-gradient(circle at 50% 42%, transparent 28%, #000 90%);
}

.pb__sun {
    position: absolute;
    left: 50%;
    top: 38%;
    width: 66cqw;
    aspect-ratio: 1;
    translate: -50% -50%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(181, 105, 74, .3), transparent 68%);
}

.pb__shadow {
    position: absolute;
    left: 50%;
    bottom: 5cqw;
    width: 66cqw;
    height: 5cqw;
    translate: -50% 0;
    border-radius: 50%;
    background: radial-gradient(rgba(73, 51, 33, .38), transparent 70%);
}

/* two flat books underneath */
.pb__slab {
    position: absolute;
    left: 50%;
    translate: -50% 0;
    border-radius: 1cqw;
    overflow: hidden;
    background: linear-gradient(90deg, var(--c) 0 91%, #fffdf9 91% 94%, #e8dcc8 94% 100%);
    box-shadow: 0 1cqw 2cqw -1cqw rgba(0, 0, 0, .4);
}

.pb__slab::before {
    content: "";
    position: absolute;
    left: 6%;
    top: 0;
    bottom: 0;
    width: 1.2cqw;
    background: rgba(255, 253, 249, .35);
}

.pb__slab--1 {
    --c: #493321;
    bottom: 9cqw;
    width: 62cqw;
    height: 8cqw;
}

.pb__slab--2 {
    --c: #805633;
    bottom: 17cqw;
    width: 52cqw;
    height: 7cqw;
    rotate: -1.5deg;
}

/* the standing book (real 3D box: front, back, spine, page edge, top edge) */
.pb__float {
    position: absolute;
    left: 50%;
    bottom: 24cqw;
    width: 40cqw;
    height: 54cqw;
    translate: -50% 0;
    perspective: 170cqw;
    animation: pb-float 5.5s ease-in-out infinite;
}

.pb__book {
    --d: 7cqw;
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transform: rotateX(var(--rx, -8deg)) rotateY(var(--ry, 24deg));
    transition: transform .25s ease-out;
}

.pb__face {
    position: absolute;
}

.pb__front {
    inset: 0;
    transform: translateZ(calc(var(--d) / 2));
    border-radius: .8cqw 2cqw 2cqw .8cqw;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.4cqw;
    text-align: center;
    background: linear-gradient(155deg, #c47653, #9a5638 70%, #8a4a30);
    color: var(--cream);
    font-family: var(--font-display);
    box-shadow: inset -.6cqw 0 1.4cqw rgba(0, 0, 0, .2), inset 1cqw 0 0 rgba(255, 255, 255, .08);
}

.pb__front::before {
    content: "";
    position: absolute;
    inset: 3.4cqw;
    border: .3cqw solid rgba(255, 253, 249, .5);
    border-radius: 1cqw;
}

.pb__front::after {
    content: "";
    position: absolute;
    right: 7cqw;
    top: 0;
    width: 3.6cqw;
    height: 9cqw;
    background: var(--paper);
    clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 82%, 0 100%);
}

.pb__front svg {
    width: 9cqw;
    height: 9cqw;
    stroke: var(--cream);
    fill: none;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.pb__front strong {
    font-weight: 400;
    font-size: 6.6cqw;
    line-height: 1.2;
}

.pb__front span {
    font-family: var(--font-body);
    font-size: 2.6cqw;
    letter-spacing: .08em;
    padding-top: 1.8cqw;
    border-top: .25cqw solid rgba(255, 253, 249, .5);
}

.pb__back {
    inset: 0;
    transform: translateZ(calc(var(--d) / -2)) rotateY(180deg);
    background: #7e442d;
    border-radius: 2cqw .8cqw .8cqw 2cqw;
}

.pb__spine {
    top: 0;
    left: calc(var(--d) / -2);
    width: var(--d);
    height: 100%;
    transform: rotateY(-90deg);
    background: linear-gradient(90deg, #7a4029, #a85f40 50%, #7a4029);
}

.pb__pages {
    top: 1%;
    left: calc(100% - var(--d) / 2);
    width: var(--d);
    height: 98%;
    transform: rotateY(90deg);
    background: repeating-linear-gradient(90deg, #fffdf9 0 .35cqw, #e8dcc8 .35cqw .6cqw);
}

.pb__top {
    top: calc(var(--d) / -2);
    left: 0;
    width: 98%;
    height: var(--d);
    transform: rotateX(90deg);
    background: repeating-linear-gradient(0deg, #fffdf9 0 .35cqw, #e8dcc8 .35cqw .6cqw);
}

/* floating bits */
.pb__quill {
    position: absolute;
    top: 10cqw;
    right: 15cqw;
    width: 11cqw;
    height: 11cqw;
    stroke: var(--ink);
    fill: none;
    stroke-width: 1.4;
    stroke-linecap: round;
    stroke-linejoin: round;
    rotate: 16deg;
    animation: pb-bob 6s ease-in-out infinite .6s;
}

.pb__chip {
    position: absolute;
    display: inline-flex;
    align-items: center;
    gap: 1.6cqw;
    white-space: nowrap;
    padding: 1.7cqw 3.2cqw 1.7cqw 2cqw;
    border-radius: 999px;
    background: #fff;
    color: var(--ink);
    font-size: max(11px, 3.1cqw);
    font-weight: 700;
    box-shadow: 0 8px 18px -10px rgba(73, 51, 33, .6);
    animation: pb-bob 6s ease-in-out infinite;
}

.pb__chip svg {
    width: 4.6cqw;
    height: 4.6cqw;
    padding: .9cqw;
    border-radius: 50%;
    background: var(--clay);
    stroke: #fffdf9;
    fill: none;
    stroke-width: 3.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.pb__chip--a {
    top: 8cqw;
    left: 5cqw;
}

.pb__chip--b {
    top: 31cqw;
    right: 3cqw;
    animation-delay: -2s;
}

.pb__chip--c {
    bottom: 3cqw;
    left: 4cqw;
    animation-delay: -4s;
}

@keyframes pb-float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-1.8cqw);
    }
}

@keyframes pb-bob {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-1.2cqw);
    }
}

@media (max-width: 860px) {
    .pb {
        margin-block: 32px;
    }

    .pb__grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (prefers-reduced-motion: reduce) {

    .pb__float,
    .pb__chip,
    .pb__quill {
        animation: none;
    }

    .pb__book,
    .pb__btn {
        transition: none;
    }
}



/* Sign-up form for authors and readers. Every selector starts with .sf so it cannot touch the rest of the site.
   White page, white form card, and a tinted panel that changes with the chosen role (data-role on .sf). */
.sf {
    --ink: #493321;
    --btn: #805633;
    --clay: #b5694a;
    --cream: #fffdf9;
    --body: #30271f;
    --soft: #6f5d4c;
    --rule: #d9c7ae;
    --line: #e6dac6;
    --err: #b3341f;
    --tint: var(--clay);
    --font-display: "Tiro Devanagari Hindi", "Noto Serif Devanagari", Georgia, serif;
    --font-body: "Mukta", "Noto Sans Devanagari", system-ui, sans-serif;

    max-width: 1040px;
    margin: 48px auto;
    padding-inline: clamp(16px, 4vw, 32px);
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.2fr);
    gap: 24px;
    align-items: stretch;
    color: var(--body);
    font-family: var(--font-body);
    line-height: 1.5;
    padding-bottom:100px;
}

.sf[data-role="reader"] {
    --tint: var(--btn);
}

.sf,
.sf *,
.sf *::before,
.sf *::after {
    box-sizing: border-box;
}

.sf a {
    text-decoration: none;
}

.sf a:focus-visible,
.sf button:focus-visible {
    outline: 2px solid var(--clay);
    outline-offset: 3px;
    border-radius: 8px;
}

/* ---------- aside: what you get, with a live mini demo ---------- */
.sf__aside {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 34px 30px 0;
    border-radius: 28px;
    background: color-mix(in srgb, var(--tint) 11%, #fff);
    transition: background .3s;
}

.sf__aside::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image: radial-gradient(rgba(73, 51, 33, .13) 1.2px, transparent 1.5px);
    background-size: 16px 16px;
    -webkit-mask-image: linear-gradient(#000, transparent 65%);
    mask-image: linear-gradient(#000, transparent 65%);
}

.sf__aside>* {
    position: relative;
}

.sf__pane {
    display: none;
    flex-direction: column;
    gap: 14px;
    animation: sf-in .35s ease both;
}

.sf[data-role="author"] .sf__pane--author,
.sf[data-role="reader"] .sf__pane--reader {
    display: flex;
}

.sf__ah {
    margin: 0;
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(24px, 3vw, 28px);
    line-height: 1.25;
    color: var(--ink);
    text-wrap: balance;
}

.sf__ah em,
.sf__title em {
    font-style: normal;
    color: var(--tint);
    padding: 0 .05em;
    background: linear-gradient(transparent 70%, color-mix(in srgb, var(--tint) 20%, transparent) 70%);
}

.sf__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
}

.sf__list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 15px;
}

.sf__list svg {
    flex: none;
    width: 20px;
    height: 20px;
    padding: 3px;
    margin-top: 2px;
    border-radius: 50%;
    background: var(--tint);
    stroke: #fff;
    fill: none;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* demo window: papers fanned out behind one card that is cropped by the bottom edge */
.sf__vis {
    flex: 1;
    position: relative;
    min-height: 300px;
    margin-inline: -30px;
    overflow: hidden;
}

.sf__show--author,
.sf__show--reader {
    display: none;
}

.sf[data-role="author"] .sf__show--author,
.sf[data-role="reader"] .sf__show--reader {
    display: block;
}

.sf__fan {
    position: absolute;
    left: 50%;
    width: min(300px, 78%);
    height: 280px;
    background: #fff;
    border: 1.5px solid var(--line);
    border-radius: 14px;
}

.sf__fan--1 {
    top: 50px;
    translate: -50% 0;
    rotate: -3.5deg;
    opacity: .9;
}

.sf__fan--2 {
    top: 68px;
    translate: -50% 0;
    rotate: 3.5deg;
    opacity: .6;
}

.sf__sheet,
.sf__read {
    position: absolute;
    left: 50%;
    top: 24px;
    translate: -50% 0;
    width: min(320px, 84%);
    min-height: 250px;
    padding: 12px 16px;
    background: #fff;
    border: 1.5px solid var(--line);
    border-radius: 14px;
    box-shadow: 0 22px 32px -16px rgba(73, 51, 33, .55);
}

/* author demo: the draft types itself, then publishes (pure CSS, loops every 10s) */
.sf__bar {
    display: flex;
    align-items: center;
    gap: 5px;
    padding-bottom: 9px;
    margin-bottom: 8px;
    border-bottom: 1.5px dashed var(--line);
}

.sf__bar i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--rule);
}

.sf__bar span {
    margin-left: auto;
    font-size: 11px;
    color: var(--soft);
    font-weight: 600;
}

.sf__lbl {
    margin: 6px 0 0;
    font-size: 10.5px;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--soft);
    font-weight: 700;
}

.sf__ttl {
    margin: 0;
    min-height: 1.6em;
    font-family: var(--font-display);
    font-size: 18px;
    line-height: 1.5;
    color: var(--ink);
}

.sf__txt {
    margin: 0;
    min-height: 3.5em;
    font-family: var(--font-display);
    font-size: 15px;
    line-height: 1.75;
    color: var(--body);
}

.sf__t {
    display: inline-block;
    clip-path: inset(0 100% 0 0);
}

.sf__t--1 {
    animation: sf-t1 10s infinite;
}

.sf__t--2 {
    animation: sf-t2 10s infinite;
}

.sf__t--3 {
    animation: sf-t3 10s infinite;
}

.sf__sheetfoot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 12px;
}

.sf__saved {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: var(--soft);
}

.sf__saved i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #5a9a6b;
}

.sf__pub {
    font-size: 12px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 999px;
    background: var(--ink);
    color: var(--cream);
    animation: sf-pub 10s infinite;
}

.sf__chip {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 20px;
    margin-inline: auto;
    width: max-content;
    z-index: 2;
    opacity: 0;
    align-items: center;
    gap: 8px;
    padding: 8px 16px 8px 10px;
    border-radius: 999px;
    white-space: nowrap;
    background: var(--ink);
    color: var(--cream);
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 14px 22px -12px rgba(73, 51, 33, .8);
    animation: sf-chip 10s infinite;
}

.sf[data-role="author"] .sf__chip.sf__show--author {
    display: flex;
}

.sf__chip svg {
    width: 18px;
    height: 18px;
    padding: 3px;
    border-radius: 50%;
    background: #5a9a6b;
    stroke: #fff;
    fill: none;
    stroke-width: 3.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* reader demo: a poem card that gets liked and saved */
.sf__who {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sf__mono {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    rotate: -6deg;
    padding-top: 3px;
    font-family: var(--font-display);
    font-size: 18px;
    color: var(--ink);
    border: 2px solid var(--clay);
    background: color-mix(in srgb, var(--clay) 12%, #fff);
    box-shadow: inset 0 0 0 2.5px #fff, inset 0 0 0 3.5px var(--clay);
}

.sf__who b {
    display: block;
    font-size: 14px;
    color: var(--ink);
    line-height: 1.2;
}

.sf__who small {
    font-size: 11.5px;
    color: var(--soft);
}

.sf__rt {
    margin: 10px 0 0;
    font-family: var(--font-display);
    font-size: 18px;
    color: var(--ink);
}

.sf__rl {
    margin: 4px 0 0;
    font-family: var(--font-display);
    font-size: 14.5px;
    line-height: 1.75;
    color: var(--body);
}

.sf__acts {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1.5px dashed var(--line);
}

.sf__heart svg,
.sf__mark svg {
    width: 22px;
    height: 22px;
    stroke: var(--clay);
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: transparent;
}

.sf__heart svg {
    animation: sf-like 6s ease-in-out infinite;
    transform-origin: 50% 60%;
}

.sf__mark svg {
    animation: sf-save 6s ease-in-out infinite;
}

.sf__lockl {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    color: var(--btn);
}

.sf__lockl svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.sf__cap {
    margin: 0;
    padding: 16px 0 20px;
    text-align: center;
    font-family: var(--font-display);
    font-size: 16px;
    color: var(--soft);
    border-top: 1.5px dashed color-mix(in srgb, var(--tint) 35%, transparent);
    background: color-mix(in srgb, var(--tint) 11%, #fff);
}

.sf__cap [data-for] {
    display: none;
}

.sf[data-role="author"] .sf__cap [data-for="author"],
.sf[data-role="reader"] .sf__cap [data-for="reader"] {
    display: inline;
}

/* ---------- form card ---------- */
.sf__card {
    position: relative;
    min-width: 0;
    padding: 34px 32px 26px;
    background: #fff;
    border: 1.5px solid var(--line);
    border-radius: 28px;
    box-shadow: 0 26px 40px -34px rgba(73, 51, 33, .6);
}

.sf__head {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 20px;
}

.sf__eyebrow {
    font-size: 12px;
    letter-spacing: .16em;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--tint);
}

.sf__title {
    margin: 0;
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(28px, 4vw, 34px);
    line-height: 1.15;
    color: var(--ink);
}

.sf__form {
    display: grid;
    gap: 14px;
}

/* role switch */
.sf__roles {
    margin: 0;
    padding: 0;
    border: 0;
    min-width: 0;
}

.sf__roles legend {
    padding: 0;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 700;
    color: var(--soft);
}

.sf__seg {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 4px;
    border-radius: 999px;
    background: #f6efe4;
}

.sf__seg::before {
    content: "";
    position: absolute;
    top: 4px;
    bottom: 4px;
    left: 4px;
    width: calc(50% - 4px);
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 6px 14px -8px rgba(73, 51, 33, .6), 0 0 0 1.5px var(--line);
    transition: translate .28s cubic-bezier(.3, 1.2, .5, 1);
}

.sf[data-role="reader"] .sf__seg::before {
    translate: 100% 0;
}

.sf__seg label {
    position: relative;
    cursor: pointer;
}

.sf__seg input {
    position: absolute;
    opacity: 0;
    inset: 0;
}

.sf__seg span {
    display: block;
    padding: 10px 0;
    text-align: center;
    font-weight: 700;
    font-size: 15px;
    color: var(--soft);
    transition: color .2s;
}

.sf__seg input:checked+span {
    color: var(--ink);
}

.sf__seg input:focus-visible+span {
    outline: 2px solid var(--clay);
    outline-offset: -2px;
    border-radius: 999px;
}

/* fields */
.sf__field {
    position: relative;
}

.sf__field input[type="text"],
.sf__field input[type="email"],
.sf__field input[type="password"] {
    width: 100%;
    padding: 23px 14px 8px;
    border: 1.5px solid var(--line);
    border-radius: 14px;
    background: #fff;
    color: var(--ink);
    font: inherit;
    font-size: 16px;
    outline: none;
    transition: border-color .2s, box-shadow .2s;
}

.sf__field input:focus {
    border-color: var(--tint);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--tint) 16%, transparent);
}

.sf__field input[aria-invalid="true"] {
    border-color: var(--err);
}

.sf__field label {
    position: absolute;
    left: 15px;
    top: 16px;
    font-size: 15px;
    color: var(--soft);
    pointer-events: none;
    transform-origin: left top;
    transition: transform .18s, color .18s;
}

.sf__field input:focus+label,
.sf__field input:not(:placeholder-shown)+label {
    transform: translateY(-11px) scale(.8);
    color: var(--tint);
    font-weight: 600;
}

.sf__err {
    display: block;
    margin-top: 4px;
    font-size: 12.5px;
    color: var(--err);
}

.sf__err:empty {
    display: none;
}

/* pen name slides open for authors */
.sf__pen {
    display: grid;
    grid-template-rows: 0fr;
    margin-top: -14px;
    transition: grid-template-rows .3s ease, margin .3s ease;
}

.sf__pen-in {
    overflow: hidden;
    min-height: 0;
    visibility: hidden;
    padding: 0 1px;
}

.sf[data-role="author"] .sf__pen {
    grid-template-rows: 1fr;
    margin-top: 0;
}

.sf[data-role="author"] .sf__pen-in {
    visibility: visible;
    padding: 4px 1px 6px;
    margin: -4px -1px -6px;
}

/* password */
.sf__eye {
    position: absolute;
    right: 8px;
    top: 9px;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 10px;
    background: none;
    cursor: pointer;
    color: var(--soft);
}

.sf__eye:hover {
    background: #f6efe4;
}

.sf__eye svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.sf__eye[aria-pressed="true"] {
    color: var(--tint);
}

.sf__meter {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 8px;
}

.sf__meter i {
    flex: 0 0 18%;
    height: 4px;
    border-radius: 2px;
    background: var(--line);
    transition: background .25s;
}

.sf__meter span {
    margin-left: 6px;
    font-size: 12px;
    font-weight: 700;
    color: var(--soft);
}

.sf__meter[data-level="1"] i:nth-child(-n+1) {
    background: #c4553a;
}

.sf__meter[data-level="2"] i:nth-child(-n+2) {
    background: #d99a3b;
}

.sf__meter[data-level="3"] i:nth-child(-n+3) {
    background: #7fa35a;
}

.sf__meter[data-level="4"] i:nth-child(-n+4) {
    background: #4f8a5b;
}

/* terms checkbox */
.sf__terms {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    cursor: pointer;
    position: relative;
}

.sf__terms input {
    position: absolute;
    opacity: 0;
    width: 22px;
    height: 22px;
    margin: 0;
    cursor: pointer;
}

.sf__box {
    flex: none;
    width: 22px;
    height: 22px;
    margin-top: 1px;
    border: 1.5px solid #cdbca5;
    border-radius: 7px;
    display: grid;
    place-items: center;
    background: #fff;
    transition: background .2s, border-color .2s;
}

.sf__box svg {
    width: 14px;
    height: 14px;
    stroke: #fff;
    fill: none;
    stroke-width: 3.4;
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: 0;
    scale: .5;
    transition: opacity .15s, scale .15s;
}

.sf__terms input:checked+.sf__box {
    background: var(--tint);
    border-color: var(--tint);
}

.sf__terms input:checked+.sf__box svg {
    opacity: 1;
    scale: 1;
}

.sf__terms input:focus-visible+.sf__box {
    outline: 2px solid var(--clay);
    outline-offset: 2px;
}

.sf__terms a {
    color: var(--btn);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* submit */
.sf__submit {
    margin-top: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 15px 24px;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    background: var(--ink);
    color: var(--cream);
    font: 700 16px var(--font-body);
    box-shadow: 0 14px 22px -14px rgba(73, 51, 33, .9);
    transition: transform .15s, box-shadow .15s, opacity .15s;
}

.sf[data-role="reader"] .sf__submit {
    background: var(--btn);
}

.sf__submit:hover {
    transform: translateY(-2px);
}

.sf__submit span {
    display: none;
}

.sf[data-role="author"] .sf__submit [data-for="author"],
.sf[data-role="reader"] .sf__submit [data-for="reader"] {
    display: inline;
}

.sf__submit svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.sf__submit.is-loading {
    opacity: .65;
    pointer-events: none;
}

.sf__fine {
    margin: 2px 0 0;
    text-align: center;
    font-size: 14.5px;
    color: var(--soft);
}

.sf__fine a {
    color: var(--btn);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 4px;
}

/* success */
.sf__ok {
    display: none;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
    padding: 48px 0 40px;
}

.sf__ok b {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 26px;
    color: var(--ink);
}

.sf__ok>span:not(.sf__seal) {
    color: var(--soft);
}

.sf__seal {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--tint);
    box-shadow: 0 0 0 6px #fff, 0 0 0 8px var(--tint);
    margin-bottom: 16px;
    animation: sf-pop .5s cubic-bezier(.2, 1.4, .4, 1) both;
}

.sf__seal svg {
    width: 32px;
    height: 32px;
    stroke: #fff;
    fill: none;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.sf__go {
    margin-top: 12px;
    padding: 12px 30px;
    border-radius: 999px;
    background: var(--ink);
    color: var(--cream) !important;
    font-weight: 700;
}

.sf[data-role="reader"] .sf__go {
    background: var(--btn);
}

.sf [data-ok-role] {
    display: none;
}

.sf[data-role="author"] [data-ok-role="author"],
.sf[data-role="reader"] [data-ok-role="reader"] {
    display: inline-block;
}

.sf.is-done .sf__form,
.sf.is-done .sf__head {
    display: none;
}

.sf.is-done .sf__ok {
    display: flex;
}

@keyframes sf-t1 {

    0%,
    3% {
        clip-path: inset(0 100% 0 0);
        animation-timing-function: steps(15);
    }

    14%,
    96% {
        clip-path: inset(0 0 0 0);
        animation-timing-function: linear;
    }

    100% {
        clip-path: inset(0 100% 0 0);
    }
}

@keyframes sf-t2 {

    0%,
    16% {
        clip-path: inset(0 100% 0 0);
        animation-timing-function: steps(28);
    }

    32%,
    96% {
        clip-path: inset(0 0 0 0);
        animation-timing-function: linear;
    }

    100% {
        clip-path: inset(0 100% 0 0);
    }
}

@keyframes sf-t3 {

    0%,
    34% {
        clip-path: inset(0 100% 0 0);
        animation-timing-function: steps(24);
    }

    47%,
    96% {
        clip-path: inset(0 0 0 0);
        animation-timing-function: linear;
    }

    100% {
        clip-path: inset(0 100% 0 0);
    }
}

@keyframes sf-pub {

    0%,
    53% {
        background: #493321;
        transform: scale(1);
    }

    54.5% {
        transform: scale(.93);
    }

    56%,
    96% {
        background: #5a9a6b;
        transform: scale(1);
    }

    100% {
        background: #493321;
    }
}

@keyframes sf-chip {

    0%,
    56% {
        opacity: 0;
        translate: 0 10px;
    }

    62%,
    94% {
        opacity: 1;
        translate: 0 0;
    }

    100% {
        opacity: 0;
        translate: 0 0;
    }
}

@keyframes sf-like {

    0%,
    30% {
        fill: transparent;
        transform: scale(1);
    }

    36% {
        fill: var(--clay);
        transform: scale(1.35);
    }

    44%,
    88% {
        fill: var(--clay);
        transform: scale(1);
    }

    100% {
        fill: transparent;
        transform: scale(1);
    }
}

@keyframes sf-save {

    0%,
    52% {
        fill: transparent;
    }

    58%,
    88% {
        fill: var(--btn);
    }

    100% {
        fill: transparent;
    }
}

@keyframes sf-in {
    from {
        opacity: 0;
        translate: 0 8px;
    }

    to {
        opacity: 1;
        translate: 0 0;
    }
}

@keyframes sf-pop {
    from {
        transform: scale(.3);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

@media (max-width: 860px) {
    .sf {
        grid-template-columns: minmax(0, 1fr);
        margin-block: 32px;
    }

    .sf__card {
        order: 1;
        padding: 28px 20px 22px;
    }

    .sf__aside {
        order: 2;
        padding: 28px 22px 0;
    }

    .sf__vis {
        margin-inline: -22px;
    }
}

@media (prefers-reduced-motion: reduce) {

    .sf__pane,
    .sf__seal {
        animation: none;
    }

    .sf__seg::before,
    .sf__pen,
    .sf__field input,
    .sf__field label,
    .sf__submit {
        transition: none;
    }

    .sf__t,
    .sf__pub,
    .sf__chip,
    .sf__heart svg,
    .sf__mark svg {
        animation: none;
    }

    .sf__t {
        clip-path: none;
    }

    .sf__pub {
        background: #5a9a6b;
    }

    .sf__chip {
        opacity: 1;
    }

    .sf__heart svg {
        fill: var(--clay);
    }
}