/* The Shifa Institute — brand tokens and shared components (v1, Nov 2026) */

:root {
  /* Core palette */
  --midnight: #131C36;
  --navy: #1B2A4E;
  --navy-2: #24386A;
  --harbor: #3E5A94;
  --periwinkle: #A9B6DE;
  --mist: #CBD4EC;
  --ice: #E9EFF8;
  --paper: #F6F8FC;
  --cream: #F2ECDD;
  --gold: #D8BC6A;
  --gold-deep: #B2913A;
  --ink: #172038;
  --ink-soft: #4B587A;
  --line: rgba(27, 42, 78, .14);
  --line-light: rgba(203, 212, 236, .22);

  /* Type */
  --display: 'Playfair Display', Georgia, serif;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Libre Franklin', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --script: 'Allura', cursive;
  --arabic: 'Amiri', 'Traditional Arabic', serif;

  --r-sm: 8px;
  --r: 14px;
  --r-lg: 24px;
  --shadow: 0 1px 2px rgba(19, 28, 54, .06), 0 12px 32px -12px rgba(19, 28, 54, .22);
  --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--sans); font-size: 17px; line-height: 1.6; font-weight: 400;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 500; line-height: 1.1; margin: 0; letter-spacing: -.01em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.eyebrow { font-family: var(--sans); font-size: 12.5px; letter-spacing: .28em; text-transform: uppercase; font-weight: 500; color: var(--harbor); }
.script { font-family: var(--script); font-weight: 400; letter-spacing: 0; }
.arabic { font-family: var(--arabic); direction: rtl; line-height: 1.9; }
.lede { font-family: var(--serif); font-size: clamp(20px, 2.2vw, 25px); line-height: 1.4; color: var(--ink-soft); }

/* Night surfaces: navy with the lattice pattern from the event flyers */
.night {
  color: var(--ice);
  background-color: var(--navy);
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='96' viewBox='0 0 96 96'%3E%3Cg fill='none' stroke='%23A9B6DE' stroke-opacity='.11' stroke-width='1'%3E%3Cpath d='M48 0v32M48 64v32M0 48h32M64 48h32'/%3E%3Crect x='36' y='36' width='24' height='24'/%3E%3Crect x='36' y='36' width='24' height='24' transform='rotate(45 48 48)'/%3E%3Crect x='-12' y='-12' width='24' height='24' transform='rotate(45 0 0)'/%3E%3Crect x='84' y='-12' width='24' height='24' transform='rotate(45 96 0)'/%3E%3Crect x='-12' y='84' width='24' height='24' transform='rotate(45 0 96)'/%3E%3Crect x='84' y='84' width='24' height='24' transform='rotate(45 96 96)'/%3E%3C/g%3E%3C/svg%3E");
}
.night .eyebrow { color: var(--periwinkle); }
.night .lede { color: var(--mist); }
.night.deep { background-color: var(--midnight); }

/* Four-point star, the recurring ornament */
.star { display: inline-block; width: 1em; height: 1em; background: currentColor;
  clip-path: polygon(50% 0, 58% 42%, 100% 50%, 58% 58%, 50% 100%, 42% 58%, 0 50%, 42% 42%); }

/* Arch window from the flyers */
.arch { border-radius: 50% 50% 12px 12px / 36% 36% 12px 12px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 13px 24px; border-radius: 999px;
  font-family: var(--sans); font-weight: 500; font-size: 15.5px; letter-spacing: .02em; text-decoration: none;
  border: 1px solid transparent; transition: transform .15s, background .2s, border-color .2s, color .2s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn-gold { background: var(--gold); color: var(--midnight); }
.btn-gold:hover { background: #E4CB80; }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-2); }
.btn-ghost { border-color: var(--line); color: var(--navy); background: transparent; }
.btn-ghost:hover { border-color: var(--navy); }
.night .btn-ghost { border-color: rgba(203, 212, 236, .4); color: var(--ice); }
.night .btn-ghost:hover { border-color: var(--ice); }

/* Chips and cards */
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; font-size: 13px;
  font-weight: 500; letter-spacing: .03em; background: var(--ice); color: var(--navy-2); border: 1px solid transparent; }
.night .chip { background: rgba(169, 182, 222, .14); color: var(--mist); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); }

/* Ticket block from the event flyers */
.ticket { position: relative; background: var(--mist); color: var(--navy); border-radius: 6px; padding: 18px 26px;
  outline: 1.5px dashed rgba(27, 42, 78, .45); outline-offset: -9px; }

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