/* WorkStreams identity for git.workstreams.dev. Plain CSS because Forgejo loads custom styles as a file. Colours
   lean on Forgejo's theme variables so the page follows its light, dark and auto themes. */
@font-face {
  font-family: "Montserrat";
  src: url("../fonts/montserrat-latin-var.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* The warm wash sits on Forgejo's page wrapper, which grows from the navbar to the footer whatever the page height. */
.full.height:has(.page-content.ws-home) {
  background-image:
    radial-gradient(55rem 38rem at 0% 0%, color-mix(in oklab, #f3942f 16%, transparent), transparent 70%),
    radial-gradient(48rem 36rem at 100% 100%, color-mix(in oklab, #f6d860 12%, transparent), transparent 70%);
}

/* The navbar's logo.svg URL carries no version, so a browser may keep Forgejo's own logo for hours after a change.
   This stylesheet is versioned, and it points the navbar at the same file under a stable versioned name. */
#navbar-logo img { content: url("../img/logo.svg?v=ws1"); }

.page-content.ws-home {
  --ws-accent: var(--color-primary);
  margin: 0;
  padding: 0;
  font-family: "Montserrat", var(--fonts-regular);
}

.ws-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 32px;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--color-text);
}

.ws-hero {
  max-width: 1216px;
  margin: 0 auto;
  padding: clamp(40px, 8vw, 112px) 16px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

@media (max-width: 900px) {
  .ws-hero { grid-template-columns: minmax(0, 1fr); }
}

/* On a phone the navbar shows the name beside the logo on every page, so the hero drops its own lockup. The name is
   the brand, the same in every language. */
@media (max-width: 767.98px) {
  #navbar-logo { gap: 8px; }
  #navbar-logo::after {
    content: "WorkStreams";
    font-family: "Montserrat", var(--fonts-regular);
    font-size: 16px;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--color-text);
  }
  .ws-brand { display: none; }
}

.ws-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 24px;
  padding: 6px 14px;
  border-radius: 999px;
  background: color-mix(in oklab, var(--ws-accent) 12%, transparent);
  color: var(--ws-accent);
  font-size: 15px;
  font-weight: 500;
}

.ws-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

.ws-home h1 {
  margin: 0 0 24px;
  font-family: inherit;
  font-size: clamp(38px, 5.4vw, 66px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--color-text);
}

.ws-home h1 em { font-style: normal; color: var(--ws-accent); }

.ws-lede {
  max-width: 36em;
  margin: 0 0 16px;
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.6;
  color: var(--color-text-light-2);
}

.ws-lede-small { font-size: 16px; margin-bottom: 32px; }

.ws-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.ws-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 28px;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none !important;
}

.ws-btn-primary { background: linear-gradient(90deg, #d9530b, #c2410c); color: #fff !important; }
.ws-btn-primary:hover { background: #9a3412; }
.ws-btn-secondary { background: color-mix(in oklab, var(--ws-accent) 14%, transparent); color: var(--ws-accent) !important; }
.ws-btn-secondary:hover { background: color-mix(in oklab, var(--ws-accent) 22%, transparent); }

/* The command card stays dark in both themes, like the code card of docs.learnya.ai. */
.ws-card {
  min-width: 0;
  border-radius: 14px;
  overflow: hidden;
  background: #16130f;
  color: #ece6dc;
  border: 1px solid #ffffff14;
  font-family: var(--fonts-monospace);
  font-size: 14px;
  box-shadow: 0 24px 60px -24px rgb(0 0 0 / 0.35);
}

.ws-card-tabs { display: flex; padding: 0 12px; border-bottom: 1px solid #ffffff1a; }
.ws-tab { padding: 14px 8px 12px; color: #fff; border-bottom: 2px solid #f3942f; }
.ws-card-section + .ws-card-section { border-top: 1px solid #ffffff1a; }

.ws-card-label {
  margin: 0;
  padding: 16px 20px 0;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #9c948a;
}

.ws-card pre {
  margin: 0;
  padding: 10px 20px 18px;
  overflow-x: auto;
  white-space: pre;
  background: none;
  color: inherit;
  font: inherit;
  line-height: 1.7;
}

@media (max-width: 480px) {
  .ws-card { font-size: 12.5px; }
  .ws-card pre { padding-inline: 16px; }
}

.ws-k { color: #f6b26b; }
.ws-ph { padding: 0 2px; border-radius: 3px; background: #f3942f33; color: #f6b26b; }
