/* Ported from design-system/tokens/base.css + app/src/styles/global.css */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  font-family: var(--font-body);
  background: var(--surface-page);
  color: var(--text-primary);
}

a {
  color: var(--accent-primary);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-decoration-color: var(--accent-primary);
}

a:hover {
  color: var(--cobalt-700);
}

img,
video {
  max-width: 100%;
  display: block;
}

button {
  font: inherit;
}

.site {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-main {
  flex: 1;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

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

:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

.slg-skip-link:focus {
  position: fixed;
  top: var(--space-3);
  left: var(--space-3);
  width: auto;
  height: auto;
  padding: var(--space-3) var(--space-4);
  margin: 0;
  clip: auto;
  overflow: visible;
  white-space: normal;
  background: var(--ink-950);
  color: var(--bone);
  z-index: 1000;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: var(--ls-label);
  font-size: 12px;
}

/* supporting annotation device — secondary to the quote-mark core device */
.annotate-circle {
  position: relative;
  display: inline-block;
  padding: 0 .15em;
}
.annotate-circle::after {
  content: '';
  position: absolute;
  left: -6%;
  right: -6%;
  top: -18%;
  bottom: -12%;
  border: 2.5px solid var(--accent-secondary);
  border-radius: 48% 52% 45% 55% / 60% 45% 55% 40%;
  transform: rotate(-2deg);
  pointer-events: none;
}
.annotate-underline {
  background-image: linear-gradient(100deg, transparent 60%, var(--cobalt-100) 60%);
  background-size: 100% 0.5em;
  background-position: 0 88%;
  background-repeat: no-repeat;
  padding: 0 .05em;
}

/* Sloganista quote-mark device — two skewed bars, no logo file exists
   (see design-system readme). Rendered via slg_quote_mark() helper. */
.qmark {
  position: relative;
  display: inline-block;
  flex-shrink: 0;
}
.qmark-bar {
  position: absolute;
  top: 0;
  width: 34%;
  height: 100%;
  transform: skewX(-14deg);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

/* Generic editorial page content (page.php) */
.slg-page-content {
  font-family: var(--font-body);
  line-height: var(--lh-body);
}
.slg-page-content p {
  margin: 0 0 var(--space-4);
}
.slg-page-content h2,
.slg-page-content h3 {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: var(--ls-display);
}
