@import url("https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Outfit:wght@400;500;600&display=swap");

:root {
  color-scheme: dark;
  --arch-bg: #0e0e0c;
  --arch-bg-elevated: #121210;
  --arch-surface: #171715;
  --arch-surface-hover: #1d1d1a;
  --arch-ink: #f3f1ec;
  --arch-ink-soft: #c6c2b8;
  --arch-muted: #98948b;
  --arch-faint: #6e6b64;
  --arch-line: rgba(243, 241, 236, 0.14);
  --arch-line-strong: rgba(243, 241, 236, 0.24);
  --arch-accent: #e8e4d9;
  --arch-accent-ink: #11110f;
  --arch-success: #a7b796;
  --arch-warning: #d2ae79;
  --arch-danger: #d78e7b;
  --arch-radius-lg: 18px;
  --arch-radius-md: 12px;
  --arch-radius-sm: 8px;
  --arch-serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --arch-sans: "Outfit", ui-sans-serif, system-ui, sans-serif;
  --arch-shadow: 0 28px 80px rgba(0, 0, 0, 0.34);
}

:root[data-theme="light"] {
  color-scheme: light;
  --arch-bg: #f2efe8;
  --arch-bg-elevated: #ece9e1;
  --arch-surface: #faf8f3;
  --arch-surface-hover: #f4f1e9;
  --arch-ink: #171714;
  --arch-ink-soft: #46443e;
  --arch-muted: #706d65;
  --arch-faint: #969189;
  --arch-line: rgba(23, 23, 20, 0.14);
  --arch-line-strong: rgba(23, 23, 20, 0.24);
  --arch-accent: #171714;
  --arch-accent-ink: #f5f2ea;
  --arch-success: #61725a;
  --arch-warning: #8a6337;
  --arch-danger: #974f3d;
  --arch-shadow: 0 28px 80px rgba(52, 48, 40, 0.14);
}

html[data-archdesign-dev],
html[data-archdesign-dev] body {
  background: var(--arch-bg) !important;
  color: var(--arch-ink) !important;
  font-family: var(--arch-sans) !important;
}

html[data-archdesign-dev] {
  scroll-behavior: smooth;
}

html[data-archdesign-dev] body {
  background-image: none !important;
  min-height: 100vh;
}

html[data-archdesign-dev] body::before,
html[data-archdesign-dev] body::after {
  display: none !important;
}

html[data-archdesign-dev] *,
html[data-archdesign-dev] *::before,
html[data-archdesign-dev] *::after {
  box-sizing: border-box;
}

html[data-archdesign-dev] a {
  color: inherit;
}

html[data-archdesign-dev] button,
html[data-archdesign-dev] input,
html[data-archdesign-dev] textarea,
html[data-archdesign-dev] select {
  font: inherit;
}

html[data-archdesign-dev] button,
html[data-archdesign-dev] [role="button"] {
  cursor: pointer;
}

html[data-archdesign-dev] button:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

html[data-archdesign-dev] :focus-visible {
  outline: 2px solid var(--arch-accent) !important;
  outline-offset: 3px !important;
}

html[data-archdesign-dev] ::selection {
  background: var(--arch-accent);
  color: var(--arch-accent-ink);
}

.arch-skip-link {
  position: fixed;
  top: 10px;
  left: 12px;
  z-index: 1000;
  transform: translateY(-160%);
  border-radius: var(--arch-radius-sm);
  background: var(--arch-accent);
  color: var(--arch-accent-ink) !important;
  padding: 10px 14px;
  text-decoration: none;
  transition: transform 150ms ease;
}

.arch-skip-link:focus {
  transform: translateY(0);
}

.arch-app-bar {
  position: sticky;
  top: 0;
  z-index: 200;
  display: grid;
  grid-template-columns: minmax(190px, 1fr) auto minmax(190px, 1fr);
  align-items: center;
  min-height: 58px;
  padding: 0 clamp(18px, 3vw, 34px);
  border-bottom: 1px solid var(--arch-line);
  background: color-mix(in srgb, var(--arch-bg) 88%, transparent);
  backdrop-filter: blur(18px);
  transition: background 180ms ease, box-shadow 180ms ease;
}

.arch-app-bar[data-scrolled="true"] {
  background: color-mix(in srgb, var(--arch-bg) 96%, transparent);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.12);
}

.arch-wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 12px;
  justify-self: start;
  min-width: 0;
  text-decoration: none;
}

.arch-wordmark > span:first-child {
  font-family: var(--arch-serif);
  font-size: 1.55rem;
  font-style: italic;
  line-height: 1;
}

.arch-wordmark-mode {
  color: var(--arch-muted);
  font-size: 0.61rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  white-space: nowrap;
}

.arch-primary-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  justify-self: center;
}

.arch-primary-nav a {
  border-radius: 999px;
  color: var(--arch-muted);
  font-size: 0.73rem;
  font-weight: 500;
  padding: 8px 12px;
  text-decoration: none;
  transition: background 150ms ease, color 150ms ease;
}

.arch-primary-nav a:hover,
.arch-primary-nav a[aria-current="page"] {
  background: var(--arch-surface);
  color: var(--arch-ink);
}

.arch-app-actions {
  display: flex;
  align-items: center;
  gap: 13px;
  justify-self: end;
}

.arch-environment {
  color: var(--arch-faint);
  font-size: 0.61rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.arch-theme-toggle {
  position: relative;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--arch-line);
  border-radius: 50%;
  background: transparent;
  color: var(--arch-ink);
}

.arch-theme-toggle span,
.arch-theme-toggle span::after {
  display: block;
  width: 11px;
  height: 11px;
  border: 1px solid currentColor;
  border-radius: 50%;
  content: "";
}

.arch-theme-toggle[data-theme="dark"] span::after {
  position: relative;
  top: -4px;
  right: -4px;
  border-color: var(--arch-bg);
  background: var(--arch-bg);
}

.arch-theme-toggle[data-theme="light"] span {
  background: currentColor;
  box-shadow: 0 -7px 0 -5px currentColor, 0 7px 0 -5px currentColor, 7px 0 0 -5px currentColor, -7px 0 0 -5px currentColor;
}

html[data-archdesign-dev] :is(.pipeline-nav, .search-nav, .crawler-nav, .chrome-nav, .progress-rail) {
  display: none !important;
}

html[data-archdesign-dev] :is(h1, h2, h3) {
  color: var(--arch-ink);
}

html[data-archdesign-dev] :is(.pipeline-header h1, .search-header h1, .workspace-hero h1) {
  font-family: var(--arch-serif);
  font-weight: 400;
  letter-spacing: -0.035em;
}

html[data-archdesign-dev] :is(.pipeline-eyebrow, .search-eyebrow, .workspace-eyebrow) {
  color: var(--arch-muted) !important;
  font-family: var(--arch-sans);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

html[data-archdesign-dev] :is(.pipeline-shell, .search-shell) {
  width: min(1480px, 100%);
  max-width: none;
  margin: 0 auto;
  padding: clamp(30px, 5vw, 64px) clamp(18px, 3vw, 34px) 110px;
}

html[data-archdesign-dev] :is(.pipeline-header, .search-header) {
  margin: 0 0 36px;
}

html[data-archdesign-dev] :is(.pipeline-header h1, .search-header h1) {
  max-width: 880px;
  margin: 0;
  font-size: clamp(3rem, 5vw, 5.4rem);
  line-height: 0.98;
}

html[data-archdesign-dev] :is(.pipeline-intro, .search-intro) {
  color: var(--arch-muted) !important;
  max-width: 720px;
  font-size: 0.94rem;
  line-height: 1.6;
}

@media (max-width: 900px) {
  .arch-app-bar {
    grid-template-columns: 1fr auto;
  }

  .arch-primary-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: flex-start;
    justify-self: stretch;
    order: 3;
    overflow-x: auto;
    padding: 4px 0 8px;
    scrollbar-width: none;
  }

  .arch-primary-nav::-webkit-scrollbar {
    display: none;
  }

  .arch-environment,
  .arch-wordmark-mode {
    display: none;
  }
}

@media (max-width: 560px) {
  .arch-app-bar {
    padding-inline: 16px;
  }

  .arch-primary-nav a {
    padding-inline: 10px;
  }

  html[data-archdesign-dev] :is(.pipeline-shell, .search-shell) {
    padding-inline: 16px;
  }
}

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