/* The landing project: landing/cards.css's variables set to the theme's colors, for light and dark mode, and
   DOCS and the buttons in the header (_templates/partials/site-head.html), as the landing page has them,
   and the User guides tab's lock. */

.nominal-landing {
  --bg-muted: var(--code-block-background);
  --bg-card: var(--nominal-card);
  --bg-card-hover: var(--nominal-card-hover);
  --bg-card-selected: var(--nominal-card-hover);
  --border-subtle: var(--sy-c-border);
  --border-strong: rgba(0, 0, 0, 0.25);
  --text-main: var(--sy-c-heading);
  --text-body: var(--sy-c-text);
  --text-muted: var(--sy-c-light);
  --text-dim: var(--sy-c-light);
  --font-sans: var(--sy-f-text);
  --font-mono: var(--sy-f-mono);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 8rem;
}
html.dark .nominal-landing {
  --border-strong: rgba(255, 255, 255, 0.25);
}
/* in light mode, code on a card is in the docs' light code colors (Atom One Light) */
html:not(.dark) .nominal-landing .card-snippet .k,
html:not(.dark) .nominal-landing .card-snippet .kn,
html:not(.dark) .nominal-landing .card-snippet .kc { color: #a626a4; }
html:not(.dark) .nominal-landing .card-snippet .nc,
html:not(.dark) .nominal-landing .card-snippet .nn { color: #1f60f0; }
html:not(.dark) .nominal-landing .card-snippet .s,
html:not(.dark) .nominal-landing .card-snippet .s1,
html:not(.dark) .nominal-landing .card-snippet .s2,
html:not(.dark) .nominal-landing .card-snippet .tool { color: #387537; }
html:not(.dark) .nominal-landing .card-snippet .mi,
html:not(.dark) .nominal-landing .card-snippet .mf { color: #916301; }

/* the landing page resets these; the theme's page styles would otherwise reach the cards */
.nominal-landing *,
.nominal-landing *::before,
.nominal-landing *::after {
  box-sizing: border-box;
}
.yue .nominal-landing a {
  color: inherit;
  font-weight: inherit;
  text-decoration: none;
}
.yue .nominal-landing pre.card-snippet {
  margin: 0;
  border-radius: 0;
}
/* the section headings (Quickstarts, Docs by Connector), as cards.css sets them, over the theme's h2 and links */
.yue .nominal-landing h2.section-heading {
  margin: 0 0 1rem;
  padding: 0;
  border: 0;
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.yue .nominal-landing h2.section-heading a {
  font-weight: 400;
  text-decoration: underline;
  text-decoration-color: currentColor;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.35em;
}
.yue .nominal-landing h2.section-heading a:hover,
.yue .nominal-landing h2.section-heading a:focus-visible {
  color: var(--text-main);
}

.yue .nominal-landing .picker + h2.section-heading {
  margin-top: 4.5rem;
}

/* in light mode, the logos are dark silhouettes until hovered or opened */
html:not(.dark) .nominal-landing .logo svg,
html:not(.dark) .nominal-landing .subcard-off:hover .logo svg {
  filter: brightness(0);
}
html:not(.dark) .nominal-landing .subpanel-back:hover,
html:not(.dark) .nominal-landing .subpanel-back:focus-visible {
  background-color: rgba(0, 0, 0, 0.06);
}

/* the links to the sections, under the title, as the landing page had them */
.yue .nominal-landing .hero-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.25rem 0.75rem;
  margin: 0 0 3rem;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.yue .nominal-landing .hero-nav a {
  color: var(--text-muted);
  transition: color 0.15s ease;
}
.yue .nominal-landing .hero-nav a:hover,
.yue .nominal-landing .hero-nav a:focus-visible {
  color: var(--text-main);
}
.nominal-landing .hero-nav-sep {
  color: var(--text-dim);
}
/* a section the links jump to stops below the header */
.nominal-landing h2.section-heading {
  scroll-margin-top: calc(var(--sy-s-navbar-height) + 1rem);
}

/* The page's sheet is at least 70% of the window's height (Shibuya makes the content nearly as
   tall as the window) */
body > .sy-container.body {
  min-height: 70vh;
}
.sy-container.body .sy-content {
  min-height: 0;
}
/* the page title, set like the landing page's, close under the header (the content's own top
   padding is above it) */
.yue section:first-of-type > h1 {
  margin: 0.5rem 0 1.25rem;
  font-size: clamp(2rem, 4.5vw, 2.25rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.25;
  text-align: center;
}

/* The lock on the User guides tab, which needs a sign-in */
.sy-head-links a[href^="https://docs.nominal.io/"]::before {
  content: "";
  flex-shrink: 0;
  width: 12px;
  height: 12px;
  background-color: currentColor;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5'%3E%3Crect x='4' y='11' width='16' height='10' rx='2'/%3E%3Cpath d='M8 11V7a4 4 0 0 1 8 0v4'/%3E%3C/svg%3E") center / contain no-repeat;
}

