/*
 * The house style. Written by hand; the editor never changes this file.
 * What editors change at /edit is saved to layout.css, which loads after this
 * one and so wins wherever both set the same thing. Selectors here are kept to
 * a single class where possible so a single-class rule from the editor wins.
 */
:root {
  /* The five things the editor's Look panel sets. */
  --bg: #050b26;
  --glow: #0a1a5c;
  --ink: #f3f1ea;
  --accent: #bd9a50;
  --head: "Poppins", "Segoe UI", system-ui, sans-serif;
  --body: "Inter", "Segoe UI", system-ui, sans-serif;
}
/* Shades worked out from those, so a new background or text colour stays readable.
   A browser too old for color-mix skips this block and uses the text colour as it is. */
body {
  --ink-soft: color-mix(in srgb, var(--ink) 72%, var(--bg));
  --ink-read: color-mix(in srgb, var(--ink) 88%, var(--bg));
  --rule: color-mix(in srgb, var(--accent) 38%, transparent);
  --glow-soft: color-mix(in srgb, var(--glow) 60%, transparent);
  --gold: var(--accent);
}
[hidden] { display: none !important; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background-color: var(--bg);
  background-image:
    radial-gradient(120% 60% at 50% 0%, var(--glow) 0%, transparent 70%),
    radial-gradient(90% 40% at 50% 100%, var(--glow-soft, transparent) 0%, transparent 75%);
  background-repeat: no-repeat;
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.5;
  text-align: center;
  display: flex;
  flex-direction: column;
}
/* The layout sits straight inside the page body, in the browser and in the editor alike. */
#app { display: contents; }

.page {
  flex: 1 0 auto;
  width: 100%;
  max-width: 34rem;
  margin: 0 auto;
  padding: max(3rem, env(safe-area-inset-top)) 1.5rem 2rem;
}
.foot {
  margin-top: 4rem;
  padding: 1.75rem 1.5rem max(2rem, env(safe-area-inset-bottom));
  border-top: 1px solid var(--rule);
  font-size: 0.8rem;
  color: var(--ink-soft);
}

.logo {
  display: block;
  max-width: min(14rem, 70%);
  max-height: 6rem;
  width: auto;
  height: auto;
  margin: 0 auto 1.75rem;
}
.eyebrow {
  margin: 0 0 0.9rem;
  font-family: var(--head);
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
}
.site-title {
  margin: 0;
  font-family: var(--head);
  font-weight: 300;
  font-size: clamp(1.9rem, 8.5vw, 2.75rem);
  line-height: 1.15;
  letter-spacing: 0.01em;
  text-wrap: balance;
}
.site-title-link { color: inherit; text-decoration: none; }
.wave {
  display: block;
  width: 7rem;
  height: 1rem;
  margin: 2.25rem auto 0;
  color: var(--gold);
}

.pages {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin: 2rem -0.3rem 0;
}
.page-link {
  margin: 0.3rem;
  padding: 0.55rem 1rem;
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--rule);
  border-radius: 999px;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: var(--ink);
}
.page-link:hover { border-color: var(--gold); }
.page-link[aria-current="page"] { background: var(--gold); border-color: var(--gold); color: var(--bg); font-weight: 600; }

[data-drive="content"] { margin-top: 2.25rem; }
[data-drive="content"] > :first-child { margin-top: 0; }

.section { margin-top: 3rem; }
.section-heading {
  display: flex;
  align-items: center;
  margin: 0 0 1.5rem;
  font-family: var(--head);
  font-weight: 500;
  font-size: 0.8rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
}
.section-heading::before, .section-heading::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--rule);
}
.section-heading::before { margin-right: 1rem; }
.section-heading::after { margin-left: 1rem; }
.sub-heading, .page-title {
  margin: 0 0 1.25rem;
  font-family: var(--head);
  font-weight: 300;
  font-size: 1.5rem;
  line-height: 1.25;
  text-wrap: balance;
}
* + .sub-heading { margin-top: 2rem; }
.section-heading + .sub-heading { margin-top: 0; }
.page-title { margin-bottom: 2rem; font-size: 1.75rem; }

.entry { margin: 0 0 1.35rem; }
.entry + .text, .text + .entry, .list + .entry { margin-top: 1.75rem; }
.role {
  margin: 0 0 0.15rem;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.name {
  margin: 0;
  font-family: var(--head);
  font-weight: 500;
  font-size: 1.15rem;
  line-height: 1.35;
}

.text-link { color: inherit; text-decoration-color: var(--gold); text-underline-offset: 0.2em; }
a:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 2px; }
.text, .note {
  margin: 0 auto;
  max-width: 28rem;
  color: var(--ink-soft);
  text-wrap: pretty;
  overflow-wrap: anywhere;
}
.text + .text { margin-top: 0.9rem; }
/* Long paragraphs read better ranged left; render.js adds this class by length. */
.prose {
  max-width: none;
  text-align: left;
  line-height: 1.65;
  color: var(--ink-read);
}
.prose + .prose { margin-top: 1.1rem; }
.list {
  margin: 0;
  padding-left: 1.25rem;
  text-align: left;
  line-height: 1.6;
  color: var(--ink-read);
  overflow-wrap: anywhere;
}
.list-item + .list-item { margin-top: 0.6rem; }
.list-item::marker { color: var(--gold); }
.text + .list, .list + .text { margin-top: 1.1rem; }

.status {
  margin: 3rem auto 0;
  max-width: 24rem;
  color: var(--ink-soft);
}

/* Footer versions of the same pieces. */
.foot .text { font-size: 0.85rem; max-width: 30rem; }
.foot .prose { text-align: center; color: var(--ink-soft); line-height: 1.55; }
.foot .section { margin-top: 1.5rem; }
.foot .entry { margin-bottom: 0.9rem; }
.foot .name { font-size: 0.95rem; }
[data-drive="footer-text"] { margin-bottom: 1.25rem; }
.logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  margin: 0 -0.4rem 1.25rem;
}
/* Partner logos arrive in any colour, so each sits on its own white tile. */
.partner-logo {
  margin: 0.4rem;
  padding: 0.5rem 0.75rem;
  height: 3.25rem;
  width: auto;
  max-width: 9.5rem;
  object-fit: contain;
  background: #fff;
  border-radius: 6px;
}
.fixed-line { margin: 0; }
.updated { margin: 0.35rem 0 0; }

/* Pieces an editor can add at /edit. */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  margin: 1.5rem auto 0;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  background: var(--gold);
  color: var(--bg);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
}
.divider {
  width: 100%;
  height: 0;
  margin: 2.5rem 0;
  border: 0;
  border-top: 1px solid var(--rule);
}
.spacer { height: 2.5rem; }
.note { margin-top: 1.5rem; }
/* An image or banner placed in the editor. The file itself comes from the Images folder in Drive. */
.banner { display: block; width: 100%; max-width: 100%; height: auto; margin: 1.5rem auto 0; border-radius: 12px; }
.box { margin-top: 2rem; padding: 1.25rem; border: 1px solid var(--rule); border-radius: 12px; min-height: 3rem; }

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