/* Copied from structure.fi's stylesheets by `just structure-site`; see SOURCE. Do not edit. */

/* ─── From src/foundation/landing.css ─── */

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

html {
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
}

body {
  background: var(--lp-canvas);
  color: var(--lp-ink);
  font-family: var(--lp-font-sans);
  font-size: 16px;
  line-height: 1.5;
  margin: 0;
  transition: background-color 240ms var(--lp-ease-out), color 240ms var(--lp-ease-out);
}

::selection {
  background: var(--lp-ink);
  color: var(--lp-canvas);
}

.lp-eyebrow {
  color: var(--lp-ink-3);
  font-family: var(--lp-font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  line-height: 16px;
  text-transform: uppercase;
}

/*
 * Base controls: monotone, square by default; directions set the radius.
 * Zero specificity (:where) so direction rules always win, whatever the
 * stylesheet order.
 */
:where(.lp-button) {
  align-items: center;
  appearance: none;
  background: transparent;
  border: 1px solid var(--lp-rule-strong);
  border-radius: var(--lp-control-radius);
  color: var(--lp-ink);
  cursor: pointer;
  display: inline-flex;
  font: 500 14px/1 var(--lp-font-sans);
  gap: 10px;
  height: var(--lp-control-height);
  justify-content: center;
  letter-spacing: -0.005em;
  padding: 0 18px;
  text-decoration: none;
  transition:
    background-color 160ms var(--lp-ease-out),
    border-color 160ms var(--lp-ease-out),
    color 160ms var(--lp-ease-out),
    transform 160ms var(--lp-ease-out);
  white-space: nowrap;
}

:where(.lp-button):hover {
  border-color: var(--lp-ink);
}

:where(.lp-button):active {
  transform: translateY(1px);
}

:where(.lp-button, .lp-icon-button, .lp-link):focus-visible {
  outline: 2px solid var(--lp-ink);
  outline-offset: 3px;
}

:where(.lp-button[data-tone="primary"]) {
  background: var(--lp-ink);
  border-color: var(--lp-ink);
  color: var(--lp-canvas);
}

:where(.lp-button[data-tone="primary"]):hover {
  background: color-mix(in oklab, var(--lp-ink) 86%, var(--lp-canvas));
}

:where(.lp-button[data-size="small"]) {
  font-size: 13px;
  height: 32px;
  padding: 0 14px;
}

:where(.lp-icon-button) {
  align-items: center;
  appearance: none;
  background: transparent;
  border: 1px solid var(--lp-rule-2);
  border-radius: var(--lp-control-radius);
  color: var(--lp-ink-2);
  cursor: pointer;
  display: inline-flex;
  height: 32px;
  justify-content: center;
  padding: 0;
  transition: border-color 160ms var(--lp-ease-out), color 160ms var(--lp-ease-out);
  width: 32px;
}

:where(.lp-icon-button):hover {
  border-color: var(--lp-ink);
  color: var(--lp-ink);
}

/* The theme toggle carries both icons; the theme on <html> picks one (theme.tsx). */
.lp-theme-icon {
  display: inline-flex;
}

:root:not([data-st-theme="dark"]) .lp-theme-icon[data-theme-icon="dark"],
[data-st-theme="dark"] .lp-theme-icon[data-theme-icon="light"] {
  display: none;
}

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

/* ─── From src/site/site.css ─── */

.site-input {
  appearance: none;
  background: var(--lp-canvas-raised);
  border: 1px solid var(--lp-rule-2);
  border-radius: 0;
  color: var(--lp-ink);
  font: 400 15px/1.4 var(--lp-font-sans);
  block-size: 44px;
  inline-size: 100%;
  margin: 0;
  padding: 0 12px;
  transition: border-color 160ms var(--lp-ease-out);
}

.site-input:hover {
  border-color: var(--lp-rule-strong);
}

.site-input:focus-visible {
  border-color: var(--lp-ink);
  outline: 1px solid var(--lp-ink);
  outline-offset: 0;
}

.site-input[aria-invalid="true"] {
  border-color: var(--site-error);
}

.site-form__alert {
  border: 1px solid var(--site-error);
  color: var(--site-error);
  font-size: 14px;
  line-height: 20px;
  margin: 0;
  padding: 12px 14px;
}
