/* Shared styles for the redesign mockups (drafts only). */

/* ---- orb field ---- */
@property --orb-c {
  syntax: "<color>";
  inherits: false;
  initial-value: transparent;
}
.orb-field {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.orb {
  position: absolute;
  top: 0;
  left: 0;
  border-radius: 50%;
  background: radial-gradient(
    circle at center,
    var(--orb-c) 0%,
    color-mix(in oklab, var(--orb-c) 45%, transparent) 35%,
    transparent 68%
  );
  mix-blend-mode: multiply;
  opacity: calc(var(--orb-o, 0.42) * var(--orb-v, 1));
  filter: blur(24px);
  will-change: transform;
  transition:
    --orb-c 1.6s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 4s ease-in-out;
}
main {
  position: relative;
  z-index: 1;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---- company highlighter links ---- */
.co {
  --co: var(--color-ink);
}
.co {
  color: var(--color-ink);
  font-weight: 400;
  white-space: nowrap;
  text-decoration: none;
  padding: 0 0.12em;
  margin: 0 -0.04em;
  /* soft-edged band, a little like the orbs behind it */
  --co-hl: color-mix(in oklab, var(--co) 32%, transparent);
  background: linear-gradient(
      transparent,
      var(--co-hl) 35%,
      var(--co-hl) 70%,
      transparent
    )
    0 92% / 100% 0.6em no-repeat;
  transition: background-size 300ms ease;
}
.co:hover,
.co:focus-visible {
  background-size: 100% 1.2em;
  outline: none;
}
/* darkened brand so light colors (lime, yellow) still read on cream */
.dot-label {
  --co-ink: color-mix(in oklab, var(--co) 55%, var(--color-ink));
}
.dot-label::before {
  content: "";
  display: inline-block;
  width: 0.5em;
  height: 0.5em;
  border-radius: 50%;
  background: var(--co);
  margin-right: 0.38em;
  vertical-align: 0.08em;
}
/* small external-site arrow that follows a company name */
.co-ext {
  display: inline-block;
  margin-left: 0.15em;
  padding: 0 0.1em;
  font-size: 0.8em;
  color: rgb(42 42 42 / 0.4);
  text-decoration: none;
  transition:
    color 200ms ease,
    transform 200ms ease;
}
.co-ext:hover,
.co-ext:focus-visible {
  color: var(--color-ink);
  transform: translate(0.1em, -0.1em);
}

/* ---- mockup control panel ---- */
.mock-panel {
  position: fixed;
  z-index: 10;
  right: 16px;
  bottom: 16px;
  width: min(340px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  overflow: auto;
  background: rgb(248 247 244 / 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgb(42 42 42 / 0.15);
  border-radius: 6px;
  padding: 14px;
  font-family: "logic-monospace", monospace;
  font-size-adjust: 0.49;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--color-ink);
}
.mock-panel h4 {
  margin: 0 0 10px;
  color: var(--color-subtle);
  font-weight: 500;
}
.mock-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.mock-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 8px;
  border: 1px solid rgb(42 42 42 / 0.15);
  border-radius: 4px;
  background: transparent;
  cursor: pointer;
  font: inherit;
  color: inherit;
  text-align: left;
}
.mock-btn[aria-pressed="true"] {
  border-color: var(--color-ink);
  background: rgb(42 42 42 / 0.06);
}
.mock-btn.all {
  grid-column: span 2;
  justify-content: center;
}
.mock-btn input[type="color"] {
  width: 16px;
  height: 16px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  cursor: pointer;
  flex: none;
}
.mock-btn input[type="color"]::-webkit-color-swatch-wrapper {
  padding: 0;
}
.mock-btn input[type="color"]::-webkit-color-swatch {
  border: 0;
  border-radius: 50%;
}
.mock-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  color: var(--color-subtle);
}
.mock-row > span:first-child {
  flex: none;
  width: 4.5em;
}
.mock-row input[type="range"] {
  flex: 1;
  accent-color: var(--color-ink);
}
.mock-select {
  flex: 1;
  min-width: 0;
  font: inherit;
  font-size: 11px;
  padding: 4px;
  border: 1px solid rgb(42 42 42 / 0.2);
  border-radius: 4px;
  background: transparent;
  color: inherit;
}
.mock-sep {
  margin: 14px 0 0;
  border: 0;
  border-top: 1px solid rgb(42 42 42 / 0.12);
}
.mock-toggle {
  margin-top: 10px;
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: var(--color-subtle);
  cursor: pointer;
  text-decoration: underline;
}
.mock-panel.collapsed .mock-body {
  display: none;
}
.mock-panel.collapsed h4 {
  margin: 0;
}
