/* ============================================================
   STEALTH STARTUP — Ashby Hosted Job Board
   FINAL · Built against actual DOM inspection
   ------------------------------------------------------------
   Paste into:  Theme Settings → Custom CSS
   HARD REFRESH after upload (Cmd+Shift+R / Ctrl+F5).

   This build uses Ashby's stable .ashby-* hook classes
   verified via DOM inspection of jobs.ashbyhq.com/stealth-startup.
   Partial-match selectors only used where stable classes don't
   exist (top nav, page container, footer).
   ============================================================ */

@import url('https://cdn.jsdelivr.net/npm/@fontsource/libre-caslon-text/index.css');
@import url('https://cdn.jsdelivr.net/npm/@fontsource/dm-sans/index.css');
@import url('https://cdn.jsdelivr.net/npm/@fontsource/jetbrains-mono/index.css');

/* ----------------------------------------
   1. TOKENS
   ---------------------------------------- */
:root {
  --paper-00: #FCF9F4;
  --paper-01: #F5F0E8;
  --paper-02: #E6DDD2;
  --paper-03: #D1C6BA;
  --paper-04: #B7AA9D;
  --ink-mute: #80726A;
  --ink-soft: #5B4C43;
  --ink:      #32241B;
  --ink-deep: #201711;

  --signal:      #85A477;
  --signal-deep: #6B8A60;

  --serif: 'Libre Caslon Text', Georgia, 'Times New Roman', serif;
  --sans:  'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --mono:  'JetBrains Mono', 'SF Mono', Menlo, Consolas, monospace;
}

/* ----------------------------------------
   2. ANIMATIONS
   ---------------------------------------- */
@keyframes stealth-pulse {
  0%, 100% { opacity: 0.78; }
  50%      { opacity: 1; }
}

@keyframes signal-pulse {
  0%, 100% { opacity: 0.65; }
  50%      { opacity: 1; }
}

@keyframes stealth-enter {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ----------------------------------------
   3. PAGE FOUNDATION — multi-color aurora + dot grid
   ---------------------------------------- */
html {
  scroll-behavior: smooth;
}

html, body {
  background-color: var(--paper-00) !important;
  background-image:
    radial-gradient(ellipse 70% 55% at 8% 12%, rgba(133, 164, 119, 0.22) 0, transparent 55%),
    radial-gradient(ellipse 60% 55% at 92% 20%, rgba(114, 163, 163, 0.20) 0, transparent 55%),
    radial-gradient(ellipse 60% 55% at 88% 82%, rgba(216, 152, 143, 0.18) 0, transparent 55%),
    radial-gradient(ellipse 55% 50% at 12% 88%, rgba(201, 137, 183, 0.16) 0, transparent 55%),
    radial-gradient(circle, rgba(50, 36, 27, 0.10) 1.2px, transparent 1.7px),
    radial-gradient(circle at 50% 50%, rgba(50, 36, 27, 0.025) 0, transparent 80%) !important;
  background-size:
    100% 100%, 100% 100%, 100% 100%, 100% 100%,
    28px 28px,
    100% 100% !important;
  background-repeat:
    no-repeat, no-repeat, no-repeat, no-repeat,
    repeat,
    no-repeat !important;
  background-attachment: fixed !important;
  color: var(--ink) !important;
  font-family: var(--sans) !important;
  font-feature-settings: "kern" 1, "liga" 1, "calt" 1 !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  animation: stealth-enter 600ms ease-out;
}

/* ----------------------------------------
   4. STICKY FROSTED HEADER
   The nav becomes a proper sticky bar: aurora gradient
   background + backdrop blur, so it has visual richness
   even at the top of the page (before any content has
   scrolled beneath to provide the blur source).
   ---------------------------------------- */
[class*="navRoot"] {
  position: sticky !important;
  top: 0 !important;
  z-index: 100 !important;
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  backdrop-filter: blur(16px) saturate(115%) !important;
  -webkit-backdrop-filter: blur(16px) saturate(115%) !important;
  border-bottom: 1px solid rgba(183, 170, 157, 0.25) !important;
  box-shadow: none !important;
  padding: 14px 28px !important;
  margin: 0 !important;
  width: 100% !important;
}

/* The container — Ashby uses CSS Grid with grid-template-areas:
   "left center right" and a max-width of 1024px. The ul renders
   at 797px and is positioned at the LEFT of the navRoot, so even
   if we center its contents internally, the whole container is
   left-aligned on wide screens.

   Fix: replace grid with flex, remove the max-width cap, and
   center the container itself with margin: 0 auto. */
[class*="navRoot"] [class*="navContainer"] {
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
  box-shadow: none !important;
  margin: 0 auto !important;
  padding: 0 !important;
  list-style: none !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  grid-template-areas: none !important;
  grid-template-columns: none !important;
  grid-template-rows: none !important;
  width: 100% !important;
  max-width: none !important;
  min-height: 32px !important;
}

/* Force all <li> children to size to content (zero width when empty)
   and remove any grid-area assignment. */
[class*="navRoot"] [class*="navContainer"] > li {
  grid-area: auto !important;
  flex: 0 0 auto !important;
  width: auto !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
}

/* Logo link — back to normal flow, no absolute positioning needed
   now that the parent is flex-centered. */
[class*="navContainer"] [class*="navLogoLink"] {
  position: static !important;
  text-decoration: none !important;
  background-image: none !important;
  background-size: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  transform: none !important;
}

/* The wordmark — "Stealth Startup" — sized for sticky bar.
   Uses -webkit-text-stroke to thicken letters since the
   loaded Libre Caslon Text only ships the 400 weight. */
[class*="navLogoText"] {
  font-family: var(--serif) !important;
  font-size: 48px !important;
  font-weight: 400 !important;
  letter-spacing: -0.025em !important;
  line-height: 1 !important;
  text-transform: none !important;
  color: var(--ink) !important;
  -webkit-text-stroke: 0.6px var(--ink) !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* ----------------------------------------
   5. LIVE SYSTEM READOUT — TOP LEFT (fixed)
   ---------------------------------------- */
html::before {
  content: "● LIVE\A─ NODE_01\A─ JOBS_OPEN/04\A─ BUILD_3F9A2C";
  position: fixed;
  top: 24px;
  left: 28px;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--signal);
  text-transform: uppercase;
  white-space: pre;
  line-height: 1.9;
  pointer-events: none;
  z-index: 9999;
  animation: signal-pulse 2.5s ease-in-out infinite;
}

/* ----------------------------------------
   6. CONFIDENTIAL SPECIMEN STAMP — BOTTOM RIGHT (fixed)
   ---------------------------------------- */
html::after {
  content: "[ CONFIDENTIAL ]\ASPECIMEN N° 001\A2026.05.22";
  position: fixed;
  bottom: 24px;
  right: 28px;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--ink-mute);
  text-transform: uppercase;
  white-space: pre;
  line-height: 1.9;
  text-align: right;
  opacity: 0.7;
  pointer-events: none;
  z-index: 9999;
}

/* ----------------------------------------
   7. MASTHEAD EYEBROW — sage, pulsing
   ---------------------------------------- */
body::before {
  content: "[ STEALTH MODE // NOW HIRING ]";
  display: block;
  text-align: center;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.34em;
  color: var(--signal);
  text-transform: uppercase;
  padding: 24px 16px 8px;
  animation: stealth-pulse 4s ease-in-out infinite;
}

/* ----------------------------------------
   8. END-OF-TRANSMISSION FOOTER
   ---------------------------------------- */
body::after {
  content: "──────── END_OF_TRANSMISSION ────────\ANODE_01 · BUILD_3F9A2C · STEALTH/CLASS-A";
  display: block;
  text-align: center;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.28em;
  color: var(--ink-mute);
  text-transform: uppercase;
  white-space: pre;
  line-height: 2;
  padding: 60px 16px 60px;
  opacity: 0.7;
}

/* ----------------------------------------
   9. PAGE HEADING — "Open Positions (4)"
   Editorial Caslon, big and confident
   ---------------------------------------- */
.ashby-job-board-heading {
  font-family: var(--serif) !important;
  font-size: 36px !important;
  font-weight: 400 !important;
  letter-spacing: -0.018em !important;
  line-height: 1 !important;
  color: var(--ink) !important;
  margin: 40px 0 8px !important;
  padding: 0 !important;
}

.ashby-job-board-heading-count {
  font-family: var(--mono) !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  letter-spacing: 0.1em !important;
  color: var(--signal) !important;
  vertical-align: super !important;
  margin-left: 8px !important;
}

/* ----------------------------------------
   10. FILTERS
   Stable classes — clean editorial treatment
   ---------------------------------------- */
.ashby-job-board-filters-label {
  font-family: var(--mono) !important;
  font-size: 10px !important;
  font-weight: 500 !important;
  letter-spacing: 0.2em !important;
  text-transform: uppercase !important;
  color: var(--ink-mute) !important;
}

.ashby-job-board-reset-filters-label {
  font-family: var(--mono) !important;
  font-size: 10px !important;
  font-weight: 500 !important;
  letter-spacing: 0.16em !important;
  text-transform: uppercase !important;
  color: var(--ink-mute) !important;
  background: transparent !important;
  border: none !important;
  padding: 4px 8px !important;
  box-shadow: none !important;
}

.ashby-job-board-reset-filters-label:hover {
  color: var(--signal-deep) !important;
  background: transparent !important;
}

.ashby-job-board-filter {
  font-family: var(--sans) !important;
  font-size: 14px !important;
  color: var(--ink) !important;
  background-color: transparent !important;
  background-image: none !important;
  border: 1px solid rgba(183, 170, 157, 0.6) !important;
  border-radius: 4px !important;
  padding: 10px 32px 10px 14px !important;
  transition: border-color 200ms ease !important;
  appearance: none !important;
  -webkit-appearance: none !important;
}

.ashby-job-board-filter:hover {
  border-color: var(--signal) !important;
}

.ashby-job-board-filter:focus {
  outline: none !important;
  border-color: var(--signal) !important;
  box-shadow: 0 0 0 3px rgba(133, 164, 119, 0.18) !important;
}

/* ----------------------------------------
   11. DEPARTMENT HEADINGS
   "Engineering" / "Product" / "General Interest"
   Specimen-sheet section labels with sage number prefix
   ---------------------------------------- */
.ashby-department-heading {
  font-family: var(--mono) !important;
  font-size: 11px !important;
  font-weight: 500 !important;
  letter-spacing: 0.32em !important;
  text-transform: uppercase !important;
  color: var(--ink-mute) !important;
  margin: 64px 0 24px !important;
  padding-bottom: 14px !important;
  border-bottom: 1px solid rgba(183, 170, 157, 0.5) !important;
  display: flex !important;
  align-items: baseline !important;
  gap: 16px !important;
}

/* Add a sage "§" before each department heading */
.ashby-department-heading::before {
  content: "§";
  font-family: var(--serif);
  font-size: 18px;
  letter-spacing: 0;
  color: var(--signal);
  font-style: italic;
}

.ashby-department-heading-level {
  font-family: inherit !important;
  font-size: inherit !important;
  font-weight: inherit !important;
  letter-spacing: inherit !important;
  color: inherit !important;
}

/* ----------------------------------------
   12. JOB POSTING BOXES
   Exact stable classes. Outer anchor handles hover,
   inner .ashby-job-posting-brief gets the visual box.
   ---------------------------------------- */
.ashby-job-posting-brief-list {
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
  margin-bottom: 12px !important;
}

.ashby-job-posting-brief-list > a {
  display: block !important;
  text-decoration: none !important;
  background-image: none !important;
  background-size: 0 !important;
}

.ashby-job-posting-brief {
  background-color: transparent !important;
  background-image: none !important;
  border: 1px solid rgba(183, 170, 157, 0.7) !important;
  border-left: 5px solid var(--signal) !important;
  border-radius: 5px !important;
  padding: 22px 24px !important;
  transition:
    background-color 240ms ease,
    border-color 240ms ease,
    border-left-color 240ms ease,
    box-shadow 240ms ease,
    transform 240ms ease !important;
}

/* Hover scoped to the anchor — only the hovered role lights up */
.ashby-job-posting-brief-list > a:hover .ashby-job-posting-brief {
  background-color: rgba(218, 226, 208, 0.5) !important;
  border-color: rgba(133, 164, 119, 0.55) !important;
  border-left-color: var(--signal-deep) !important;
  box-shadow:
    0 0 0 1px var(--signal),
    0 12px 32px -16px rgba(50, 36, 27, 0.22) !important;
  transform: translateX(2px);
}

.ashby-job-posting-brief-title {
  font-family: var(--serif) !important;
  font-size: 24px !important;
  font-weight: 500 !important;
  letter-spacing: -0.015em !important;
  line-height: 1.2 !important;
  color: var(--ink) !important;
  margin: 0 0 8px !important;
}

.ashby-job-posting-brief-list > a:hover .ashby-job-posting-brief-title {
  color: var(--ink-deep) !important;
}

.ashby-job-posting-brief-details {
  margin: 0 !important;
}

.ashby-job-posting-brief-details p {
  font-family: var(--mono) !important;
  font-size: 11px !important;
  font-weight: 500 !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
  color: var(--ink-mute) !important;
  margin: 0 !important;
}

/* ----------------------------------------
   13. GENERIC HEADINGS (fallback for anywhere else)
   ---------------------------------------- */
h1, h3, h4, h5 {
  font-family: var(--serif) !important;
  color: var(--ink) !important;
  font-weight: 400 !important;
  letter-spacing: -0.01em !important;
}

h3 { font-size: 22px !important; }
h4 { font-size: 18px !important; }

/* ----------------------------------------
   14. BODY COPY
   ---------------------------------------- */
p, li, span, div {
  font-family: var(--sans);
  color: var(--ink);
}

strong, b { color: var(--ink-deep); font-weight: 500; }
em, i { font-family: var(--serif); font-style: italic; color: var(--ink-soft); }
::selection { background: var(--ink); color: var(--paper-00); }

/* ----------------------------------------
   15. LINKS — animated sage underline
   ---------------------------------------- */
a, a:visited {
  color: var(--ink) !important;
  background-image: linear-gradient(var(--signal), var(--signal)) !important;
  background-size: 0% 1.5px !important;
  background-position: 0 100% !important;
  background-repeat: no-repeat !important;
  text-decoration: none !important;
  transition: color 180ms ease, background-size 280ms ease !important;
}
a:hover {
  color: var(--ink-deep) !important;
  background-size: 100% 1.5px !important;
}

/* Don't apply underline animation to posting anchors —
   they have their own hover treatment */
.ashby-job-posting-brief-list > a,
.ashby-job-posting-brief-list > a:hover,
[class*="navLogoLink"],
[class*="navLogoLink"]:hover {
  background-image: none !important;
  background-size: 0 !important;
}

/* ----------------------------------------
   16. BUTTONS (application page)
   ---------------------------------------- */
button:not(.ashby-job-board-reset-filters-label),
input[type="submit"],
input[type="button"] {
  font-family: var(--sans) !important;
  font-weight: 500 !important;
  color: var(--paper-00) !important;
  background: var(--ink) !important;
  background-image: none !important;
  border: 1px solid var(--ink) !important;
  border-radius: 4px !important;
  transition: background-color 200ms ease, transform 120ms ease !important;
}

button:not(.ashby-job-board-reset-filters-label):hover,
input[type="submit"]:hover {
  background: var(--ink-deep) !important;
  transform: translateY(-1px);
}

button:not(.ashby-job-board-reset-filters-label):active,
input[type="submit"]:active {
  transform: translateY(0);
}

/* ----------------------------------------
   17. FORM FIELDS (application page)
   ---------------------------------------- */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="number"],
input[type="password"],
textarea,
select:not(.ashby-job-board-filter) {
  background: var(--paper-00) !important;
  color: var(--ink) !important;
  font-family: var(--sans) !important;
  border: 1px solid var(--paper-03) !important;
  border-radius: 4px !important;
  transition: border-color 180ms ease, box-shadow 180ms ease !important;
}

input:focus, textarea:focus, select:not(.ashby-job-board-filter):focus {
  outline: none !important;
  border-color: var(--signal) !important;
  box-shadow: 0 0 0 3px rgba(133, 164, 119, 0.18) !important;
}

input::placeholder, textarea::placeholder {
  color: var(--paper-04) !important;
  font-style: italic;
}

input[type="search"] {
  background: var(--paper-01) !important;
  border: 1px solid var(--paper-03) !important;
  font-family: var(--mono) !important;
  color: var(--ink) !important;
}

input[type="checkbox"],
input[type="radio"] {
  accent-color: var(--signal);
}

label {
  font-family: var(--mono) !important;
  font-size: 11px !important;
  font-weight: 500 !important;
  letter-spacing: 0.16em !important;
  text-transform: uppercase !important;
  color: var(--ink-soft) !important;
}

/* ----------------------------------------
   18. SUPPORTING ELEMENTS
   ---------------------------------------- */
hr {
  border: none;
  border-top: 1px solid var(--paper-03);
}

blockquote {
  font-family: var(--serif);
  font-style: italic;
  color: var(--ink-soft);
  border-left: 2px solid var(--ink);
}

/* ----------------------------------------
   19. ACCESSIBILITY
   ---------------------------------------- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--signal) !important;
  outline-offset: 3px !important;
}

@media (prefers-reduced-motion: reduce) {
  html::before,
  body::before,
  html, body,
  a, button, input, textarea, select,
  .ashby-job-posting-brief,
  .ashby-job-posting-brief-list > a:hover .ashby-job-posting-brief {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }
}

/* ----------------------------------------
   20. RESPONSIVE
   ---------------------------------------- */
@media (max-width: 720px) {
  html::before,
  html::after {
    display: none;
  }
  .ashby-job-board-heading {
    font-size: 26px !important;
  }
  .ashby-job-posting-brief-title {
    font-size: 20px !important;
  }
  .ashby-department-heading {
    margin: 40px 0 20px !important;
  }
}

/* ============================================================
   END — Stealth Startup Ashby · Final
   ============================================================ */
