/* Site chrome only: header, footer, page frame. Each page's own content
   carries its own scoped styles (they were written as Squarespace code blocks). */

:root {
  --gold: #EDC159;
  --plum: #3E1B6C;
  --plum-footer: rgba(61, 27, 106, 0.96);
  --ink: #1B0F2B;
  --header-h: 116px;
  --gutter: 3vw;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--gold);
  color: var(--ink);
  font-family: Almarai, sans-serif;
}

.sr-only, .skip-link:not(:focus) {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link:focus { position: fixed; top: 8px; left: 8px; z-index: 100; background: #fff; padding: 8px 12px; }

/* Header */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--header-h);
  background: var(--gold);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--gutter);
}
.site-logo img { display: block; width: 60px; height: 60px; }

.site-nav > ul { display: flex; align-items: center; gap: 1.6vw; list-style: none; margin: 0; padding: 0; }
.site-nav a, .site-nav button {
  font: 400 16px/1.4 Almarai, sans-serif;
  color: var(--plum);
  text-decoration: none;
  background: none; border: 0; padding: 4px 0; cursor: pointer;
}
.site-nav a:hover, .site-nav button:hover { opacity: .7; }
.folder { position: relative; }
.folder > ul {
  display: none;
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  list-style: none; margin: 0; padding: 12px 18px;
  background: var(--gold);
  min-width: max-content;
}
.folder > ul a { display: block; padding: 4px 0; text-align: center; }
.folder:hover > ul, .folder:focus-within > ul, .folder.open > ul { display: block; }

.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle .bars, .nav-toggle .bars::before, .nav-toggle .bars::after {
  display: block; width: 26px; height: 2px; background: var(--plum); position: relative; content: "";
}
.nav-toggle .bars::before { position: absolute; top: -8px; }
.nav-toggle .bars::after { position: absolute; top: 8px; }

/* Page frame */
main {
  padding: calc(var(--header-h) + 84px) var(--gutter) 84px;
}
main > hr { border: 0; border-top: 1px solid rgba(62, 27, 108, .25); margin: 40px auto; max-width: 780px; }
.text-block { max-width: 780px; margin: 0 auto; }

/* Footer */
.site-footer {
  background: var(--plum-footer);
  color: var(--gold);
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 24px; align-items: start;
  padding: 32px var(--gutter);
  font-size: 16px; line-height: 1.6;
}
.site-footer p { margin: 0 0 12px; }
.site-footer a { color: var(--gold); text-decoration: none; border-bottom: 1px solid currentColor; }
.footer-center { text-align: center; align-self: center; }
.footer-heading { font-weight: 700; }

@media (max-width: 960px) {
  :root { --header-h: 80px; }
  .nav-toggle { display: block; }
  .site-nav {
    display: none;
    position: fixed; inset: var(--header-h) 0 0 0;
    background: var(--gold); overflow-y: auto; padding: 24px;
  }
  .site-nav.open { display: block; }
  .site-nav > ul { flex-direction: column; align-items: center; gap: 8px; }
  .site-nav a, .site-nav button { font-size: 22px; }
  .folder > ul { position: static; transform: none; padding: 4px 0 12px; }
  .folder:hover > ul, .folder:focus-within > ul { display: none; }
  .folder.open > ul { display: block; }
  .folder > ul a { font-size: 18px; }
  main { padding: calc(var(--header-h) + 24px) 16px 48px; }
  .site-footer { grid-template-columns: 1fr; text-align: center; }
}

/* ---- Rebuilt Squarespace widgets: course cards, forms, shop ---- */

.product-card, .donation-form, .signup-form, .commerce-card, .shop-intro, .journal-grid, .product-page {
  font-family: Georgia, "Times New Roman", serif;
  color: #2B2B2B;
}
.product-card {
  max-width: 780px; margin: 24px auto; padding: 40px 44px;
  background: #F8F4EE; border-radius: 4px; text-align: center; line-height: 1.75;
}
.product-card h3 { font-weight: normal; font-size: 28px; line-height: 1.3; margin: 0 0 8px; color: #2B2B2B; }
.product-card .price, .product-details .price { font-family: Almarai, sans-serif; font-size: 20px; color: var(--plum); margin: 0 0 18px; }
.product-card p { margin: 0 0 12px; }

.product-card button, .donation-form button, .signup-form button, #buy button, .commerce-card .button {
  display: inline-block; margin-top: 16px;
  font: 700 16px/1.2 Almarai, sans-serif; letter-spacing: .02em;
  color: #fff; background: var(--plum); border: 0; border-radius: 300px;
  padding: 16px 32px; cursor: pointer; text-decoration: none;
}
.product-card button:hover, .donation-form button:hover, .signup-form button:hover, #buy button:hover, .commerce-card .button:hover { background: #2C124F; }

.donation-form, .signup-form {
  max-width: 520px; margin: 32px auto; padding: 36px 40px;
  background: #F8F4EE; border-radius: 20px; text-align: center;
  display: flex; flex-direction: column; gap: 10px;
}
.donation-form label, .signup-form label { font-family: Almarai, sans-serif; font-size: 15px; text-align: left; }
.donation-form input[type=number], .donation-form select, .signup-form input {
  font: 18px/1.4 Georgia, serif; padding: 12px 14px; width: 100%;
  border: 1px solid #D4C8B8; border-radius: 4px; background: #fff; color: #2B2B2B;
}
.donation-form .amount { display: flex; align-items: center; gap: 8px; font-size: 20px; }
.donation-form .fee-note { font-size: 15px; color: #5A5550; margin: 10px 0 0; }
.donation-form .check { text-align: center; display: flex; gap: 8px; justify-content: center; align-items: center; }
.signup-form .req { color: #5A5550; font-size: 13px; }
.signup-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-error {
  max-width: 520px; margin: 24px auto -8px; padding: 14px 18px;
  background: #FFF4E5; border: 1px solid #E6A24C; border-radius: 6px;
  font: 16px/1.5 Almarai, sans-serif; color: #5A3A00; text-align: center;
}

.commerce-card {
  max-width: 680px; margin: 0 auto; padding: 64px 40px;
  background: #F8F4EE; text-align: center; line-height: 1.8;
}
.commerce-card h1 { font-weight: normal; font-size: clamp(30px, 4.5vw, 42px); margin: 0 0 20px; }
.commerce-card .small, .product-details .small { font-size: 15px; color: #5A5550; }
.commerce-card a:not(.button) { color: var(--plum); }

/* Shop */
.shop-intro { max-width: 1100px; margin: 0 auto 32px; }
.shop-intro h1 { font: 400 clamp(36px, 5vw, 64px)/1.15 Arial, Helvetica, sans-serif; color: var(--ink); margin: 0 0 12px; }
.shop-intro p { font: 20px/1.6 Almarai, sans-serif; max-width: 560px; margin: 0; }
.journal-grid { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 28px; }
.journal-card { display: block; background: #F8F4EE; padding: 18px; text-decoration: none; color: var(--ink); border-radius: 4px; }
.journal-card img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; margin-bottom: 14px; }
.journal-name { display: block; font: 20px/1.35 Georgia, serif; color: var(--plum); }
.journal-price { display: block; font: 16px Almarai, sans-serif; margin-top: 6px; }
.journal-card:hover .journal-name { text-decoration: underline; }

.product-page { max-width: 1160px; margin: 0 auto; background: #F8F4EE; padding: 32px 40px 56px; }
.crumbs { font: 14px Almarai, sans-serif; margin: 0 0 24px; }
.crumbs a { color: var(--plum); }
.product-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.gallery-main { width: 100%; display: block; background: #fff; }
.gallery-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 8px; margin-top: 10px; }
.gallery-thumbs button { padding: 0; border: 2px solid transparent; background: none; cursor: pointer; }
.gallery-thumbs button[aria-current="true"] { border-color: var(--plum); }
.gallery-thumbs img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.product-details h1 { font: 400 clamp(28px, 3.4vw, 40px)/1.2 Georgia, serif; margin: 0 0 10px; }
.product-details #buy button { margin-top: 0; }
.product-description { margin-top: 28px; font: 17px/1.75 Almarai, sans-serif; }
.product-description h3, .product-description h2 { font: 400 24px/1.35 Georgia, serif; margin: 0 0 14px; }

@media (max-width: 760px) {
  .product-layout { grid-template-columns: 1fr; gap: 28px; }
  .product-page { padding: 24px 18px 40px; }
  .product-card { padding: 32px 22px; }
  .donation-form, .signup-form { padding: 28px 22px; }
}
