:root {
  /* the family palette: CodeZaiku's night and cream, the same violet */
  --night: #16121c; --cream: #faf0e7; --ink: #2d0f24;
  --violet-600: #7231a5; --violet-bright: #bb6bf5; --violet-deep: #5a1f80;
  --measure: 38rem; --wide: 54rem; --radius: 6px;
  --display: "CMU Serif Italic", "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --jp: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}
/* dark is the default, as on codezaiku.org and wyrdsekai.org; light is the choice */
:root, :root[data-theme="dark"] {
  --bg: var(--night); --surface: #1e1826; --fg: #ece7f3; --muted: #a99cb4; --rule: #2f2740;
  --accent: var(--violet-bright); --accent-deep: #a75ed8; --code-bg: #1c1728; --glow: rgba(148,79,216,.18);
}
:root[data-theme="light"] {
  --bg: var(--cream); --surface: #f3ebe0; --fg: var(--ink); --muted: #6a5a68; --rule: #ddd0c6;
  --accent: var(--violet-600); --accent-deep: var(--violet-deep); --code-bg: #efe6da; --glow: rgba(114,49,165,.10);
}
img.only-light { display: none !important; } :root[data-theme="light"] img.only-light { display: block !important; } :root[data-theme="light"] img.only-dark { display: none !important; }
@font-face { font-family: "CMU Serif Italic"; font-style: italic; font-weight: 500; font-display: swap; src: url(/fonts/cmu-serif-500-italic.ttf) format("truetype"); }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--body); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-deep); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--accent); color: #fff; padding: .5rem 1rem; }
.skip:focus { left: 1rem; z-index: 10; }
header.site { display: flex; align-items: center; gap: 1.5rem; padding: 1rem 1.5rem; max-width: var(--wide); margin: 0 auto; }
header.site .brand { display: inline-flex; align-items: center; gap: .7rem; color: var(--fg); text-decoration: none; }
header.site .mark-sm { width: 34px; height: 34px; display: block; }
header.site .wm { width: 150px; height: auto; color: var(--fg); }
header.site nav { margin-left: auto; display: flex; gap: 1.2rem; flex-wrap: wrap; }
header.site nav a { color: var(--fg); text-decoration: none; font-size: .95rem; border-bottom: 1px solid transparent; }
header.site nav a:hover { border-bottom-color: var(--accent); }
/* on a phone the menu goes on its own row under the name, instead of a tall column beside it */
@media (max-width: 34rem) {
  header.site { flex-wrap: wrap; row-gap: .6rem; padding: 1rem 1rem .4rem; }
  header.site nav { order: 3; width: 100%; margin-left: 0; gap: .9rem; }
  header.site button.theme { margin-left: auto; }
}
button.theme { background: var(--surface); color: var(--fg); border: 1px solid var(--rule); border-radius: 999px; width: 34px; height: 34px; display: inline-grid; place-items: center; cursor: pointer; }
button.theme .sun { display: none; } button.theme .moon { display: block; }
:root[data-theme="light"] button.theme .sun { display: block; } :root[data-theme="light"] button.theme .moon { display: none; }
.hero { position: relative; max-width: var(--wide); margin: 0 auto; padding: 3rem 1.5rem 2.5rem; text-align: center; }
/* the glow sits centred on the emblem: the hero pads 3rem, the emblem is 300px tall, the glow is 30rem across */
.hero::before { content: ""; position: absolute; top: calc(3rem + 150px - 15rem); left: 50%; transform: translateX(-50%); width: 30rem; height: 30rem; background: radial-gradient(closest-side, var(--glow), transparent 70%); pointer-events: none; }
.hero > * { position: relative; }
.hero .emblem { display: block; width: 300px; max-width: 62%; height: auto; margin: 0 auto 1.2rem; }
.hero .wm { width: 380px; max-width: 78%; height: auto; color: var(--fg); display: block; margin: 0 auto .6rem; }
.hero .jp { font-family: var(--jp); font-size: 1.05rem; color: var(--muted); margin: 0; letter-spacing: .12em; }
.hero .tagline { font-family: var(--display); font-size: clamp(1.3rem, 2.4vw, 1.7rem); line-height: 1.3; margin: .9rem auto 0; max-width: 32rem; text-wrap: balance; }
.hero-actions { display: flex; gap: .7rem; flex-wrap: wrap; justify-content: center; margin-top: 1.8rem; }
.btn { display: inline-block; padding: .62rem 1.15rem; border: 1px solid var(--rule); border-radius: var(--radius); color: var(--fg); text-decoration: none; background: transparent; font-size: .96rem; }
.btn:hover { background: var(--glow); border-color: var(--accent); color: var(--fg); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; }
.btn-primary:hover { background: var(--accent-deep); border-color: var(--accent-deep); color: #fff; }
main { max-width: var(--measure); margin: 0 auto; padding: 1rem 1.5rem 3rem; }   /* one centred reading column, as the sibling sites have */
main h2 { font-family: var(--display); font-weight: 500; font-size: 1.85rem; margin: 3rem 0 .6rem; letter-spacing: .005em; text-wrap: balance; }
main h2 .jp { font-family: var(--jp); font-size: 1rem; color: var(--muted); margin-left: .8rem; letter-spacing: .1em; vertical-align: middle; font-style: normal; }
main p { margin: .7rem 0; }
.lede { font-size: 1.12rem; }
main h1 { font-family: var(--display); font-weight: 500; font-size: 2.2rem; margin: 2rem 0 .3rem; }
main .tagline { color: var(--muted); margin-top: 0; }
table { border-collapse: collapse; margin: 1rem 0; width: 100%; font-size: .95rem; }
th, td { text-align: left; padding: .45rem .6rem; border-bottom: 1px solid var(--rule); vertical-align: top; }
th { color: var(--muted); font-weight: 600; }
ol.steps, ul.with { padding-left: 1.4rem; margin: .6rem 0 0; }
ol.steps li, ul.with li { margin: .45rem 0; }
pre { background: var(--code-bg); border: 1px solid var(--rule); border-left: 3px solid var(--accent); border-radius: var(--radius); padding: 1rem 1.1rem; overflow-x: auto; font-family: var(--mono); font-size: .88rem; line-height: 1.55; max-width: var(--wide); }
code { font-family: var(--mono); font-size: .92em; }
p code, li code, .note code { background: var(--code-bg); padding: .08em .35em; border-radius: 4px; }
.phases { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; margin: 1rem 0 0; }
.phase { border-top: 2px solid var(--accent); padding-top: .7rem; }
.phase h3 { font-family: var(--display); font-weight: 500; font-size: 1.3rem; margin: 0 0 .3rem; }
.phase p { margin: .3rem 0; font-size: .98rem; }
@media (max-width: 640px) { .phases { grid-template-columns: 1fr; } }
.crews { list-style: none; padding: 0; margin: .8rem 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: .3rem 1.6rem; max-width: var(--wide); }
.crews li { display: grid; grid-template-columns: 6.5rem 1fr; gap: .6rem; font-size: .95rem; padding: .35rem 0; border-bottom: 1px solid var(--rule); max-width: none; }
.crews li b { font-weight: 600; font-variant-caps: small-caps; letter-spacing: .04em; }
.patrons { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1.4rem; margin-top: .6rem; }
.patron { border-left: 2px solid var(--rule); padding-left: .9rem; }
.patron h3 { font-family: var(--display); font-weight: 500; font-size: 1.2rem; margin: 0 0 .25rem; }
.patron p { margin: 0; font-size: .96rem; color: var(--muted); }
dl.contract { display: grid; grid-template-columns: max-content 1fr; gap: .35rem 1.2rem; margin: .8rem 0; max-width: var(--wide); font-size: .96rem; }
dl.contract dt { font-family: var(--mono); font-size: .85rem; color: var(--accent); }
dl.contract dd { margin: 0; }
.note { border: 1px solid var(--rule); background: var(--surface); border-radius: var(--radius); padding: .9rem 1.1rem; max-width: var(--measure); font-size: .96rem; }
footer.site { border-top: 1px solid var(--rule); margin-top: 3rem; padding: 1.4rem 1.5rem 2.5rem; color: var(--muted); font-size: .9rem; }
footer.site div { max-width: var(--measure); margin: 0 auto .5rem; display: flex; gap: 1.5rem; flex-wrap: wrap; align-items: center; }
footer.site .jp { font-family: var(--jp); letter-spacing: .1em; }

/* the sentence that says what the program is, under the tagline: the page's heading for search engines and screen readers */
.hero .what { position: relative; margin: 1rem auto 0; max-width: 34rem; font-size: 1.02rem; font-weight: 400; line-height: 1.5; letter-spacing: 0; color: var(--fg); }
