/* ==========================================================================
   Navaaiyat — "Spoken Citrus"
   60% Alabaster Cream #FFFDF9 · 30% Asphalt Dark #232B2B · 10% Vivid Tangerine #FF5A09
   ========================================================================== */

:root {
  --cream: #fffdf9;
  --cream-2: #fff8f1;
  --cream-3: #fdf1e7;
  --paper: #ffffff;

  --ink: #232b2b;
  --ink-2: #374141;
  --muted: #6b7676;

  --accent: #ff5a09;
  --accent-dark: #e04b00;
  --accent-soft: #fff0e6;
  --accent-line: rgba(255, 90, 9, 0.28);

  --line: rgba(35, 43, 43, 0.12);
  --line-strong: rgba(35, 43, 43, 0.2);

  --shadow-sm: 0 2px 10px rgba(35, 43, 43, 0.05);
  --shadow: 0 12px 30px rgba(35, 43, 43, 0.08);
  --shadow-lg: 0 24px 60px rgba(35, 43, 43, 0.12);
  --shadow-accent: 0 12px 26px rgba(255, 90, 9, 0.24);

  --radius: 18px;
  --radius-sm: 12px;
  --nav-h: 74px;
  --wrap: 1180px;

  --font-display: 'Baloo 2', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Plus Jakarta Sans', 'Segoe UI', system-ui, sans-serif;
  --font-verse: 'Tiro Devanagari Hindi', Georgia, 'Times New Roman', serif;

  color-scheme: light;
}

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

/* The UA rule for [hidden] is display:none, but ANY author rule that sets display
   beats it — so .login-shell{display:grid}, .btn{display:inline-flex} and
   .img-preview{display:flex} would all stay on screen while marked hidden.
   Keep this above everything that sets display. */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.no-scroll { overflow: hidden; }

img { max-width: 100%; display: block; }
a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.14;
  margin: 0 0 .5em;
  letter-spacing: -0.015em;
  color: var(--ink);
}

::selection { background: var(--accent); color: #fff; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 clamp(18px, 4vw, 34px); }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 0 0 12px 12px;
  text-decoration: none; font-weight: 700; transition: top .2s;
}
.skip-link:focus { top: 0; }

/* ---------------------------------------------------------------- buttons */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  font-family: var(--font-body); font-size: .96rem; font-weight: 700;
  padding: 13px 26px; border: 0; border-radius: 999px;
  background: var(--accent); color: #fff; text-decoration: none; cursor: pointer;
  box-shadow: var(--shadow-accent);
  transition: transform .18s cubic-bezier(.34,1.56,.64,1), background .18s, box-shadow .18s;
}
.btn:hover { background: var(--accent-dark); transform: translateY(-2px); box-shadow: 0 16px 30px rgba(255, 90, 9, .3); }
.btn:active { transform: translateY(0); }

.btn--ghost {
  background: transparent; color: var(--ink);
  border: 2px solid var(--line-strong); box-shadow: none;
}
.btn--ghost:hover { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-dark); }

.btn--dark { background: var(--ink); box-shadow: 0 12px 26px rgba(35, 43, 43, .2); }
.btn--dark:hover { background: #121818; }

.btn--sm { padding: 9px 18px; font-size: .85rem; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .55; pointer-events: none; }

/* -------------------------------------------------------------------- nav */

.nav {
  position: fixed; inset: 0 0 auto; z-index: 100; height: var(--nav-h);
  display: flex; align-items: center;
  background: rgba(255, 253, 249, .82);
  backdrop-filter: blur(14px) saturate(1.3);
  border-bottom: 1px solid transparent;
  transition: background .3s, border-color .3s, box-shadow .3s;
}
.nav.is-stuck { background: rgba(255, 253, 249, .96); border-bottom-color: var(--line); box-shadow: var(--shadow-sm); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; width: 100%; }

.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.brand__mark {
  width: 42px; height: 42px; flex: none; display: grid; place-items: center;
  border-radius: 12px; background: var(--accent); color: #fff;
  font-family: var(--font-display); font-size: 1.3rem; font-weight: 800; line-height: 1;
  box-shadow: var(--shadow-accent);
}
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__name { font-family: var(--font-display); font-weight: 800; font-size: 1.26rem; letter-spacing: -.02em; }
.brand__sub { font-size: .63rem; letter-spacing: .28em; text-transform: uppercase; color: var(--muted); }

.nav__links { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav__links a {
  display: block; white-space: nowrap; padding: 9px 14px; border-radius: 999px;
  font-size: .92rem; font-weight: 600; text-decoration: none; color: var(--ink-2);
  transition: color .2s, background .2s;
}
.nav__links a:hover, .nav__links a.is-active { color: var(--accent-dark); background: var(--accent-soft); }
.nav__cta { margin-left: 8px; }

.nav__toggle {
  display: none; width: 44px; height: 44px; border: 0; border-radius: 12px;
  background: var(--accent-soft); cursor: pointer; padding: 0;
}
.nav__toggle span, .nav__toggle span::before, .nav__toggle span::after {
  display: block; width: 20px; height: 2.5px; border-radius: 2px; background: var(--ink); margin: 0 auto;
  transition: transform .28s, opacity .2s;
}
.nav__toggle span::before, .nav__toggle span::after { content: ''; position: relative; }
.nav__toggle span::before { top: -6px; }
.nav__toggle span::after { top: 3.5px; }
.nav__toggle[aria-expanded='true'] span { transform: rotate(45deg); }
.nav__toggle[aria-expanded='true'] span::before { opacity: 0; }
.nav__toggle[aria-expanded='true'] span::after { transform: rotate(-90deg) translateX(-3.5px); }

/* ======================================================================
   The poet — first thing on the page
   ====================================================================== */

.poet {
  position: relative; overflow: hidden;
  /* Tight under the header so the name, photo and buttons land on the first screen. */
  padding: calc(var(--nav-h) + clamp(14px, 2vw, 26px)) 0 clamp(34px, 4vw, 52px);
  background:
    radial-gradient(circle at 88% 12%, var(--accent-soft) 0%, transparent 46%),
    radial-gradient(circle at 4% 82%, var(--cream-3) 0%, transparent 42%),
    var(--cream);
}

.poet__grid {
  display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
  gap: clamp(30px, 5vw, 66px); align-items: center;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: .72rem; font-weight: 800; letter-spacing: .26em; text-transform: uppercase;
  color: var(--accent-dark);
}
.eyebrow::before { content: ''; width: 26px; height: 2px; background: var(--accent); }

.poet h1 {
  /* Also capped in vh so a short window cannot push the buttons off screen. */
  font-size: clamp(2.3rem, min(6.4vw, 8.4vh), 4.2rem);
  margin: 12px 0 4px; font-weight: 800; letter-spacing: -.035em;
}
.poet h1 .accent { color: var(--accent); }
.poet__tagline {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(1.05rem, 2.2vw, 1.4rem); color: var(--ink-2); margin: 0 0 14px;
}
.poet__text p { color: var(--ink-2); margin: 0 0 12px; max-width: 58ch; }
.poet__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }

/* On a short laptop window, tighten the text so the photo and the buttons
   still land above the fold. */
@media (min-width: 1001px) and (max-height: 780px) {
  .poet h1 { font-size: clamp(2.1rem, min(5.6vw, 7.4vh), 3.4rem); margin: 8px 0 3px; }
  .poet__tagline { font-size: 1.08rem; margin-bottom: 10px; }
  .poet__text p { font-size: .95rem; line-height: 1.55; margin-bottom: 9px; }
  .poet__actions { margin-top: 16px; }
  .portrait { width: min(100%, 56vh); }
}

/* social row */
.social-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.social-row a {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 10px 18px 10px 14px; border-radius: 999px;
  background: var(--paper); border: 1.5px solid var(--line);
  font-size: .88rem; font-weight: 700; text-decoration: none; color: var(--ink);
  transition: transform .18s, border-color .18s, color .18s, box-shadow .18s;
}
.social-row a:hover {
  transform: translateY(-2px); border-color: var(--accent);
  color: var(--accent-dark); box-shadow: var(--shadow-sm);
}
.social-row svg { width: 17px; height: 17px; flex: none; }

/* portrait — height follows the window so the whole photo stays visible */
.poet__media { position: relative; display: flex; justify-content: center; }
.portrait {
  position: relative; border-radius: 22px; overflow: hidden;
  /* Square, and capped in vh, so a square photo is shown whole — no crop — and the
     frame still shrinks to keep the buttons above the fold on short windows. */
  aspect-ratio: 1 / 1; width: min(100%, 62vh); height: auto; max-width: 100%;
  background: linear-gradient(150deg, var(--accent) 0%, #ff8a3d 100%);
  display: grid; place-items: center; box-shadow: var(--shadow-lg);
}
.portrait img { width: 100%; height: 100%; object-fit: cover; }

/* photos crossfading behind the name plate */
.portrait__slides { position: absolute; inset: 0; }
.portrait__slide {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity .9s ease;
}
.portrait__slide.is-active { opacity: 1; }
/* A cut-out photo (transparent background) is shown whole, standing on the bottom of the frame, so
   the orange behind it shows and a tall figure is not cropped at the head. */
.portrait .portrait__slide--cutout { object-fit: contain; object-position: center bottom; }
.portrait__dots { position: absolute; top: 14px; right: 14px; z-index: 2; display: flex; gap: 6px; }
.portrait__dot {
  width: 9px; height: 9px; padding: 0; border: 0; border-radius: 999px; cursor: pointer;
  background: rgba(255, 253, 249, .6); box-shadow: 0 1px 4px rgba(35, 43, 43, .3);
  transition: width .25s, background .25s;
}
.portrait__dot[aria-selected='true'] { width: 22px; background: var(--accent); }
.portrait .monogram { font-family: var(--font-display); font-size: 6.5rem; font-weight: 800; color: rgba(255, 255, 255, .92); }
.portrait::after {
  content: ''; position: absolute; inset: 0; border-radius: 22px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35);
}
.portrait__tag {
  position: absolute; left: 18px; right: 18px; bottom: 18px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 16px; border-radius: 14px;
  background: rgba(255, 253, 249, .94); backdrop-filter: blur(6px);
  box-shadow: var(--shadow-sm);
}
.portrait__tag strong { font-family: var(--font-display); font-size: 1rem; display: block; line-height: 1.2; }
.portrait__tag span { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

/* the quote — centred on the page, and centred inside its own card */
.poet__extra { margin: clamp(34px, 5vw, 56px) auto 0; max-width: 760px; }

.quote {
  position: relative; margin: 0; padding: 46px 30px 28px;
  border-radius: var(--radius); background: var(--ink); color: var(--cream);
  box-shadow: var(--shadow); text-align: center;
}
.quote::before {
  content: '“'; position: absolute; left: 50%; top: 4px; transform: translateX(-50%);
  font-family: var(--font-display); font-size: 3.4rem; color: var(--accent); line-height: 1;
}
.quote__text {
  font-family: var(--font-verse); white-space: pre-line;
  font-size: clamp(1.05rem, 2.1vw, 1.3rem); line-height: 1.95; margin: 0 0 16px;
}
.quote__by { display: block; font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); font-weight: 700; font-style: normal; }

/* -------------------------------------------------------------- sections */

.section { padding: clamp(60px, 8vw, 100px) 0; }
.section--tint { background: var(--cream-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section--paper { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.section__head { max-width: 660px; margin-bottom: clamp(28px, 4vw, 46px); }
.section__head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section__kicker {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: .72rem; font-weight: 800; letter-spacing: .26em; text-transform: uppercase;
  color: var(--accent-dark); margin-bottom: 12px;
}
.section__kicker::before { content: ''; width: 22px; height: 2px; background: var(--accent); }
.section__title { font-size: clamp(1.9rem, 4.6vw, 2.9rem); font-weight: 800; }
.section__title em { font-style: normal; color: var(--accent); }
.section__lead { color: var(--muted); font-size: 1.02rem; margin: 0; }
.section__foot { display: flex; justify-content: center; margin-top: 40px; }

/* ------------------------------------------------------------------ tabs */

.tabs { display: inline-flex; gap: 4px; padding: 5px; border-radius: 999px; background: var(--accent-soft); margin-bottom: 28px; }
.tab {
  border: 0; background: transparent; cursor: pointer; color: var(--ink-2);
  font-family: var(--font-body); font-size: .89rem; font-weight: 700;
  padding: 10px 22px; border-radius: 999px; transition: background .2s, color .2s;
}
.tab[aria-selected='true'] { background: var(--paper); color: var(--accent-dark); box-shadow: var(--shadow-sm); }

/* ----------------------------------------------------------------- shows */

.shows { display: grid; gap: 16px; }

.show {
  display: grid; grid-template-columns: 92px 176px minmax(0, 1fr) auto;
  gap: clamp(14px, 2.4vw, 26px); align-items: center;
  padding: 18px; border-radius: var(--radius);
  background: var(--paper); border: 1px solid var(--line);
  box-shadow: var(--shadow-sm); transition: transform .22s, box-shadow .22s, border-color .22s;
}
.show:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--accent-line); }
.show--past { opacity: .8; }
.show--no-poster { grid-template-columns: 92px minmax(0, 1fr) auto; }

.show__date {
  display: grid; place-content: center; text-align: center; padding: 14px 8px;
  border-radius: var(--radius-sm); background: var(--accent); color: #fff; line-height: 1;
}
.show--past .show__date { background: var(--ink); }
.show__date .d { font-family: var(--font-display); font-size: 1.9rem; font-weight: 800; }
.show__date .m { font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; margin-top: 5px; }
.show__date .y { font-size: .65rem; opacity: .85; margin-top: 3px; }

/* The poster is shown whole, in its own proportions, with no frame or empty bands around it;
   clicking opens the full-size image. */
.show__poster { display: block; border-radius: var(--radius-sm); overflow: hidden; cursor: zoom-in; }
.show__poster img { width: 100%; height: auto; display: block; }

.show__title { font-size: 1.2rem; margin: 0 0 6px; }
.show__meta { display: flex; flex-wrap: wrap; gap: 6px 16px; color: var(--muted); font-size: .88rem; margin-bottom: 8px; }
.show__meta span { display: inline-flex; align-items: center; gap: 6px; }
.show__desc { color: var(--ink-2); font-size: .93rem; margin: 0; }
.show__actions { display: flex; flex-direction: column; gap: 8px; align-items: stretch; }

.badge {
  display: inline-flex; align-items: center; gap: 6px; font-size: .68rem; font-weight: 800;
  letter-spacing: .12em; text-transform: uppercase; padding: 5px 11px; border-radius: 999px;
}
.badge--live { background: var(--accent); color: #fff; }
.badge--live .dot { width: 6px; height: 6px; border-radius: 50%; background: #fff; animation: pulse 1.6s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }
.badge--free { background: var(--accent-soft); color: var(--accent-dark); }
.badge--soon { background: rgba(35, 43, 43, .07); color: var(--ink-2); }
.badge--past { background: rgba(35, 43, 43, .07); color: var(--muted); }
.badge--draft { background: var(--accent-soft); color: var(--accent-dark); }

/* ----------------------------------------------------------------- poems */

.featured {
  padding: clamp(24px, 4vw, 36px); border-radius: var(--radius); margin-bottom: 26px;
  background: var(--paper); border: 1px solid var(--accent-line);
  box-shadow: var(--shadow); position: relative; overflow: hidden;
}

/* ------------------------------------------------------- kind of writing */

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.chip {
  display: inline-flex; align-items: baseline; gap: 7px; cursor: pointer;
  font-family: var(--font-body); font-size: .89rem; font-weight: 700; color: var(--ink-2);
  padding: 9px 16px; border-radius: 999px;
  background: var(--paper); border: 1.5px solid var(--line);
  transition: background .18s, border-color .18s, color .18s, transform .18s;
}
.chip:hover { transform: translateY(-2px); border-color: var(--accent); color: var(--accent-dark); }
.chip em { font-style: normal; font-weight: 500; font-size: .78rem; color: var(--muted); }
.chip__n {
  font-size: .72rem; font-weight: 800; padding: 1px 7px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent-dark);
}
.chip[aria-selected='true'] { background: var(--accent); border-color: var(--accent); color: #fff; }
.chip[aria-selected='true'] em { color: rgba(255, 255, 255, .82); }
.chip[aria-selected='true'] .chip__n { background: rgba(255, 255, 255, .24); color: #fff; }

/* the small tag on the edge of every card */
.poem-card__tag {
  position: absolute; top: 0; right: 0;
  font-size: .68rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  padding: 6px 14px; border-radius: 0 var(--radius) 0 12px;
  background: var(--accent-soft); color: var(--accent-dark);
}
.badge--kind { background: var(--accent-soft); color: var(--accent-dark); white-space: nowrap; }
.badge--kind em { font-style: normal; font-weight: 600; opacity: .72; text-transform: none; letter-spacing: 0; }
.featured::before { content: ''; position: absolute; inset: 0 auto 0 0; width: 5px; background: var(--accent); }
.featured__label { font-size: .7rem; font-weight: 800; letter-spacing: .22em; text-transform: uppercase; color: var(--accent-dark); }
.featured h3 { font-size: clamp(1.35rem, 3vw, 1.8rem); margin: 8px 0 12px; }
.featured__body {
  font-family: var(--font-verse); white-space: pre-line; color: var(--ink-2);
  font-size: 1.02rem; line-height: 2; margin: 0 0 16px;
  display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden;
}

.toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 26px; }
.search { position: relative; flex: 1 1 260px; max-width: 380px; }
.search input {
  width: 100%; font-family: var(--font-body); font-size: .94rem; color: var(--ink);
  padding: 13px 16px 13px 44px; border-radius: 999px;
  border: 1.5px solid var(--line); background: var(--paper);
  transition: border-color .2s, box-shadow .2s;
}
.search input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.search svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); }

.poems { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }

.poem-card {
  display: flex; flex-direction: column; position: relative; overflow: hidden;
  padding: 24px 22px 18px; border-radius: var(--radius);
  background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  transition: transform .22s, box-shadow .22s, border-color .22s;
}
.poem-card::before {
  content: ''; position: absolute; inset: 0 0 auto; height: 4px; background: var(--accent);
  transform: scaleX(0); transform-origin: left; transition: transform .3s;
}
.poem-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--accent-line); }
.poem-card:hover::before { transform: scaleX(1); }

.poem-card { padding-right: 22px; }
.poem-card__date {
  display: inline-flex; align-items: center; gap: 7px; font-size: .73rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: var(--accent-dark); margin-bottom: 10px;
}
.poem-card h3 { font-size: 1.28rem; margin: 0 0 12px; }
.poem-card h3 a { text-decoration: none; }
.poem-card h3 a:hover { color: var(--accent); }
.poem-card__body {
  font-family: var(--font-verse); white-space: pre-line; color: var(--ink-2);
  font-size: .99rem; line-height: 1.95; margin: 0 0 16px; flex: 1;
  display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden;
}
.poem-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 14px; border-top: 1px solid var(--line); }
.poem-card__read { font-size: .87rem; font-weight: 700; color: var(--accent-dark); text-decoration: none; }
.poem-card__read:hover { text-decoration: underline; }

/* --------------------------------------------------------------- sharing */

.share { display: flex; align-items: center; gap: 6px; }
.share__label { font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-right: 2px; }
.share button {
  display: grid; place-items: center; width: 34px; height: 34px; padding: 0;
  border: 1px solid var(--line); border-radius: 50%; background: var(--paper);
  color: var(--ink-2); cursor: pointer;
  transition: transform .18s, background .18s, color .18s, border-color .18s;
}
.share button:hover { transform: translateY(-2px); background: var(--accent); color: #fff; border-color: var(--accent); }
.share svg { width: 16px; height: 16px; }

/* ------------------------------------------------------------ watch: videos */

.watch__group {
  font-size: 1.15rem; margin: 0 0 16px; color: var(--ink-2);
}

/* Two wide players on a laptop, stacked on a tablet or phone — no breakpoints. */
.videos {
  display: grid; gap: 22px; margin-bottom: clamp(36px, 5vw, 52px);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
}
.video {
  overflow: hidden; background: #000; border-radius: var(--radius);
  box-shadow: var(--shadow-sm); border: 1px solid var(--line);
  aspect-ratio: 16 / 9;
}
.video iframe { display: block; width: 100%; height: 100%; border: 0; }

/* ----------------------------------------------------------------- reels */

/* Wrapping flex, not a fixed grid: three across on a laptop, two on a tablet,
   one on a phone, with no breakpoints — and an odd one out stays centred.
   An Instagram embed needs ~326px, so cards never ask for less than they can use. */
.reels { display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-start; gap: 22px; }
.reel {
  flex: 0 1 340px; min-width: 0; overflow: hidden;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); transition: box-shadow .22s, border-color .22s;
}
.reel:hover { box-shadow: var(--shadow); border-color: var(--accent-line); }

/* The embed script writes inline min-width/max-width on the player; let it follow the card. */
.reel .instagram-media {
  min-width: 0 !important; max-width: 100% !important; width: 100% !important;
  margin: 0 !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important;
}

/* What shows before the embed loads, or if Instagram is blocked. */
.reel blockquote.instagram-media { display: grid; place-items: center; min-height: 140px; padding: 24px; margin: 0; }
.reel__fallback {
  font-weight: 700; font-size: .95rem; text-align: center; text-decoration: none; color: var(--accent-dark);
}
.reel__fallback:hover { text-decoration: underline; }

/* ----------------------------------------------------------------- books */

.books { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }

.book {
  display: grid; grid-template-columns: 128px minmax(0, 1fr); gap: 22px;
  padding: 20px; border-radius: var(--radius);
  background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  transition: transform .22s, box-shadow .22s;
}
.book:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.book__cover {
  position: relative; aspect-ratio: 2 / 3; border-radius: 8px; overflow: hidden;
  background: linear-gradient(150deg, var(--accent), #ff8a3d);
  display: grid; place-items: center; padding: 14px;
  box-shadow: 0 10px 22px rgba(35, 43, 43, .18);
}
.book__cover img { width: 100%; height: 100%; object-fit: cover; }
.book__cover span { font-family: var(--font-display); font-weight: 800; font-size: .92rem; color: #fff; text-align: center; line-height: 1.25; }
.book__cover::after { content: ''; position: absolute; inset: 0 auto 0 0; width: 6px; background: rgba(0, 0, 0, .18); }
/* A real cover picture is shown whole, in its own proportions, with no orange frame or spine. */
.book__cover--photo { aspect-ratio: auto; padding: 0; background: none; display: block; align-self: start; }
.book__cover--photo img { height: auto; object-fit: contain; display: block; }
.book__cover--photo::after { display: none; }
.book h3 { font-size: 1.24rem; margin: 0 0 3px; }
.book__sub { font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-dark); font-weight: 700; margin: 0 0 12px; }
.book__desc { font-size: .92rem; color: var(--ink-2); margin: 0 0 16px; }
.book__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
/* The text column is as tall as the cover, and the buy buttons sit at its bottom edge. */
.book__body { display: flex; flex-direction: column; }
.book__body .book__foot { margin-top: auto; padding-top: 12px; }

/* ------------------------------------------------------------- subscribe */

.subscribe {
  position: relative; overflow: hidden; isolation: isolate;
  padding: clamp(32px, 5vw, 58px); border-radius: 24px;
  background: linear-gradient(120deg, var(--accent) 0%, #ff8330 100%);
  color: #fff; box-shadow: var(--shadow-accent);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); gap: clamp(24px, 4vw, 50px); align-items: center;
}
.subscribe::before {
  content: ''; position: absolute; z-index: -1; width: 55%; aspect-ratio: 1; right: -10%; top: -38%;
  background: rgba(255, 255, 255, .14); border-radius: 50%;
}
.subscribe h2 { font-size: clamp(1.7rem, 4vw, 2.5rem); margin: 0 0 12px; color: #fff; }
.subscribe p { color: rgba(255, 255, 255, .92); margin: 0; }
.subscribe__perks { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 8px; font-size: .92rem; }
.subscribe__perks li { display: flex; align-items: center; gap: 10px; }
.subscribe__perks svg { flex: none; }

.sub-form { display: grid; gap: 12px; }
.sub-form .row { display: flex; gap: 10px; flex-wrap: wrap; }
.sub-form input {
  flex: 1 1 200px; min-width: 0; font-family: var(--font-body); font-size: 1rem;
  padding: 15px 20px; border-radius: 999px; border: 0; background: #fff; color: var(--ink);
}
.sub-form input:focus { outline: 3px solid rgba(255, 255, 255, .75); outline-offset: 2px; }
.sub-form .btn { background: var(--ink); box-shadow: 0 10px 22px rgba(35, 43, 43, .28); }
.sub-form .btn:hover { background: #121818; }
.sub-form small { color: rgba(255, 255, 255, .82); font-size: .79rem; }
.form-note { font-size: .91rem; font-weight: 600; min-height: 1.2em; }
.form-note.ok { color: #fff; }
.form-note.err { color: #ffe6d6; }

/* ---------------------------------------------------------------- footer */

.footer { background: var(--cream-2); border-top: 1px solid var(--line); padding: clamp(42px, 6vw, 64px) 0 24px; color: var(--ink-2); }
.footer__grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(auto-fit, minmax(150px, 1fr)); gap: 34px; }
.footer p { font-size: .92rem; max-width: 34ch; color: var(--muted); }
.footer h4 { font-size: .74rem; letter-spacing: .2em; text-transform: uppercase; margin-bottom: 14px; color: var(--muted); }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.footer a { text-decoration: none; font-size: .92rem; transition: color .2s; }
.footer a:hover { color: var(--accent-dark); }
.socials { display: flex; gap: 10px; margin-top: 18px; }
.socials a {
  width: 40px; height: 40px; display: grid; place-items: center; border-radius: 11px;
  background: var(--paper); border: 1px solid var(--line); color: var(--ink);
  transition: transform .2s, background .2s, color .2s, border-color .2s;
}
.socials a svg { width: 24px; height: 24px; display: block; }
.socials a:hover { transform: translateY(-3px); border-color: var(--accent); box-shadow: 0 6px 14px rgba(35, 43, 43, .12); }
.footer__bottom {
  margin-top: 38px; padding-top: 20px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; font-size: .82rem; color: var(--muted);
}

/* ------------------------------------------------------- states & toasts */

.empty { text-align: center; padding: 48px 24px; border-radius: var(--radius); border: 2px dashed var(--line-strong); color: var(--muted); }
.empty strong { display: block; font-family: var(--font-display); font-size: 1.15rem; color: var(--ink); margin-bottom: 6px; }

.skeleton {
  border-radius: var(--radius); min-height: 140px;
  background: linear-gradient(100deg, var(--cream-3) 20%, var(--cream) 40%, var(--cream-3) 60%);
  background-size: 220% 100%; animation: shimmer 1.4s infinite;
}
@keyframes shimmer { to { background-position: -180% 0; } }

.toast-stack { position: fixed; z-index: 300; left: 50%; bottom: 26px; transform: translateX(-50%); display: grid; gap: 10px; width: min(92vw, 420px); }
.toast {
  padding: 14px 18px; border-radius: 14px; background: var(--ink); color: #fff;
  font-size: .91rem; box-shadow: var(--shadow-lg); animation: toast-in .3s cubic-bezier(.34,1.56,.64,1);
}
.toast.ok { background: var(--accent); }
.toast.err { background: #b3341b; }
@keyframes toast-in { from { opacity: 0; transform: translateY(14px); } }

.preview-banner {
  position: fixed; z-index: 250; bottom: 14px; left: 14px;
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px; border-radius: 12px; font-size: .79rem; font-weight: 600;
  background: var(--ink); color: #fff; box-shadow: var(--shadow);
}
.preview-banner button { background: none; border: 0; color: #fff; cursor: pointer; font-size: 1rem; line-height: 1; }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s cubic-bezier(.22,1,.36,1); }
.reveal.is-in { opacity: 1; transform: none; }

/* ======================================================================
   Single poem page
   ====================================================================== */

.reader { padding: calc(var(--nav-h) + 38px) 0 20px; }
.reader__wrap { max-width: 760px; }
.crumbs { font-size: .84rem; color: var(--muted); margin-bottom: 20px; }
.crumbs a { color: var(--accent-dark); text-decoration: none; font-weight: 600; }

.poem {
  position: relative; padding: clamp(26px, 5vw, 52px); border-radius: 22px;
  background: var(--paper); box-shadow: var(--shadow); border: 1px solid var(--line);
}
.poem::before { content: ''; position: absolute; inset: 0 0 auto; height: 5px; border-radius: 22px 22px 0 0; background: var(--accent); }
.poem__meta { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; font-size: .82rem; color: var(--muted); margin-bottom: 14px; }
.poem h1 { font-size: clamp(1.9rem, 5vw, 3rem); margin: 0 0 22px; }
.poem__body {
  font-family: var(--font-verse); white-space: pre-line;
  font-size: clamp(1.04rem, 2.3vw, 1.26rem); line-height: 2.1; color: var(--ink);
}
.poem__share { margin-top: 32px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; }

.poem-nav { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin: 24px 0 0; }
.poem-nav a {
  padding: 16px 20px; border-radius: var(--radius); background: var(--paper);
  border: 1px solid var(--line); text-decoration: none; transition: transform .2s, box-shadow .2s, border-color .2s;
}
.poem-nav a:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); border-color: var(--accent-line); }
.poem-nav small { display: block; font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--accent-dark); margin-bottom: 4px; }
.poem-nav strong { font-family: var(--font-display); font-size: 1.02rem; }
.poem-nav a.next { text-align: right; }

/* ======================================================================
   Admin
   ====================================================================== */

.admin-body { background: var(--cream); min-height: 100vh; }

.login-shell { min-height: 100vh; display: grid; place-items: center; padding: 28px;
  background: radial-gradient(circle at 80% 10%, var(--accent-soft), transparent 45%), var(--cream); }
.login-card {
  width: min(430px, 100%); padding: clamp(28px, 5vw, 40px); border-radius: 22px;
  background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow-lg);
}
.login-card h1 { font-size: 1.6rem; margin: 18px 0 6px; }
.login-card p { color: var(--muted); font-size: .92rem; margin: 0 0 24px; }
.login-card .hint-small { font-size: .8rem; color: var(--muted); margin: 14px 0 0; }

.field { display: grid; gap: 7px; margin-bottom: 16px; min-width: 0; }
/* Date and datetime inputs have a wide intrinsic minimum: without these two rules
   they push out of a narrow grid column and overlap the field beside them. */
.field input, .field textarea, .field select { width: 100%; min-width: 0; max-width: 100%; }
/* Two fields side by side, but they stack instead of squeezing when there is no room. */
.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 0 14px; }
.field label { font-size: .76rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.field input, .field textarea, .field select {
  font-family: var(--font-body); font-size: .96rem; color: var(--ink);
  padding: 12px 14px; border-radius: 10px;
  background: var(--cream); border: 1.5px solid var(--line);
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.field textarea { min-height: 190px; resize: vertical; font-family: var(--font-verse); line-height: 1.9; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--accent); background: var(--paper); box-shadow: 0 0 0 4px var(--accent-soft);
}
.field input::placeholder, .field textarea::placeholder { color: #a9b1b1; }
.field small { font-size: .77rem; color: var(--muted); }
.field input[type='file'] { padding: 9px 12px; background: var(--paper); cursor: pointer; }

.check { display: flex; align-items: center; gap: 10px; font-size: .91rem; color: var(--ink-2); }
.check input { width: 18px; height: 18px; accent-color: var(--accent); }

.img-preview { display: flex; align-items: center; gap: 12px; margin-top: 8px; }
.img-preview img { width: 84px; height: 63px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }

.admin-top {
  position: sticky; top: 0; z-index: 20;
  display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between;
  padding: 14px clamp(16px, 4vw, 34px);
  background: rgba(255, 253, 249, .94); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.admin-main { padding: clamp(22px, 4vw, 36px) clamp(16px, 4vw, 34px) 70px; max-width: 1220px; margin: 0 auto; }

.admin-tabs { display: flex; flex-wrap: wrap; gap: 6px; padding: 5px; border-radius: 14px; background: var(--accent-soft); margin-bottom: 24px; }
.admin-tabs button {
  border: 0; background: transparent; color: var(--ink-2); cursor: pointer;
  font-family: var(--font-body); font-weight: 700; font-size: .89rem; padding: 10px 18px; border-radius: 10px;
  transition: background .2s, color .2s;
}
.admin-tabs button[aria-selected='true'] { background: var(--accent); color: #fff; }

/* 480px leaves room for two 190px fields side by side inside the form panel. */
.admin-grid { display: grid; grid-template-columns: minmax(0, 480px) minmax(0, 1fr); gap: 22px; align-items: start; }
.panel { padding: 24px; border-radius: 18px; background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.panel h2 { font-size: 1.2rem; margin: 0 0 4px; }
.panel > p.hint { color: var(--muted); font-size: .87rem; margin: 0 0 20px; }
.panel--list { padding: 20px; }

.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; margin-bottom: 20px; }
.stat { padding: 16px 18px; border-radius: 14px; background: var(--cream-2); border: 1px solid var(--line); }
.stat strong { display: block; font-family: var(--font-display); font-size: 1.8rem; line-height: 1; color: var(--accent-dark); }
.stat span { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

.rows { display: grid; gap: 10px; }
.row-item {
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between;
  padding: 13px 15px; border-radius: 12px; background: var(--cream); border: 1px solid var(--line);
}
.row-item__main { min-width: 0; display: flex; gap: 12px; align-items: center; }
.row-item__thumb { width: 52px; height: 40px; object-fit: cover; border-radius: 7px; border: 1px solid var(--line); flex: none; }
.row-item strong { display: block; font-family: var(--font-display); font-size: 1.02rem; }
.row-item small { color: var(--muted); font-size: .81rem; }
.row-item__actions { display: flex; gap: 7px; flex-wrap: wrap; }
.icon-btn {
  border: 1.5px solid var(--line-strong); background: var(--paper); color: var(--ink); cursor: pointer;
  font-family: var(--font-body); font-size: .79rem; font-weight: 700; padding: 7px 13px; border-radius: 999px;
  text-decoration: none; transition: background .2s, border-color .2s, color .2s;
}
.icon-btn:hover { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-dark); }
.icon-btn--danger:hover { background: #fdecea; border-color: #d9432b; color: #b3341b; }

.admin-note { font-size: .89rem; font-weight: 600; min-height: 1.2em; margin-top: 10px; }
.admin-note.ok { color: var(--accent-dark); }
.admin-note.err { color: #b3341b; }

/* ======================================================================
   Responsive
   ====================================================================== */

@media (max-width: 1000px) {
  .poet__grid, .subscribe, .admin-grid { grid-template-columns: 1fr; }
  .poet__media { max-width: 420px; margin-inline: auto; width: 100%; }
  /* Stacked layout: the photo follows the column width instead of the window height. */
  .portrait { width: 100%; }
  .book { grid-template-columns: 108px minmax(0, 1fr); }
  .show { grid-template-columns: 84px 148px minmax(0, 1fr); }
  /* Without a poster there is no middle column, so the text must take the second one. */
  .show--no-poster { grid-template-columns: 84px minmax(0, 1fr); }
  .show__actions { grid-column: 1 / -1; flex-direction: row; }
  .show__actions .btn, .show__actions .badge { flex: 0 1 auto; }
}

/* Six links need more room than five did, so the menu folds into the hamburger at 960px. */
@media (max-width: 960px) {
  .nav__toggle { display: grid; place-items: center; }
  .nav__cta { display: none; }
  .nav__links {
    position: fixed; inset: var(--nav-h) 0 auto; flex-direction: column; align-items: stretch;
    gap: 2px; padding: 16px clamp(18px, 5vw, 34px) 26px;
    background: var(--cream); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    transform: translateY(-12px); opacity: 0; pointer-events: none; transition: transform .25s, opacity .25s;
  }
  .nav__links.is-open { transform: none; opacity: 1; pointer-events: auto; }
  .nav__links a { padding: 14px 12px; font-size: 1.01rem; border-radius: 10px; }
  .nav__links li:last-child a { margin-top: 8px; text-align: center; background: var(--accent); color: #fff; }
  .nav__links li:last-child a:hover { color: #fff; background: var(--accent-dark); }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  /* One column on a phone: poster on top (in its own proportions, so its text stays readable),
     then the date as a small tag, then the details at full width. */
  .show, .show--no-poster { grid-template-columns: minmax(0, 1fr); gap: 14px; align-items: start; }
  .show__poster { order: 0; max-width: 420px; justify-self: center; width: 100%; }
  .show__date {
    order: 1; justify-self: start; display: flex; align-items: baseline; gap: 6px; padding: 8px 14px;
  }
  .show__date .d { font-size: 1.3rem; }
  .show__date .m, .show__date .y { margin-top: 0; }
  .show__body { order: 2; }
  .show__actions { order: 3; grid-column: auto; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .poem__share { flex-direction: column; align-items: flex-start; }
  .admin-tabs { overflow-x: auto; flex-wrap: nowrap; }
  .poet__actions .btn { flex: 1 1 auto; }
}

@media (max-width: 480px) {
  .book { grid-template-columns: 1fr; }
  .book__cover { max-width: 140px; }
  .footer__grid { grid-template-columns: 1fr; }
  .share__label { display: none; }
  .poems { grid-template-columns: 1fr; }
  .toolbar { flex-direction: column; align-items: stretch; }
  /* The toolbar is a column here, so the 260px basis meant for width would become height. */
  .search { max-width: none; flex: 0 0 auto; }
  .social-row a { flex: 1 1 auto; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}

@media print {
  .nav, .footer, .share, .poem-nav, .preview-banner { display: none !important; }
  body { background: #fff; }
  .poem { box-shadow: none; border: 0; }
}

/* Schedule picker: date + 12-hour time */
.when-row { display: flex; flex-wrap: wrap; gap: 8px; }
.field .when-row input[type="date"] { flex: 1 1 11rem; width: auto; }
.field .when-row select { flex: 0 0 auto; width: auto; min-width: 4.5rem; }

/* Contact */
.contact { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; max-width: 760px; }
.contact__card { display: block; padding: 22px 24px; background: var(--cream); border: 1px solid var(--line); border-radius: 14px; text-decoration: none; color: inherit; transition: border-color .2s, transform .2s; }
.contact__card:hover { border-color: var(--accent); transform: translateY(-2px); }
.contact__label { display: block; font-size: .85rem; color: var(--muted); margin-bottom: 6px; }
.contact__value { display: block; font-size: 1.25rem; font-weight: 600; overflow-wrap: anywhere; }

/* Verse formatting: ornament between couplets, small type for word meanings */
.verse-break { display: block; text-align: center; color: var(--accent); font-size: .9rem; line-height: 1; margin: 18px 0; letter-spacing: .5em; }
.verse-gloss { display: block; font-family: var(--font-body); font-size: .86rem; line-height: 1.6; color: var(--muted); margin-top: 14px; }
.poem__body--untitled { font-size: clamp(1.15rem, 2.6vw, 1.4rem); }

/* Share buttons for X, Facebook and Instagram carry their own brand colours, so hover lifts them
   instead of turning them orange. */
.share button[data-net="x"], .share button[data-net="facebook"], .share button[data-net="instagram"] { background: #fff; }
.share button[data-net="x"]:hover, .share button[data-net="facebook"]:hover, .share button[data-net="instagram"]:hover { background: #fff; border-color: var(--accent); box-shadow: 0 4px 10px rgba(35, 43, 43, .14); }
.share button[data-net="x"] svg, .share button[data-net="facebook"] svg, .share button[data-net="instagram"] svg { width: 18px; height: 18px; }

/* Sher and qita are short: show the whole verse on the card rather than clipping it. */
.poem-card__body--full, .featured__body--full { -webkit-line-clamp: 16; }

/* Admin: the list of purchase links */
.links-list { display: grid; gap: 8px; margin-bottom: 10px; }
.links-row { display: flex; gap: 8px; align-items: center; }
.field .links-row input { flex: 1 1 auto; min-width: 0; width: auto; }
