/* The Canonate house style: Lapis. Deep lapis, gold leaf and parchment, with turquoise and carnelian accents.
   Matches the Lapis style of the Ma'at cards. Shared by the home page, sign-up pages and privacy page.
   The library uses the same colours and fonts in its own stylesheet. */
:root {
  --night: #060914;      /* deepest ground */
  --paper: #111a3d;      /* page background (lapis) */
  --card: #1b2652;       /* raised surfaces */
  --sunk: #16204a;       /* recessed surfaces */
  --ink: #efe6d2;        /* body text (parchment) */
  --title: #f4ead3;      /* headings */
  --ink-soft: #a6abc2;   /* secondary text */
  --line: rgba(214,178,106,.28);
  --gold: #d6b26a;
  --gold-deep: #a8853f;
  --turquoise: #4fb0a6;
  --carnelian: #c0623d;
  --parchment: #f4ead3;
  --on-gold: #162047;
  --display: "Marcellus", "Trajan Pro", Georgia, serif;
  --body: "Cormorant Garamond", Garamond, Georgia, serif;
  --ui: "Karla", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--paper); color: var(--ink); }
body {
  font-family: var(--body); font-size: 19px; line-height: 1.6;
  background: radial-gradient(ellipse 120% 60% at 50% 0%, #1a2656 0%, var(--paper) 55%, #0d1430 100%) fixed;
  padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px);
}
a { color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; color: var(--title); margin: 0; line-height: 1.12; text-wrap: balance; letter-spacing: .01em; }
p { margin: 0; }
.wrap { max-width: 980px; margin: 0 auto; padding: 20px max(18px, env(safe-area-inset-right, 0px)) 40px max(18px, env(safe-area-inset-left, 0px)); display: flex; flex-direction: column; gap: 40px; }
.narrow { max-width: 520px; }
.eyebrow { font-family: var(--display); font-size: 12px; letter-spacing: .28em; text-transform: uppercase; color: var(--gold); }
.muted { color: var(--ink-soft); }

/* Top bar */
.top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark { width: 30px; height: 20px; position: relative; overflow: hidden; flex: none; }
.brand-mark i { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); border-radius: 999px 999px 0 0; border: 1.5px solid var(--gold); border-bottom: 0; }
.brand-mark i:nth-child(1) { width: 30px; height: 19px; }
.brand-mark i:nth-child(2) { width: 20px; height: 13px; }
.brand-mark i:nth-child(3) { width: 10px; height: 7px; background: var(--gold); }
.brand-name { font-family: var(--display); font-size: 13px; letter-spacing: .3em; text-transform: uppercase; color: var(--title); }
.top nav { display: flex; gap: 4px; flex-wrap: wrap; }
.top nav a { font-family: var(--ui); text-decoration: none; font-weight: 700; font-size: 14px; padding: 8px 14px; border-radius: 999px; color: var(--ink-soft); }
.top nav a:hover, .top nav a[aria-current="page"] { color: var(--title); background: rgba(214,178,106,.12); }

/* Arches: gold doorways */
.arches { position: absolute; left: 50%; bottom: -2px; transform: translateX(-50%); width: 82%; aspect-ratio: 2 / 1; }
.arches i { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); border-radius: 999px 999px 0 0; }
.arches i:nth-child(1) { width: 100%; height: 100%; background: var(--a1); }
.arches i:nth-child(2) { width: 78%; height: 78%; background: var(--a2); }
.arches i:nth-child(3) { width: 56%; height: 56%; background: var(--a3); }
.arches i:nth-child(4) { width: 34%; height: 34%; background: var(--a4); }
.p0 { --a1: var(--gold); --a2: #26326a; --a3: var(--gold-deep); --a4: var(--paper); }
.p1 { --a1: var(--turquoise); --a2: #1d2a5c; --a3: var(--gold); --a4: var(--paper); }
.p3 { --a1: var(--carnelian); --a2: #22305f; --a3: var(--gold); --a4: var(--paper); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 24px; border-radius: 999px; font-family: var(--display); font-size: 14px; letter-spacing: .18em; text-transform: uppercase; text-decoration: none; cursor: pointer; border: 1.5px solid var(--gold); background: transparent; color: var(--title); }
.btn.primary { background: var(--gold); color: var(--on-gold); }
.btn[disabled] { opacity: .6; cursor: wait; }

/* Footer */
.foot { border-top: 1px solid var(--line); padding-top: 18px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-family: var(--ui); font-size: 13px; color: var(--ink-soft); }
.foot a { color: var(--ink-soft); }

@media (prefers-reduced-motion: no-preference) {
  .rise { animation: rise .9s ease-out both; }
  @keyframes rise { from { transform: translateY(8px); opacity: .5; } to { transform: none; opacity: 1; } }
}
