/* Generated by xyzzy from Racket stylesheet data. */

/* Shared layout and long-form writing */
:root {
  --bg: black;
  --panel: color-mix(in srgb, white 5.5%, transparent);
  --panel-hover: color-mix(in srgb, white 9%, transparent);
  --text: whitesmoke;
  --muted: silver;
  --line: color-mix(in srgb, white 10%, transparent);
  --glow-a: color-mix(in srgb, paleturquoise 18%, transparent);
  --glow-b: color-mix(in srgb, plum 16%, transparent);
  --glow-c: color-mix(in srgb, lightpink 10%, transparent);
  --dim: lightslategray;
  --cyan: paleturquoise;
  --violet: plum;
  --pink: lightpink;
  --ok: palegreen;
  --warn: navajowhite;
}

* {
  box-sizing: border-box;
}

html, body {
  min-height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  place-items: center;
  overflow-x: hidden;
  background: radial-gradient(circle at 20% 15%, var(--glow-a), transparent 33rem), radial-gradient(circle at 82% 28%, var(--glow-b), transparent 30rem), radial-gradient(circle at 55% 90%, var(--glow-c), transparent 27rem), var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

main {
  position: relative;
  z-index: 1;
  width: min(92vw, 1120px);
  padding: 5rem 0 4rem;
}

.content {
  position: relative;
  z-index: 2;
  width: min(100%, 720px);
}

.faie-mobile-wrap {
  display: none;
}

.faie-figure {
  position: fixed;
  z-index: 0;
  right: clamp(-8rem, -4vw, -2.5rem);
  bottom: 0;
  height: min(94vh, 1040px);
  width: auto;
  max-width: 48vw;
  object-fit: contain;
  object-position: bottom right;
  pointer-events: none;
  user-select: none;
  filter: drop-shadow(0 1.2rem 2rem color-mix(in srgb, black 30%, transparent)) drop-shadow(0 0 2.5rem color-mix(in srgb, lightsteelblue 8%, transparent));
}

.mark {
  width: 3.2rem;
  height: 0.18rem;
  border-radius: 999px;
  margin-bottom: 1.5rem;
  background: linear-gradient(90deg, paleturquoise, plum, lightpink);
  box-shadow: 0 0 24px color-mix(in srgb, lightsteelblue 35%, transparent);
}

h1 {
  margin: 0;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.12em 0.32em;
  font-weight: 400;
  font-size: clamp(3.3rem, 10vw, 6.2rem);
  line-height: 0.95;
  letter-spacing: -0.055em;
}

.name {
  font-family: Georgia, "Times New Roman", serif;
}

.han {
  font-family: "Yu Mincho", "Hiragino Mincho ProN", "Noto Serif CJK JP", "Noto Serif JP", serif;
  font-size: 0.96em;
  letter-spacing: 0.02em;
  font-weight: 500;
}

.intro {
  max-width: 38rem;
  margin: 1.6rem 0 2.6rem;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.section-title {
  margin: 2rem 0 0.8rem;
  color: thistle;
  font-size: 0.76rem;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section-note {
  margin: -0.15rem 0 1rem;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.site-links {
  margin-bottom: 1.5rem;
}

a.internal, a.social {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  aspect-ratio: 14 / 5;
  min-height: 0;
  padding: 1.25rem 1.3rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--panel);
  color: var(--text);
  text-decoration: none;
  backdrop-filter: blur(12px);
  transition: transform 150ms ease, background 150ms ease, border-color 150ms ease;
}

a.internal {
  border-color: color-mix(in srgb, plum 22%, transparent);
  background: linear-gradient(135deg, color-mix(in srgb, paleturquoise 5.5%, transparent), color-mix(in srgb, plum 7.5%, transparent)), var(--panel);
}

a.internal:hover, a.internal:focus-visible, a.social:hover, a.social:focus-visible {
  transform: translateY(-2px);
  background: var(--panel-hover);
  border-color: color-mix(in srgb, white 20%, transparent);
}

a.internal:focus-visible, a.social:focus-visible {
  outline: 2px solid plum;
  outline-offset: 3px;
}

a.internal:hover, a.internal:focus-visible {
  background: linear-gradient(135deg, color-mix(in srgb, paleturquoise 8%, transparent), color-mix(in srgb, plum 11%, transparent)), var(--panel-hover);
  border-color: color-mix(in srgb, plum 38%, transparent);
}

.documentation-art {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.78;
  filter: saturate(0.9) contrast(1.02);
  transform: scale(1.025);
  transition: transform 220ms ease, opacity 150ms ease;
}

a.internal::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(90deg, color-mix(in srgb, black 82%, transparent) 0%, color-mix(in srgb, black 56%, transparent) 48%, color-mix(in srgb, black 20%, transparent) 100%);
  pointer-events: none;
}

a.internal:hover .documentation-art, a.internal:focus-visible .documentation-art {
  opacity: 0.86;
  transform: scale(1.045);
}

a.internal > span {
  position: relative;
  z-index: 2;
}

nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.social-art {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 1;
  filter: saturate(1.08) contrast(1.03);
  transform: scale(1.035);
  transition: opacity 150ms ease, transform 220ms ease;
}

a.social::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(90deg, color-mix(in srgb, black 72%, transparent) 0%, color-mix(in srgb, black 38%, transparent) 42%, color-mix(in srgb, black 6%, transparent) 100%);
  pointer-events: none;
}

a.social:hover .social-art, a.social:focus-visible .social-art {
  opacity: 1;
  transform: scale(1.055);
}

.social-main {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  min-width: 0;
}

.social-icon {
  width: 1.45rem;
  height: 1.45rem;
  flex: 0 0 1.45rem;
  fill: currentColor;
}

.social-name {
  font-weight: 650;
  letter-spacing: 0.01em;
}

.social-handle {
  display: block;
  margin-top: 0.2rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 450;
}

.arrow {
  position: relative;
  z-index: 2;
  color: gainsboro;
  font-size: 1.1rem;
}

footer {
  margin-top: 2.8rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
  color: lightslategray;
  font-size: 0.78rem;
  line-height: 1.6;
}

footer a {
  color: silver;
  text-decoration-color: color-mix(in srgb, white 22%, transparent);
  text-underline-offset: 0.18em;
}

.counter {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1rem;
  font-family: "Courier New", ui-monospace, monospace;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: lightslategray;
}

.counter img {
  display: block;
  height: 20px;
  width: auto;
  image-rendering: auto;
}

@media (max-width: 1099px) {
  .faie-figure {
    right: -14rem;
    max-width: 62vw;
    opacity: 0.92;
  }

}
@media (max-width: 760px) {
  .faie-figure {
    display: none;
  }

  main {
    width: min(92vw, 720px);
  }

  .faie-mobile-wrap {
    display: flex;
    justify-content: center;
    margin: 1.5rem -4vw 0;
    overflow: hidden;
  }

  .faie-mobile {
    display: block;
    width: 100%;
    max-width: 100vw;
    height: auto;
    object-fit: contain;
    object-position: center bottom;
    filter: drop-shadow(0 1rem 1.8rem color-mix(in srgb, black 28%, transparent)) drop-shadow(0 0 2rem color-mix(in srgb, lightsteelblue 7%, transparent));
  }

}
@media (max-width: 560px) {
  main {
    padding-top: 3.6rem;
  }

  nav {
    grid-template-columns: 1fr;
  }

  a.internal, a.social {
    aspect-ratio: 14 / 5;
    min-height: 0;
    padding: 1rem 1.05rem;
  }

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

}
.article-body a {
  color: thistle;
  text-decoration-color: color-mix(in srgb, plum 45%, transparent);
  text-underline-offset: 0.15em;
}

.article-body a:hover, .article-body a:focus-visible {
  color: whitesmoke;
}

.article-main {
  display: block;
  width: min(92vw, 1120px);
  padding-top: 4rem;
}

.article-content {
  width: min(100%, 760px);
}

.article-back {
  display: inline-block;
  margin-bottom: 2.5rem;
  color: silver;
  font-size: 0.86rem;
  text-decoration: none;
}

.article-back:hover, .article-back:focus-visible {
  color: whitesmoke;
}

.article-header {
  margin-bottom: 1.8rem;
}

.article-kicker, .article-meta {
  margin: 0;
  color: silver;
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.article-title {
  display: block;
  margin: 0.45rem 0 0.8rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.4rem, 11vw, 6.5rem);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.055em;
}

.article-deck {
  max-width: 42rem;
  margin: 0 0 1rem;
  color: gainsboro;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.2rem, 3vw, 1.55rem);
  line-height: 1.45;
}

.article-hero {
  width: 100%;
  aspect-ratio: 14 / 5;
  margin: 0 0 2.6rem;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, white 10%, transparent);
  border-radius: 1rem;
  background: color-mix(in srgb, white 5.5%, transparent);
}

.article-hero img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-body {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.08rem, 2.3vw, 1.2rem);
  line-height: 1.78;
  color: gainsboro;
}

.article-body p {
  margin: 0 0 1.25em;
}

.article-body h2 {
  margin: 2.5em 0 0.8em;
  color: whitesmoke;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 1.2rem;
  line-height: 1.3;
  letter-spacing: -0.015em;
}

.article-body blockquote {
  margin: 1.7rem 0;
  padding: 0.2rem 0 0.2rem 1.25rem;
  border-left: 2px solid color-mix(in srgb, plum 55%, transparent);
  color: thistle;
}

.article-body blockquote p {
  margin-bottom: 0.55em;
}

.article-body code {
  padding: 0.12em 0.35em;
  border: 1px solid color-mix(in srgb, white 9%, transparent);
  border-radius: 0.35rem;
  background: color-mix(in srgb, white 5.5%, transparent);
  font-family: "Courier New", ui-monospace, monospace;
  font-size: 0.88em;
}

.article-signoff {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  margin-top: 3rem;
  padding-top: 1.25rem;
  border-top: 1px solid color-mix(in srgb, white 10%, transparent);
  color: silver;
  font-size: 0.86rem;
}

.article-signoff strong {
  color: whitesmoke;
}

@media (max-width: 760px) {
  .article-main {
    width: min(92vw, 720px);
    padding-top: 3rem;
  }

  .article-content {
    width: 100%;
  }

}
/* Canon pages */
.canon-page .page-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.canon-page .page-nav a, .canon-page article a {
  color: plum;
  text-underline-offset: 0.2em;
}

.canon-page .page-nav a:focus-visible, .canon-page article a:focus-visible {
  outline: 2px solid paleturquoise;
  outline-offset: 4px;
}

.canon-page article {
  max-width: 42rem;
  margin-top: 2rem;
  font-size: 1.05rem;
  line-height: 1.75;
  overflow-wrap: anywhere;
}

.canon-page article h2 {
  margin-top: 2rem;
  line-height: 1.25;
}

.canon-page article pre {
  overflow-x: auto;
  padding: 1rem;
  background: var(--panel);
}

/* Workflow documentation */
html:has(> .workflow-page) {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html:has(> .workflow-page) {
    scroll-behavior: auto;
  }

}
body.workflow-page {
  display: block;
}

.workflow-page a {
  color: thistle;
  text-underline-offset: 0.18em;
  text-decoration-color: color-mix(in srgb, thistle 38%, transparent);
}

.workflow-page a:hover {
  color: white;
}

.workflow-page .shell {
  position: relative;
  z-index: 1;
  width: min(92vw, 940px);
  margin: 0 auto;
  padding: 3.2rem 0 5rem;
}

.workflow-page .topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 3.8rem;
}

.workflow-page .brand {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.1rem;
  text-decoration: none;
  color: var(--text);
}

.workflow-page .brand .han {
  font-size: inherit;
  letter-spacing: normal;
  font-weight: inherit;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", "Noto Serif CJK JP", "Noto Serif JP", serif;
  margin-left: 0.35rem;
}

.workflow-page .back {
  color: var(--muted);
  font-size: 0.88rem;
  text-decoration: none;
}

.workflow-page .mark {
  margin-bottom: 1.35rem;
  background: linear-gradient(90deg, var(--cyan), var(--violet), var(--pink));
}

.workflow-page h1 {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.8rem, 8vw, 5rem);
  letter-spacing: -0.045em;
  line-height: 0.98;
}

.workflow-page .lede {
  max-width: 48rem;
  margin: 1.35rem 0 0;
  color: var(--muted);
  font-size: 1.06rem;
  line-height: 1.75;
}

.workflow-page .toc {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 2.2rem 0 3.6rem;
}

.workflow-page .toc a {
  display: inline-block;
  padding: 0.52rem 0.72rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  color: gainsboro;
  text-decoration: none;
  font-size: 0.78rem;
}

.workflow-page section {
  margin-top: 4.2rem;
  scroll-margin-top: 2rem;
}

.workflow-page h2 {
  margin: 0 0 0.9rem;
  font-size: 1.55rem;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.workflow-page h3 {
  margin: 1.7rem 0 0.55rem;
  font-size: 1rem;
  font-weight: 700;
}

.workflow-page p, .workflow-page li {
  color: gainsboro;
  line-height: 1.7;
}

.workflow-page p {
  margin: 0.7rem 0;
}

.workflow-page ul, .workflow-page ol {
  padding-left: 1.3rem;
  margin: 0.7rem 0;
}

.workflow-page li + li {
  margin-top: 0.42rem;
}

.workflow-page .flow {
  margin: 1.3rem 0 1.5rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: linear-gradient(135deg, color-mix(in srgb, paleturquoise 6%, transparent), color-mix(in srgb, plum 6%, transparent));
  font-family: "Courier New", ui-monospace, monospace;
  color: whitesmoke;
  line-height: 1.8;
  overflow-x: auto;
  white-space: nowrap;
}

.workflow-page .cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
  margin-top: 1.2rem;
}

.workflow-page .card {
  padding: 1.05rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--panel);
}

.workflow-page .card strong {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.88rem;
  color: whitesmoke;
}

.workflow-page .card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.workflow-page pre {
  margin: 1rem 0;
  padding: 1rem 1.05rem;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  background: color-mix(in srgb, black 30%, transparent);
  color: whitesmoke;
  line-height: 1.55;
  font-size: 0.82rem;
}

.workflow-page code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", "Courier New", monospace;
  color: whitesmoke;
}

.workflow-page :not(pre) > code {
  padding: 0.08rem 0.28rem;
  border-radius: 0.3rem;
  background: color-mix(in srgb, white 6%, transparent);
  font-size: 0.91em;
}

.workflow-page .note, .workflow-page .warning {
  margin: 1.2rem 0;
  padding: 0.95rem 1rem;
  border-left: 3px solid var(--violet);
  background: color-mix(in srgb, plum 6%, transparent);
  border-radius: 0 0.65rem 0.65rem 0;
  color: gainsboro;
  line-height: 1.65;
}

.workflow-page .warning {
  border-left-color: navajowhite;
  background: color-mix(in srgb, navajowhite 5.5%, transparent);
}

.workflow-page .label {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dim);
}

.workflow-page .card .status-ok {
  color: var(--ok);
}

.workflow-page .card .status-warn {
  color: var(--warn);
}

.workflow-page .rule {
  height: 1px;
  margin: 4rem 0 0;
  background: var(--line);
}

.workflow-page .faie-figure {
  opacity: 0.34;
}

.workflow-page footer {
  padding-top: 1.25rem;
  margin-top: 0;
  border-top: 0;
}

@media (max-width: 1099px) {
  .workflow-page .faie-figure {
    opacity: 0.24;
  }

}
@media (max-width: 760px) {
  .workflow-page .faie-mobile-wrap {
    margin: 2.5rem -4vw 0;
  }

}
@media (max-width: 650px) {
  .workflow-page .shell {
    padding-top: 2rem;
  }

  .workflow-page .topbar {
    margin-bottom: 2.8rem;
  }

  .workflow-page .cards {
    grid-template-columns: 1fr;
  }

  .workflow-page .flow {
    white-space: normal;
    overflow-wrap: anywhere;
  }

}
/* Footer cast sizing */
.faie-figure {
  right: 0;
  height: min(90vh, 1000px);
  max-width: 38vw;
}

body[data-footer-kind="creature"] .faie-figure {
  height: min(55vh, 600px);
  max-width: 30vw;
}

@media (min-width: 761px) and (max-width: 1099px) {
  .faie-figure {
    right: -8rem;
    max-width: 48vw;
  }

}
@media (max-width: 760px) {
  .faie-mobile {
    max-height: 80vh;
    width: 100%;
    object-fit: contain;
  }

  body[data-footer-kind="creature"] .faie-mobile {
    max-height: 50vh;
  }

}
