/* Mystic Labyrinth */

@font-face { font-family: "Jost"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/jost-400.woff2") format("woff2"); }
@font-face { font-family: "Jost"; font-style: italic; font-weight: 400; font-display: swap; src: url("/fonts/jost-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Jost"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/jost-500.woff2") format("woff2"); }
@font-face { font-family: "Jost"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/jost-600.woff2") format("woff2"); }
@font-face { font-family: "Mulish"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/mulish-400.woff2") format("woff2"); }
@font-face { font-family: "Mulish"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/mulish-500.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/montserrat-400.woff2") format("woff2"); }
@font-face { font-family: "Benedict"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/Benedict.ttf") format("truetype"); }

:root {
  --purple: #8036ad;
  --purple-dark: #6a2b91;
  /* Menu bar and footer: darker at both edges (option A, Petra Oct 23 2026) */
  --bar-gradient: linear-gradient(90deg, #5e2585 0%, #8036ad 50%, #5e2585 100%);
  --text: #6c6e7a;
  --ink: #000;
  --bar-text: #fff;
  --wrap: 1080px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: "Jost", Arial, sans-serif; font-size: 18px; line-height: 1.75; color: var(--text); background: #fff; display: flex; flex-direction: column; min-height: 100vh; }
main { flex: 1 0 auto; }
img { max-width: 100%; height: auto; display: inline-block; vertical-align: middle; }
picture { display: contents; }
a { color: var(--purple); }
a:hover { color: var(--purple-dark); }
:focus-visible { outline: 2px solid var(--purple); outline-offset: 2px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: -9999px; top: 0; background: #fff; color: var(--purple); padding: 8px 14px; z-index: 100; }
.skip-link:focus { left: 8px; top: 8px; }

/* Header (inner pages) */
.site-header { background: #fff; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 128px; position: relative; }
.brand { display: block; line-height: 0; text-decoration: none; }
.brand-wide { width: 357px; height: auto; }
.brand-small { display: none; align-items: center; gap: 10px; text-decoration: none; }
.brand-small img { width: 56px; height: auto; }
.brand-name { font-family: "Benedict", cursive; font-size: 34px; line-height: 1; color: var(--purple); }

.menu { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 46px; }
.menu a { font-family: "Jost", Arial, sans-serif; font-size: 16px; font-weight: 500; line-height: 32px; color: var(--purple); text-decoration: none; letter-spacing: .02em; }
.menu a:hover, .menu a[aria-current="page"] { color: var(--purple-dark); }

.menu-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; color: var(--purple); }
.menu-icon, .menu-icon::before, .menu-icon::after { display: block; width: 28px; height: 3px; background: currentColor; border-radius: 2px; position: relative; transition: transform .2s; }
.menu-icon::before, .menu-icon::after { content: ""; position: absolute; left: 0; }
.menu-icon::before { top: -9px; }
.menu-icon::after { top: 9px; }
.menu-toggle[aria-expanded="true"] .menu-icon { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-icon::before { transform: translateY(9px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-icon::after { transform: translateY(-9px) rotate(-45deg); }

/* Home */
.hero { position: relative; height: clamp(260px, 47vw, 640px); background: #2a1638; overflow: hidden; }
.hero-picture img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 50%); }
@media (min-width: 1600px) { .hero-picture img { object-position: var(--pos-xl, var(--pos, 50% 50%)); } }
.hero-emblem { position: absolute; top: 20px; left: 24px; width: 96px; line-height: 0; }
.hero-emblem img { width: 100%; height: auto; filter: drop-shadow(0 2px 8px rgba(0, 0, 0, .45)); }

.home-bar { background: var(--bar-gradient); }
.home-bar-inner { display: flex; align-items: center; justify-content: center; min-height: 56px; position: relative; }
.home-bar .menu a { font-family: "Mulish", Arial, sans-serif; color: var(--bar-text); }
.home-bar .menu a:hover, .home-bar .menu a[aria-current="page"] { color: #fff; }
.home-bar .menu-toggle { color: #fff; }
.home-bar .brand-name { color: #fff; }

.home-content { text-align: center; color: var(--ink); padding-top: 100px; padding-bottom: 84px; }
.home-content p { margin: 0 0 10px; }
.home-content p:not(.greeting):not(.script-close) { line-height: 2; margin-bottom: 16px; }
.script-title { font-family: "Benedict", cursive; font-weight: 400; font-size: 60px; line-height: 1.6; color: var(--purple); margin: 0; }
.greeting { font-family: "Montserrat", Arial, sans-serif; font-size: 40px; line-height: 1.6; color: var(--ink); margin: 0 0 48px !important; min-height: 1.6em; }
.script-close { font-family: "Benedict", cursive; font-size: 40px; line-height: 1.6; color: var(--purple); margin-top: 28px !important; }

/* Content pages */
.content { padding-top: 24px; padding-bottom: 86px; }
.content h1 { font-family: "Jost", Arial, sans-serif; font-weight: 400; font-size: 34px; line-height: 1.6; color: var(--text); margin: 0 0 16px; }
.content p { margin: 0 0 14px; }
.content .center { text-align: center; }
.content .photo { width: 640px; }
.strong-link { font-weight: 600; text-decoration: none; }
.strong-link:hover { text-decoration: underline; }
.purple-link { text-decoration: none; }
.lead-in { font-size: 18px; font-weight: 600; color: var(--text); margin: 40px 0 10px; line-height: 1.75; }
.tight { margin-bottom: 8px !important; }
.spaced { margin-top: 40px !important; }
/* Even spacing: one line height and one paragraph gap for the whole page (Proto-Temple, Petra Oct 23 2026) */
.even p, .even .lead-in { line-height: 2; margin: 0 0 16px; }
/* The principles are their own block, with a bigger gap above and below (as on the old site) */
.even .lead-in { margin-top: 44px; }
.even .after-block { margin-top: 44px; }
.even .top-emblem { margin: 8px 0 36px; }
/* Photo with soft edges and room around it */
.soft-photo { margin: 40px 0 !important; }
.soft-photo img { display: block; margin: 0 auto; -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 3%, #000 97%, transparent 100%), linear-gradient(180deg, transparent 0%, #000 5%, #000 95%, transparent 100%); -webkit-mask-composite: source-in; mask-image: linear-gradient(90deg, transparent 0%, #000 3%, #000 97%, transparent 100%), linear-gradient(180deg, transparent 0%, #000 5%, #000 95%, transparent 100%); mask-composite: intersect; }

.course-block { margin-top: 40px; }
.course-block .badge { margin: 0 0 8px; }
.course-block .badge img { width: 120px; }
/* Degree courses: badge in its own column on the left, as on the old site */
.has-badge { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 0 48px; align-items: start; }
.has-badge .course-body > :first-child { margin-top: 0; }
.content h3 { font-size: 18px; font-weight: 600; color: var(--purple); margin: 32px 0 6px; line-height: 1.75; }
.content h4 { font-size: 18px; font-weight: 600; color: var(--text); margin: 24px 0 2px; line-height: 1.75; }
.course-meta { font-style: normal; }
.topics { margin: 0 0 14px; padding-left: 22px; }
.topics li { break-inside: avoid; }

.member-group { display: grid; grid-template-columns: 100px 1fr; gap: 28px; margin-top: 36px; align-items: start; }
.member-icon { margin: 6px 0 0 !important; }
.member-icon img { width: 100px; }
.purple-head { font-size: 18px; font-weight: 600; color: var(--purple); margin: 36px 0 8px; line-height: 1.75; }
.member-group .purple-head { margin-top: 0; }
.content .member-group h3 { color: var(--text); margin: 14px 0 2px; }
.benefits { margin: 0 0 14px; padding-left: 22px; line-height: 2.3; }

/* Legal */
.legal { font-size: 17px; }
.legal h3 { font-size: 20px; color: var(--text); margin: 32px 0 6px; }
.legal h4 { margin: 24px 0 4px; }
.legal ul { padding-left: 22px; }

/* Contact */
.contact-form { max-width: 760px; margin-top: 8px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { margin-bottom: 18px; }
.contact-form > .field { margin-bottom: 8px; }
.field label { display: block; font-size: 14px; letter-spacing: 2px; color: #333; margin-bottom: 6px; line-height: 1.5; }
.field input, .field textarea { width: 100%; font: inherit; font-size: 16px; color: #333; padding: 12px 14px; border: 1px solid #c9c9d1; border-radius: 0; background: #fff; }
.field textarea { resize: vertical; min-height: 160px; }
.field input:focus, .field textarea:focus { border-color: var(--purple); outline: none; box-shadow: 0 0 0 2px rgba(128, 54, 173, .2); }
.field [aria-invalid="true"] { border-color: #b3261e; }
.counter { text-align: right; font-size: 13px; color: #8a8a8a; margin: 4px 0 0 !important; line-height: 1.5; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cf-turnstile { margin: 20px 0 0; }
.send { font-family: "Jost", Arial, sans-serif; font-size: 15px; letter-spacing: 1px; color: #fff; background: var(--purple); border: 0; padding: 15px 30px; cursor: pointer; }
.send:hover { background: var(--purple-dark); }
.send:disabled { opacity: .6; cursor: progress; }
/* Pop-up message after sending (same as FFF) */
.toast { position: fixed; top: 50px; left: 50%; transform: translateX(-50%); width: 60%; max-width: 500px; display: flex; background: #fff; color: #000; box-shadow: 0 0 15px #a7a7a7; z-index: 1000; transition: opacity .3s ease, visibility .3s ease; }
.toast[hidden] { display: flex; opacity: 0; visibility: hidden; pointer-events: none; }
.toast-icon { flex: 0 0 50px; display: flex; align-items: center; justify-content: center; background: green; color: #fff; }
.toast.is-error .toast-icon { background: red; }
.toast-icon svg { width: 22px; height: 22px; }
.toast .icon-err, .toast.is-error .icon-ok { display: none; }
.toast.is-error .icon-err { display: block; }
.toast-message { padding: 20px 10px 20px 20px; margin: auto 0; font-family: "Jost", Arial, sans-serif; font-size: 16px; line-height: 1.4; }

/* 404 */
/* 404: the mists picture fills the page behind the text and dissolves into white at every edge */
.not-found { position: relative; overflow: hidden; min-height: clamp(480px, 46vw, 680px); display: flex; align-items: center; }
.nf-text-col { position: relative; z-index: 1; padding-top: 48px; padding-bottom: 48px; }
.nf-text-col > * { max-width: 460px; }
.not-found .script-title { font-size: 72px; line-height: 1.3; }
.not-found .nf-text { font-size: 22px; line-height: 1.5; color: #000; margin: 8px 0 24px; }
.nf-link { font-family: "Jost", Arial, sans-serif; font-weight: 500; font-size: 16px; letter-spacing: .08em; color: var(--purple); text-decoration: none; }
.nf-link:hover { color: var(--purple-dark); text-decoration: none; }
.nf-mists { position: absolute; top: 0; bottom: 0; left: 18%; right: 0; line-height: 0; }
.nf-mists picture, .nf-mists img { display: block; width: 100%; height: 100%; }
.nf-mists img { object-fit: cover; object-position: 55% 50%;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, .25) 18%, rgba(0, 0, 0, .8) 42%, #000 60%), linear-gradient(180deg, transparent 0%, #000 20%, #000 76%, transparent 100%);
  -webkit-mask-composite: source-in;
          mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, .25) 18%, rgba(0, 0, 0, .8) 42%, #000 60%), linear-gradient(180deg, transparent 0%, #000 20%, #000 76%, transparent 100%);
          mask-composite: intersect;
  opacity: 0; filter: blur(16px) brightness(1.3); transform: scale(1.05);
  animation: mists-in 3.5s ease-out .2s forwards; }
/* Drifting white haze over the picture */
.nf-mists::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 30% 26% at 20% 55%, rgba(255, 255, 255, .75), transparent 70%), radial-gradient(ellipse 26% 18% at 70% 22%, rgba(255, 255, 255, .5), transparent 70%), radial-gradient(ellipse 40% 18% at 55% 88%, rgba(255, 255, 255, .6), transparent 70%);
  opacity: 0; animation: haze-in 3.5s ease-out .2s forwards, haze-drift 20s ease-in-out 3.7s infinite alternate; }
@keyframes mists-in { to { opacity: 1; filter: none; transform: none; } }
@keyframes haze-in { to { opacity: 1; } }
@keyframes haze-drift { from { transform: translateX(-3%); } to { transform: translateX(3%); } }
@media (prefers-reduced-motion: reduce) { .nf-mists img { animation: none; opacity: 1; filter: none; transform: none; } .nf-mists::after { animation: none; opacity: 1; } }

/* Footer */
.site-footer { background: var(--bar-gradient); color: #fff; padding: 22px 0 18px; text-align: center; }
.footer-menu { list-style: none; margin: 0; padding: 0; display: flex; justify-content: center; flex-wrap: wrap; gap: 4px 50px; }
.footer-menu a, .copyright { font-family: "Mulish", Arial, sans-serif; font-size: 14px; color: #fff; text-decoration: none; line-height: 2; }
.copyright { margin: 6px 0 0; line-height: 1.75; }

/* Tablet */
@media (max-width: 1023px) {
  .header-inner { min-height: 96px; }
  .brand-wide { width: 280px; }
  .menu { gap: 0 28px; }
  .script-title { font-size: 48px; }
  .greeting { font-size: 34px; }
}

/* Phone and small tablet: collapsible menu */
@media (max-width: 860px) {
  body { font-size: 17px; }
  .brand-wide { display: none; }
  .brand-small { display: inline-flex; }
  .header-inner { min-height: 76px; }
  .menu-toggle { display: block; }
  .site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; z-index: 20; box-shadow: 0 10px 20px rgba(0, 0, 0, .08); }
  .site-nav.is-open { display: block; }
  .menu { flex-direction: column; padding: 8px 20px 16px; }
  .menu a { display: block; padding: 8px 0; }
  .home-bar-inner { justify-content: center; }
  .not-found { min-height: 560px; align-items: flex-start; }
  .nf-text-col { padding-top: 32px; }
  .toast { width: calc(100% - 32px); top: 16px; }
  .not-found .script-title { font-size: 56px; }
  .nf-mists { left: 0; top: 34%; }
  .nf-mists::after { display: none; }
  .nf-mists img { object-position: 50% 50%; -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 30%, #000 75%, transparent 100%); mask-image: linear-gradient(180deg, transparent 0%, #000 30%, #000 75%, transparent 100%); }
  .home-bar .site-nav { background: var(--bar-gradient); }
  .hero-emblem { top: 12px; left: 14px; width: 60px; }
  .script-title { font-size: 40px; line-height: 1.4; margin-bottom: 8px; }
  .greeting { font-size: 28px; margin-bottom: 32px !important; }
  .script-close { font-size: 34px; }
  .content h1 { font-size: 30px; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .member-group { grid-template-columns: 1fr; gap: 8px; }
  .has-badge { grid-template-columns: 1fr; }
  .footer-menu { gap: 0 28px; }
}

@media (max-width: 480px) {
}

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