/* Global website styles. Tokens live in tokens.css. */

html {
  scrollbar-gutter: stable;
}

body {
  font-family: var(--font-barlow);
  font-size: 14px;
  padding: 0;
  margin: 0;
  background: var(--landing-bg);
}

a:link,
a:visited {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--link-hover);
  text-decoration: underline;
}

/* Inline links inside body copy stay underlined so they read as links. */
p a:link,
p a:visited {
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
}

.dark-theme {
  --text-color: var(--paper-0);
  --editor-color: var(--ink-0);
}

/* ── Page layout ── */

.page {
  margin-left: var(--sidebar-width);
  padding: var(--space-6) var(--space-12) 12rem;
}

.page__title {
  font-family: var(--font-playfair-display);
  font-size: var(--fs-5xl);
  font-weight: var(--fw-regular);
  margin: 0 0 var(--space-6);
  color: var(--ink-1);
}

/* ── Slider ── */

.slider {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.slider__header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.slider__label {
  font-size: var(--fs-base);
  font-weight: var(--fw-medium);
  color: var(--ink-5);
}

.slider__value {
  font-size: var(--fs-xs);
  color: var(--ink-8);
  font-variant-numeric: tabular-nums;
}

.slider__track {
  position: relative;
  height: 1.25rem;
  cursor: pointer;
  touch-action: none;
}

.slider__rail {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--border-soft);
  transform: translateY(-50%);
  border-radius: 1px;
}

.slider__fill {
  position: absolute;
  top: 50%;
  left: 0;
  height: 2px;
  background: var(--accent-gold);
  transform: translateY(-50%);
  border-radius: 1px;
}

.slider__thumb {
  position: absolute;
  top: 50%;
  width: 0.75rem;
  height: 0.75rem;
  background: var(--paper-0);
  border: 2px solid var(--accent-gold);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  cursor: grab;
  transition: box-shadow var(--t-fast) var(--ease);
}
.slider__thumb:focus-visible {
  outline: 2px solid var(--accent-gold);
  outline-offset: 2px;
}

.slider__thumb:hover,
.slider__thumb:active {
  box-shadow: 0 0 0 3px var(--accent-gold-soft);
  cursor: grabbing;
}

/* ── Breadcrumbs ── */

.breadcrumbs {
  font-family: var(--font-barlow);
  font-size: var(--fs-sm);
  font-weight: var(--fw-regular);
  letter-spacing: 0.03em;
  color: var(--ink-8);
  margin-bottom: var(--space-4);
}

.breadcrumbs__sep {
  margin: 0 0.4em;
  color: var(--ink-11);
}

.breadcrumbs__link {
  color: var(--ink-7);
  text-decoration: none;
  transition: color var(--t-base);
}

.breadcrumbs__link:hover {
  color: var(--accent-gold);
  text-decoration: none;
}

.breadcrumbs__current {
  color: var(--ink-5);
}

/* ── 2D Light Visualizer ── */

.pt2d {
  display: flex;
  gap: var(--space-6);
  align-items: flex-start;
  flex-wrap: wrap;
}

.pt2d__canvas {
  max-width: 100%;
  background: var(--canvas-bg);
  border-radius: var(--radius-md);
}

.pt2d__controls {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  min-width: 14rem;
  max-width: 16rem;
}

/* Uses .eyebrow .eyebrow--muted in markup; this only adds the section divider. */
.pt2d__section-heading {
  margin-top: var(--space-3);
  padding-bottom: var(--space-1);
  border-bottom: 1px solid var(--paper-6);
}

.pt2d__checkbox {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--fs-base);
  color: var(--ink-5);
  cursor: pointer;
}

.pt2d__status {
  font-size: var(--fs-sm);
  color: var(--ink-7);
  margin-top: var(--space-2);
}
