/*
Theme Name: Misad's Journal
Theme URI: https://iammisad.shop
Author: MD Misad Ali
Description: A mobile-first Bengali writing journal theme with public reading, comments, likes, search, categories, and SEO-friendly structure.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
Text Domain: misads-journal
*/

:root {
  --ink: #071d3b;
  --ink-soft: #243552;
  --paper: #fffdf9;
  --paper-deep: #f6f0e8;
  --line: #ded4c7;
  --heart: #a0061c;
  --heart-deep: #850014;
  --gold: #c79a43;
  --leaf: #2f6650;
  --navy: #071f3a;
  --shadow: 0 18px 42px rgba(7, 29, 59, 0.12);
  --soft-shadow: 0 10px 30px rgba(7, 29, 59, 0.08);
  --radius: 8px;
  --content: min(1120px, calc(100vw - 32px));
  --header-height: 74px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Kalpurush", "Noto Serif Bengali", "Noto Sans Bengali", Georgia, serif;
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  padding-bottom: 72px;
}

body.drawer-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration-color: rgba(177, 18, 53, 0.38);
  text-underline-offset: 4px;
}

a:hover,
a:focus {
  color: var(--heart);
}

img {
  display: block;
  height: auto;
  max-width: 100%;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  border-bottom: 1px solid rgba(7, 29, 59, 0.1);
  background: rgba(255, 253, 248, 0.97);
  backdrop-filter: blur(16px);
}


.social-links {
  display: flex;
  align-items: center;
  gap: 9px;
}

.social-links a {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: inherit;
  background: rgba(255, 255, 255, 0.1);
  font-size: 0.78rem;
  font-weight: 800;
  text-decoration: none;
  text-transform: uppercase;
}

.header-inner {
  width: var(--content);
  min-height: var(--header-height);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand {
  display: flex;
  align-items: center;
  min-width: 0;
  max-width: calc(100% - 58px);
  gap: 10px;
  text-decoration: none;
}

.brand-logo {
  width: 54px;
  height: 54px;
  border: 2px solid rgba(7, 29, 59, 0.12);
  border-radius: 50%;
  object-fit: cover;
}

.brand-title {
  display: block;
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-tagline {
  display: block;
  max-width: 220px;
  overflow: hidden;
  color: var(--ink-soft);
  font-size: 0.78rem;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.menu-toggle {
  position: relative;
  z-index: 120;
  width: 44px;
  height: 42px;
  margin-left: auto;
  border: 1px solid rgba(7, 29, 59, 0.16);
  border-radius: var(--radius);
  color: var(--ink);
  background: transparent;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  box-shadow: 0 8px 22px rgba(7, 29, 59, 0.08);
}

.menu-toggle span,
.menu-toggle::before,
.menu-toggle::after {
  content: "";
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-toggle[aria-expanded="true"] span {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"]::before {
  transform: translateY(6px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"]::after {
  transform: translateY(-6px) rotate(-45deg);
}

.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(7, 29, 59, 0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}

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

.primary-nav {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 100;
  width: min(88vw, 390px);
  height: 100dvh;
  padding: 0 18px 22px;
  border-left: 1px solid rgba(7, 29, 59, 0.12);
  background: var(--paper);
  box-shadow: -20px 0 50px rgba(7, 29, 59, 0.2);
  overflow-y: auto;
  transform: translateX(104%);
  opacity: 1;
  pointer-events: none;
  transition: transform 0.24s ease;
}

.primary-nav.is-open {
  transform: translateX(0);
  pointer-events: auto;
}

.primary-nav ul {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 8px 0 0;
  list-style: none;
}

.primary-nav a {
  display: flex;
  align-items: center;
  min-height: 54px;
  padding: 12px 6px;
  border-radius: 0;
  border: 0;
  border-bottom: 1px solid rgba(7, 29, 59, 0.08);
  background: transparent;
  font-weight: 800;
  font-size: 1.12rem;
  text-decoration: none;
}

.drawer-head {
  margin: 0 -18px 14px;
  padding: 24px 22px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  background: var(--heart-deep);
}

.drawer-head img {
  width: 66px;
  height: 66px;
  border-radius: 50%;
  background: #fff;
  object-fit: cover;
}

.drawer-head strong,
.drawer-head span {
  display: block;
}

.drawer-head strong {
  font-size: 1.35rem;
  line-height: 1.15;
}

.drawer-head span {
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.9rem;
  line-height: 1.35;
}

.drawer-extra {
  display: grid;
  gap: 14px;
  padding-top: 16px;
}

.drawer-cta {
  min-height: 48px;
  border: 1px solid rgba(160, 6, 28, 0.25) !important;
  border-radius: var(--radius) !important;
  justify-content: center;
  color: var(--heart);
}

.drawer-social a,
.profile-social a,
.author-social a,
.share-social a {
  color: #fff;
  background: var(--heart);
}

.drawer-extra p {
  margin: 0;
  padding: 14px;
  border-radius: var(--radius);
  color: #fff;
  background: var(--navy);
}

.header-actions {
  display: none;
  align-items: center;
  gap: 14px;
  margin-left: 14px;
}

.search-link {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  position: relative;
  text-decoration: none;
}

.search-link::before {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  top: 10px;
  left: 10px;
  border: 2px solid var(--ink);
  border-radius: 50%;
}

.search-link::after {
  content: "";
  position: absolute;
  width: 9px;
  height: 2px;
  top: 26px;
  left: 25px;
  background: var(--ink);
  transform: rotate(45deg);
}

.site-main {
  min-height: 68vh;
}

.hero {
  border-bottom: 1px solid rgba(7, 29, 59, 0.08);
  background: linear-gradient(120deg, #fff4ef 0%, #f8e9e3 100%);
}

.hero-inner {
  width: var(--content);
  margin: 0 auto;
  padding: 34px 0 28px;
}

.hero-logo {
  width: min(158px, 42vw);
  margin: 0 auto;
  border-radius: 50%;
  box-shadow: var(--shadow);
}

.hero-copy-block {
  text-align: center;
}

.hero-art {
  display: grid;
  justify-items: center;
  gap: 18px;
  margin-top: 26px;
}

.book-visual {
  position: relative;
  width: min(300px, 82vw);
  aspect-ratio: 1.7;
  border-radius: 8px;
  background:
    linear-gradient(20deg, transparent 50%, rgba(7, 29, 59, 0.1) 51%),
    linear-gradient(160deg, #fff 0 48%, #e9ded2 49% 51%, #fff8ef 52% 100%);
  box-shadow: var(--shadow);
}

.quill {
  position: absolute;
  width: 92px;
  height: 18px;
  top: 22px;
  left: 50%;
  border-radius: 80% 20% 80% 20%;
  background: var(--ink);
  transform: rotate(-38deg);
}

.book-line {
  position: absolute;
  height: 2px;
  left: 34px;
  right: 34px;
  background: rgba(7, 29, 59, 0.18);
}

.line-one {
  bottom: 48px;
}

.line-two {
  bottom: 34px;
}

.ink-pot {
  position: absolute;
  width: 38px;
  height: 30px;
  left: 36px;
  bottom: 24px;
  border-radius: 8px 8px 12px 12px;
  background: var(--ink);
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--heart);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1,
.page-title {
  margin: 0;
  font-size: clamp(2rem, 9vw, 4.6rem);
  line-height: 1.08;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 660px;
  margin: 12px 0 20px;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

.hero-actions,
.post-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-actions .button {
  flex: 1 1 150px;
  justify-content: center;
}

.button,
.wp-block-button__link,
button[type="submit"],
input[type="submit"] {
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid var(--heart);
  border-radius: var(--radius);
  color: #fff;
  background: var(--heart);
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.button.secondary {
  color: var(--ink);
  border-color: rgba(7, 29, 59, 0.18);
  background: #fff;
}

.section,
.content-area {
  width: var(--content);
  margin: 0 auto;
  padding: 24px 0;
}

.section-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.section-header h2 {
  margin: 0;
  font-size: clamp(1.35rem, 5vw, 2rem);
  line-height: 1.2;
}

.post-grid {
  display: grid;
  gap: 12px;
}

.post-card {
  display: grid;
  gap: 12px;
  padding: 15px;
  border: 1px solid rgba(7, 29, 59, 0.12);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--soft-shadow);
}

.post-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 7px;
  object-fit: cover;
}

.post-thumb {
  display: block;
  text-decoration: none;
}

.post-thumb span {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 7px;
  display: grid;
  place-items: center;
  color: rgba(7, 29, 59, 0.72);
  background:
    radial-gradient(circle at 70% 25%, rgba(160, 6, 28, 0.16), transparent 28%),
    linear-gradient(135deg, #f7e2dd, #fff8ef);
  font-size: 1.25rem;
  font-weight: 800;
}

.post-card h2,
.post-card h3 {
  margin: 0;
  font-size: 1.24rem;
  line-height: 1.32;
}

.post-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.96rem;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  color: #5a6475;
  font-size: 0.88rem;
}

.cat-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cat-links a,
.tag-chip {
  padding: 5px 9px;
  border: 1px solid rgba(177, 18, 53, 0.24);
  border-radius: 999px;
  color: var(--heart);
  background: rgba(177, 18, 53, 0.06);
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
}

.topic-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.topic-card {
  min-height: 112px;
  padding: 16px 10px;
  border: 1px solid rgba(7, 29, 59, 0.12);
  border-radius: var(--radius);
  background: #fff;
  display: grid;
  place-items: center;
  gap: 4px;
  text-align: center;
  text-decoration: none;
  box-shadow: var(--soft-shadow);
}

.topic-card span {
  color: var(--heart);
  font-size: 1.8rem;
  line-height: 1;
}

.topic-card strong {
  font-size: 1.08rem;
}

.topic-card small {
  color: var(--ink-soft);
}

.quote-band {
  color: #fff;
  background:
    linear-gradient(90deg, rgba(7, 31, 58, 0.96), rgba(7, 31, 58, 0.8)),
    var(--navy);
}

.quote-inner {
  width: var(--content);
  margin: 0 auto;
  padding: 30px 0;
  text-align: center;
}

.quote-inner p {
  margin: 0 auto 8px;
  max-width: 720px;
  font-size: clamp(1.35rem, 5vw, 2rem);
  line-height: 1.45;
}

.quote-inner span {
  color: rgba(255, 255, 255, 0.76);
}

.subscribe-band {
  background: #fff;
}

.subscribe-inner {
  width: var(--content);
  margin: 0 auto;
  padding: 28px 0;
  display: grid;
  gap: 14px;
  align-items: center;
}

.mail-mark {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--heart);
  background: #f6dfdd;
  font-size: 2rem;
  font-weight: 800;
}

.subscribe-inner h2,
.subscribe-inner p {
  margin: 0;
}

.search-wrap {
  padding-top: 18px;
  padding-bottom: 10px;
  border: 0;
  background: transparent;
}

.search-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding: 8px;
  border: 1px solid rgba(7, 29, 59, 0.12);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--soft-shadow);
}

input[type="search"],
input[type="text"],
input[type="email"],
input[type="url"],
textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid rgba(7, 29, 59, 0.18);
  border-radius: var(--radius);
  color: var(--ink);
  background: #fff;
  font: inherit;
}

textarea {
  min-height: 140px;
}

.search-form input[type="search"] {
  border-color: transparent;
  background: var(--paper);
}

.bio-band {
  background: #061a34;
  color: #fff;
}

.bio-inner {
  width: var(--content);
  margin: 0 auto;
  padding: 30px 0;
  display: grid;
  gap: 18px;
}

.bio-inner h2 {
  margin: 0;
  font-size: clamp(1.5rem, 6vw, 2.4rem);
  line-height: 1.15;
}

.bio-inner p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
}

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

.bio-points li {
  padding: 11px 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.88);
}

.about-hero {
  border-bottom: 1px solid rgba(7, 29, 59, 0.08);
  background: transparent;
}

.about-hero-inner {
  width: var(--content);
  margin: 0 auto;
  padding: 26px 0;
  display: grid;
  gap: 18px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #fae9e5, #fff8f1);
  box-shadow: var(--soft-shadow);
}

.about-logo {
  width: min(146px, 42vw);
  aspect-ratio: 1;
  border-radius: 50%;
  box-shadow: var(--shadow);
}

.profile-photo-wrap {
  position: relative;
  justify-self: center;
}

.profile-photo-wrap span {
  position: absolute;
  right: 4px;
  bottom: 8px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--heart);
}

.profile-intro {
  text-align: center;
}

.script-text {
  margin: 0;
  color: var(--heart);
  font-size: 1.45rem;
  font-style: italic;
}

.profile-role {
  margin: 8px auto 10px;
  width: fit-content;
  padding: 4px 28px;
  border-top: 1px solid rgba(160, 6, 28, 0.45);
  border-bottom: 1px solid rgba(160, 6, 28, 0.45);
  font-weight: 800;
}

.profile-social {
  justify-content: center;
}

.profile-details {
  display: grid;
  gap: 10px;
  padding: 0 18px 4px;
}

.profile-details p {
  margin: 0;
  display: grid;
  gap: 2px;
}

.profile-details span {
  color: var(--heart);
  font-size: 0.86rem;
  font-weight: 800;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
}

.about-stats div {
  padding: 16px;
  border: 1px solid rgba(7, 29, 59, 0.1);
  background: #fff;
  text-align: center;
}

.about-stats span,
.about-stats strong {
  display: block;
}

.about-stats span {
  color: var(--ink);
  font-size: 1.8rem;
  font-weight: 800;
  line-height: 1.1;
}

.about-stats strong {
  color: var(--ink-soft);
}

.about-layout {
  display: grid;
  gap: 14px;
}

.about-panel {
  padding: 18px;
  border: 1px solid rgba(7, 29, 59, 0.1);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--soft-shadow);
}

.about-panel h2,
.interests h2 {
  margin-top: 0;
}

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

.work-grid div {
  padding: 14px;
  border-radius: var(--radius);
  background: var(--paper);
}

.work-grid strong,
.work-grid span {
  display: block;
}

.work-grid span {
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.interests div {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.interests span {
  padding: 9px 15px;
  border: 1px solid rgba(7, 29, 59, 0.1);
  border-radius: 999px;
  background: #fff;
  box-shadow: var(--soft-shadow);
}

.breadcrumb-wrap {
  border-bottom: 1px solid rgba(7, 29, 59, 0.08);
  background: #fff;
}

.breadcrumb-inner {
  width: var(--content);
  margin: 0 auto;
  padding: 14px 0;
  display: flex;
  gap: 8px;
  align-items: center;
  color: var(--heart);
  font-weight: 800;
}

.about-content {
  padding-top: 28px;
}

.about-facts {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.about-facts div {
  padding: 14px;
  border: 1px solid rgba(7, 29, 59, 0.12);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--soft-shadow);
}

.about-facts span,
.about-facts strong {
  display: block;
}

.about-facts span {
  color: var(--heart);
  font-size: 0.9rem;
  font-weight: 700;
}

.about-facts strong {
  margin-top: 4px;
  color: var(--ink);
}

.single-layout {
  display: grid;
  gap: 22px;
}

.single-article {
  min-width: 0;
}

.single-header {
  background: transparent;
  padding-bottom: 16px;
}

.single-featured img {
  width: 100%;
  max-height: 430px;
  border-radius: var(--radius);
  object-fit: cover;
}

.entry-title {
  margin: 0 0 12px;
  font-size: clamp(2rem, 8vw, 4rem);
  line-height: 1.12;
}

.entry-content {
  max-width: 760px;
  margin: 0 auto;
  font-size: 1.08rem;
}

.share-panel {
  margin-top: 22px;
  padding: 12px;
  border: 1px solid rgba(7, 29, 59, 0.1);
  border-radius: var(--radius);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.post-sidebar {
  display: grid;
  gap: 16px;
  align-content: start;
}

.sidebar-card {
  padding: 18px;
  border: 1px solid rgba(7, 29, 59, 0.1);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--soft-shadow);
}

.sidebar-card h2 {
  margin-top: 0;
  font-size: 1.2rem;
}

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

.author-card img {
  width: 92px;
  height: 92px;
  margin: 0 auto;
  border-radius: 50%;
  object-fit: cover;
}

.author-card h3 {
  margin-bottom: 4px;
}

.author-social {
  justify-content: center;
  margin: 14px 0;
}

.sidebar-cats ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.sidebar-cats li {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid rgba(7, 29, 59, 0.08);
}

.mini-post {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 10px;
  align-items: center;
  margin-bottom: 12px;
  text-decoration: none;
}

.mini-post img,
.mini-post span {
  width: 74px;
  height: 58px;
  border-radius: 7px;
  object-fit: cover;
  background: var(--paper-deep);
}

.entry-content p,
.entry-content ul,
.entry-content ol,
.entry-content blockquote {
  margin-top: 0;
  margin-bottom: 1.2em;
}

.entry-content blockquote {
  padding: 16px;
  border-left: 4px solid var(--heart);
  border-radius: var(--radius);
  background: var(--paper-deep);
  color: var(--ink-soft);
}

.like-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.like-button[disabled] {
  cursor: default;
  opacity: 0.68;
}

.comments-area {
  width: var(--content);
  max-width: 760px;
  margin: 0 auto;
  padding: 28px 0 44px;
}

.comment-list {
  display: grid;
  gap: 12px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}

.comment-body {
  padding: 14px;
  border: 1px solid rgba(7, 29, 59, 0.12);
  border-radius: var(--radius);
  background: #fff;
}

.site-footer {
  color: #fff;
  border-top: 0;
  background: var(--navy);
}

.footer-inner {
  width: var(--content);
  margin: 0 auto;
  padding: 32px 0 24px;
  display: grid;
  gap: 24px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.95rem;
}

.footer-inner h2,
.footer-inner h3,
.footer-inner p {
  margin: 0;
}

.footer-inner h2,
.footer-inner h3 {
  color: #fff;
}

.footer-inner a {
  display: block;
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
}

.footer-brand {
  display: flex;
  gap: 14px;
}

.footer-brand img {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: #fff;
  object-fit: cover;
}

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

.footer-bottom {
  width: var(--content);
  margin: 0 auto;
  padding: 14px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
}

.footer-bottom p {
  margin: 0;
}

.mobile-bottom-nav {
  position: fixed;
  right: 12px;
  bottom: 10px;
  left: 12px;
  z-index: 95;
  min-height: 62px;
  padding: 8px 8px 6px;
  border: 1px solid rgba(7, 29, 59, 0.12);
  border-radius: 18px;
  background: rgba(255, 253, 249, 0.96);
  box-shadow: 0 12px 34px rgba(7, 29, 59, 0.16);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  backdrop-filter: blur(16px);
}

.mobile-bottom-nav a {
  display: grid;
  place-items: center;
  gap: 1px;
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
}

.mobile-bottom-nav span {
  color: var(--heart);
  font-size: 1.15rem;
}

.pagination,
.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.page-numbers {
  padding: 8px 12px;
  border: 1px solid rgba(7, 29, 59, 0.14);
  border-radius: var(--radius);
  text-decoration: none;
}

.page-numbers.current {
  color: #fff;
  background: var(--ink);
}

@media (min-width: 760px) {
  :root {
    --header-height: 104px;
  }

  body {
    padding-bottom: 0;
  }

  .header-inner {
    min-height: var(--header-height);
  }

  .brand-tagline {
    display: block;
  }

  .brand {
    max-width: none;
  }

  .menu-toggle {
    display: none;
  }

  .drawer-backdrop {
    display: none;
  }

  .primary-nav {
    position: static;
    width: auto;
    height: auto;
    max-height: none;
    margin: 0 0 0 auto;
    padding: 0;
    border-left: 0;
    border-bottom: 0;
    background: transparent;
    box-shadow: none;
    transform: none;
    opacity: 1;
    pointer-events: auto;
    overflow: visible;
  }

  .drawer-head,
  .drawer-extra {
    display: none;
  }

  .primary-nav ul {
    display: flex;
    align-items: center;
    gap: 18px;
  }

  .primary-nav a {
    min-height: 40px;
    padding: 8px 4px;
    border-color: transparent;
    background: transparent;
    font-size: 1rem;
  }

  .header-actions {
    display: flex;
  }

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

  .hero-inner {
    min-height: 420px;
    padding: 54px 0 44px;
    display: grid;
    grid-template-columns: 0.92fr 1.08fr;
    align-items: center;
    gap: 34px;
  }

  .hero-copy-block {
    text-align: left;
  }

  .hero-logo {
    width: min(160px, 16vw);
    margin: 0;
  }

  .hero-art {
    margin-top: 0;
  }

  .book-visual {
    width: min(480px, 42vw);
  }

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

  .subscribe-inner {
    grid-template-columns: auto 1fr auto;
  }

  .bio-inner {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }

  .about-hero-inner {
    min-height: 320px;
    padding: 30px;
    grid-template-columns: 0.38fr 0.82fr 0.56fr;
    align-items: center;
    gap: 34px;
  }

  .profile-intro {
    text-align: left;
  }

  .profile-social {
    justify-content: flex-start;
  }

  .about-logo {
    width: min(220px, 18vw);
  }

  .about-facts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .about-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .about-layout {
    grid-template-columns: 1fr 1fr;
  }

  .single-layout {
    grid-template-columns: minmax(0, 1fr) 330px;
    align-items: start;
  }

  .footer-inner {
    grid-template-columns: 1.6fr 0.8fr 0.8fr 1fr;
    align-items: start;
  }

  .mobile-bottom-nav {
    display: none;
  }
}

@media (min-width: 1040px) {
  .post-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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


.editable-page {
  max-width: var(--content);
}

.editable-page .entry-content {
  padding: 18px;
  border: 1px solid rgba(7, 29, 59, 0.1);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--soft-shadow);
}
