:root {
  --ink: #1c1916;
  --slate: #5f584e;
  --paper: #f3efe6;
  --white: #fffdf8;
  --line: #e3d9c8;
  --navy: #1b2330;
  --accent: #c4492c;
  --general: #1d6b56;
  --tools: #5340c8;
  --ai: #0f6b82;
  --art: #9a3b1a;
  --stories: #8d3158;
  --beauty: #9a3d62;
  --health: #1d6b4a;
  --zodiac: #2f3f86;
  --shadow: 0 16px 40px rgba(28, 25, 22, 0.08);
  --serif: "Fraunces", "Times New Roman", serif;
  --sans: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif;
}

* { box-sizing: border-box; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card:hover, .cover-card:hover .cover.has-photo img { transform: none; }
}
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(720px 340px at 0% -4%, rgba(225, 90, 40, 0.2), transparent 58%),
    radial-gradient(640px 300px at 100% 8%, rgba(122, 24, 72, 0.16), transparent 55%),
    radial-gradient(520px 260px at 80% 42%, rgba(47, 63, 134, 0.14), transparent 50%),
    var(--paper);
  font-family: var(--sans);
  line-height: 1.85;
  font-size: 17px;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); }
button, input { font-family: inherit; }
.skip {
  position: absolute;
  inset-inline-start: 12px;
  top: -40px;
  background: var(--navy);
  color: white;
  padding: 8px 12px;
  z-index: 20;
}
.skip:focus { top: 12px; }

.wrap { width: min(1120px, calc(100% - 32px)); margin-inline: auto; }
.wrap-narrow { width: min(760px, calc(100% - 32px)); margin-inline: auto; }

.topline {
  background: var(--navy);
  color: #f6f1e7;
  font-size: 0.82rem;
}
.topline .wrap {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  min-height: 34px;
  align-items: center;
}
.topline a { color: #f0c9a0; text-decoration: none; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 8;
  background: rgba(255, 250, 244, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}
.site-header::after {
  content: "";
  display: block;
  height: 4px;
  background: linear-gradient(90deg, #e15a28, #9a3d62, #7a1848, #2f3f86, #1d6b4a);
}
.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 74px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
}
.logo strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.7rem;
  letter-spacing: -0.04em;
  line-height: 1;
}
.logo small {
  display: block;
  color: var(--slate);
  letter-spacing: 0.16em;
  font-size: 0.68rem;
  font-weight: 600;
}
.mark { width: 38px; height: 38px; flex: none; }
.nav { display: flex; gap: 2px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.88rem;
  padding: 5px 7px;
  border-radius: 999px;
}
.nav a[aria-current="page"] { background: var(--navy); color: white; }
.menu-btn {
  display: none;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 12px;
  padding: 8px 12px;
  font-weight: 700;
}

.hero {
  background:
    radial-gradient(420px 200px at 100% 0%, rgba(240, 180, 41, 0.5), transparent 68%),
    linear-gradient(120deg, #140e28 0%, #7a1848 46%, #e15a28 80%, #f0b429 100%);
  color: #fffdf8;
  padding: 46px 0 40px;
}
.hero h1, .hero .lede { color: #fffdf8; }
.hero .kicker { color: #ffd7a0; }
.hero-split {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  align-items: center;
}
.hero-links { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; }
.hero-btn {
  display: inline-block;
  background: #fffdf8;
  color: #1b1230;
  text-decoration: none;
  font-weight: 800;
  border-radius: 999px;
  padding: 8px 14px;
}
.hero-btn.ghost {
  background: transparent;
  color: #fffdf8;
  border: 1px solid rgba(255, 253, 248, 0.5);
}
.hero-story {
  position: relative;
  display: block;
  border-radius: 22px;
  overflow: hidden;
  text-decoration: none;
  color: white;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.28);
}
.hero-story img { width: 100%; height: 460px; object-fit: cover; object-position: center; }
.hero-story span {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 54px 16px 16px;
  background: linear-gradient(180deg, transparent, rgba(12, 8, 20, 0.9));
}
.hero-story strong { font-size: 1.7rem; line-height: 1.3; }
.hero-story em { font-style: normal; color: #ffd7a0; }
.story-band {
  background: linear-gradient(180deg, #241433 0%, #3d1844 72%, #f3efe6 100%);
  color: #fff8ef;
  padding: 26px 0 6px;
}
.story-band .section-head h2,
.story-band .section-head a { color: #fff8ef; }
.story-band .cover-card p { color: #f3d7c4; }
.tint { padding-top: 6px; }
.tint-beauty { background: linear-gradient(90deg, rgba(154, 61, 98, 0.14), transparent 72%); }
.tint-health { background: linear-gradient(90deg, rgba(29, 107, 74, 0.14), transparent 72%); }
.tint-zodiac { background: linear-gradient(90deg, rgba(47, 63, 134, 0.16), transparent 72%); }
.tint-general { background: linear-gradient(90deg, rgba(29, 107, 86, 0.12), transparent 72%); }
.tint-tools { background: linear-gradient(90deg, rgba(83, 64, 200, 0.13), transparent 72%); }
.tint-ai { background: linear-gradient(90deg, rgba(15, 107, 130, 0.13), transparent 72%); }
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
  font-weight: 700;
  letter-spacing: 0.04em;
  font-size: 0.86rem;
}
.kicker.general { color: var(--general); }
.kicker.tools { color: var(--tools); }
.kicker.ai { color: var(--ai); }
.kicker.art { color: var(--art); }
.kicker.stories { color: var(--stories); }
.kicker.beauty { color: var(--beauty); }
.kicker.health { color: var(--health); }
.kicker.zodiac { color: var(--zodiac); }
.note {
  background: #fff7ea;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
  margin: 0 0 16px;
}
h1 {
  font-size: clamp(2rem, 5vw, 3.6rem);
  line-height: 1.25;
  margin: 0 0 12px;
  letter-spacing: -0.03em;
}
.lede { font-size: 1.15rem; color: var(--slate); max-width: 44rem; margin-top: 0; }

.home-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 18px;
  padding-bottom: 10px;
}
.feature {
  display: block;
  background: var(--white);
  border-radius: 24px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}
.feature img { width: 100%; height: 360px; object-fit: cover; }
.feature div { padding: 18px 20px 22px; }
.feature h2 { margin: 0 0 8px; font-size: 1.7rem; line-height: 1.4; }
.feature p { margin: 0; color: var(--slate); }
.sidestack { display: grid; gap: 12px; }
.sideitem {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 12px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
}
.sideitem img { width: 112px; height: 112px; object-fit: cover; object-position: center; }
.sideitem div { padding: 10px 12px 12px 0; }
.sideitem h3 { margin: 0; font-size: 1rem; line-height: 1.45; }
.sideitem p { margin: 4px 0 0; color: var(--slate); font-size: 0.86rem; }

.desks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  padding: 22px 0;
}
.desk {
  display: block;
  text-decoration: none;
  color: white;
  border-radius: 18px;
  padding: 16px;
  min-height: 148px;
}
.desk span { display: block; font-size: 0.78rem; opacity: 0.85; font-weight: 700; }
.desk strong { display: block; font-size: 1.25rem; margin: 8px 0; }
.desk em { font-style: normal; font-size: 0.88rem; opacity: 0.92; }
.desk.general { background: var(--general); }
.desk.tools { background: var(--tools); }
.desk.ai { background: var(--ai); }
.desk.art { background: var(--art); }
.desk.stories { background: var(--stories); }
.desk.beauty { background: var(--beauty); }
.desk.health { background: var(--health); }
.desk.zodiac { background: var(--zodiac); }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 12px;
  margin: 8px 0 12px;
}
.section-head h2 { margin: 0; font-size: 1.5rem; }
.section-head a { font-weight: 700; text-decoration: none; }

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  padding-bottom: 28px;
}
.card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  min-height: 100%;
}
.card:hover { border-color: #c8bba6; transform: translateY(-2px); }
.card img { width: 100%; height: 210px; object-fit: contain; background: #efe8dc; }
.card.photo img { height: 200px; object-fit: cover; object-position: center; background: #1b1230; }
.card .pad { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card h3, .card h2 { margin: 0; font-size: 1.12rem; line-height: 1.45; }
.card p { margin: 0; color: var(--slate); }
.meta { color: var(--slate); font-size: 0.88rem; margin: 0 0 16px; }

.story-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  padding-bottom: 36px;
}
.cover-card { text-decoration: none; color: inherit; }
.cover {
  aspect-ratio: 2 / 3;
  border-radius: 16px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: white;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.cover.has-photo { padding: 0; display: block; background: #1b1230; }
.cover.has-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}
.cover-card:hover .cover.has-photo img { transform: scale(1.06); }
.cover-shade {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 4px;
  padding: 16px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.02) 28%, rgba(10, 6, 16, 0.88) 100%);
}
.cover b { font-size: 1.35rem; line-height: 1.35; }
.cover span { font-size: 0.82rem; opacity: 0.95; }
.cover-card p { margin: 8px 4px 0; color: var(--slate); font-size: 0.92rem; }

.page-hero { padding: 28px 0 8px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 16px; }
.filters button, .chip {
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 999px;
  padding: 6px 12px;
  font-weight: 700;
  cursor: pointer;
}
.filters button[aria-pressed="true"] { background: var(--stories); color: white; border-color: var(--stories); }

article.post { padding: 28px 0 56px; }
article.post h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
.prose h2 { font-size: 1.35rem; margin: 1.4em 0 0.4em; }
.prose p, .prose li { max-width: 42rem; }
.prose ul, .prose ol { padding-inline-start: 1.2rem; }
.figure {
  margin: 18px 0 22px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
}
.figure img { width: 100%; max-height: 640px; object-fit: contain; background: #efe8dc; }
.figure.photo { background: #1b1230; border: 0; }
.figure.photo img { width: 100%; height: 420px; max-height: none; object-fit: cover; object-position: center; background: #1b1230; }
.figure.photo figcaption {
  background: #fffdf8;
  color: var(--slate);
  padding: 12px 22px 14px;
}
.figure figcaption { padding: 10px 14px 12px; color: var(--slate); font-size: 0.88rem; }
.note, .sources {
  background: var(--white);
  border-inline-start: 4px solid var(--accent);
  border-radius: 12px;
  padding: 12px 16px;
  max-width: 42rem;
}
.sources { border-inline-start-color: var(--art); }
.sources h2 { margin: 0 0 8px; font-size: 1rem; }
.cta {
  display: inline-block;
  margin-top: 8px;
  background: var(--tools);
  color: white;
  text-decoration: none;
  font-weight: 800;
  border-radius: 999px;
  padding: 12px 18px;
}
.related { display: grid; gap: 10px; margin-top: 22px; }
.related a {
  display: block;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
  text-decoration: none;
  color: inherit;
  font-weight: 700;
}

.story-top {
  display: grid;
  grid-template-columns: minmax(220px, 300px) 1fr;
  gap: 22px;
  align-items: start;
  padding: 28px 0;
}
.story-still {
  margin: 0 0 16px;
  border-radius: 18px;
  overflow: hidden;
  border: 0;
  background: #1b1230;
}
.story-still img { width: 100%; height: 460px; object-fit: cover; object-position: center 28%; }
.story-still figcaption { color: #f3d7c4; background: #241433; padding: 10px 14px 12px; }
.pull {
  font-family: var(--serif);
  font-size: 1.45rem;
  line-height: 1.5;
  margin: 18px 0 0;
  color: #7a1848;
}
.cliff {
  margin-top: 20px;
  background: #2a1438;
  color: #fff8ef;
  border-radius: 16px;
  padding: 14px 16px;
}
.cliff a { color: #ffd7a0; text-decoration: none; }
.cliff strong { display: block; font-size: 1.25rem; margin-bottom: 4px; }
.cliff p { color: #f6e7da; margin: 0; font-size: 1rem; line-height: 1.7; }
.chapter-list { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 8px; }
.chapter-list a {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
}
.reader-bar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 8px;
}
.reader-bar a { color: var(--ink); font-weight: 700; text-decoration: none; }
.controls { display: flex; gap: 8px; }
.controls button {
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 10px;
  padding: 6px 10px;
  font-weight: 700;
  cursor: pointer;
}
.track { height: 4px; background: var(--line); border-radius: 99px; margin: 8px 0 18px; }
.track span { display: block; height: 100%; background: var(--stories); border-radius: inherit; }
.reader {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 28px 22px 36px;
}
body.night { background: #16130f; color: #f4efe6; }
body.night .reader, body.night .site-header, body.night .card, body.night .controls button {
  background: #221c16;
  color: #f4efe6;
  border-color: #3a3127;
}
body.night .site-header { background: rgba(22, 19, 15, 0.94); }
body.night .logo, body.night .logo strong, body.night .nav a, body.night .reader-bar a { color: #f4efe6; }
body.night .logo small, body.night .meta { color: #cbbba6; }
body.night .nav a[aria-current="page"] { background: #f4efe6; color: #16130f; }
body.night .reader p { color: #f4efe6; }
body.night .pull { color: #ffd7a0; }
body.night .story-still figcaption { color: #f3d7c4; }
.reader p { font-size: var(--read-size, 1.18rem); line-height: 2.05; max-width: 40rem; }
.reader .pull {
  font-family: var(--serif);
  font-size: 1.5rem;
  line-height: 1.5;
  color: #7a1848;
  max-width: 24rem;
}
.reader .cliff p { font-size: 1.02rem; line-height: 1.7; max-width: none; color: #f6e7da; }
body.night .reader .pull { color: #ffd7a0; }
body.night .reader .cliff p { color: #f6e7da; }
.pager { display: flex; justify-content: space-between; gap: 12px; margin-top: 22px; }
.pager a {
  text-decoration: none;
  background: var(--stories);
  color: white;
  font-weight: 800;
  border-radius: 999px;
  padding: 10px 16px;
}

.legal h2 { font-size: 1.25rem; }
.form {
  display: grid;
  gap: 10px;
  max-width: 36rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
}
.form input, .form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  background: var(--paper);
  color: var(--ink);
}
.form button {
  justify-self: start;
  background: var(--navy);
  color: white;
  border: 0;
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 800;
  cursor: pointer;
}

.site-footer { background: var(--navy); color: #f6f1e7; padding: 28px 0 22px; margin-top: 12px; }
.foot {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 18px;
}
.site-footer a { color: #f0c9a0; text-decoration: none; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 4px 0; }
.fine { color: #cbbba6; font-size: 0.85rem; margin-top: 16px; }
.hidden { display: none !important; }

@media (max-width: 980px) {
  .hero-split { grid-template-columns: 1fr; }
  .hero-story img { height: 360px; }
  .home-grid, .desks, .grid, .story-row, .foot, .story-top { grid-template-columns: 1fr 1fr; }
  .desks { grid-template-columns: 1fr 1fr; }
  .story-row { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1100px) {
  .menu-btn { display: inline-flex; }
  .nav { display: none; }
  .nav.open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    inset-inline: 0;
    top: 100%;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 10px 16px 14px;
    max-height: 70vh;
    overflow: auto;
  }
}
@media (max-width: 760px) {
  .home-grid, .desks, .grid, .story-row, .foot, .story-top, .sideitem {
    grid-template-columns: 1fr;
  }
  .feature img, .hero-story img, .story-still img, .figure.photo img { height: 240px; }
  .topline .wrap { font-size: 0.75rem; }
}
