/* Long Distance — CSS wordmark & square mark (teal + rose-gold) */

:root {
  --ld-teal: #4a7c8c;
  --ld-gold: #c9a87c;
}

.ld-brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
  flex-shrink: 0;
}

.ld-brand:focus-visible {
  outline: 2px solid var(--ld-teal);
  outline-offset: 4px;
  border-radius: 4px;
}

/* --------------------------------------------------------------------------
   Wordmark — sans-serif, two colors
   -------------------------------------------------------------------------- */

.ld-wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 0.2em;
  line-height: 1;
  white-space: nowrap;
}

.ld-wordmark__long,
.ld-wordmark__distance,
.ld-wordmark__tld {
  font-family: var(--font-body, 'Outfit', system-ui, sans-serif);
  font-size: 1.35em;
  letter-spacing: 0.03em;
}

.ld-wordmark__long {
  font-weight: 600;
  color: var(--ld-teal);
}

.ld-wordmark__distance {
  font-weight: 500;
  color: var(--ld-gold);
}

.ld-wordmark__tld {
  font-size: 0.78em;
  font-weight: 600;
  color: var(--ld-teal);
  margin-left: 0.02em;
}

.ld-brand--wordmark.ld-brand--sm .ld-wordmark__long,
.ld-brand--wordmark.ld-brand--sm .ld-wordmark__distance {
  font-size: 1.15em;
}

.ld-brand--wordmark.ld-brand--lg .ld-wordmark__long,
.ld-brand--wordmark.ld-brand--lg .ld-wordmark__distance {
  font-size: 1.75em;
}

.ld-brand--wordmark.ld-brand--lg .ld-wordmark__tld {
  font-size: 0.75em;
}

/* --------------------------------------------------------------------------
   Square mark
   -------------------------------------------------------------------------- */

.ld-mark {
  position: relative;
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0.28rem;
  border-radius: 0.65rem;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.92) 0%, rgba(245, 240, 232, 0.95) 100%);
  border: 1px solid rgba(74, 124, 140, 0.22);
  box-shadow:
    0 1px 2px rgba(13, 27, 42, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  overflow: hidden;
  box-sizing: border-box;
}

.ld-mark::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 28% 30%, rgba(74, 124, 140, 0.12) 0%, transparent 52%),
              radial-gradient(circle at 72% 72%, rgba(201, 168, 124, 0.14) 0%, transparent 48%);
  pointer-events: none;
}

.ld-mark__bridge {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.ld-mark__bridge::before {
  content: '';
  position: absolute;
  left: 18%;
  bottom: 20%;
  width: 82%;
  height: 2px;
  background: linear-gradient(90deg, var(--ld-teal) 0%, var(--ld-gold) 100%);
  border-radius: 1px;
  transform-origin: 0% 50%;
  transform: rotate(-42deg);
  opacity: 0.9;
}

.ld-mark__dot {
  position: absolute;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  z-index: 2;
  box-shadow: 0 0 0 1.5px rgba(255, 255, 255, 0.55);
}

.ld-mark__dot--a {
  left: 12%;
  bottom: 14%;
  background: var(--ld-teal);
}

.ld-mark__dot--b {
  right: 12%;
  top: 14%;
  background: var(--ld-gold);
}

/* Mark sizes */
.ld-brand--mark.ld-brand--sm .ld-mark {
  width: 2rem;
  height: 2rem;
  padding: 0.22rem;
  border-radius: 0.5rem;
}

.ld-brand--mark.ld-brand--sm .ld-mark__dot {
  width: 0.4rem;
  height: 0.4rem;
}

.ld-brand--mark.ld-brand--md .ld-mark {
  width: 2.5rem;
  height: 2.5rem;
}

.ld-brand--mark.ld-brand--lg .ld-mark {
  width: 3.25rem;
  height: 3.25rem;
  padding: 0.35rem;
  border-radius: 0.85rem;
}

.ld-brand--mark.ld-brand--lg .ld-mark__dot {
  width: 0.58rem;
  height: 0.58rem;
}

.ld-brand--mark.ld-brand--xl .ld-mark {
  width: 4.5rem;
  height: 4.5rem;
  padding: 0.45rem;
  border-radius: 1.1rem;
}

.ld-brand--mark.ld-brand--xl .ld-mark__dot {
  width: 0.72rem;
  height: 0.72rem;
}

.ld-brand--mark.ld-brand--xl .ld-mark__bridge::before {
  height: 2.5px;
}

/* Wordmark + mark lockup */
.ld-brand--lockup {
  gap: 0.65rem;
}

.ld-brand--lockup.ld-brand--sm {
  gap: 0.5rem;
}

[data-theme="dark"] .ld-mark {
  background: linear-gradient(145deg, rgba(27, 40, 56, 0.95) 0%, rgba(13, 27, 42, 0.98) 100%);
  border-color: rgba(107, 154, 170, 0.25);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

[data-theme="dark"] .ld-mark::before {
  background: radial-gradient(circle at 28% 30%, rgba(107, 154, 170, 0.1) 0%, transparent 52%),
              radial-gradient(circle at 72% 72%, rgba(201, 168, 124, 0.1) 0%, transparent 48%);
}
