:root {
  --bg: #faf8f3;
  --ink: #241f1a;
  --muted: #6f665a;
  --line: rgba(36, 31, 26, 0.15);
  --accent: #9d2c2c;
  --dark: #241f1a;
  --light: #f5efe4;
  --container: 1200px;
}

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

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Mukta", sans-serif;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: #b07a1e;
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid #b07a1e;
  outline-offset: 2px;
}

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

h1,
h2,
h3,
h4 {
  font-family: "Martel", serif;
}

.sahitya-wrap {
  min-width: 0;
  overflow: visible;
}

body.mobile-menu-open {
  overflow: hidden;
}

.sahitya-container {
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
}

.newsletter-notice-wrap {
  margin-top: 12px;
}

.newsletter-notice {
  border: 1px solid var(--line);
  border-left-width: 4px;
  padding: 10px 12px;
  font-size: 14px;
  background: #fff;
}

.newsletter-notice-success {
  border-left-color: #2d7a3e;
}

.newsletter-notice-info {
  border-left-color: #31708f;
}

.newsletter-notice-error {
  border-left-color: #9d2c2c;
}

.newsletter-form {
  margin: 0;
}

.newsletter-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.utility-strip {
  border-bottom: 1px solid rgba(36, 31, 26, 0.1);
  background: #f4f0e7;
  font-size: 13.5px;
  color: var(--muted);
}

.utility-inner {
  padding: 8px 0;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.utility-mainline {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 14px;
  flex: 1;
  min-width: 0;
}

.utility-mainline > span {
  white-space: nowrap;
}

.utility-links {
  display: flex;
  align-items: center;
  margin-left: auto;
  gap: 16px;
  white-space: nowrap;
}

.utility-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 16px;
}

.utility-menu li {
  margin: 0;
  padding: 0;
}

.utility-menu a {
  color: #9d2c2c;
}

.utility-social {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.utility-social a {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #c9c0b0;
  color: #6f665a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  line-height: 1;
}

.search-chip {
  border: 1px solid rgba(36, 31, 26, 0.15);
  border-radius: 999px;
  background: #fff;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 6px 5px 14px;
  color: #8a8070;
}

.utility-search {
  width: 240px;
  align-self: auto;
  flex: none;
  justify-content: space-between;
}

.search-dot {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.masthead {
  text-align: center;
  padding: 40px 0 28px;
}

.masthead-link {
  color: var(--ink);
  text-decoration: none;
  display: block;
}

.masthead-link:hover,
.masthead-link:focus-visible {
  color: var(--ink);
}

.masthead-link .site-title,
.masthead-link .site-tagline {
  color: inherit;
}

.site-title {
  margin: 0;
  font-size: clamp(40px, 7vw, 58px);
  font-weight: 800;
  line-height: 1.25;
}

.site-title .accent {
  color: var(--accent);
}

.site-tagline {
  margin: 4px 0 0;
  color: var(--muted);
  letter-spacing: 0.03em;
}

.home-nav {
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--bg);
}

.home-nav-inner {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  min-height: 52px;
}

.home-nav-brand {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  font-family: "Martel", serif;
  font-size: 25px;
  font-weight: 800;
  line-height: 1;
  color: var(--ink);
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.home-nav-brand .accent {
  color: var(--accent);
}

.home-nav.is-condensed .home-nav-brand {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.menu-toggle {
  display: none;
  border: none;
  background: transparent;
  color: var(--ink);
  border-radius: 10px;
  padding: 10px 8px;
  cursor: pointer;
  flex-direction: column;
  gap: 4px;
}

.menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--ink);
  display: block;
}

.home-nav-list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.home-nav-list a {
  color: var(--ink);
  font-size: 16px;
  font-weight: 500;
  padding: 13px 16px;
  display: inline-flex;
}

.home-nav-list .active-link {
  font-weight: 600;
}

.home-nav-cta {
  margin-left: 18px;
  background: var(--accent);
  color: #fff;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  line-height: 1.2;
  padding: 8px 20px;
  display: inline-flex;
}

.home-nav-list a.home-nav-cta,
.home-nav-list-mobile a.home-nav-cta {
  color: #fff;
}

.home-nav-cta:hover {
  background: #7c1f1f;
  color: #fff;
}

.drawer-backdrop,
.menu-drawer {
  display: none;
}

.menu-drawer-head,
.drawer-close,
.drawer-social {
  display: none;
}

.social-links-row {
  display: flex;
  gap: 10px;
}

.social-links-row a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(36, 31, 26, 0.1);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.submit-main-cta {
  flex: none;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: 17px;
  padding: 14px 34px;
  border-radius: 999px;
  display: inline-flex;
  box-sizing: border-box;
  max-width: 100%;
  white-space: nowrap;
}

.submit-main-cta:hover {
  background: #7c1f1f;
  color: #fff;
}

.nav-indicator {
  position: absolute;
  bottom: -1px;
  height: 3px;
  background: var(--accent);
  left: 0;
  /* Sized by scaleX off a 1px base rather than by an animated width, so the slide runs
     on the compositor instead of triggering layout on every frame. moveTo() in
     homepage.js sets the matching translateX/scaleX. */
  width: 1px;
  transform: scaleX(0);
  transform-origin: left center;
  pointer-events: none;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: none;
}

.section {
  padding: 34px 0 12px;
}

.section-title-row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 20px;
}

.section-title {
  margin: 0;
  font-size: 24px;
  font-weight: 800;
}

.section-line {
  height: 1px;
  flex: 1;
  min-width: 40px;
  background: var(--line);
}

.ad-box {
  height: 96px;
  border: 1px dashed rgba(36, 31, 26, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  background: repeating-linear-gradient(45deg, #f2ede2, #f2ede2 10px, #f7f3ea 10px, #f7f3ea 20px);
  color: #8a8070;
  font-family: ui-monospace, Menlo, monospace;
  font-size: 12px;
  letter-spacing: 0.08em;
}

.ad-slot {
  width: 100%;
  /* Contains creatives that are wider than the slot. Vertical growth is allowed via
     the height rules below, so nothing gets sliced off the bottom. */
  overflow: hidden;
}

/* !important because creative markup is third-party and may carry its own inline sizing. */
.ad-slot iframe,
.ad-slot img,
.ad-slot ins,
.ad-slot embed,
.ad-slot object,
.ad-slot script + * {
  max-width: 100% !important;
}

.ad-slot > * {
  max-width: 100%;
  /* Flex/grid children refuse to shrink below min-content without this, which is what
     lets a wide creative punch out of the slot. */
  min-width: 0;
}

/* HTML house-ad creatives hardcode their desktop pixel height (970x96, 300x280). Once the
   copy wraps on a narrow screen that height clips the CTA, so treat it as a floor instead.
   Scoped to layout elements: iframe/img creatives size themselves and must keep their height. */
.ad-slot > a,
.ad-slot > div,
.ad-slot > section {
  height: auto !important;
}

.ad-slot-leaderboard > *,
.ad-slot-banner > * {
  min-height: 96px;
}

.ad-slot-rect > * {
  min-height: 280px;
}

.picks-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 32px;
}

.stack-list {
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.post-card > div,
.feed-item > div,
.mini-item > div,
.poetry-meta-wrap {
  min-width: 0;
}

.empty-state-card {
  border: 1px dashed rgba(36, 31, 26, 0.25);
  background: #fff;
  padding: 20px;
  border-radius: 10px;
}

.empty-state-inline {
  padding: 14px 16px;
}

.empty-state-inline p,
.empty-state-card p {
  margin: 0;
  color: #6f665a;
}

.empty-state-dark {
  border-color: rgba(245, 239, 228, 0.28);
  background: rgba(245, 239, 228, 0.03);
}

.empty-state-dark h3,
.empty-state-dark p {
  color: #f5efe4;
}

.post-card img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

.post-thumb img,
.round-author img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.thumb-placeholder {
  background: repeating-linear-gradient(45deg, #ece5d8, #ece5d8 10px, #f5efe4 10px, #f5efe4 20px);
  color: #8a8070;
  font-family: ui-monospace, Menlo, monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lead-thumb {
  aspect-ratio: 16 / 9;
  width: 100%;
  height: auto;
}

.post-tag {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 3px;
}

.post-title-large {
  margin: 12px 0 8px;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.post-title-mid {
  margin: 6px 0;
  font-size: 21px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.post-title-small {
  margin: 0 0 6px;
  font-size: 17.5px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.post-title-large a,
.post-title-mid a,
.post-title-small a,
.poetry-post-link,
.link-ink {
  color: var(--ink);
}

.post-title-large a:hover,
.post-title-mid a:hover,
.post-title-small a:hover,
.poetry-post-link:hover,
.link-ink:hover {
  color: var(--accent);
}

.post-meta {
  color: var(--muted);
  font-size: 14px;
}

.post-grid-main {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 44px;
}

.feed-list article {
  border-bottom: 1px solid rgba(36, 31, 26, 0.12);
}

.feed-item {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 22px;
  padding: 22px 0;
}

.feed-thumb {
  aspect-ratio: 4 / 3;
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.sidebar > * {
  width: 100%;
  max-width: 360px;
  margin-inline: auto;
  box-sizing: border-box;
}

.panel {
  width: 100%;
}

.sidebar .ad-slot-rect {
  max-width: 420px;
}

.panel {
  border: 1px solid var(--line);
  background: #fff;
  padding: 24px;
}

.panel-center {
  text-align: center;
}

.panel-dark {
  background: var(--dark);
  color: var(--light);
  border: none;
  padding: 28px 26px;
}

.panel-dark-title {
  color: #f5efe4;
  margin-top: 0;
  margin-bottom: 14px;
}

.panel-dark p {
  margin: 0 0 18px;
  line-height: 1.7;
}

.panel-topline {
  border-top: 2px solid #241f1a;
}

.meta-heading {
  letter-spacing: 0.12em;
  color: #9d2c2c;
  font-weight: 600;
}

.ad-box-rect {
  height: 280px;
}

.newsletter-button-spaced {
  margin-top: 10px;
}

.popular-item-row {
  display: flex;
  gap: 12px;
  align-items: baseline;
  margin-top: 12px;
}

.popular-rank {
  font-family: "Martel", serif;
  font-size: 22px;
  color: #c9c0b0;
  font-weight: 800;
}

.popular-link {
  color: #241f1a;
  font-weight: 600;
}

.poetry-title-light {
  color: #f5efe4;
}

.section-line-light {
  background: rgba(245, 239, 228, 0.2);
}

.poetry-more-link {
  color: #e8b04b;
}

.poetry-quote-mark {
  font-family: "Martel", serif;
  font-size: 34px;
  color: #9d2c2c;
  line-height: 1;
}

.poetry-meta-wrap {
  border-top: 1px solid rgba(245, 239, 228, 0.15);
  padding-top: 14px;
}

.poetry-post-link {
  color: #f5efe4;
  font-weight: 600;
}

.link-ink {
  color: #241f1a;
}

.footer-brand-title {
  margin: 0;
  color: #f5efe4;
  font-size: 26px;
}

.archive-head {
  padding: 38px 0 0;
}

.archive-breadcrumb {
  font-size: 13.5px;
  color: #6f665a;
  margin-bottom: 14px;
}

.archive-breadcrumb a {
  color: #6f665a;
}

.archive-title {
  margin: 0 0 8px;
  font-family: "Martel", serif;
  font-weight: 800;
  font-size: 36px;
  line-height: 1.5;
}

.archive-description {
  margin: 0;
  max-width: 640px;
  font-size: 16px;
  line-height: 1.75;
  color: #6f665a;
}

.archive-body {
  margin-top: 26px;
}

.archive-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 44px;
  align-items: start;
}

.archive-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(36, 31, 26, 0.15);
  background: #fff;
  padding: 12px 16px;
}

.archive-input,
.archive-select {
  padding: 9px 12px;
  border: 1px solid rgba(36, 31, 26, 0.18);
  background: #faf8f3;
  font-family: "Mukta", sans-serif;
  font-size: 14.5px;
  color: #241f1a;
}

.archive-input {
  flex: 1;
  min-width: 0;
}

.archive-select {
  max-width: 190px;
}

.archive-sort {
  display: flex;
  border: 1px solid rgba(36, 31, 26, 0.18);
  border-radius: 6px;
  overflow: hidden;
}

.archive-sort-btn {
  padding: 9px 18px;
  border: 0;
  background: #fff;
  color: #6f665a;
  font-weight: 600;
  font-size: 14px;
  font-family: "Mukta", sans-serif;
  cursor: pointer;
}

.archive-sort-btn.is-active {
  background: #9d2c2c;
  color: #fff;
}

.archive-total {
  margin: 16px 0 6px;
  font-size: 14px;
  color: #6f665a;
}

.archive-total b {
  color: #241f1a;
}

.archive-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 10px;
}

.archive-card {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 20px;
  border: 1px solid rgba(36, 31, 26, 0.13);
  background: #fff;
  padding: 16px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.archive-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 22px rgba(36, 31, 26, 0.12);
}

.archive-card-media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.archive-card-media .thumb-placeholder,
.archive-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.archive-tag {
  display: inline-block;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 2px 11px;
  border-radius: 3px;
}

.archive-card-title {
  margin: 8px 0 6px;
  font-family: "Martel", serif;
  font-weight: 800;
  font-size: 20px;
  line-height: 1.55;
}

.archive-card-title a {
  color: #241f1a;
}

.archive-card-title a:hover {
  color: #9d2c2c;
}

.archive-card-excerpt {
  margin: 0 0 10px;
  font-size: 15px;
  line-height: 1.7;
  color: #4d463c;
}

.archive-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  color: #6f665a;
  font-size: 13.5px;
}

.archive-meta-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: repeating-linear-gradient(45deg, #ddd3c0, #ddd3c0 4px, #e8e0d0 4px, #e8e0d0 8px);
}

.archive-meta-name {
  color: #241f1a;
  font-weight: 600;
}

.archive-empty {
  border: 1px dashed rgba(36, 31, 26, 0.25);
  background: #fff;
  padding: 44px;
  text-align: center;
  color: #8a8070;
  font-size: 15.5px;
}

.archive-pagination {
  margin-top: 24px;
}

.archive-pagination .page-numbers {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.archive-pagination .page-numbers li {
  margin: 0;
}

.archive-pagination .page-numbers a,
.archive-pagination .page-numbers span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  border: 1px solid rgba(36, 31, 26, 0.2);
  background: #fff;
  color: #241f1a;
  font-size: 14px;
  padding: 0 10px;
}

.archive-pagination .page-numbers .current {
  border-color: #9d2c2c;
  background: #9d2c2c;
  color: #fff;
}

.archive-sidebar {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.archive-panel {
  border: 1px solid rgba(36, 31, 26, 0.15);
  background: #fff;
  padding: 24px;
  box-sizing: border-box;
}

.archive-panel-topline {
  border-top: 2px solid #241f1a;
}

.archive-panel-center {
  text-align: center;
}

.archive-panel-title {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: #9d2c2c;
  margin-bottom: 14px;
}

.archive-genre-list {
  display: flex;
  flex-direction: column;
  gap: 11px;
  font-size: 15px;
}

.archive-genre-item {
  color: #241f1a;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.archive-genre-item:hover {
  color: #9d2c2c;
}

.archive-genre-left {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.archive-genre-dot {
  width: 10px;
  height: 10px;
  border-radius: 3px;
}

.archive-genre-count {
  color: #8a8070;
  font-size: 13px;
}

.footer-social-row {
  margin-top: 14px;
}

.round-author {
  width: 118px;
  height: 118px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 18px;
}

.sidebar .post-title-mid {
  margin-top: 0;
  margin-bottom: 10px;
}

.sidebar .panel p,
.sidebar .panel a {
  font-size: 16px;
  line-height: 1.7;
}

.poetry-band {
  background: var(--dark);
  margin-top: 40px;
  color: var(--light);
  padding: 52px 0;
}

.poetry-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.poetry-card {
  border: 1px solid rgba(245, 239, 228, 0.15);
  padding: 28px 26px;
}

.poetry-excerpt {
  margin: 0 0 18px;
  font-family: "Martel", serif;
  font-size: 17px;
  line-height: 2;
}

.dual-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
}

.mini-item {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 18px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(36, 31, 26, 0.12);
}

.mini-item:last-child {
  border-bottom: none;
}

.mini-thumb {
  aspect-ratio: 4 / 3;
}

.submit-cta {
  margin-top: 36px;
}

.submit-box {
  border: 2px solid var(--ink);
  background: #fff;
  border-radius: 14px;
  padding: 42px 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.submit-box .section-title {
  font-size: clamp(28px, 3.6vw, 34px) !important;
  line-height: 1.4;
}

.submit-box p {
  margin: 0;
  font-size: 16px;
  line-height: 1.75;
  color: #6f665a;
}

.site-footer {
  background: var(--dark);
  color: #c9c0b0;
  margin-top: 52px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.3fr;
  gap: 36px;
  border-bottom: 1px solid rgba(245, 239, 228, 0.15);
  padding: 52px 0 40px;
}

.footer-title {
  color: var(--light);
  margin: 0 0 14px;
  font-size: 13px;
  letter-spacing: 0.1em;
  font-weight: 600;
}

.footer-links,
.footer-links ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links a {
  color: #c9c0b0;
}

.footer-bottom {
  padding: 20px 0;
  color: #8a8070;
  font-size: 13.5px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.newsletter-input,
.newsletter-button {
  width: 100%;
  box-sizing: border-box;
  border-radius: 0;
  font-family: "Mukta", sans-serif;
}

.newsletter-input {
  border: 1px solid rgba(245, 239, 228, 0.3);
  background: rgba(245, 239, 228, 0.08);
  color: var(--light);
  padding: 10px 12px;
}

.newsletter-button {
  border: none;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  padding: 10px 12px;
}

.newsletter-button:disabled,
.newsletter-button[aria-disabled="true"] {
  opacity: 0.6;
  cursor: not-allowed;
}

@media (max-width: 1100px) {
  .picks-grid,
  .post-grid-main,
  .dual-columns,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .archive-layout {
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 34px;
  }

  .archive-select {
    max-width: 168px;
  }

  .archive-sort-btn {
    padding: 9px 14px;
  }

  .submit-box {
    flex-direction: column;
    align-items: flex-start;
    padding: 32px;
  }

  .submit-main-cta {
    margin-top: 4px;
  }

  .poetry-grid {
    grid-template-columns: 1fr 1fr;
  }

  .home-nav-list a {
    padding: 12px;
    font-size: 15px;
  }

  .home-nav-brand {
    display: none;
  }

  .home-nav.is-condensed .home-nav-brand {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }
}

@media (max-width: 1100px) and (min-width: 981px) {
  .home-nav-list a {
    padding: 10px 9px;
    font-size: 14px;
  }

  .home-nav-cta {
    margin-left: 12px;
    padding: 7px 14px;
    font-size: 14px;
  }

  .home-nav-inner {
    gap: 4px;
  }

  .archive-card {
    padding: 15px;
    gap: 18px;
  }

  .archive-card-title {
    font-size: 19px;
    line-height: 1.5;
  }

  .archive-card-excerpt {
    font-size: 14.5px;
    line-height: 1.66;
    margin-bottom: 9px;
  }
}

@media (max-width: 980px) {
  .archive-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .archive-sidebar {
    max-width: none;
    width: 100%;
  }

  .archive-sidebar > * {
    width: 100%;
    max-width: none;
    box-sizing: border-box;
  }

  .sidebar {
    width: 100%;
  }

  .sidebar > * {
    width: 100%;
    max-width: none;
    box-sizing: border-box;
  }

  .sidebar .ad-slot-rect {
    max-width: none;
  }
}

@media (max-width: 820px) {
  .sahitya-container {
    width: min(var(--container), calc(100% - 24px));
  }

  .menu-toggle {
    display: inline-flex;
    margin: 6px 0;
  }

  .home-nav-inner {
    justify-content: flex-end;
    padding: 0;
  }

  .home-nav-brand {
    display: none;
  }

  .menu-toggle {
    margin-left: auto;
  }

  .utility-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    overflow-x: clip;
  }

  .utility-mainline {
    justify-content: space-between;
    gap: 10px;
    white-space: normal;
    overflow: visible;
    flex-wrap: wrap;
  }

  .utility-links {
    margin-left: 0;
    gap: 12px;
    flex-wrap: wrap;
    white-space: normal;
  }

  .utility-search {
    width: 100%;
    margin-right: 0;
    align-self: stretch;
  }

  .home-nav-list-desktop {
    display: none;
  }

  .drawer-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(36, 31, 26, 0.35);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    z-index: 45;
  }

  .menu-drawer {
    display: flex;
    flex-direction: column;
    position: fixed;
    right: 0;
    top: 0;
    width: min(86vw, 340px);
    height: 100dvh;
    background: #f4f0e7;
    box-shadow: -18px 0 40px rgba(0, 0, 0, 0.2);
    transform: translateX(102%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 50;
    padding: 20px 18px;
    box-sizing: border-box;
  }

  .home-nav.is-open .drawer-backdrop {
    opacity: 1;
    pointer-events: auto;
  }

  .home-nav.is-open .menu-drawer {
    transform: translateX(0);
  }

  .menu-drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: "Martel", serif;
    font-size: 18px;
    margin-bottom: 14px;
  }

  .drawer-close {
    display: inline-flex;
    border: none;
    background: transparent;
    color: var(--ink);
    font-size: 30px;
    line-height: 1;
    padding: 0;
    cursor: pointer;
  }

  .home-nav-list-mobile {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    width: 100%;
    padding: 8px 0 14px;
  }

  .home-nav-list-mobile li {
    width: 100%;
  }

  .home-nav-list-mobile a {
    width: 100%;
    margin: 0;
    border-radius: 10px;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.7);
  }

  .home-nav-list-mobile .home-nav-cta {
    width: 100%;
    margin: 0;
    border-radius: 10px;
    padding: 12px 14px;
    background: var(--accent);
    color: #fff;
    text-align: center;
    justify-content: center;
  }

  .drawer-social {
    margin-top: auto;
    display: flex;
    gap: 10px;
    padding-top: 16px;
    border-top: 1px solid rgba(36, 31, 26, 0.15);
  }

  .drawer-social a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(36, 31, 26, 0.1);
    color: var(--ink);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
  }

  .submit-main-cta {
    width: 100%;
    justify-content: center;
    box-sizing: border-box;
  }

  .nav-indicator {
    display: none !important;
  }

  .feed-item,
  .mini-item,
  .submit-box,
  .footer-bottom,
  .archive-card,
  .archive-toolbar {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: flex-start;
  }

  .archive-toolbar {
    align-items: stretch;
    gap: 10px;
    padding: 10px 12px;
  }

  .archive-sort {
    width: 100%;
  }

  .archive-sort-btn {
    flex: 1;
  }

  .archive-sidebar {
    max-width: none;
    width: 100%;
  }

  .archive-sidebar > * {
    width: 100%;
    max-width: none;
    box-sizing: border-box;
  }

  .archive-head {
    padding-top: 30px;
  }

  .archive-title {
    font-size: 30px;
    line-height: 1.45;
  }

  .archive-description {
    font-size: 15px;
    line-height: 1.68;
  }

  .archive-body {
    margin-top: 22px;
  }

  .archive-card {
    gap: 16px;
    padding: 14px;
  }

  .archive-card-title {
    font-size: 19px;
  }

  .archive-card-excerpt {
    font-size: 14.5px;
    line-height: 1.65;
  }

  .feed-thumb,
  .mini-thumb {
    width: 100%;
  }

  .poetry-grid {
    grid-template-columns: 1fr;
  }

  .section,
  .poetry-band {
    padding-top: 28px;
    padding-bottom: 8px;
  }

  .submit-box {
    width: calc(100% - 8px);
    margin: 0 4px;
    box-sizing: border-box;
    padding: 22px 18px;
    gap: 16px;
    box-shadow: 0 6px 20px rgba(36, 31, 26, 0.06);
  }

  .submit-box .section-title {
    font-size: clamp(24px, 8.2vw, 30px) !important;
  }

  .submit-main-cta {
    font-size: 16px;
    padding: 12px 20px;
  }
}

@media (max-width: 560px) {
  .utility-mainline {
    gap: 8px;
    white-space: normal;
  }

  .utility-links {
    gap: 10px;
    white-space: normal;
    flex-wrap: wrap;
  }

  .utility-search {
    width: 100%;
    margin-right: 0;
  }
}

@media (max-width: 380px) {
  .utility-strip {
    font-size: 12px;
  }

  .utility-mainline {
    gap: 6px;
  }

  .utility-links {
    gap: 8px;
    font-size: 12.5px;
  }

  .utility-social {
    gap: 8px;
  }

  .utility-search {
    font-size: 13px;
    padding-left: 12px;
  }

  .search-dot {
    width: 24px;
    height: 24px;
  }

  .submit-box {
    width: calc(100% - 6px);
    margin: 0 3px;
    padding: 18px 14px;
  }

  .submit-box .section-title {
    font-size: clamp(22px, 9vw, 28px) !important;
  }
}
