/* Foundation. Visual tokens and the original local fonts live in root.css. */
@font-face {
  font-family: "Ubuntu-Regular";
  src: url("../fonts/Ubuntu-Regular.ttf") format("truetype");
  font-display: swap;
}

@font-face {
  font-family: "Pacifico-Regular";
  src: url("../fonts/Pacifico-Regular.ttf") format("truetype");
  font-display: swap;
}

*, *::before, *::after {
  box-sizing: border-box;
}

* {
  margin: 0;
  padding: 0;
}

[hidden] {
  display: none !important;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scrollbar-color: var(--color-border-hover) transparent;
}

body {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--color-bg-canvas);
  color: var(--color-text-primary);
  font-family: var(--font-sans);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background-color .45s ease, color .45s ease;
}

body::before {
  position: fixed;
  z-index: 40;
  inset: 0 0 auto;
  height: 2px;
  background: var(--gradient-line);
  content: "";
  pointer-events: none;
}

button, input, textarea {
  font: inherit;
  color: inherit;
}

button, summary {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: .55;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

::selection {
  background: var(--color-accent);
  color: var(--color-text-inverse);
}

:where(a, button, summary, input, textarea, [tabindex]):focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  border: 2px solid transparent;
  border-radius: var(--radius-full);
  background: var(--color-border-hover);
  background-clip: padding-box;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  z-index: 10001;
  top: -60px;
  left: 16px;
  padding: 8px 14px;
  border-radius: var(--radius-full);
  background: var(--color-text-primary);
  color: var(--color-bg-canvas);
  font-size: .85rem;
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
}

.icon {
  display: block;
  flex: none;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.glass {
  border: 1px solid var(--color-border);
  background: var(--color-bg-surface-solid);
  box-shadow: var(--shadow-sm);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: var(--radius-full);
  background: transparent;
  color: var(--color-text-secondary);
  font-size: .8rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color var(--transition-fast), color var(--transition-fast), transform var(--transition-fast), border-color var(--transition-fast);
}

.btn .icon {
  width: 16px;
  height: 16px;
}

.btn:hover:not(:disabled) {
  transform: translateY(-1px);
  border-color: var(--color-border);
  background: var(--color-bg-surface-solid);
  color: var(--color-text-primary);
}

.btn:active:not(:disabled) {
  transform: none;
}

.btn--primary {
  background: var(--color-text-primary);
  color: var(--color-bg-canvas);
  padding-inline: 18px;
}

.btn--primary:hover:not(:disabled) {
  background: var(--color-accent);
  color: var(--color-text-inverse);
}

.btn--soft {
  background: var(--color-accent-subtle);
  color: var(--color-accent);
}

.btn--square {
  width: 36px;
  padding: 0;
}

.text-gradient {
  background: var(--gradient-title);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
