:root {
  --ink: #241418;
  --ink-soft: #6a5348;
  --paper: #f6f0e6;
  --paper-2: #fffaf3;
  --card: #fffdf8;
  --burgundy: #3f0d1f;
  --burgundy-2: #5a1730;
  --burgundy-deep: #2a0814;
  --gold: #c4a15a;
  --gold-2: #e8d7a8;
  --gold-deep: #8c6a2f;
  --line: rgba(63, 13, 31, 0.12);
  --shadow: 0 16px 40px rgba(36, 20, 24, 0.1);
  --font: "Readex Pro", "Noto Naskh Arabic", "Segoe UI", Tahoma, sans-serif;
  --radius: 18px;
  --header-h: 118px;
  --pattern: url("../pattern.svg");
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0;
  min-height: 100vh;
  overflow-x: clip;
  font-family: var(--font);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.7;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: var(--pattern);
  background-size: 72px 72px;
  opacity: 0.18;
  z-index: 0;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, textarea { font-family: inherit; }
button { cursor: pointer; }
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  inset-inline-start: 12px;
  top: -40px;
  background: var(--gold);
  color: var(--burgundy-deep);
  padding: 8px 12px;
  z-index: 100;
}
.skip:focus { top: 8px; }

.shell { position: relative; z-index: 1; min-height: 100vh; display: flex; flex-direction: column; }
.shell main { flex: 1; }

.topbar {
  background: var(--burgundy-deep);
  color: var(--gold-2);
  font-size: 0.92rem;
}
.topbar-inner, .bar-inner, .wrap {
  width: min(1180px, calc(100% - 32px));
  margin-inline: auto;
}
.topbar-inner {
  display: flex;
  gap: 8px 18px;
  align-items: center;
  justify-content: flex-start;
  min-height: 42px;
  overflow-x: auto;
  scrollbar-width: none;
}
.topbar a {
  color: var(--gold-2);
  white-space: nowrap;
  padding: 8px 0;
  border-bottom: 1px solid transparent;
}
.topbar a:hover { color: white; border-bottom-color: var(--gold); }

.bar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(63, 13, 31, 0.96);
  color: var(--paper);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(196, 161, 90, 0.35);
}
.bar.is-scrolled { box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25); }
.bar-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 76px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}
.brand img {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 2px rgba(196, 161, 90, 0.7);
}
.brand-name { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name strong { font-size: 1.15rem; font-weight: 700; color: var(--gold-2); }
.brand-name span { font-size: 0.78rem; color: rgba(255, 250, 243, 0.75); }

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-inline-start: auto;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.nav a, .drop > button.nav-link, a.nav-link {
  color: var(--paper);
  background: transparent;
  border: 0;
  font-size: 0.95rem;
  padding: 8px 10px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.nav a:hover, .drop > button.nav-link:hover, .nav a.is-active, .drop > button.is-active {
  background: rgba(196, 161, 90, 0.16);
  color: var(--gold-2);
}
a.contact-link {
  border: 1px solid var(--gold);
  color: var(--gold-2) !important;
  margin-inline-start: 4px;
}
a.contact-link:hover { background: var(--gold) !important; color: var(--burgundy-deep) !important; }

.drop { position: relative; }
.drop-menu {
  position: absolute;
  inset-inline-end: 0;
  top: calc(100% - 2px);
  min-width: 210px;
  background: var(--card);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 8px;
  display: none;
  z-index: 50;
}
.drop:hover .drop-menu, .drop:focus-within .drop-menu, .drop.open .drop-menu { display: grid; }
.drop-menu a {
  color: var(--ink) !important;
  border-radius: 10px;
  padding: 8px 10px;
}
.drop-menu a:hover { background: rgba(196, 161, 90, 0.16); color: var(--burgundy) !important; }

.icon-btn {
  display: none;
  margin-inline-start: auto;
  background: transparent;
  color: var(--gold-2);
  border: 1px solid rgba(196, 161, 90, 0.5);
  border-radius: 12px;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
}
.search-wrap { position: relative; }
.search-wrap input {
  width: 180px;
  background: rgba(255, 250, 243, 0.08);
  border: 1px solid rgba(196, 161, 90, 0.35);
  color: white;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 0.88rem;
}
.search-wrap input::placeholder { color: rgba(255, 250, 243, 0.6); }
.search-pop {
  position: absolute;
  inset-inline-end: 0;
  top: calc(100% + 8px);
  width: min(320px, 80vw);
  background: var(--card);
  color: var(--ink);
  border-radius: 14px;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  padding: 6px;
  z-index: 60;
}
.search-pop a, .search-pop p {
  display: block;
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 0.92rem;
}
.search-pop a:hover { background: rgba(196, 161, 90, 0.16); }
.search-pop .muted { color: var(--ink-soft); margin: 0; }

.hero {
  position: relative;
  background:
    radial-gradient(1200px 400px at 80% -10%, rgba(196, 161, 90, 0.22), transparent 60%),
    linear-gradient(180deg, var(--burgundy) 0%, var(--burgundy-deep) 100%);
  color: var(--paper);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--pattern);
  background-size: 84px 84px;
  opacity: 0.22;
}
.hero-grid {
  position: relative;
  width: min(1180px, calc(100% - 32px));
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 36px;
  align-items: center;
  padding: 48px 0 28px;
}
.eyebrow {
  margin: 0 0 6px;
  letter-spacing: 0.08em;
  color: var(--gold);
  font-weight: 600;
}
.hero h1 {
  margin: 0;
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  line-height: 1.05;
  font-weight: 700;
}
.kicker { margin: 6px 0 18px; color: var(--gold-2); font-size: 1.25rem; }
.hero-poem {
  font-size: 1.25rem;
  line-height: 2;
  color: rgba(255, 250, 243, 0.94);
}
.hero-poem p { margin: 0; }
.rule {
  width: 120px;
  height: 1px;
  margin: 16px 0;
  background: linear-gradient(90deg, var(--gold), transparent);
}
.hero-art { display: grid; justify-items: center; gap: 16px; }
.seal {
  width: min(240px, 70%);
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(196, 161, 90, 0.45), 0 20px 50px rgba(0, 0, 0, 0.35);
}
.oman-frame {
  background: rgba(255, 250, 243, 0.06);
  border: 1px solid rgba(196, 161, 90, 0.4);
  border-radius: 20px;
  padding: 10px;
}
.oman-frame img { width: 150px; height: auto; margin-inline: auto; }
.quote-band {
  position: relative;
  text-align: center;
  padding: 8px 16px 36px;
}
.quote-band blockquote {
  margin: 0;
  font-size: clamp(1.15rem, 2.4vw, 1.55rem);
  color: var(--gold-2);
  font-weight: 600;
}
.sign { margin: 8px 0 0; color: rgba(255, 250, 243, 0.8); }

.section { padding: 48px 0; }
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}
.section-head h2 { margin: 0; font-size: 1.7rem; }
.section-head p { margin: 4px 0 0; color: var(--ink-soft); }
.more { color: var(--burgundy); font-weight: 600; border-bottom: 1px solid var(--gold); }

.grid-6, .grid-3, .grid-cards {
  display: grid;
  gap: 14px;
}
.grid-6 { grid-template-columns: repeat(3, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-cards { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 18px 16px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7) inset;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
  position: relative;
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--burgundy), var(--gold));
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: rgba(196, 161, 90, 0.55); }
.card .num {
  font-size: 0.8rem;
  color: var(--gold-deep);
  font-weight: 700;
}
.card h3 { margin: 6px 0 8px; font-size: 1.2rem; }
.card p { margin: 0; color: var(--ink-soft); }
.card .count { margin-top: 12px; color: var(--burgundy); font-weight: 600; font-size: 0.9rem; }

.piece-list { display: grid; gap: 10px; }
.piece-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
  transition: border-color 160ms ease, transform 160ms ease;
}
.piece-row:hover { border-color: var(--gold); transform: translateX(-3px); }
.piece-row strong { display: block; font-size: 1.05rem; }
.piece-row span { color: var(--ink-soft); font-size: 0.92rem; }
.index-no {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid var(--gold);
  color: var(--burgundy);
  font-size: 0.85rem;
  font-weight: 700;
}

.cover-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.cover {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  min-height: 150px;
  border: 1px solid var(--line);
}
.cover img { width: 100%; height: 180px; object-fit: cover; transition: transform 280ms ease; }
.cover:hover img { transform: scale(1.06); }
.cover figcaption {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  padding: 22px 10px 8px;
  background: linear-gradient(transparent, rgba(42, 8, 20, 0.88));
  color: white;
  font-size: 0.86rem;
}

.page-hero {
  background: linear-gradient(180deg, var(--burgundy) 0%, #4d1428 100%);
  color: var(--paper);
  padding: 36px 0 28px;
  position: relative;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--pattern);
  opacity: 0.18;
}
.page-hero .wrap { position: relative; }
.crumbs { color: var(--gold-2); font-size: 0.88rem; margin-bottom: 8px; display: flex; gap: 6px; flex-wrap: wrap; }
.crumbs a { color: var(--gold-2); border-bottom: 1px solid transparent; }
.crumbs a:hover { border-bottom-color: var(--gold); }
.page-hero h1 { margin: 0; font-size: clamp(1.8rem, 4vw, 2.8rem); line-height: 1.25; }

.sheet {
  width: min(860px, calc(100% - 32px));
  margin: -22px auto 40px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding: 28px 26px 34px;
  position: relative;
}
.ornament {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--gold-deep);
  margin: 8px 0 18px;
  font-size: 0.85rem;
}
.ornament::before, .ornament::after {
  content: "";
  height: 1px;
  flex: 1;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.verse { text-align: center; }
.verse p {
  margin: 0.2rem 0;
  font-size: 1.22rem;
  line-height: 2.05;
}
.essay p, .essay li { font-size: 1.05rem; line-height: 1.95; margin: 0.7rem 0; }
.essay h3 {
  margin: 1.6rem 0 0.4rem;
  color: var(--burgundy);
  font-size: 1.35rem;
}
.essay a { color: var(--burgundy); border-bottom: 1px solid var(--gold); }
.video {
  position: relative;
  padding-top: 56.25%;
  border-radius: 16px;
  overflow: hidden;
  margin: 16px 0 8px;
  background: #111;
}
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.pager {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 26px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.pager a {
  flex: 1;
  background: var(--paper);
  border-radius: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
}
.pager a strong { display: block; color: var(--burgundy); }
.pager a span { color: var(--ink-soft); font-size: 0.85rem; }
.pager .next { text-align: left; }

.progress {
  position: fixed;
  inset-inline: 0;
  top: 0;
  height: 3px;
  z-index: 70;
  transform-origin: right center;
  background: var(--gold);
}

.mosaic {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 8px;
}
.mosaic button {
  padding: 0;
  border: 0;
  background: #1a0b12;
  border-radius: 12px;
  overflow: hidden;
}
.mosaic img { width: 100%; height: 150px; object-fit: cover; transition: transform 200ms ease, opacity 200ms ease; }
.mosaic button:hover img { transform: scale(1.04); opacity: 0.92; }

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(18, 6, 10, 0.92);
  z-index: 80;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 12px;
}
.lightbox[hidden] { display: none; }
.lightbox-bar, .lightbox-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--gold-2);
  gap: 8px;
}
.lightbox img {
  max-height: calc(100vh - 140px);
  max-width: min(1100px, 100%);
  margin: auto;
  object-fit: contain;
  border-radius: 8px;
}
.lightbox button, .ghost {
  background: transparent;
  color: var(--gold-2);
  border: 1px solid rgba(196, 161, 90, 0.45);
  border-radius: 999px;
  min-height: 42px;
  padding: 0 14px;
}

.form {
  position: relative;
  display: grid;
  gap: 14px;
}
.form label { display: grid; gap: 6px; font-weight: 600; }
.form input, .form textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 12px;
  padding: 12px 14px;
  color: var(--ink);
  font-size: 1rem;
}
.form textarea { min-height: 160px; resize: vertical; }
.form input:focus, .form textarea:focus { border-color: var(--gold); outline: none; box-shadow: 0 0 0 3px rgba(196, 161, 90, 0.25); }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hp {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.submit {
  background: var(--burgundy);
  color: var(--gold-2);
  border: 0;
  border-radius: 999px;
  min-height: 48px;
  padding: 0 22px;
  font-weight: 700;
  font-size: 1rem;
}
.submit:hover { background: var(--burgundy-2); }
.note { color: var(--ink-soft); font-size: 0.92rem; }
.alert {
  background: #f3e7c8;
  border: 1px solid var(--gold);
  color: var(--burgundy-deep);
  border-radius: 12px;
  padding: 12px 14px;
}
.alert.bad { background: #fde8ea; border-color: #e4b4bc; }
.captcha-line { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.captcha-line input { width: 90px; }

.split {
  width: min(1100px, calc(100% - 32px));
  margin: 24px auto 48px;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(220px, 0.7fr);
  gap: 18px;
  align-items: start;
}
.split .sheet { margin: 0; width: auto; }
@media (max-width: 800px) {
  .split { grid-template-columns: 1fr; }
}

.footer {
  margin-top: auto;
  background: var(--burgundy-deep);
  color: var(--paper);
  position: relative;
}
.footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--pattern);
  opacity: 0.14;
}
.footer-inner {
  position: relative;
  width: min(1180px, calc(100% - 32px));
  margin-inline: auto;
  padding: 28px 0 22px;
  display: grid;
  gap: 16px;
}
.hero-poem h1 {
  margin: 0;
  font-size: inherit;
  line-height: inherit;
  font-weight: 700;
}
.socials {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}
.socials a {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid rgba(196, 161, 90, 0.5);
  color: var(--gold-2);
}
.socials a:hover { background: var(--gold); color: var(--burgundy-deep); }
.socials svg { width: 18px; height: 18px; fill: currentColor; }
.footer-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  color: rgba(255, 250, 243, 0.82);
  font-size: 0.95rem;
  border-top: 1px solid rgba(196, 161, 90, 0.25);
  padding-top: 12px;
}
.footer-meta a { color: var(--gold-2); border-bottom: 1px solid transparent; }
.footer-meta a:hover { border-bottom-color: var(--gold); }
.seal-mini { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; }

.drawer {
  display: none;
}

@media (max-width: 980px) {
  .nav, .search-wrap { display: none; }
  .icon-btn { display: inline-flex; }
  .hero-grid, .grid-6, .grid-3, .cover-grid, .row-2 { grid-template-columns: 1fr 1fr; }
  .cover-grid { grid-template-columns: repeat(3, 1fr); }
  .drawer {
    display: block;
    background: var(--burgundy-deep);
    border-top: 1px solid rgba(196, 161, 90, 0.25);
  }
  .drawer[hidden] { display: none; }
  .drawer a, .drawer button {
    display: block;
    width: 100%;
    text-align: start;
    background: transparent;
    color: var(--paper);
    border: 0;
    padding: 12px 18px;
    font-size: 1.05rem;
    border-bottom: 1px solid rgba(255, 250, 243, 0.06);
  }
.drawer .sub { padding-inline-start: 28px; color: var(--gold-2); font-size: 0.95rem; }
  .drawer-label {
    display: block;
    padding: 12px 18px 4px;
    color: var(--gold);
    font-weight: 700;
  }
}

@media (max-width: 820px) {
  .topbar { font-size: 0.78rem; }
  .topbar-inner {
    width: calc(100% - 12px);
    gap: 8px;
    justify-content: space-between;
    overflow: visible;
    min-height: 36px;
  }
  .topbar a {
    flex: 0 1 auto;
    min-width: 0;
    text-align: center;
    font-size: 0.75rem;
    line-height: 1.35;
    padding: 7px 0;
    white-space: nowrap;
  }
}
@media (max-width: 350px) {
  .topbar-inner { gap: 4px; }
  .topbar a { font-size: 0.66rem; }
}

@media (max-width: 700px) {
  .hero-grid, .grid-6, .grid-3, .grid-cards, .cover-grid, .row-2 { grid-template-columns: 1fr; }
  .cover-grid { grid-template-columns: 1fr 1fr; }
  .hero { text-align: center; }
  .rule { margin-inline: auto; }
  .hero-poem { font-size: 1.1rem; }
  .sheet { padding: 20px 14px 26px; }
  .verse p { font-size: 1.08rem; }
  .bar-inner { min-height: 66px; }
  .brand img { width: 48px; height: 48px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
