/* Small reasons, shared stories. A light, photographic Persian journal. */
html[data-theme] .editorial-hero {
  display: grid;
  grid-template-columns: 1.04fr 1fr;
  align-items: center;
  gap: 20px;
  min-height: 610px;
  padding: 46px 42px;
  background: linear-gradient(125deg, var(--surface), var(--paper));
  border: 1px solid var(--line);
  border-radius: 30px;
  box-shadow: none;
  overflow: hidden;
}
.editorial-hero:before,.editorial-hero:after { display: none; }
.editorial-hero .notebook-hero-copy { width: auto; max-width: none; padding: 0 8px; }
.editorial-hero .hero-kicker {
  gap: 9px;
  padding: 6px 12px;
  background: var(--surface);
  font-size: 11px;
}
.editorial-dot { width: 7px; height: 7px; background: var(--accent); border-radius: 50%; box-shadow: 0 0 0 4px var(--soft); }
html[data-theme] .editorial-hero h1 {
  font-size: clamp(35px, 3.9vw, 55px);
  line-height: 1.65;
  letter-spacing: -1.7px;
  font-weight: 850;
  margin: 21px 0 18px;
}
.editorial-hero .notebook-hero-copy p { font-size: 13px; max-width: 430px; line-height: 2.2; margin-bottom: 26px; }
.editorial-hero .hero-actions .button { font-size: 12px; min-height: 47px; padding: 11px 20px; border-radius: 13px; }
html[data-theme] .editorial-hero .glass-button { background: var(--surface)!important; color: var(--ink)!important; border: 1px solid var(--line)!important; backdrop-filter: none; }
.editorial-hero .hero-community { gap: 11px; margin-top: 26px; font-size: 10px; }
.editorial-people { display: inline-flex; direction: ltr; padding-inline-end: 8px; }
.editorial-people > .icon { width: 30px; height: 30px; padding: 7px; border: 2px solid var(--surface); border-radius: 50%; background: var(--soft); color: var(--accent); margin-inline-end: -7px; }
.hero-gallery { height: 470px; position: relative; min-width: 0; direction: ltr; }
.hero-gallery figure { position: absolute; margin: 0; overflow: hidden; box-shadow: 0 18px 38px #1e2c3b19; border: 6px solid var(--surface); isolation: isolate; }
.hero-gallery img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-tea { width: 77%; height: 76%; left: 0; top: 0; border-radius: 100px 22px 22px 22px; transform: rotate(-4deg); }
.gallery-tea img { object-position: 50% 50%; }
.gallery-nature { width: 58%; height: 58%; right: 0; bottom: 0; border-radius: 20px 20px 85px 20px; transform: rotate(5deg); }
.hero-gallery figcaption { position: absolute; bottom: 13px; left: 12px; right: 12px; direction: rtl; display: flex; justify-content: space-between; align-items: center; gap: 6px; border-radius: 10px; padding: 9px 11px; color: #fff; background: #182b26a6; backdrop-filter: blur(12px); font-size: 10px; }
.hero-gallery figcaption .icon { width: 15px; height: 15px; }
.gallery-stamp { position: absolute; top: 30px; right: 3px; width: 100px; height: 100px; border-radius: 50%; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 3px; border: 1px dashed #a7784e; outline: 7px solid #f1e4ce; background: #f1e4ce; color: #684927; transform: rotate(10deg); box-shadow: 0 8px 20px #0000000a; }
.gallery-stamp b { font-size: 29px; line-height: 1.1; }
.gallery-stamp span { font-size: 9px; text-align: center; line-height: 1.7; }
.gallery-caption { position: absolute; left: 5px; bottom: 12px; font-size: 10px; color: var(--muted); direction: rtl; max-width: 37%; line-height: 2; }
.gallery-caption > span { display: block; font-size: 24px; color: var(--accent); }
.community-stats { margin-top: 22px; gap: 14px; }
.community-stat { box-shadow: none; border-radius: 17px; }
.community-stat b { font-size: 29px; }
.browse-section .section-line h2 { font-size: 31px; letter-spacing: -.8px; }
.browse-section .section-line .eyebrow { font-size: 11px; }
.browse-section .section-line p { font-size: 12px; }
#topics-grid { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 18px; }
html[data-theme] .topic-card { border-radius: 22px; }
html[data-theme] .topic-card .card-art { height: 230px!important; }
html[data-theme] .topic-card .card-art[data-kind]:after { background: linear-gradient(0deg,#15232265,transparent 55%)!important; }
html[data-theme] .card-art .card-category { background: #ffffffeb!important; color: #24352e!important; border: 1px solid #ffffffb3; backdrop-filter: blur(12px); font-size: 10px; }
.topic-card .card-scene { transition: transform .45s; }
.topic-card:hover .card-scene { transform: scale(1.035); }
.topic-card .card-body { padding: 24px; }
.topic-card .card-label { font-size: 10px; color: var(--accent); }
.topic-card .card-body h3 { font-size: 19px; line-height: 1.9; margin: 9px 0 20px; }
.topic-card .card-view { color: var(--accent); }
.topic-card .progress { height: 5px; }
.notebook-invitation { max-width: none; padding: 44px 25px; border: 1px solid var(--line); background: linear-gradient(135deg,var(--surface),var(--soft)); border-radius: 26px; margin-top: 30px; }
.invitation-mark { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); color: var(--accent); margin: 0 auto 17px; }
.notebook-invitation h2 { font-size: 33px; margin: 14px 0; }
.notebook-invitation p { font-size: 13px; max-width: 570px; margin: 0 auto; line-height: 2.2; }
.topic-head.has-topic-art { overflow: hidden; }
@media (max-width: 1100px) {
  #topics-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  html[data-theme] .editorial-hero { padding: 35px 25px; min-height: 540px; gap: 12px; }
  html[data-theme] .editorial-hero h1 { font-size: 40px; }
  .hero-gallery { height: 410px; }
  .gallery-stamp { width: 82px; height: 82px; right: 0; }
  .gallery-stamp b { font-size: 24px; }
  .hero-gallery figcaption { font-size: 9px; }
}
@media (max-width: 800px) {
  html[data-theme] .editorial-hero { grid-template-columns: minmax(0,1fr); min-height: 0; padding: 28px 25px 30px; gap: 30px; }
  .editorial-hero .notebook-hero-copy { padding: 0; }
  html[data-theme] .editorial-hero h1 { font-size: 42px; line-height: 1.6; margin: 17px 0; }
  .desktop-break { display: none; }
  .hero-gallery { height: 370px; width: 100%; max-width: 490px; margin: 0 auto; }
  .gallery-tea { width: 72%; }
  .gallery-nature { width: 53%; height: 60%; }
  .gallery-caption { max-width: 40%; }
  .editorial-hero .hero-community { margin-top: 20px; }
  .community-stats { margin-top: 18px; }
}
@media (max-width: 480px) {
  html[data-theme] .editorial-hero { border-radius: 21px; padding: 24px 20px; gap: 27px; }
  html[data-theme] .editorial-hero h1 { font-size: 30px; letter-spacing: -1px; line-height: 1.65; }
  .editorial-hero .hero-kicker { font-size: 9px; }
  .editorial-hero .notebook-hero-copy p { font-size: 12px; }
  .editorial-hero .hero-actions { gap: 8px; }
  .editorial-hero .hero-actions .button { font-size: 10px!important; padding: 10px 12px!important; min-height: 44px; }
  .hero-gallery { height: 300px; }
  .hero-gallery figure { border-width: 4px; }
  .gallery-tea { border-top-left-radius: 65px; }
  .gallery-nature { border-bottom-right-radius: 55px; }
  .gallery-stamp { width: 66px; height: 66px; top: 17px; right: 2px; outline-width: 5px; }
  .gallery-stamp b { font-size: 21px; }
  .gallery-stamp span { font-size: 7px; }
  .hero-gallery figcaption { font-size: 8px; padding: 7px; right: 8px; left: 8px; bottom: 8px; }
  .hero-gallery figcaption .icon { width: 12px; }
  .gallery-caption { font-size: 9px; bottom: 6px; }
  .browse-section .section-line h2 { font-size: 25px; }
  .notebook-invitation { padding: 30px 19px; }
  .notebook-invitation h2 { font-size: 26px; }
  .notebook-invitation p { font-size: 12px; }
  #topics-grid { grid-template-columns: minmax(0,1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .topic-card .card-scene { transition: none; }
  .topic-card:hover .card-scene { transform: none; }
}
