/* ====== Tokens / Palette ====== */
:root{
  --bg-beige: #f6f0e4;         /* lighter beige per your request */
  --ink: #183b4a;              /* deep blue for text */
  --heading: #7b3f35;          /* muted terracotta for H1 */
  --link: #1e5e6a;             /* blue-green for links */
  --accent: #b36855;           /* terracotta accent */
  --turquoise: #3b8f99;

  --container-max: 1120px;
  --content-gap: 36px;
  --radius: 10px;
}

/* ====== Global ====== */
*{ box-sizing: border-box; }
html, body{ height: 100%; }
body{
  margin: 0;
  padding:0;
  font-family: ui-serif, Georgia, "Times New Roman", Times, serif;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg-beige);
}

.has-bg{
  /* page surround with mosque-style tile */
  background-image: url("assets/bg-tile.png");
  background-repeat: repeat;
  background-attachment: fixed;
  background-size: 480px auto; /* adjust to taste */
}

.page-wrap{
  /* inner canvas with no border, limited width only */
  min-height: 100%;
}

.container{
  width: min(100%, var(--container-max));
  margin-inline: auto;
  padding-inline: 24px;
}

/* ====== Header ====== */
.site-header{
  background: rgba(255,255,255,0.0); /* bands handle the ornament */
  padding-top: 12px;
}

.header-bar{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 14px;
  background: var(--bg-beige);
  border-radius: var(--radius);
}

.brand{
  font-size: clamp(20px, 3.2vw, 28px);
  letter-spacing: .04em;
  font-variant-caps: small-caps;
}

.top-nav a{
  color: var(--ink);
  text-decoration: none;
  padding: 6px 8px;
}
.top-nav a:hover{ color: var(--link); }
.top-nav .sep{ opacity: .6; margin: 0 4px; }

/* Horizontal band pattern blocks */
.band{
  height: 65px;
  background-color: #def;
  background-image: url("assets/hband.png");
  background-repeat: repeat-x;
  background-position: center;
  background-size: auto 100%;
}
.band--top{ margin-bottom: 8px; }
.band--bottom{ margin-top: 8px; }
.band--footer{ height: 52px; }

/* ====== Breadcrumbs ====== */
.breadcrumbs{
  margin: 18px auto 12px;
  color: var(--ink);
  font-variant-caps: small-caps;
  letter-spacing: .03em;
}
.breadcrumbs a{
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.breadcrumbs a:hover{
  border-bottom-color: currentColor;
}
.breadcrumbs .crumb{
  margin-inline: 8px;
  opacity: .6;
}

/* ====== Main 75/25 Layout ====== */
.grid-75-25{
  display: grid;
  grid-template-columns: 3fr 1fr;
  gap: var(--content-gap);
  align-items: start;
  background: var(--bg-beige);
  padding: clamp(18px, 3.5vw, 28px);
  border-radius: var(--radius);
  position: relative;
}

/* Vertical Islamic separator (decorative) */
.sidebar{ position: relative; }
.sidebar::before{
  content: "";
  position: absolute;
  left: calc(-1 * var(--content-gap) / 2 - 8px);
  top: 0;
  bottom: 0;
  width: 20px;                 /* change width to match your asset */
  /* background-image: url("assets/v-separator.png"); */
  background-repeat: repeat-y;
  background-size: contain;
  opacity: .95;
  pointer-events: none;
}

/* Article typography */
h1{
  font-size: clamp(30px, 4.6vw, 44px);
  line-height: 1.15;
  color: var(--heading);
  margin: 6px 0 14px;
}
.lede{ font-size: 1.05rem; }
p{ margin: 0 0 1.1rem; }

/* Sidebar */
.search{
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
  margin-bottom: 18px;
}
.search input{
  width: 100%;
  border: 1px solid color-mix(in srgb, var(--ink) 20%, transparent);
  border-radius: 10px;
  padding: 10px 12px;
  background: #fff;
  color: var(--ink);
}
.search button{
  border: 1px solid color-mix(in srgb, var(--ink) 20%, transparent);
  border-radius: 10px;
  padding: 10px 12px;
  background: #fff;
  cursor: pointer;
}
.sidebar-title{
  font-size: 1.15rem;
  color: var(--heading);
  margin: 8px 0 8px;
}
.link-list{
  list-style: none;
  padding: 0; margin: 0 0 18px 0;
}
.link-list li + li{ margin-top: 6px; }
.link-list a{
  color: var(--link);
  text-decoration: none;
}
.link-list a:hover{ text-decoration: underline; }

/* ornamental divider */
.orn-divider{
  height: 44px;
  background: url("assets/divider.png") no-repeat center / contain;
  opacity: .55;
}

/* ====== Footer ====== */
.site-footer{
  margin-top: 20px;
}
.site-footer .container{
  text-align: center;
  padding-block: 18px 32px;
  background: var(--bg-beige);
  border-radius: var(--radius);
}

/* ====== A11y helpers ====== */
.sr-only{
  position:absolute !important;
  height:1px;width:1px;
  overflow:hidden;clip:rect(1px,1px,1px,1px);
  white-space:nowrap;border:0;padding:0;margin:-1px;
}

/* ====== Responsive ====== */
@media (max-width: 960px){
  .grid-75-25{
    grid-template-columns: 1fr;
  }
  .sidebar::before{ display: none; } /* no separator on mobile */
  .top-nav .sep{ display: none; }
  .top-nav a{ padding-inline: 4px; }
}