/* delphi-revolution.com until the release: the page that says the revolution
   is coming, in the colors and type of the story (story.css). */

:root {
  --bg: #faf8f4;
  --bg-alt: #f1ede5;
  --surface: #ffffff;
  --text: #16181d;
  --muted: #5d6470;
  --border: #e2ddd2;
  --amber: #f2b544;
  --amber-text: #9a6200;
  --on-amber: #16181d;
  --sherpa: #9a6200;
  --syntia: #0d7a6b;
  --aila: #1a6dc7;
  --vita: #c0303f;
  --dusk: #f2efe8;
  --day: #fffdf8;
  --sun: rgba(242, 181, 68, .26);
  --shadow: 0 2px 4px rgba(22, 24, 29, .05), 0 18px 48px rgba(22, 24, 29, .12);
  --serif: Georgia, "Iowan Old Style", "Palatino Linotype", "Book Antiqua", serif;
  --sans: "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  --mono: "Cascadia Code", Consolas, "SF Mono", monospace;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0d1015;
    --bg-alt: #12161d;
    --surface: #181d25;
    --text: #eef1f5;
    --muted: #98a0ad;
    --border: #262c36;
    --amber-text: #f2b544;
    --sherpa: #f2b544;
    --syntia: #34c3ad;
    --aila: #5aa8f5;
    --vita: #f0727f;
    --dusk: #0b0d11;
    --day: #1b2230;
    --sun: rgba(242, 181, 68, .16);
    --shadow: 0 2px 4px rgba(0, 0, 0, .3), 0 18px 48px rgba(0, 0, 0, .45);
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #0d1015;
  --bg-alt: #12161d;
  --surface: #181d25;
  --text: #eef1f5;
  --muted: #98a0ad;
  --border: #262c36;
  --amber-text: #f2b544;
  --sherpa: #f2b544;
  --syntia: #34c3ad;
  --aila: #5aa8f5;
  --vita: #f0727f;
  --dusk: #0b0d11;
  --day: #1b2230;
  --sun: rgba(242, 181, 68, .16);
  --shadow: 0 2px 4px rgba(0, 0, 0, .3), 0 18px 48px rgba(0, 0, 0, .45);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--text); font: 18px/1.65 var(--sans); -webkit-font-smoothing: antialiased; }

/* The light: alone, the page is in the dusk; when the team joins, the
   light goes on. story.js sets --dawn from 0 to 1 as the crew scrolls in;
   without the script the page stays light. */
:root { --dawn: 1; --page: color-mix(in srgb, var(--day) calc(var(--dawn) * 100%), var(--dusk)); }
body { background: var(--page); }
body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: var(--dawn);
  background: radial-gradient(ellipse 90% 70% at 50% -12%, var(--sun), transparent 72%); }
a { color: inherit; }
code, kbd { font-family: var(--mono); font-size: .88em; }
kbd { border: 1px solid var(--border); border-bottom-width: 2px; border-radius: 5px; padding: 0 .4em; background: var(--surface); }

.for-dark { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .for-light { display: none; }
  :root:not([data-theme="light"]) .for-dark { display: inline-block; }
}
:root[data-theme="dark"] .for-light { display: none; }
:root[data-theme="dark"] .for-dark { display: inline-block; }

/* The bar */
.bar { position: fixed; top: 0; left: 0; right: 0; z-index: 10; display: flex; align-items: center; gap: 16px; padding: 12px 24px;
  background: color-mix(in srgb, var(--page) 80%, transparent); backdrop-filter: blur(10px); }
.mark { font-family: var(--serif); font-size: 1.15rem; font-weight: 700; text-decoration: none; margin-right: auto; letter-spacing: .01em; }
.mark span { color: var(--amber-text); }
.bar-cta { text-decoration: none; font-weight: 600; font-size: .95rem; padding: 6px 14px; border-radius: 999px; background: var(--amber); color: var(--on-amber); }
.theme-toggle { border: 1px solid var(--border); background: var(--surface); color: var(--text); border-radius: 999px; width: 36px; height: 36px; cursor: pointer; }

/* Opening */
.opening { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding: 96px 24px 48px; max-width: 1100px; margin: 0 auto; position: relative; }
.time { font-family: var(--mono); color: var(--amber-text); font-size: 1.05rem; letter-spacing: .04em; margin: 0 0 16px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(2.6rem, 7.5vw, 5.6rem); line-height: 1.02; margin: 0 0 28px; }
.sub { font-size: clamp(1.1rem, 2.2vw, 1.4rem); color: var(--muted); max-width: 30em; margin: 0; }

.team { display: flex; justify-content: center; gap: 18px; margin-top: 64px; }
.team img { width: 64px; height: 64px; }

footer { padding: 32px 24px; text-align: center; color: var(--muted); font-size: .85rem; border-top: 1px solid var(--border); }
footer a { color: var(--text); text-decoration: none; }
footer p { max-width: 52em; margin: 10px auto 0; }

/* The coming page: the team stands under the words, left like them,
   each with its name in its color */
.team-head { font-family: var(--mono); font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; color: var(--amber-text); margin: 56px 0 0; }
.opening .team { list-style: none; padding: 0; justify-content: flex-start; gap: 28px; margin: 18px 0 0; }
.team li { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.team span { font-family: var(--serif); font-weight: 700; font-size: 1rem; line-height: 1.2; text-align: center; }
.team .sherpa { color: var(--sherpa); }
.team .syntia { color: var(--syntia); }
.team .aila { color: var(--aila); }
.team .vita { color: var(--vita); }

/* Privacy and the page that does not exist */
.page { max-width: 46em; margin: 0 auto; padding: 120px 24px 72px; }
.page h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin-bottom: 16px; }
.page h2 { font-size: 1.35rem; margin: 40px 0 8px; }
.page p { margin: 0 0 12px; }
.page .lead { color: var(--muted); }

@media (max-width: 560px) {
  body { font-size: 17px; }
  .bar { padding: 10px 16px; }
  .opening, .page { padding-left: 16px; padding-right: 16px; }
  .team img { width: 48px; height: 48px; }
  .opening .team { gap: 18px; }
}

/* The e-mail address, held reversed in the page against harvesting bots,
   shown the right way round (setupEmail makes it a link). */
.email-text { unicode-bidi: bidi-override; direction: rtl; }
