/*
 * The Griot documentation style, shared byte for byte by the parcel, peQL and Moruna sites.
 * Change it in one repository, then copy it to the other two, so the three sites stay identical.
 *
 * Colours are the Griot Cloud brand sheet: Moroccan Blue #0160ed, Vivid Cyan #00e5ff,
 * Super Dark Blue #02052a and white, with the cyan-to-blue gradient as the one decoration.
 * The brand typeface, Aeonik, is not licensed for the web, so the sites use Inter.
 */

:root {
  --griot-blue: #0160ed;
  --griot-cyan: #00e5ff;
  --griot-ink: #02052a;
  --griot-gradient: linear-gradient(90deg, #00e5ff 0%, #0160ed 100%);
  --griot-muted: #5b6078;
  --griot-border: #e3e6ef;
  --griot-surface: #f5f8fe;
}

/* The theme draws links, focus rings, active navigation and search highlights from its
   accent scale, whose default is violet. Point the steps it uses at the brand blue. */
html.light {
  --accent-9: var(--griot-blue);
  --accent-10: #0152cc;
  --accent-11: #0148b3;
  --accent-a3: rgba(1, 96, 237, 0.08);
  --accent-a4: rgba(1, 96, 237, 0.12);
  --accent-a10: #0152cc;
  --accent-a11: #0148b3;
  --sy-c-link: var(--griot-blue);
  --sy-c-link-hover: #0148b3;
  --sy-c-heading: var(--griot-ink);
}

html.dark {
  --griot-muted: #a3aac4;
  --griot-border: rgba(255, 255, 255, 0.12);
  --griot-surface: rgba(0, 229, 255, 0.05);
  --accent-9: var(--griot-cyan);
  --accent-10: #5eefff;
  --accent-11: #8ff4ff;
  --accent-a3: rgba(0, 229, 255, 0.1);
  --accent-a4: rgba(0, 229, 255, 0.16);
  --accent-a10: #5eefff;
  --accent-a11: #8ff4ff;
  --sy-c-link: var(--griot-cyan);
  --sy-c-link-hover: #8ff4ff;
  --sy-c-background: var(--griot-ink);
  --sy-c-foot-background: var(--griot-ink);
}

body {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

/* Frame */
.sy-main > .sy-container { max-width: 90rem; }
.sy-content { max-width: 48rem; }
.sy-head { border-bottom: 1px solid var(--griot-border); }
.sy-head::after { content: ""; display: block; height: 2px; background: var(--griot-gradient); }
.sy-sidebar { border-right: 1px solid var(--griot-border); }

/* Documentation pages */
.sy-content h1 { font-size: clamp(2rem, 4vw, 2.75rem); letter-spacing: -0.035em; line-height: 1.12; margin-bottom: 1rem; }
.sy-content h2 { border-top: 1px solid var(--griot-border); margin-top: 3rem; padding-top: 1.5rem; }
.sy-content h1 + p { color: var(--griot-muted); font-size: 1.125rem; line-height: 1.65; }
.sy-content pre { border: 1px solid var(--griot-border); border-radius: 0.625rem; padding: 1rem; }
.sy-content table { border-color: var(--griot-border); }
.sd-card { background: var(--griot-surface); border-color: var(--griot-border); border-radius: 0.75rem; box-shadow: none; transition: border-color 160ms ease, transform 160ms ease; }
.sd-card:hover { border-color: var(--sy-c-link); transform: translateY(-2px); }
.sd-card-title { font-size: 1.05rem; font-weight: 650; }
.sd-card-text { color: var(--griot-muted); }

/* Landing page; the theme's landing layout removes both sidebars. */
.griot-home { padding: 0 0 2rem; }
.yue .griot-home h1 { font-size: clamp(3rem, 7vw, 4.5rem); margin: 1.5rem 0 1.25rem; letter-spacing: -0.055em; }
.yue .griot-home h1::after { content: ""; display: block; width: 4rem; height: 4px; margin-top: 1rem; border-radius: 2px; background: var(--griot-gradient); }
.yue .home-lead { max-width: 51rem; font-size: clamp(1.3rem, 2.5vw, 1.65rem); line-height: 1.6; letter-spacing: -0.02em; margin: 0 0 3rem; }
.home-usecases { margin-bottom: 3rem; }
.home-usecase { display: grid; grid-template-columns: 1fr 1.6fr; gap: 2rem; padding: 1.25rem 0; border-bottom: 1px solid var(--griot-border); }
.yue .home-usecase h3 { margin: 0; font-size: 1rem; line-height: 1.6; }
.yue .home-usecase p { margin: 0; color: var(--griot-muted); font-size: 0.95rem; line-height: 1.7; }
.yue .home-section-title { font-size: 1.1rem; border: 0; padding: 0; margin: 0 0 1rem; }
.home-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.yue a.home-card { position: relative; display: block; border: 1px solid var(--griot-border); border-radius: 0.5rem; padding: 1.5rem 3rem 1.5rem 1.5rem; color: inherit; text-decoration: none; transition: border-color 160ms ease, background 160ms ease; }
.home-card:hover { border-color: var(--sy-c-link); background: var(--griot-surface); }
.card-number { color: var(--griot-muted); font-size: 0.75rem; }
.yue .home-card h3 { margin: 0.65rem 0 0.4rem; font-size: 1.1rem; }
.yue .home-card p { color: var(--griot-muted); font-size: 0.9rem; line-height: 1.6; margin: 0; }
.card-arrow { position: absolute; right: 1.4rem; top: 1.4rem; color: var(--sy-c-link); }
.yue a.home-next { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--griot-border); margin-top: 3rem; padding-top: 1.5rem; text-decoration: none; }
.home-next small { display: block; color: var(--griot-muted); font-size: 0.75rem; margin-bottom: 0.25rem; }
.home-next > span:last-child { font-size: 2rem; }
.home-card:focus-visible, .home-next:focus-visible { outline: 2px solid var(--sy-c-link); outline-offset: 4px; }

@media (max-width: 640px) {
  .home-usecase, .home-cards { grid-template-columns: 1fr; }
  .home-usecase { gap: 0.5rem; }
  .yue .griot-home h1 { margin-top: 0; }
}
