/*
 * PickUpIFR Backend (Rails) — auth, OAuth consent, and authenticated-root styles.
 *
 * Design tokens mirror web/src/app/globals.css. Keep them in sync. The full spec
 * lives on Basecamp to-do 9804403361 (comment 9804463472). The rule of thumb
 * throughout:
 *
 *   Mono (Geist Mono)  → field labels, scope ids, user id/email, the "IFR" suffix
 *   Sans (Geist Sans)  → prose, wordmark "PickUp", titles, inputs, buttons, links
 *
 * Visual DNA: cockpit instruments under night flying. Navy canvas, single cyan
 * accent, calm authority. One luminous moment per page (primary CTA hover glow).
 *
 * Fonts are self-hosted via Propshaft from app/assets/fonts. No runtime calls
 * to Google Fonts.
 */

/* ============================================================================
 * 0. Fonts
 * ========================================================================= */
@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/geist-sans-latin-a83ed939.woff2") format("woff2");
  unicode-range: U+00-7F, U+131, U+152-153, U+2BB-2BC, U+2C6, U+2DA, U+2DC,
    U+304, U+308, U+329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/geist-sans-latin-ext-791e7f46.woff2") format("woff2");
  unicode-range: U+100-2BA, U+2BD-2C5, U+2C7-2CC, U+2CE-2D7, U+2DD-2FF, U+304,
    U+308, U+329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB,
    U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/geist-sans-cyrillic-58e13b59.woff2") format("woff2");
  unicode-range: U+301, U+400-45F, U+490-491, U+4B0-4B1, U+2116;
}

@font-face {
  font-family: "Geist Mono";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/geist-mono-latin-cf2b23e0.woff2") format("woff2");
  unicode-range: U+00-7F, U+131, U+152-153, U+2BB-2BC, U+2C6, U+2DA, U+2DC,
    U+304, U+308, U+329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Geist Mono";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/geist-mono-latin-ext-1fb21a2f.woff2") format("woff2");
  unicode-range: U+100-2BA, U+2BD-2C5, U+2C7-2CC, U+2CE-2D7, U+2DD-2FF, U+304,
    U+308, U+329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB,
    U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Geist Mono";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/geist-mono-cyrillic-678fc7ac.woff2") format("woff2");
  unicode-range: U+301, U+400-45F, U+490-491, U+4B0-4B1, U+2116;
}

/* ============================================================================
 * 1. Design tokens (mirror of web/src/app/globals.css :root)
 * ========================================================================= */
:root {
  /* Color */
  --background: #0a1628;
  --foreground: #e2e8f0;
  --foreground-secondary: #cbd5e1;
  --accent: #38bdf8;
  --accent-dark: #0284c7;
  --surface: #1e293b;
  --surface-light: #334155;
  --surface-elevated: #253347;
  --muted: #94a3b8;
  --success: #10b981;
  --success-dark: #059669;
  --danger: #ef4444;
  --danger-dark: #dc2626;

  /* Glow — luminous hero accent only */
  --glow-accent: 0 0 20px rgba(56, 189, 248, 0.25);

  /* Motion */
  --motion-fast: 150ms;
  --motion-base: 250ms;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);

  /* Space — 8-unit grid */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;

  /* Type scale (matching web) */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;

  --leading-xs: 1rem;
  --leading-sm: 1.25rem;
  --leading-base: 1.5rem;
  --leading-lg: 1.75rem;
  --leading-xl: 1.875rem;
  --leading-2xl: 2rem;
  --leading-3xl: 2.25rem;

  /* Shadow — cool-toned elevation */
  --shadow-lg: 0 12px 24px -6px rgba(10, 22, 40, 0.55),
    0 4px 8px -4px rgba(10, 22, 40, 0.35);
  --shadow-xl: 0 24px 48px -12px rgba(10, 22, 40, 0.65),
    0 8px 16px -8px rgba(10, 22, 40, 0.4);

  /* Font families — exposed for downstream consumers */
  --font-sans: "Geist", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SFMono-Regular", "Menlo", monospace;
}

/* ============================================================================
 * 2. Page frame (body + outer container)
 * ========================================================================= */
html,
body {
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  min-height: 100vh;
  margin: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Container used by Devise + Doorkeeper pages: vertically + horizontally
 * centers a single card on the navy canvas. No top nav, no footer. */
.auth-frame {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: var(--space-6) var(--space-4);
  box-sizing: border-box;
}

/* ============================================================================
 * 2.1 Wordmark — icon + "PickUp" (Sans) + "IFR" (Mono cyan)
 *
 * The .wordmark-row wraps the brand mark image and the text on a single row,
 * centered above the auth card. The heading keeps its text styles; the row
 * owns the bottom spacing so the h1 no longer needs it.
 * ========================================================================= */
.wordmark-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  margin: 0 0 var(--space-8) 0;
}

.wordmark-mark {
  display: block;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  flex-shrink: 0;
}

.wordmark {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: var(--text-2xl);
  line-height: var(--leading-2xl);
  letter-spacing: -0.01em;
  color: var(--foreground);
  text-align: center;
  margin: 0;
}

.wordmark__ifr {
  font-family: var(--font-mono);
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0;
}

@media (max-width: 480px) {
  .wordmark-mark {
    width: 32px;
    height: 32px;
    border-radius: 6px;
  }
}

/* ============================================================================
 * 3. The auth card (login, signup, consent)
 * ========================================================================= */
.card {
  width: 100%;
  max-width: 400px;
  background: var(--surface);
  border: 1px solid var(--surface-light);
  border-radius: 12px;
  padding: var(--space-8);
  box-shadow: var(--shadow-lg);
  box-sizing: border-box;
}

.card--wide {
  max-width: 480px;
}

.card__header {
  margin-bottom: var(--space-6);
}

.card__title {
  font-family: var(--font-sans);
  font-size: var(--text-xl);
  line-height: var(--leading-xl);
  font-weight: 600;
  color: var(--foreground);
  margin: 0 0 var(--space-2) 0;
  text-align: left;
}

.card__subtitle {
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  line-height: var(--leading-sm);
  font-weight: 400;
  color: var(--muted);
  margin: 0;
}

@media (max-width: 480px) {
  .card {
    padding: var(--space-6) var(--space-5);
    border-radius: 10px;
  }
}

/* ============================================================================
 * 4. Form fields
 * ========================================================================= */
.field {
  display: block;
  margin-bottom: var(--space-5);
}

.field:last-of-type {
  margin-bottom: 0;
}

.field__label-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-2);
  margin-bottom: var(--space-2);
}

.field__label,
.field label {
  display: block;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  line-height: var(--leading-xs);
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--foreground-secondary);
  margin: 0 0 var(--space-2) 0;
}

/* When the label sits inside the row flex container, remove its margin since
 * the row itself owns the spacing. */
.field__label-row .field__label,
.field__label-row label {
  margin: 0;
}

.field input[type="text"],
.field input[type="email"],
.field input[type="password"],
input.field__input {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  background: var(--background);
  color: var(--foreground);
  border: 1px solid var(--surface-light);
  border-radius: 8px;
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: var(--leading-base);
  transition: border-color var(--motion-fast) var(--ease-out),
    box-shadow var(--motion-fast) var(--ease-out);
  -webkit-appearance: none;
  box-sizing: border-box;
}

.field input::placeholder,
input.field__input::placeholder {
  color: var(--muted);
}

.field input:hover,
input.field__input:hover {
  border-color: var(--muted);
}

/* Focus state for inputs (shared with textarea/select for completeness). */
input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.3);
}

/* Autofill fix — keep dark canvas + light text when Chrome autofills. */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--foreground);
  -webkit-box-shadow: 0 0 0 1000px var(--background) inset;
  caret-color: var(--foreground);
}

/* Field-level helper text */
.field__helper {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  line-height: var(--leading-xs);
  color: var(--muted);
  margin: var(--space-2) 0 0 0;
}

/* Field-level error state (Devise wraps erroring inputs in
 * <div class="field_with_errors">). */
.field_with_errors {
  display: contents;
}

.field_with_errors input[type="text"],
.field_with_errors input[type="email"],
.field_with_errors input[type="password"],
.field_with_errors input.field__input {
  border-color: var(--danger);
}

.field_with_errors input:focus,
.field_with_errors input.field__input:focus {
  border-color: var(--danger);
  box-shadow: 0 0 0 1px rgba(239, 68, 68, 0.35);
}

/* Inline per-field error text (use when we render a field-scoped message). */
.field__error {
  display: block;
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  line-height: var(--leading-xs);
  font-weight: 500;
  color: var(--danger);
  margin: var(--space-2) 0 0 0;
}

.field__error::before {
  content: "• ";
}

/* Remember-me checkbox (§8.1). */
.field--checkbox {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-5);
}

.field--checkbox input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
  background: var(--background);
  border: 1px solid var(--surface-light);
  border-radius: 3px;
  cursor: pointer;
}

.field--checkbox label {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  line-height: var(--leading-xs);
  color: var(--foreground-secondary);
  text-transform: none;
  letter-spacing: 0;
  margin: 0;
  cursor: pointer;
}

/* ============================================================================
 * 5. Buttons
 * ========================================================================= */
.btn-primary,
button.btn-primary,
input[type="submit"].btn-primary {
  display: inline-block;
  width: 100%;
  padding: var(--space-3) var(--space-6);
  background: var(--accent);
  color: var(--background);
  border: none;
  border-radius: 8px;
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  line-height: 1;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: background var(--motion-fast) var(--ease-out),
    box-shadow var(--motion-fast) var(--ease-out),
    transform var(--motion-fast) var(--ease-out);
  box-sizing: border-box;
  -webkit-appearance: none;
}

.btn-primary:hover {
  background: var(--accent-dark);
  box-shadow: var(--glow-accent);
}

.btn-primary:active {
  transform: translateY(1px);
  box-shadow: none;
}

.btn-primary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  box-shadow: none;
}

/* Primary buttons in form context get top margin to the preceding field. */
.form__submit {
  margin-top: var(--space-6);
}

.btn-secondary,
button.btn-secondary {
  display: inline-block;
  width: 100%;
  padding: var(--space-3) var(--space-6);
  background: transparent;
  color: var(--foreground-secondary);
  border: 1px solid var(--surface-light);
  border-radius: 8px;
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  line-height: 1;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: background var(--motion-fast) var(--ease-out),
    border-color var(--motion-fast) var(--ease-out),
    color var(--motion-fast) var(--ease-out);
  box-sizing: border-box;
  -webkit-appearance: none;
}

.btn-secondary:hover {
  background: var(--surface-elevated);
  border-color: var(--muted);
  color: var(--foreground);
}

.btn-secondary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Text links (Sans, accent, underline on hover). */
.link,
a.link {
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  line-height: var(--leading-sm);
  font-weight: 500;
  color: var(--accent);
  text-decoration: none;
  transition: color var(--motion-fast) var(--ease-out);
}

.link:hover {
  color: var(--accent-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}

.link--xs {
  font-size: var(--text-xs);
  line-height: var(--leading-xs);
}

/* Footer row below a form, e.g. "Don't have an account? Sign up". */
.form__footer {
  margin-top: var(--space-6);
  text-align: center;
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  line-height: var(--leading-sm);
  color: var(--muted);
}

.form__footer .link {
  margin-left: var(--space-1);
}

/* ============================================================================
 * 6. Flash messages (rendered above the card)
 * ========================================================================= */
.flash {
  width: 100%;
  max-width: 400px;
  margin: 0 auto var(--space-5) auto;
  padding: var(--space-3) var(--space-4);
  border-radius: 8px;
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  line-height: var(--leading-sm);
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  box-sizing: border-box;
}

.flash__glyph {
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-weight: 600;
  line-height: var(--leading-sm);
}

.flash--notice {
  background: rgba(16, 185, 129, 0.10);
  border: 1px solid rgba(16, 185, 129, 0.30);
  color: var(--success);
}

.flash--alert {
  background: rgba(239, 68, 68, 0.10);
  border: 1px solid rgba(239, 68, 68, 0.30);
  color: var(--danger);
}

/* Devise error_explanation partial — inside the card, above the first field. */
.error-explanation {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.25);
  border-radius: 8px;
  padding: var(--space-3) var(--space-4);
  margin-bottom: var(--space-5);
}

.error-explanation h2 {
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  line-height: var(--leading-sm);
  font-weight: 600;
  color: var(--danger);
  margin: 0 0 var(--space-2) 0;
}

.error-explanation ul {
  margin: 0;
  padding-left: var(--space-5);
  list-style: disc;
  color: var(--foreground-secondary);
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  line-height: var(--leading-xs);
}

.error-explanation li + li {
  margin-top: var(--space-1);
}

/* ============================================================================
 * 7. Doorkeeper consent (authorizations/new)
 * ========================================================================= */
.consent__eyebrow {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  line-height: var(--leading-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin: 0 0 var(--space-2) 0;
}

.consent__title {
  font-family: var(--font-sans);
  font-size: var(--text-xl);
  line-height: var(--leading-xl);
  font-weight: 600;
  color: var(--foreground);
  margin: 0 0 var(--space-6) 0;
}

.consent__scopes-label {
  display: block;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  line-height: var(--leading-xs);
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--foreground-secondary);
  margin-bottom: var(--space-2);
}

.consent__scopes {
  background: var(--background);
  border: 1px solid var(--surface-light);
  border-radius: 8px;
  padding: var(--space-4);
  margin: 0 0 var(--space-4) 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.consent__scope {
  display: flex;
  align-items: baseline;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.consent__scope-arrow {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  line-height: var(--leading-xs);
  color: var(--accent);
  flex-shrink: 0;
}

.consent__scope-id {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  line-height: var(--leading-xs);
  font-weight: 500;
  color: var(--foreground-secondary);
}

.consent__scope-sep {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  line-height: var(--leading-xs);
  color: var(--muted);
}

.consent__scope-desc {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  line-height: var(--leading-xs);
  color: var(--muted);
  flex: 1 1 60%;
  min-width: 0;
}

.consent__redirect {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  line-height: var(--leading-xs);
  color: var(--muted);
  margin: var(--space-4) 0 0 0;
}

.consent__redirect-uri {
  font-family: var(--font-mono);
  color: var(--foreground-secondary);
  word-break: break-all;
}

.consent__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
  margin-top: var(--space-8);
}

.consent__actions form,
.consent__actions .consent__action {
  margin: 0;
}

@media (max-width: 480px) {
  .consent__actions {
    grid-template-columns: 1fr;
  }
  /* Authorize on top on mobile (spec §8.3). Primary action takes order 1. */
  .consent__actions .consent__action--authorize {
    order: 1;
  }
  .consent__actions .consent__action--deny {
    order: 2;
  }
}

/* Doorkeeper authorized_applications index + error pages — simple list view
 * rendered inside a standard card. */
.stack {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.stack--lg {
  gap: var(--space-6);
}

.meta-line {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  line-height: var(--leading-xs);
  color: var(--muted);
  word-break: break-all;
}

.divider {
  border: none;
  border-top: 1px solid var(--surface-light);
  margin: var(--space-4) 0;
}

/* ============================================================================
 * 8. Authenticated root topbar (§8.4). Not a card — full-bleed chrome.
 * ========================================================================= */
.topbar {
  width: 100%;
  padding: var(--space-4) var(--space-6);
  border-bottom: 1px solid var(--surface-light);
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  box-sizing: border-box;
  flex-wrap: wrap;
}

.topbar__left {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
  min-width: 0;
}

.topbar__logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.topbar__logo img {
  display: block;
  width: 32px;
  height: 32px;
  border-radius: 6px;
}

/* Stacks the greeting + email/id meta beside the logo. Keeps the same
 * horizontal rhythm (space-3) between the greeting and the meta as before. */
.topbar__left-text {
  display: flex;
  align-items: baseline;
  gap: var(--space-3);
  flex-wrap: wrap;
  min-width: 0;
}

.topbar__greeting {
  font-family: var(--font-sans);
  font-size: var(--text-xl);
  line-height: var(--leading-xl);
  font-weight: 600;
  color: var(--foreground);
  margin: 0;
}

.topbar__greeting-name {
  color: var(--accent);
}

.topbar__meta {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  line-height: var(--leading-xs);
  color: var(--muted);
  word-break: break-all;
}

.topbar__right {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

/* Sign out is rendered via Devise's button_to method: :delete. The form
 * generates a <form> wrapping a <button>. Strip the chrome so it reads as a
 * text link. */
.topbar__signout,
.topbar__signout form {
  display: inline-flex;
  margin: 0;
  padding: 0;
}

.topbar__signout button,
.topbar__signout input[type="submit"] {
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  line-height: var(--leading-sm);
  font-weight: 500;
  color: var(--accent);
  background: transparent;
  border: none;
  padding: var(--space-2) var(--space-3);
  border-radius: 6px;
  cursor: pointer;
  text-decoration: none;
  min-height: 44px;
  transition: background var(--motion-fast) var(--ease-out),
    color var(--motion-fast) var(--ease-out);
  -webkit-appearance: none;
}

.topbar__signout button:hover,
.topbar__signout input[type="submit"]:hover {
  background: var(--surface-elevated);
  color: var(--accent-dark);
}

.topbar__signout button:focus-visible,
.topbar__signout input[type="submit"]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

@media (max-width: 640px) {
  .topbar {
    align-items: flex-start;
  }
  .topbar__left {
    flex-basis: 100%;
    /* Keep the logo inline with the greeting cluster; don't stack the icon
     * above the text on narrow widths. */
    flex-direction: row;
    align-items: center;
    gap: var(--space-3);
  }
  .topbar__left-text {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-1);
    flex: 1 1 auto;
    min-width: 0;
  }
  .topbar__meta {
    display: block;
  }
}

.main {
  padding: var(--space-8);
}

.main__note {
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  line-height: var(--leading-sm);
  color: var(--muted);
  margin: 0;
}

/* ============================================================================
 * 9. Focus + accessibility
 * ========================================================================= */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
